Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
3b784b35
提交
3b784b35
编写于
10月 25, 2022
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
hiden
上级
00f4e5d1
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
14 行增加
和
5 行删除
+14
-5
VoFieldModel.java
.../src/main/java/cn/ibizlab/codegen/model/VoFieldModel.java
+8
-0
{{pascalCase ctrls@FORM}}AddDto.java.hbs
...se appEntities}}/{{pascalCase ctrls@FORM}}AddDto.java.hbs
+1
-1
{{pascalCase ctrls@FORM}}BaseDto.java.hbs
...e appEntities}}/{{pascalCase ctrls@FORM}}BaseDto.java.hbs
+2
-2
{{pascalCase ctrls@FORM}}UpdateDto.java.hbs
...appEntities}}/{{pascalCase ctrls@FORM}}UpdateDto.java.hbs
+1
-1
{{pascalCase appEntities}}.java.hbs
...}/api/{{apps}}/domain/{{pascalCase appEntities}}.java.hbs
+2
-1
未找到文件。
modules/ibizlab-generator-core/src/main/java/cn/ibizlab/codegen/model/VoFieldModel.java
浏览文件 @
3b784b35
...
...
@@ -43,6 +43,14 @@ public class VoFieldModel extends BaseModel {
return
getPSDEFormItem
().
getPSEditor
();
}
public
String
getEditorType
()
{
if
(
getPSDEFormItem
().
getPSEditor
()!=
null
)
{
return
getPSDEFormItem
().
getPSEditor
().
getEditorType
();
}
return
null
;
}
public
IPSDEForm
getPSDEForm
()
{
return
(
IPSDEForm
)
getVoModel
().
getControl
();
...
...
modules/ibizlab-template/ibizlab-template-apivo/src/main/resources/templ/{{projectName}}-api/src/main/java/{{packageName}}/api/{{apps}}/dto/{{pascalCase appEntities}}/{{pascalCase ctrls@FORM}}AddDto.java.hbs
浏览文件 @
3b784b35
...
...
@@ -55,7 +55,7 @@ public class {{pascalCase ctrl.codeName}}AddDto extends {{pascalCase ctrl.codeNa
{{#
eq
javaType
"Long"
}}
@JsonSerialize(using = ToStringSerializer.class)
{{/
eq
}}
@ApiModelProperty(value = "
{{
logicName
}}{{
columnName
}}{{#if
userTag
}}
,
{{
userTag
}}{{/if}}{{#if
dict
}}
,
{{#
unless
singleSelect
}}
多选
{{/
unless
}}
【字典:
{{
dict
.
name
}}
】
{{/if}}{{#if
timeType
}}
,格式:
{{
format
}}{{/if}}
", position =
{{
position
}}{{#if
timeType
}}
, notes = "格式:
{{
format
}}
"
{{/if}}{{#if
dict
}}
, notes = "字典:
{{
dict
.
name
}}
", dataType = "
{{
lowerCase
type
.
java
}}
", reference = "
{{
dictCodeName
}}
"
{{/if}}{{#if
required
}}
, required = true
{{/if}}{{#if
hidden
}}
, hidden = true
{{/if}}{{#if
example
}}
, example = "
{{
example
}}
"
{{/if}}
)
@ApiModelProperty(value = "
{{
logicName
}}{{
columnName
}}{{#if
userTag
}}
,
{{
userTag
}}{{/if}}{{#if
dict
}}
,
{{#
unless
singleSelect
}}
多选
{{/
unless
}}
【字典:
{{
dict
.
name
}}
】
{{/if}}{{#if
timeType
}}
,格式:
{{
format
}}{{/if}}
", position =
{{
position
}}{{#if
timeType
}}
, notes = "格式:
{{
format
}}
"
{{/if}}{{#if
dict
}}
, notes = "字典:
{{
dict
.
name
}}
", dataType = "
{{
lowerCase
type
.
java
}}
", reference = "
{{
dictCodeName
}}
"
{{/if}}{{#if
required
}}
, required = true
{{/if}}{{#if
hidden
}}
, hidden = true
{{
else}}{{#
eq
editorType
'SPAN'
}}
, hidden = true
{{/
eq
}}{{
/if}}{{#if
example
}}
, example = "
{{
example
}}
"
{{/if}}
)
protected
{{
javaType
}}
{{
camelCase
codeName
}}
{{#if
createDefaultValue
}}
=
{{
createDefaultValue
}}{{/if}}
;
{{/if}}
...
...
modules/ibizlab-template/ibizlab-template-apivo/src/main/resources/templ/{{projectName}}-api/src/main/java/{{packageName}}/api/{{apps}}/dto/{{pascalCase appEntities}}/{{pascalCase ctrls@FORM}}BaseDto.java.hbs
浏览文件 @
3b784b35
...
...
@@ -59,7 +59,7 @@ public class {{pascalCase ctrl.codeName}}BaseDto implements Serializable {
{{#
eq
javaType
"Long"
}}
@JsonSerialize(using = ToStringSerializer.class)
{{/
eq
}}
@ApiModelProperty(value = "
{{
logicName
}}{{
columnName
}}{{#if
userTag
}}
,
{{
userTag
}}{{/if}}{{#if
dict
}}
,
{{#
unless
singleSelect
}}
多选
{{/
unless
}}
【字典:
{{
dict
.
name
}}
】
{{/if}}{{#if
timeType
}}
,格式:
{{
format
}}{{/if}}
", position =
{{
position
}}{{#if
timeType
}}
, notes = "格式:
{{
format
}}
"
{{/if}}{{#if
dict
}}
, notes = "字典:
{{
dict
.
name
}}
", dataType = "
{{
lowerCase
type
.
java
}}
", reference = "
{{
dictCodeName
}}
"
{{/if}}{{#if
required
}}
, required = true
{{/if}}{{#if
hidden
}}
, hidden = true
{{/if}}{{#if
example
}}
, example = "
{{
example
}}
"
{{/if}}
)
@ApiModelProperty(value = "
{{
logicName
}}{{
columnName
}}{{#if
userTag
}}
,
{{
userTag
}}{{/if}}{{#if
dict
}}
,
{{#
unless
singleSelect
}}
多选
{{/
unless
}}
【字典:
{{
dict
.
name
}}
】
{{/if}}{{#if
timeType
}}
,格式:
{{
format
}}{{/if}}
", position =
{{
position
}}{{#if
timeType
}}
, notes = "格式:
{{
format
}}
"
{{/if}}{{#if
dict
}}
, notes = "字典:
{{
dict
.
name
}}
", dataType = "
{{
lowerCase
type
.
java
}}
", reference = "
{{
dictCodeName
}}
"
{{/if}}{{#if
required
}}
, required = true
{{/if}}{{#if
hidden
}}
, hidden = true
{{
else}}{{#
eq
editorType
'SPAN'
}}
, hidden = true
{{/
eq
}}{{
/if}}{{#if
example
}}
, example = "
{{
example
}}
"
{{/if}}
)
protected
{{
javaType
}}
{{
camelCase
codeName
}}
;
{{#if
dictList
}}
public void set
{{
pascalCase
codeName
}}
(String
{{
camelCase
codeName
}}
) {
...
...
@@ -112,7 +112,7 @@ public class {{pascalCase ctrl.codeName}}BaseDto implements Serializable {
{{#
or
ctrl
.
sysField
.
major
.
hidden
ctrl
.
sysField
.
major
.
entity
}}
@JsonProperty("
{{
ctrl
.
sysField
.
major
.
jsonName
}}
")
@JSONField(name = "
{{
lowerCase
ctrl
.
sysField
.
major
.
jsonName
}}
")
@ApiModelProperty(value = "
{{
ctrl
.
sysField
.
major
.
logicName
}}
", position =
{{#if
ctrl
.
sysField
.
major
.
position
}}{{
ctrl
.
sysField
.
major
.
position
}}{{else}}
9981
{{/if}}
)
@ApiModelProperty(value = "
{{
ctrl
.
sysField
.
major
.
logicName
}}
",
hidden = true,
position =
{{#if
ctrl
.
sysField
.
major
.
position
}}{{
ctrl
.
sysField
.
major
.
position
}}{{else}}
9981
{{/if}}
)
protected
{{
ctrl
.
sysField
.
major
.
type
.
java
}}
{{
camelCase
ctrl
.
sysField
.
major
.
codeName
}}
;
{{/
or
}}
...
...
modules/ibizlab-template/ibizlab-template-apivo/src/main/resources/templ/{{projectName}}-api/src/main/java/{{packageName}}/api/{{apps}}/dto/{{pascalCase appEntities}}/{{pascalCase ctrls@FORM}}UpdateDto.java.hbs
浏览文件 @
3b784b35
...
...
@@ -55,7 +55,7 @@ public class {{pascalCase ctrl.codeName}}UpdateDto extends {{pascalCase ctrl.cod
{{#
eq
javaType
"Long"
}}
@JsonSerialize(using = ToStringSerializer.class)
{{/
eq
}}
@ApiModelProperty(value = "
{{
logicName
}}{{
columnName
}}{{#if
userTag
}}
,
{{
userTag
}}{{/if}}{{#if
dict
}}
,
{{#
unless
singleSelect
}}
多选
{{/
unless
}}
【字典:
{{
dict
.
name
}}
】
{{/if}}{{#if
timeType
}}
,格式:
{{
format
}}{{/if}}
", position =
{{
position
}}{{#if
timeType
}}
, notes = "格式:
{{
format
}}
"
{{/if}}{{#if
dict
}}
, notes = "字典:
{{
dict
.
name
}}
", dataType = "
{{
lowerCase
type
.
java
}}
", reference = "
{{
dictCodeName
}}
"
{{/if}}{{#if
required
}}
, required = true
{{/if}}{{#if
hidden
}}
, hidden = true
{{/if}}{{#if
example
}}
, example = "
{{
example
}}
"
{{/if}}
)
@ApiModelProperty(value = "
{{
logicName
}}{{
columnName
}}{{#if
userTag
}}
,
{{
userTag
}}{{/if}}{{#if
dict
}}
,
{{#
unless
singleSelect
}}
多选
{{/
unless
}}
【字典:
{{
dict
.
name
}}
】
{{/if}}{{#if
timeType
}}
,格式:
{{
format
}}{{/if}}
", position =
{{
position
}}{{#if
timeType
}}
, notes = "格式:
{{
format
}}
"
{{/if}}{{#if
dict
}}
, notes = "字典:
{{
dict
.
name
}}
", dataType = "
{{
lowerCase
type
.
java
}}
", reference = "
{{
dictCodeName
}}
"
{{/if}}{{#if
required
}}
, required = true
{{/if}}{{#if
hidden
}}
, hidden = true
{{
else}}{{#
eq
editorType
'SPAN'
}}
, hidden = true
{{/
eq
}}{{
/if}}{{#if
example
}}
, example = "
{{
example
}}
"
{{/if}}
)
protected
{{
javaType
}}
{{
camelCase
codeName
}}
{{#if
updateDefaultValue
}}
=
{{
updateDefaultValue
}}{{/if}}
;
{{/if}}
...
...
modules/ibizlab-template/ibizlab-template-apivo/src/main/resources/templ/{{projectName}}-rest/src/main/java/{{packageName}}/api/{{apps}}/domain/{{pascalCase appEntities}}.java.hbs
浏览文件 @
3b784b35
...
...
@@ -28,6 +28,7 @@ import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import cn.ibizlab.util.domain.*;
import org.springframework.data.annotation.Id;
import org.apache.ibatis.type.JdbcType;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import
{{
packageName
}}
.api.
{{
apps
}}
.dict.*;
...
...
@@ -50,7 +51,7 @@ public class {{pascalCase appEntity.codeName}} {
@Id
@TableId(value = "
{{
columnName
}}
"
{{#
type
.
number
}}
, type = IdType.ASSIGN_ID
{{/
type
.
number
}}{{#
type
.
string
}}
, type = IdType.ASSIGN_UUID
{{/
type
.
string
}}
)
{{else}}
@TableField(value = "
{{
columnName
}}
"
{{#
insertOnly
}}
, fill = FieldFill.INSERT
{{/
insertOnly
}}
)
@TableField(value = "
{{
columnName
}}
"
{{#
insertOnly
}}
, fill = FieldFill.INSERT
{{/
insertOnly
}}
{{#
eq
type
.
name
"TEXT"
}}
,jdbcType = JdbcType.CLOB
{{/
eq
}}
)
{{#
logicValidField
}}
@TableLogic
{{#
appEntity
.
entity
.
validLogicValue
}}
(value = "
{{
appEntity
.
entity
.
validLogicValue
}}
"
{{#
appEntity
.
entity
.
invalidLogicValue
}}
, delval = "
{{
appEntity
.
entity
.
invalidLogicValue
}}
"
{{/
appEntity
.
entity
.
invalidLogicValue
}}
)
{{/
appEntity
.
entity
.
validLogicValue
}}
{{/
logicValidField
}}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录