提交 39c53762 编写于 作者: sq3536's avatar sq3536

接口实体

上级 a58a88b1
...@@ -186,8 +186,6 @@ public class AppModel extends BaseModel{ ...@@ -186,8 +186,6 @@ public class AppModel extends BaseModel{
if(this.getApplication().getAllPSAppCodeLists()!=null) if(this.getApplication().getAllPSAppCodeLists()!=null)
{ {
this.getApplication().getAllPSAppCodeLists().forEach(codeList->{ this.getApplication().getAllPSAppCodeLists().forEach(codeList->{
if(codeList.getCodeName().equals("CL_TYYW_36"))
System.out.println(1);
Catalog catalog=catalogs.get(codeList.getCodeName()); Catalog catalog=catalogs.get(codeList.getCodeName());
if(catalog!=null) if(catalog!=null)
{ {
......
...@@ -115,9 +115,11 @@ public class {{pascalCase dict.codeName}}Dict { ...@@ -115,9 +115,11 @@ public class {{pascalCase dict.codeName}}Dict {
} }
} }
{{#lte dict.sets.size 1000}}
@ApiModelProperty(value = "字典:{{dict.name}},示例<a href='/xftong/link/dict/{{pascalCase dict.codeName}}Dict.html' target='_blank'>view</a>", position = 1) @ApiModelProperty(value = "字典:{{dict.name}},示例<a href='/xftong/link/dict/{{pascalCase dict.codeName}}Dict.html' target='_blank'>view</a>", position = 1)
public ENUM example; public ENUM example;
{{/lte}}
@ApiModelProperty(value = "字典项清单", position = 2) @ApiModelProperty(value = "字典项清单", position = 2)
private List<DictItem> allItems; private List<DictItem> allItems;
public List<DictItem> getAllItems() public List<DictItem> getAllItems()
......
{{#eq apps "link"}}
{{#gt dict.sets.size 1000}}
[
{{#each dict.sets }}
{{#eq dict.valueType "String"}}
{ "name": "{{name}}","value": "{{value}}","label": "{{label}}"{{#if parent}},"parent": "{{parent}}"{{/if}} }{{#unless @last}},{{/unless}}
{{/eq}}
{{#eq dict.valueType "Integer"}}
{ "name": "{{name}}","value": {{value}},"label": "{{label}}"{{#if parent}},"parent": {{parent}}{{/if}} }{{#unless @last}},{{/unless}}
{{/eq}}
{{/each}}
]
{{/gt}}
{{/eq}}
\ No newline at end of file
{{#eq apps "link"}}
package {{packageName}}.api.{{apps}}.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.dynamic.datasource.annotation.DS;
import {{packageName}}.api.{{apps}}.domain.{{pascalCase appEntity.codeName}};
@DS("link")
public interface {{pascalCase appEntity.codeName}}Mapper extends BaseMapper<{{pascalCase appEntity.codeName}}>{
}
{{/eq}}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册