Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
79295d91
提交
79295d91
编写于
4月 19, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
1652316c
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
339 行增加
和
34 行删除
+339
-34
IBZDict.java
...re/src/main/java/cn/ibizlab/core/dict/domain/IBZDict.java
+1
-1
IBZDictItem.java
...rc/main/java/cn/ibizlab/core/dict/domain/IBZDictItem.java
+0
-1
IBZDictDTO.java
...tapi/src/main/java/cn/ibizlab/dictapi/dto/IBZDictDTO.java
+102
-8
IBZDictItemDTO.java
.../src/main/java/cn/ibizlab/dictapi/dto/IBZDictItemDTO.java
+199
-8
IBZDictItemMapping.java
...n/java/cn/ibizlab/dictapi/mapping/IBZDictItemMapping.java
+16
-8
IBZDictMapping.java
.../main/java/cn/ibizlab/dictapi/mapping/IBZDictMapping.java
+21
-8
未找到文件。
ibzdict-core/src/main/java/cn/ibizlab/core/dict/domain/IBZDict.java
浏览文件 @
79295d91
...
@@ -24,7 +24,7 @@ import org.springframework.data.annotation.Id;
...
@@ -24,7 +24,7 @@ import org.springframework.data.annotation.Id;
import
org.springframework.data.mongodb.core.mapping.Document
;
import
org.springframework.data.mongodb.core.mapping.Document
;
import
org.springframework.data.mongodb.core.mapping.Field
;
import
org.springframework.data.mongodb.core.mapping.Field
;
import
org.springframework.data.mongodb.core.mapping.FieldType
;
import
org.springframework.data.mongodb.core.mapping.FieldType
;
import
org.springframework.data.annotation.Transient
;
/**
/**
* 大数据 [数据字典] 对象
* 大数据 [数据字典] 对象
*/
*/
...
...
ibzdict-core/src/main/java/cn/ibizlab/core/dict/domain/IBZDictItem.java
浏览文件 @
79295d91
...
@@ -131,7 +131,6 @@ public class IBZDictItem implements Serializable {
...
@@ -131,7 +131,6 @@ public class IBZDictItem implements Serializable {
*/
*/
@JSONField
(
name
=
"dict"
)
@JSONField
(
name
=
"dict"
)
@JsonProperty
(
"dict"
)
@JsonProperty
(
"dict"
)
@Transient
private
cn
.
ibizlab
.
core
.
dict
.
domain
.
IBZDict
dict
;
private
cn
.
ibizlab
.
core
.
dict
.
domain
.
IBZDict
dict
;
...
...
ibzdict-provider/ibzdict-provider-dictapi/src/main/java/cn/ibizlab/dictapi/dto/IBZDictDTO.java
浏览文件 @
79295d91
!!!!
模版产生代码错误
:----
package
cn
.
ibizlab
.
dictapi
.
dto
;
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
----
import
java.util.List
;
FTL
stack
trace
(
"~"
means
nesting
-
related
):
import
java.math.BigInteger
;
-
Failed
at:
$
{
itemSysApiCodeNameLC
}
[
in
template
"CODETEMPL_zh_CN"
at
line
4
,
column
27
]
import
java.util.Map
;
----
import
java.util.HashMap
;
\ No newline at end of file
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
cn.ibizlab.util.domain.DTOBase
;
import
lombok.Data
;
/**
* 服务DTO对象[IBZDictDTO]
*/
@Data
public
class
IBZDictDTO
extends
DTOBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 属性 [IBZDICTID]
*
*/
@JSONField
(
name
=
"dictid"
)
@JsonProperty
(
"dictid"
)
private
String
dictid
;
/**
* 属性 [IBZDICTNAME]
*
*/
@JSONField
(
name
=
"dictname"
)
@JsonProperty
(
"dictname"
)
private
String
dictname
;
/**
* 属性 [ENABLE]
*
*/
@JSONField
(
name
=
"enable"
)
@JsonProperty
(
"enable"
)
private
Integer
enable
;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 设置 [IBZDICTNAME]
*/
public
void
setDictname
(
String
dictname
){
this
.
dictname
=
dictname
;
this
.
modify
(
"ibzdictname"
,
dictname
);
}
/**
* [IBZDICTITEM]
*/
@JsonProperty
(
"ibzdictitems"
)
@JSONField
(
name
=
"ibzdictitems"
)
private
List
<
IBZDictItemDTO
>
items
;
}
ibzdict-provider/ibzdict-provider-dictapi/src/main/java/cn/ibizlab/dictapi/dto/IBZDictItemDTO.java
浏览文件 @
79295d91
!!!!
模版产生代码错误
:----
package
cn
.
ibizlab
.
dictapi
.
dto
;
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
----
import
java.util.List
;
FTL
stack
trace
(
"~"
means
nesting
-
related
):
import
java.math.BigInteger
;
-
Failed
at:
$
{
itemSysApiCodeNameLC
}
[
in
template
"CODETEMPL_zh_CN"
at
line
4
,
column
27
]
import
java.util.Map
;
----
import
java.util.HashMap
;
\ No newline at end of file
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
cn.ibizlab.util.domain.DTOBase
;
import
lombok.Data
;
/**
* 服务DTO对象[IBZDictItemDTO]
*/
@Data
public
class
IBZDictItemDTO
extends
DTOBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 属性 [IBZDICTITEMID]
*
*/
@JSONField
(
name
=
"itemid"
)
@JsonProperty
(
"itemid"
)
private
String
itemid
;
/**
* 属性 [IBZDICTITEMNAME]
*
*/
@JSONField
(
name
=
"itemname"
)
@JsonProperty
(
"itemname"
)
private
String
itemname
;
/**
* 属性 [DICTITEMVAL]
*
*/
@JSONField
(
name
=
"itemval"
)
@JsonProperty
(
"itemval"
)
private
String
itemval
;
/**
* 属性 [DICTID]
*
*/
@JSONField
(
name
=
"dictid"
)
@JsonProperty
(
"dictid"
)
private
String
dictid
;
/**
* 属性 [PITEMVAL]
*
*/
@JSONField
(
name
=
"pitemval"
)
@JsonProperty
(
"pitemval"
)
private
String
pitemval
;
/**
* 属性 [ITEMFILTER]
*
*/
@JSONField
(
name
=
"itemfilter"
)
@JsonProperty
(
"itemfilter"
)
private
String
itemfilter
;
/**
* 属性 [ITEMCLS]
*
*/
@JSONField
(
name
=
"itemcls"
)
@JsonProperty
(
"itemcls"
)
private
String
itemcls
;
/**
* 属性 [ITEMICON]
*
*/
@JSONField
(
name
=
"itemicon"
)
@JsonProperty
(
"itemicon"
)
private
String
itemicon
;
/**
* 属性 [SHOWORDER]
*
*/
@JSONField
(
name
=
"showorder"
)
@JsonProperty
(
"showorder"
)
private
Integer
showorder
;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 设置 [IBZDICTITEMNAME]
*/
public
void
setItemname
(
String
itemname
){
this
.
itemname
=
itemname
;
this
.
modify
(
"ibzdictitemname"
,
itemname
);
}
/**
* 设置 [DICTITEMVAL]
*/
public
void
setItemval
(
String
itemval
){
this
.
itemval
=
itemval
;
this
.
modify
(
"dictitemval"
,
itemval
);
}
/**
* 设置 [DICTID]
*/
public
void
setDictid
(
String
dictid
){
this
.
dictid
=
dictid
;
this
.
modify
(
"dictid"
,
dictid
);
}
/**
* 设置 [PITEMVAL]
*/
public
void
setPitemval
(
String
pitemval
){
this
.
pitemval
=
pitemval
;
this
.
modify
(
"pitemval"
,
pitemval
);
}
/**
* 设置 [ITEMFILTER]
*/
public
void
setItemfilter
(
String
itemfilter
){
this
.
itemfilter
=
itemfilter
;
this
.
modify
(
"itemfilter"
,
itemfilter
);
}
/**
* 设置 [ITEMCLS]
*/
public
void
setItemcls
(
String
itemcls
){
this
.
itemcls
=
itemcls
;
this
.
modify
(
"itemcls"
,
itemcls
);
}
/**
* 设置 [ITEMICON]
*/
public
void
setItemicon
(
String
itemicon
){
this
.
itemicon
=
itemicon
;
this
.
modify
(
"itemicon"
,
itemicon
);
}
/**
* 设置 [SHOWORDER]
*/
public
void
setShoworder
(
Integer
showorder
){
this
.
showorder
=
showorder
;
this
.
modify
(
"showorder"
,
showorder
);
}
}
ibzdict-provider/ibzdict-provider-dictapi/src/main/java/cn/ibizlab/dictapi/mapping/IBZDictItemMapping.java
浏览文件 @
79295d91
!!!!
模版产生代码错误
:----
package
cn
.
ibizlab
.
dictapi
.
mapping
;
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
import
org.mapstruct.*
;
import
cn.ibizlab.core.dict.domain.IBZDictItem
;
----
import
cn.ibizlab.dictapi.dto.IBZDictItemDTO
;
FTL
stack
trace
(
"~"
means
nesting
-
related
):
import
cn.ibizlab.util.domain.MappingBase
;
-
Failed
at:
$
{
itemSysApiCodeNameLC
}
[
in
template
"CODETEMPL_zh_CN"
at
line
4
,
column
27
]
import
org.mapstruct.factory.Mappers
;
----
\ No newline at end of file
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
IBZDictItemMapping
extends
MappingBase
<
IBZDictItemDTO
,
IBZDictItem
>
{
}
ibzdict-provider/ibzdict-provider-dictapi/src/main/java/cn/ibizlab/dictapi/mapping/IBZDictMapping.java
浏览文件 @
79295d91
!!!!
模版产生代码错误
:----
package
cn
.
ibizlab
.
dictapi
.
mapping
;
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
import
org.mapstruct.*
;
import
cn.ibizlab.core.dict.domain.IBZDict
;
----
import
cn.ibizlab.dictapi.dto.IBZDictDTO
;
FTL
stack
trace
(
"~"
means
nesting
-
related
):
import
cn.ibizlab.util.domain.MappingBase
;
-
Failed
at:
$
{
itemSysApiCodeNameLC
}
[
in
template
"CODETEMPL_zh_CN"
at
line
4
,
column
27
]
import
org.mapstruct.factory.Mappers
;
----
\ No newline at end of file
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
IBZDictMapping
extends
MappingBase
<
IBZDictDTO
,
IBZDict
>
{
@Mappings
({
@Mapping
(
target
=
"items"
,
ignore
=
true
)
})
@Override
IBZDictDTO
toDto
(
IBZDict
entity
);
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录