提交 3b784b35 编写于 作者: sq3536's avatar sq3536

hiden

上级 00f4e5d1
...@@ -43,6 +43,14 @@ public class VoFieldModel extends BaseModel { ...@@ -43,6 +43,14 @@ public class VoFieldModel extends BaseModel {
return getPSDEFormItem().getPSEditor(); return getPSDEFormItem().getPSEditor();
} }
public String getEditorType()
{
if(getPSDEFormItem().getPSEditor()!=null) {
return getPSDEFormItem().getPSEditor().getEditorType();
}
return null;
}
public IPSDEForm getPSDEForm() public IPSDEForm getPSDEForm()
{ {
return (IPSDEForm)getVoModel().getControl(); return (IPSDEForm)getVoModel().getControl();
......
...@@ -55,7 +55,7 @@ public class {{pascalCase ctrl.codeName}}AddDto extends {{pascalCase ctrl.codeNa ...@@ -55,7 +55,7 @@ public class {{pascalCase ctrl.codeName}}AddDto extends {{pascalCase ctrl.codeNa
{{#eq javaType "Long"}} {{#eq javaType "Long"}}
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
{{/eq}} {{/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}}; protected {{javaType}} {{camelCase codeName}} {{#if createDefaultValue}}= {{createDefaultValue}}{{/if}};
{{/if}} {{/if}}
......
...@@ -59,7 +59,7 @@ public class {{pascalCase ctrl.codeName}}BaseDto implements Serializable { ...@@ -59,7 +59,7 @@ public class {{pascalCase ctrl.codeName}}BaseDto implements Serializable {
{{#eq javaType "Long"}} {{#eq javaType "Long"}}
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
{{/eq}} {{/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}}; protected {{javaType}} {{camelCase codeName}};
{{#if dictList}} {{#if dictList}}
public void set{{pascalCase codeName}}(String {{camelCase codeName}}) { public void set{{pascalCase codeName}}(String {{camelCase codeName}}) {
...@@ -112,7 +112,7 @@ public class {{pascalCase ctrl.codeName}}BaseDto implements Serializable { ...@@ -112,7 +112,7 @@ public class {{pascalCase ctrl.codeName}}BaseDto implements Serializable {
{{#or ctrl.sysField.major.hidden ctrl.sysField.major.entity}} {{#or ctrl.sysField.major.hidden ctrl.sysField.major.entity}}
@JsonProperty("{{ctrl.sysField.major.jsonName}}") @JsonProperty("{{ctrl.sysField.major.jsonName}}")
@JSONField(name = "{{lowerCase 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}}; protected {{ctrl.sysField.major.type.java}} {{camelCase ctrl.sysField.major.codeName}};
{{/or}} {{/or}}
......
...@@ -55,7 +55,7 @@ public class {{pascalCase ctrl.codeName}}UpdateDto extends {{pascalCase ctrl.cod ...@@ -55,7 +55,7 @@ public class {{pascalCase ctrl.codeName}}UpdateDto extends {{pascalCase ctrl.cod
{{#eq javaType "Long"}} {{#eq javaType "Long"}}
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
{{/eq}} {{/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}}; protected {{javaType}} {{camelCase codeName}} {{#if updateDefaultValue}}= {{updateDefaultValue}}{{/if}};
{{/if}} {{/if}}
......
...@@ -28,6 +28,7 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -28,6 +28,7 @@ import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import cn.ibizlab.util.domain.*; import cn.ibizlab.util.domain.*;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.apache.ibatis.type.JdbcType;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.toolkit.IdWorker; import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import {{packageName}}.api.{{apps}}.dict.*; import {{packageName}}.api.{{apps}}.dict.*;
...@@ -50,7 +51,7 @@ public class {{pascalCase appEntity.codeName}} { ...@@ -50,7 +51,7 @@ public class {{pascalCase appEntity.codeName}} {
@Id @Id
@TableId(value = "{{columnName}}"{{#type.number}} , type = IdType.ASSIGN_ID{{/type.number}}{{#type.string}} , type = IdType.ASSIGN_UUID{{/type.string}}) @TableId(value = "{{columnName}}"{{#type.number}} , type = IdType.ASSIGN_ID{{/type.number}}{{#type.string}} , type = IdType.ASSIGN_UUID{{/type.string}})
{{else}} {{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}} {{#logicValidField}}
@TableLogic{{#appEntity.entity.validLogicValue}}(value = "{{appEntity.entity.validLogicValue}}"{{#appEntity.entity.invalidLogicValue}} , delval = "{{appEntity.entity.invalidLogicValue}}"{{/appEntity.entity.invalidLogicValue}}){{/appEntity.entity.validLogicValue}} @TableLogic{{#appEntity.entity.validLogicValue}}(value = "{{appEntity.entity.validLogicValue}}"{{#appEntity.entity.invalidLogicValue}} , delval = "{{appEntity.entity.invalidLogicValue}}"{{/appEntity.entity.invalidLogicValue}}){{/appEntity.entity.validLogicValue}}
{{/logicValidField}} {{/logicValidField}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册