Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
a8f07731
提交
a8f07731
编写于
9月 08, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整javatype
上级
98f9a209
变更
9
展开全部
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
82 行增加
和
82 行删除
+82
-82
%ITEM%Fallback.java.ftl
...KGPATH%/core/%MOD_PKGPATH%/client/%ITEM%Fallback.java.ftl
+5
-5
%ITEM%FeignClient.java.ftl
...ATH%/core/%MOD_PKGPATH%/client/%ITEM%FeignClient.java.ftl
+5
-5
%DE%SearchContext.java.ftl
...ATH%/core/%MOD_PKGPATH%/filter/%DE%SearchContext.java.ftl
+4
-4
I%DE%Service.java.ftl
...PKGPATH%/core/%MOD_PKGPATH%/service/I%DE%Service.java.ftl
+9
-9
%DE%ServiceImpl.java.ftl
.../core/%MOD_PKGPATH%/service/impl/%DE%ServiceImpl.java.ftl
+40
-40
%DE%ExService.java.ftl
...S_PKGPATH%/core/extensions/service/%DE%ExService.java.ftl
+3
-3
h2_table.xml.ftl
...UBPRJ%-core/src/main/resources/liquibase/h2_table.xml.ftl
+1
-1
%ITEM%DTO.java.ftl
...ava/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/dto/%ITEM%DTO.java.ftl
+2
-2
%ITEM%Resource.java.ftl
...YS_PKGPATH%/%SYSAPI_PKGPATH%/rest/%ITEM%Resource.java.ftl
+13
-13
未找到文件。
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/client/%ITEM%Fallback.java.ftl
浏览文件 @
a8f07731
...
...
@@ -46,17 +46,17 @@ public class ${item.codeName}Fallback implements ${item.codeName}FeignClient{
<#--
${
return_type
}
${
srfmethodname
(
apiMethod
.
getCodeName
())}(<#
if
req_param_type
??
&&
req_param_type
==
'ENTITY'
><#
if
apiMethod
.
getPSDEName
()??>${
apiMethod
.
getPSDEName
()}
entity
</#
if
></#
if
>);
-->
<#
if
apiMethod
.
getCodeName
()?
lower_case
==
'get'
>
<#--@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/{${item.getKeyDEField().getCodeName()?lower_case}}"
)-->
public
${
refDE
.
codeName
}
get
(${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
}){
public
${
refDE
.
codeName
}
get
(${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
}){
return
null
;
}
<#
elseif
apiMethod
.
getCodeName
()?
lower_case
==
'remove'
>
<#--@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/{${item.getKeyDEField().getCodeName()?lower_case}}"
)-->
public
Boolean
remove
(${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
}){
public
Boolean
remove
(${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
}){
return
false
;
}
<#--@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/${apiMethod.getCodeName()?lower_case}"
)-->
public
Boolean
removeBatch
(
Collection
<${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}>
idList
){
public
Boolean
removeBatch
(
Collection
<${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}>
idList
){
return
false
;
}
<#
elseif
apiMethod
.
getCodeName
()?
lower_case
==
'create'
>
...
...
@@ -79,7 +79,7 @@ public class ${item.codeName}Fallback implements ${item.codeName}FeignClient{
}
<#
elseif
apiMethod
.
getCodeName
()?
lower_case
==
'update'
>
<#--@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/{${item.getKeyDEField().getCodeName()?lower_case}}"
)-->
public
${
refDE
.
codeName
}
update
(${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
},
${
refDE
.
codeName
}
${
refDE
.
codeName
?
lower_case
}){
public
${
refDE
.
codeName
}
update
(${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
},
${
refDE
.
codeName
}
${
refDE
.
codeName
?
lower_case
}){
return
null
;
}
<#--@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/${apiMethod.getCodeName()?lower_case}"
)-->
...
...
@@ -104,7 +104,7 @@ public class ${item.codeName}Fallback implements ${item.codeName}FeignClient{
<#
elseif
apiMethod
.
getCodeName
()?
lower_case
==
'savebatch'
>
<#
else
>
<#--@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/{${item.getKeyDEField().getCodeName()?lower_case}}/${apiMethod.getCodeName()?lower_case}"
)-->
public
${
refDE
.
codeName
}
${
apiMethod
.
getCodeName
()?
uncap_first
}(
${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
},
${
refDE
.
codeName
}
${
refDE
.
codeName
?
lower_case
}){
public
${
refDE
.
codeName
}
${
apiMethod
.
getCodeName
()?
uncap_first
}(
${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
},
${
refDE
.
codeName
}
${
refDE
.
codeName
?
lower_case
}){
return
null
;
}
</#
if
>
...
...
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/client/%ITEM%FeignClient.java.ftl
浏览文件 @
a8f07731
...
...
@@ -49,14 +49,14 @@ public interface ${item.codeName}FeignClient {
<#--
${
return_type
}
${
srfmethodname
(
apiMethod
.
getCodeName
())}(<#
if
req_param_type
??
&&
req_param_type
==
'ENTITY'
><#
if
apiMethod
.
getPSDEName
()??>${
apiMethod
.
getPSDEName
()}
entity
</#
if
></#
if
>);
-->
<#
if
apiMethod
.
getCodeName
()?
lower_case
==
'get'
>
@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/{${refDE.getKeyDEField().getCodeName()?lower_case}}"
)
${
refDE
.
codeName
}
get
(@
PathVariable
(
"${refDE.getKeyDEField().getCodeName()?lower_case}"
)
${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
});
${
refDE
.
codeName
}
get
(@
PathVariable
(
"${refDE.getKeyDEField().getCodeName()?lower_case}"
)
${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
});
<#
elseif
apiMethod
.
getCodeName
()?
lower_case
==
'remove'
>
@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/{${refDE.getKeyDEField().getCodeName()?lower_case}}"
)
Boolean
remove
(@
PathVariable
(
"${refDE.getKeyDEField().getCodeName()?lower_case}"
)
${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
});
Boolean
remove
(@
PathVariable
(
"${refDE.getKeyDEField().getCodeName()?lower_case}"
)
${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
});
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullpath}/batch}"
)
Boolean
removeBatch
(@
RequestBody
Collection
<${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}>
idList
);
Boolean
removeBatch
(@
RequestBody
Collection
<${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}>
idList
);
<#
elseif
apiMethod
.
getCodeName
()?
lower_case
==
'create'
>
@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}"
)
...
...
@@ -82,7 +82,7 @@ public interface ${item.codeName}FeignClient {
<#
elseif
apiMethod
.
getCodeName
()?
lower_case
==
'update'
>
@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/{${refDE.getKeyDEField().getCodeName()?lower_case}}"
)
${
refDE
.
codeName
}
update
(@
PathVariable
(
"${refDE.getKeyDEField().getCodeName()?lower_case}"
)
${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
},@
RequestBody
${
refDE
.
codeName
}
${
refDE
.
codeName
?
lower_case
});
${
refDE
.
codeName
}
update
(@
PathVariable
(
"${refDE.getKeyDEField().getCodeName()?lower_case}"
)
${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
},@
RequestBody
${
refDE
.
codeName
}
${
refDE
.
codeName
?
lower_case
});
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullpath}/batch"
)
Boolean
updateBatch
(@
RequestBody
List
<${
refDE
.
codeName
}>
${
srfpluralize
(
refDE
.
getCodeName
()?
lower_case
)});
...
...
@@ -93,7 +93,7 @@ public interface ${item.codeName}FeignClient {
<#
elseif
apiMethod
.
getCodeName
()?
lower_case
==
'savebatch'
>
<#
else
>
@
RequestMapping
(
method
=
RequestMethod
.<#
if
apiMethod
.
getRequestMethod
()??>${
apiMethod
.
getRequestMethod
()}<#
else
>
POST
</#
if
>,
value
=
"${fullpath}/{${refDE.getKeyDEField().getCodeName()?lower_case}}/${apiMethod.getCodeName()?lower_case}"
)
${
refDE
.
codeName
}
${
apiMethod
.
getCodeName
()?
uncap_first
}(@
PathVariable
(
"${refDE.getKeyDEField().getCodeName()?lower_case}"
)
${
srfjavatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
},@
RequestBody
${
refDE
.
codeName
}
${
refDE
.
codeName
?
lower_case
});
${
refDE
.
codeName
}
${
apiMethod
.
getCodeName
()?
uncap_first
}(@
PathVariable
(
"${refDE.getKeyDEField().getCodeName()?lower_case}"
)
${
srf
r7
javatype
(
refDE
.
getKeyDEField
().
stdDataType
)}
${
refDE
.
getKeyDEField
().
getCodeName
()?
lower_case
},@
RequestBody
${
refDE
.
codeName
}
${
refDE
.
codeName
?
lower_case
});
</#
if
>
<#
elseif
apiMethod
.
getActionType
()==
'SELECT'
><#
comment
>
简单查询
</#
comment
>
...
...
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/filter/%DE%SearchContext.java.ftl
浏览文件 @
a8f07731
...
...
@@ -47,7 +47,7 @@ public class ${item.codeName}SearchContext extends QueryWrapperContext<${item.co
@
JsonFormat
(
pattern
=
"HH:mm"
,
timezone
=
"GMT+8"
)
@
JSONField
(
format
=
"HH:mm"
)
</#
if
>
<#
assign
formItemDataType
=
srfjavatype
(
formitem
.
getPSDEField
().
stdDataType
)>
<#
assign
formItemDataType
=
srf
r7
javatype
(
formitem
.
getPSDEField
().
stdDataType
)>
<#
comment
>
in
条件通过
String
接,通过
split
拆后再进行查询
</#
comment
>
<#
if
formitem
.
getValueOp
()
==
"IN"
>
<#
assign
formItemDataType
=
"String"
>
...
...
@@ -156,7 +156,7 @@ public class ${item.codeName}SearchContext extends QueryBuildContext {
@
JsonFormat
(
pattern
=
"HH:mm"
,
timezone
=
"GMT+8"
)
@
JSONField
(
format
=
"HH:mm"
)
</#
if
>
<#
assign
formItemDataType
=
srfjavatype
(
formitem
.
getPSDEField
().
stdDataType
)>
<#
assign
formItemDataType
=
srf
r7
javatype
(
formitem
.
getPSDEField
().
stdDataType
)>
<#
comment
>
in
条件通过
String
接,通过
split
拆后再进行查询
</#
comment
>
<#
if
formitem
.
getValueOp
()
==
"IN"
>
<#
assign
formItemDataType
=
"String"
>
...
...
@@ -252,7 +252,7 @@ public class ${item.codeName}SearchContext extends SearchContextBase {
@
JsonFormat
(
pattern
=
"HH:mm"
,
timezone
=
"GMT+8"
)
@
JSONField
(
format
=
"HH:mm"
)
</#
if
>
<#
assign
formItemDataType
=
srfjavatype
(
formitem
.
getPSDEField
().
stdDataType
)>
<#
assign
formItemDataType
=
srf
r7
javatype
(
formitem
.
getPSDEField
().
stdDataType
)>
<#
comment
>
in
条件通过
String
接,通过
split
拆后再进行查询
</#
comment
>
<#
if
formitem
.
getValueOp
()
==
"IN"
>
<#
assign
formItemDataType
=
"String"
>
...
...
@@ -289,7 +289,7 @@ public class ${item.codeName}SearchContext extends SearchContextBase {
@
JsonFormat
(
pattern
=
"HH:mm"
,
timezone
=
"GMT+8"
)
@
JSONField
(
format
=
"HH:mm"
)
</#
if
>
<#
assign
formItemDataType
=
srfjavatype
(
formitem
.
getPSDEField
().
stdDataType
)>
<#
assign
formItemDataType
=
srf
r7
javatype
(
formitem
.
getPSDEField
().
stdDataType
)>
<#
comment
>
in
条件通过
String
接,通过
split
拆后再进行查询
</#
comment
>
<#
if
formitem
.
getValueOp
()
==
"IN"
>
<#
assign
formItemDataType
=
"String"
>
...
...
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/service/I%DE%Service.java.ftl
浏览文件 @
a8f07731
...
...
@@ -118,7 +118,7 @@ public interface I${item.codeName}Service{
<#
elseif
deaction
.
getActionType
()==
'DELOGIC'
>
${
item
.
codeName
}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
codeName
}
et
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
'get'
>
${
item
.
codeName
}
get
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
;
${
item
.
codeName
}
get
(${
srf
r7
javatype
(
keyfield
.
stdDataType
)}
key
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
"create"
>
boolean
create
(${
item
.
codeName
}
et
)
;
<#
if
item
.
isEnableEntityCache
()==
true
>
...
...
@@ -132,11 +132,11 @@ public interface I${item.codeName}Service{
</#
if
>
void
updateBatch
(
List
<${
item
.
codeName
}>
list
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
"remove"
>
boolean
remove
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
;
boolean
remove
(${
srf
r7
javatype
(
keyfield
.
stdDataType
)}
key
)
;
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
removeBatch
(
Collection
<${
srfjavatype
(
keyfield
.
stdDataType
)}>
idList
)
;
void
removeBatch
(
Collection
<${
srf
r7
javatype
(
keyfield
.
stdDataType
)}>
idList
)
;
<#
elseif
deaction
.
codeName
?
lower_case
==
"save"
>
boolean
save
(${
item
.
codeName
}
et
)
;
<#
if
item
.
isEnableEntityCache
()==
true
>
...
...
@@ -176,11 +176,11 @@ public interface I${item.codeName}Service{
<#
if
de
.
getDefaultPSDEDataSet
()??>
<#
assign
deDefaultDataSet
=
de
.
getDefaultPSDEDataSet
()>
<#
if
deDefaultDataSet
.
getPSDEDataQueries
()??>
List
<${
item
.
getCodeName
()}>
selectBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
})
;
List
<${
item
.
getCodeName
()}>
selectBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srf
r7
javatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
})
;
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
removeBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
})
;
void
removeBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srf
r7
javatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
})
;
<#
assign
nested
=
MinorPSDER
.
isNestedRS
()>
<#
if
nested
==
false
&&
MinorPSDER
.
getMinorPSDataEntity
().
getAllPSDEServiceAPIs
()??>
<#
list
MinorPSDER
.
getMinorPSDataEntity
().
getAllPSDEServiceAPIs
()
as
api
>
...
...
@@ -193,7 +193,7 @@ public interface I${item.codeName}Service{
<#
if
item
.
isEnableEntityCache
()==
true
>
@
CacheEvict
(
value
=
"${item.codeName?lower_case}"
,
allEntries
=
true
)
</#
if
>
void
saveBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srfjavatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
},
List
<${
item
.
getCodeName
()}>
list
)
;
void
saveBy
${
srfcaseformat
(
MajorField
.
codeName
,
'l_u2lC'
)?
cap_first
}(${
srf
r7
javatype
(
MajorField
.
stdDataType
)}
${
MajorkeyField
.
codeName
?
lower_case
},
List
<${
item
.
getCodeName
()}>
list
)
;
</#
if
>
</#
if
>
</#
if
>
...
...
@@ -220,7 +220,7 @@ public interface I${item.codeName}Service{
<#
elseif
deaction
.
getActionType
()==
'DELOGIC'
>
boolean
test
${
srfmethodname
(
deaction
.
getCodeName
())?
cap_first
}(${
item
.
getCodeName
()}
et
);
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
'get'
>
boolean
testGet
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
);
boolean
testGet
(${
srf
r7
javatype
(
keyfield
.
stdDataType
)}
key
);
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"createbatch"
>
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"updatebatch"
>
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"removebatch"
>
...
...
@@ -237,8 +237,8 @@ public interface I${item.codeName}Service{
boolean
testSaveBatch
(
Collection
<${
item
.
getCodeName
()}>
list
);
boolean
testSaveBatch
(
List
<${
item
.
getCodeName
()}>
list
);
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"remove"
>
boolean
testRemove
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
);
boolean
testRemoveBatch
(
Collection
<${
srfjavatype
(
keyfield
.
stdDataType
)}>
idList
);
boolean
testRemove
(${
srf
r7
javatype
(
keyfield
.
stdDataType
)}
key
);
boolean
testRemoveBatch
(
Collection
<${
srf
r7
javatype
(
keyfield
.
stdDataType
)}>
idList
);
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"getdraft"
>
boolean
testGetDraft
(${
item
.
getCodeName
()}
et
);
...
...
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/%MOD_PKGPATH%/service/impl/%DE%ServiceImpl.java.ftl
浏览文件 @
a8f07731
此差异已折叠。
点击以展开。
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/extensions/service/%DE%ExService.java.ftl
浏览文件 @
a8f07731
...
...
@@ -88,7 +88,7 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
'get'
>
@
Override
public
boolean
testGet
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
{
public
boolean
testGet
(${
srf
r7
javatype
(
keyfield
.
stdDataType
)}
key
)
{
return
super
.
testGet
(
key
);
}
...
...
@@ -141,12 +141,12 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
<#
elseif
deaction
.
getCodeName
()?
lower_case
==
"remove"
>
@
Override
public
boolean
testRemove
(${
srfjavatype
(
keyfield
.
stdDataType
)}
key
)
{
public
boolean
testRemove
(${
srf
r7
javatype
(
keyfield
.
stdDataType
)}
key
)
{
return
super
.
testRemove
(
key
);
}
@
Override
public
boolean
testRemoveBatch
(
Collection
<${
srfjavatype
(
keyfield
.
stdDataType
)}>
idList
)
{
public
boolean
testRemoveBatch
(
Collection
<${
srf
r7
javatype
(
keyfield
.
stdDataType
)}>
idList
)
{
return
super
.
testRemoveBatch
(
idList
);
}
...
...
SLN/%PUBPRJ%-core/src/main/resources/liquibase/h2_table.xml.ftl
浏览文件 @
a8f07731
...
...
@@ -33,7 +33,7 @@ TARGET=PSSYSTEM
<#list de.getAllPSDEFields() as defield>
<#if defield.isPhisicalDEField()==true><#comment>物理属性</#comment>
<#assign dataType="${srfdatatype(defield.getStdDataType())}">
<#assign javaType="${srfjavatype(defield.stdDataType)}">
<#assign javaType="${srf
r7
javatype(defield.stdDataType)}">
<#comment>varchar需要设置字段长度,若不设置,则liquibase比较时会自动填充,最终恢复到生产库会报错</#comment>
<#if javaType=='String'>
<#if defield.getLength()?? && defield.getLength()?c!='-1'>
...
...
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/dto/%ITEM%DTO.java.ftl
浏览文件 @
a8f07731
...
...
@@ -62,7 +62,7 @@ public class ${item.getCodeName()}DTO extends ${dtoBase} implements Serializable
@
JSONField
(
name
=
"${jsonfield}"
)
</#
if
>
@
JsonProperty
(
"${jsonfield}"
)
private
${
srfjavatype
(
apifield
.
getStdDataType
())}
${
prvateCodeName
};
private
${
srf
r7
javatype
(
apifield
.
getStdDataType
())}
${
prvateCodeName
};
</#
if
>
</#
list
>
...
...
@@ -81,7 +81,7 @@ public class ${item.getCodeName()}DTO extends ${dtoBase} implements Serializable
/**
*
设置
[${
apifield
.
getName
()}]
*/
public
void
set
${
publicCodeName
}(${
srfjavatype
(
apifield
.
getStdDataType
())}
${
prvateCodeName
}){
public
void
set
${
publicCodeName
}(${
srf
r7
javatype
(
apifield
.
getStdDataType
())}
${
prvateCodeName
}){
this
.${
prvateCodeName
}
=
${
prvateCodeName
}
;
this
.
modify
(
"${columnname}"
,${
prvateCodeName
});
}
...
...
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/rest/%ITEM%Resource.java.ftl
浏览文件 @
a8f07731
...
...
@@ -128,10 +128,10 @@ public class ${itemCodeName}Resource {
<#
assign
etParamsList
=
etParamsList
+
"@RequestBody List<"
+
itemCodeName
+
"DTO> "
+
itemCodeNameLC
+
"dtos"
>
<#
assign
etParams2
=
etParams2
+
itemCodeName
+
"DTO "
+
itemCodeNameLC
+
"dto"
>
<#
assign
etParams3
=
etParams3
+
itemCodeNameLC
+
"dto"
>
<#
assign
idParams
=
idParams
+
"@PathVariable(
\"
"
+
itemCodeNameLC
+
keyCNLC
+
"
\"
) "
+
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
idParams2
=
idParams2
+
" "
+
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
idParams
=
idParams
+
"@PathVariable(
\"
"
+
itemCodeNameLC
+
keyCNLC
+
"
\"
) "
+
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
idParams2
=
idParams2
+
" "
+
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
idParams3
=
idParams3
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
id_etParams
=
id_etParams
+
"@PathVariable(
\"
"
+
itemCodeNameLC
+
keyCNLC
+
"
\"
) "
+
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())+
" "
+
itemCodeNameLC
+
keyCNLC
+
", @RequestBody "
+
itemCodeName
+
"DTO "
+
itemCodeNameLC
+
"dto"
>
<#
assign
id_etParams
=
id_etParams
+
"@PathVariable(
\"
"
+
itemCodeNameLC
+
keyCNLC
+
"
\"
) "
+
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())+
" "
+
itemCodeNameLC
+
keyCNLC
+
", @RequestBody "
+
itemCodeName
+
"DTO "
+
itemCodeNameLC
+
"dto"
>
<#
assign
id_etParams4
=
id_etParams4
+
"@RequestBody "
+
itemCodeName
+
"DTO "
+
itemCodeNameLC
+
"dto"
>
<#
assign
id_etParams4_batch
=
id_etParams4_batch
+
"@RequestBody List<"
+
itemCodeName
+
"DTO> "
+
itemCodeNameLC
+
"dtos"
>
<#
assign
dtoCodeName
=
itemCodeName
+
"DTO"
>
...
...
@@ -218,7 +218,7 @@ public class ${itemCodeName}Resource {
<@
SecurityBatchAnnotation
deaction
/>
@
ApiOperation
(
value
=
"批量删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"批量删除${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(@
RequestBody
List
<${
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())}>
ids
)
{
public
ResponseEntity
<
Boolean
>
removeBatch
(@
RequestBody
List
<${
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())}>
ids
)
{
${
deCodeNameLC
}
Service
.
removeBatch
(
ids
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
...
...
@@ -355,14 +355,14 @@ public class ${itemCodeName}Resource {
<#
if
rs_index
!= 0 && parentParams!= "">
<#
assign
parentParams
+=
", "
>
</#
if
>
<#
assign
parentParams
+=
"@PathVariable(
\"
"
+
rsMainDeCNLC
+
keyCNLC
+
"
\"
) "
+
srfjavatype
(
rsMainDePKDataType
)
+
" "
+
rsMainDeCNLC
+
keyCNLC
>
<#
assign
parentParams
+=
"@PathVariable(
\"
"
+
rsMainDeCNLC
+
keyCNLC
+
"
\"
) "
+
srf
r7
javatype
(
rsMainDePKDataType
)
+
" "
+
rsMainDeCNLC
+
keyCNLC
>
<#
assign
byParams
+=
rsMainDeCN
>
<#
assign
byTagParams
+=
rsMainDeLogicName
>
<#
if
rs
.
getPSDER1N
()??
&&
apiRsPathLast
.
getCodeName
()
==
rs
.
getCodeName
()>
<#
assign
parentSearchParams
+=
"context.setN_"
+
rs
.
getPSDER1N
().
getPSPickupDEField
().
getName
()?
lower_case
+
"_eq("
+
rsMainDeCNLC
+
keyCNLC
+
");"
>
<#
assign
parentSetParams
+=
"domain.set"
+
srfcaseformat
(
rs
.
getPSDER1N
().
getPSPickupDEField
().
getCodeName
(),
'l_u2lC'
)?
cap_first
+
"("
+
rsMainDeCNLC
+
keyCNLC
+
");"
>
</#
if
>
<#
assign
parentParams2
+=
""
+
srfjavatype
(
rsMainDePKDataType
)+
" "
+
rsMainDeCNLC
+
keyCNLC
>
<#
assign
parentParams2
+=
""
+
srf
r7
javatype
(
rsMainDePKDataType
)+
" "
+
rsMainDeCNLC
+
keyCNLC
>
<#
assign
parentParams3
+=
""
+
rsMainDeCNLC
+
keyCNLC
>
</#
list
>
<#
if
parentParams
!= "" >
...
...
@@ -381,10 +381,10 @@ public class ${itemCodeName}Resource {
<#
assign
etParamsList
=
etParamsList
+
"@RequestBody List<"
+
itemCodeName
+
"DTO> "
+
itemCodeNameLC
+
"dtos"
>
<#
assign
etParams2
=
etParams2
+
itemCodeName
+
"DTO "
+
itemCodeNameLC
+
"dto"
>
<#
assign
etParams3
=
etParams3
+
itemCodeNameLC
+
"dto"
>
<#
assign
idParams
=
idParams
+
"@PathVariable(
\"
"
+
itemCodeNameLC
+
keyCNLC
+
"
\"
) "
+
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
idParams2
=
idParams2
+
" "
+
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
idParams
=
idParams
+
"@PathVariable(
\"
"
+
itemCodeNameLC
+
keyCNLC
+
"
\"
) "
+
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
idParams2
=
idParams2
+
" "
+
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
idParams3
=
idParams3
+
" "
+
itemCodeNameLC
+
keyCNLC
>
<#
assign
id_etParams
=
id_etParams
+
"@PathVariable(
\"
"
+
itemCodeNameLC
+
keyCNLC
+
"
\"
) "
+
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())+
" "
+
itemCodeNameLC
+
keyCNLC
+
", @RequestBody "
+
itemCodeName
+
"DTO "
+
itemCodeNameLC
+
"dto"
>
<#
assign
id_etParams
=
id_etParams
+
"@PathVariable(
\"
"
+
itemCodeNameLC
+
keyCNLC
+
"
\"
) "
+
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())+
" "
+
itemCodeNameLC
+
keyCNLC
+
", @RequestBody "
+
itemCodeName
+
"DTO "
+
itemCodeNameLC
+
"dto"
>
<#
assign
id_etParams4
=
id_etParams4
+
"@RequestBody "
+
itemCodeName
+
"DTO "
+
itemCodeNameLC
+
"dto"
>
<#
assign
id_etParams4_batch
=
id_etParams4_batch
+
"@RequestBody List<"
+
itemCodeName
+
"DTO> "
+
itemCodeNameLC
+
"dtos"
>
<#
assign
fullPath
=
parentPath
+
selfPath
>
...
...
@@ -449,7 +449,7 @@ public class ${itemCodeName}Resource {
<#
assign
subDTOs
=
srfpluralize
(
deMinApiCN
)?
lower_case
>
List
<${
deMinApiCN
}
DTO
>
${
deMinApiCNLC
}
dtos
=
${
itemCodeNameLC
}
dto
.
get
${
subDTOs
?
cap_first
}();
Page
<${
deapide
.
getCodeName
()}>
${
deMinApiCNLC
}
DOs
=
${
deapide
.
getCodeName
()?
lower_case
}
Service
.
selectBy
${
apider
.
getPSDER1N
().
getCodeName
()}(${
itemCodeNameLC
+
keyCNLC
});
List
<${
srf
javatype
(
deapide
.
getKeyPSDEField
().
getStdDataType
())}>
${
deMinApiCNLC
}
Ids
=
new
ArrayList
<${
srf
javatype
(
deapide
.
getKeyPSDEField
().
getStdDataType
())}>();
List
<${
srf
r7javatype
(
deapide
.
getKeyPSDEField
().
getStdDataType
())}>
${
deMinApiCNLC
}
Ids
=
new
ArrayList
<${
srfr7
javatype
(
deapide
.
getKeyPSDEField
().
getStdDataType
())}>();
if
(${
deMinApiCNLC
}
DOs
!= null && !${deMinApiCNLC}DOs.isEmpty()) {
for
(${
deapide
.
getCodeName
()}
minorDO
:
${
deMinApiCNLC
}
DOs
)
{
${
deMinApiCNLC
}
Ids
.
add
(
minorDO
.
get
${
deapide
.
getKeyPSDEField
().
getCodeName
()?
cap_first
}());
...
...
@@ -503,7 +503,7 @@ public class ${itemCodeName}Resource {
<@
SecurityBatchAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}批量删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}批量删除${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
${
byParams
}(@
RequestBody
List
<${
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())}>
ids
)
{
public
ResponseEntity
<
Boolean
>
removeBatch
${
byParams
}(@
RequestBody
List
<${
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())}>
ids
)
{
${
deCodeNameLC
}
Service
.
removeBatch
(
ids
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
...
...
@@ -789,7 +789,7 @@ public class ${itemCodeName}Resource {
<@
SecurityBatchAnnotation
deaction
/>
@
ApiOperation
(
value
=
"批量删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"批量删除${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/batch/test"
)
public
ResponseEntity
<
Boolean
>
testRemoveBatch
(@
RequestBody
List
<${
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())}>
ids
)
{
public
ResponseEntity
<
Boolean
>
testRemoveBatch
(@
RequestBody
List
<${
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())}>
ids
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
testRemoveBatch
(
ids
));
}
...
...
@@ -897,7 +897,7 @@ public class ${itemCodeName}Resource {
<@
SecurityBatchAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}批量删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}批量删除${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/batch/test"
)
public
ResponseEntity
<
Boolean
>
testRemoveBatch
${
byParams
}(@
RequestBody
List
<${
srfjavatype
(
de
.
getKeyPSDEField
().
getStdDataType
())}>
ids
)
{
public
ResponseEntity
<
Boolean
>
testRemoveBatch
${
byParams
}(@
RequestBody
List
<${
srf
r7
javatype
(
de
.
getKeyPSDEField
().
getStdDataType
())}>
ids
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
testRemoveBatch
(
ids
));
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录