Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
f2364dc5
提交
f2364dc5
编写于
8月 24, 2020
作者:
xignzi006
🇨🇳
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去除@Transactional
上级
566a3861
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
0 行增加
和
17 行删除
+0
-17
%ITEM%Resource.java.ftl
...YS_PKGPATH%/%SYSAPI_PKGPATH%/rest/%ITEM%Resource.java.ftl
+0
-17
未找到文件。
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/rest/%ITEM%Resource.java.ftl
浏览文件 @
f2364dc5
...
@@ -43,7 +43,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -43,7 +43,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax
.
servlet
.
ServletRequest
;
import
javax
.
servlet
.
ServletRequest
;
import
org
.
springframework
.
beans
.
factory
.
annotation
.
Autowired
;
import
org
.
springframework
.
beans
.
factory
.
annotation
.
Autowired
;
import
org
.
springframework
.
cglib
.
beans
.
BeanCopier
;
import
org
.
springframework
.
cglib
.
beans
.
BeanCopier
;
<#
if
de
.
getStorageMode
()==
4
><#
else
>
import
org
.
springframework
.
transaction
.
annotation
.
Transactional
;</#
if
>
import
org
.
springframework
.
http
.
ResponseEntity
;
import
org
.
springframework
.
http
.
ResponseEntity
;
import
org
.
springframework
.
web
.
bind
.
annotation
.*;
import
org
.
springframework
.
web
.
bind
.
annotation
.*;
import
org
.
springframework
.
http
.
HttpStatus
;
import
org
.
springframework
.
http
.
HttpStatus
;
...
@@ -155,7 +154,6 @@ public class ${itemCodeName}Resource {
...
@@ -155,7 +154,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"新建${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"新建${deLogicName}"
)
@
ApiOperation
(
value
=
"新建${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"新建${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"${fullPath}"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"${fullPath}"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<${
itemCodeName
}
DTO
>
create
(${
etParams
})
{
public
ResponseEntity
<${
itemCodeName
}
DTO
>
create
(${
etParams
})
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeNameLC
}
Service
.
create
(
domain
);
${
deCodeNameLC
}
Service
.
create
(
domain
);
...
@@ -176,7 +174,6 @@ public class ${itemCodeName}Resource {
...
@@ -176,7 +174,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"更新${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"更新${deLogicName}"
)
@
ApiOperation
(
value
=
"更新${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"更新${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}"
)
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<${
itemCodeName
}
DTO
>
update
(${
id_etParams
})
{
public
ResponseEntity
<${
itemCodeName
}
DTO
>
update
(${
id_etParams
})
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
domain
.
set
${
dePKCodeName
}(${
itemCodeNameLC
+
keyCNLC
});
domain
.
set
${
dePKCodeName
}(${
itemCodeNameLC
+
keyCNLC
});
...
@@ -213,7 +210,6 @@ public class ${itemCodeName}Resource {
...
@@ -213,7 +210,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"删除${deLogicName}"
)
@
ApiOperation
(
value
=
"删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"删除${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
remove
(${
idParams
})
{
public
ResponseEntity
<
Boolean
>
remove
(${
idParams
})
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
remove
(${
itemCodeNameLC
+
keyCNLC
}));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
remove
(${
itemCodeNameLC
+
keyCNLC
}));
}
}
...
@@ -259,7 +255,6 @@ public class ${itemCodeName}Resource {
...
@@ -259,7 +255,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${deaction.getLogicName()}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${deaction.getLogicName()}"
)
@
ApiOperation
(
value
=
"${deaction.getLogicName()}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${deaction.getLogicName()}"
)
@
RequestMapping
(
method
=
RequestMethod
.${
reqMtd
},
value
=
"${fullPath}<#if deaction.getRequestParamType() == 'NOKEY'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}"
)
@
RequestMapping
(
method
=
RequestMethod
.${
reqMtd
},
value
=
"${fullPath}<#if deaction.getRequestParamType() == 'NOKEY'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<${
itemCodeName
}
DTO
>
${
deactionCodeName
?
uncap_first
}(<#
if
deaction
.
getRequestParamType
()
==
'NOKEY'
>${
id_etParams4
}<#
else
>${
id_etParams
}</#
if
>)
{
public
ResponseEntity
<${
itemCodeName
}
DTO
>
${
deactionCodeName
?
uncap_first
}(<#
if
deaction
.
getRequestParamType
()
==
'NOKEY'
>${
id_etParams4
}<#
else
>${
id_etParams
}</#
if
>)
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
<#
if
deaction
.
getRequestParamType
()
==
'NOKEY'
><#
else
>
domain
.
set
${
dePKCodeName
}(${
itemCodeNameLC
+
keyCNLC
});</#
if
>
<#
if
deaction
.
getRequestParamType
()
==
'NOKEY'
><#
else
>
domain
.
set
${
dePKCodeName
}(${
itemCodeNameLC
+
keyCNLC
});</#
if
>
...
@@ -405,7 +400,6 @@ public class ${itemCodeName}Resource {
...
@@ -405,7 +400,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}建立${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}建立${deLogicName}"
)
@
ApiOperation
(
value
=
"${byTagParams}建立${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}建立${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"${fullPath}"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"${fullPath}"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<${
itemCodeName
}
DTO
>
${
deactionCodeName
?
uncap_first
}${
byParams
}(${
etParams
})
{
public
ResponseEntity
<${
itemCodeName
}
DTO
>
${
deactionCodeName
?
uncap_first
}${
byParams
}(${
etParams
})
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
parentSetParams
}
${
parentSetParams
}
...
@@ -431,7 +425,6 @@ public class ${itemCodeName}Resource {
...
@@ -431,7 +425,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}更新${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}更新${deLogicName}"
)
@
ApiOperation
(
value
=
"${byTagParams}更新${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}更新${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}"
)
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<${
itemCodeName
}
DTO
>
${
deactionCodeName
?
uncap_first
}${
byParams
}(${
id_etParams
})
{
public
ResponseEntity
<${
itemCodeName
}
DTO
>
${
deactionCodeName
?
uncap_first
}${
byParams
}(${
id_etParams
})
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
parentSetParams
}
${
parentSetParams
}
...
@@ -496,7 +489,6 @@ public class ${itemCodeName}Resource {
...
@@ -496,7 +489,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}删除${deLogicName}"
)
@
ApiOperation
(
value
=
"${byTagParams}删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}删除${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
${
deactionCodeName
?
uncap_first
}${
byParams
}(${
idParams
})
{
public
ResponseEntity
<
Boolean
>
${
deactionCodeName
?
uncap_first
}${
byParams
}(${
idParams
})
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
remove
(${
itemCodeNameLC
+
keyCNLC
}));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
remove
(${
itemCodeNameLC
+
keyCNLC
}));
}
}
...
@@ -566,7 +558,6 @@ public class ${itemCodeName}Resource {
...
@@ -566,7 +558,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}${deLogicName}"
)
@
ApiOperation
(
value
=
"${byTagParams}${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.${
reqMtd
},
value
=
"${fullPath}<#if deaction.getRequestParamType() == 'NOKEY'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}"
)
@
RequestMapping
(
method
=
RequestMethod
.${
reqMtd
},
value
=
"${fullPath}<#if deaction.getRequestParamType() == 'NOKEY'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<${
itemCodeName
}
DTO
>
${
deactionCodeName
?
uncap_first
}${
byParams
}(<#
if
deaction
.
getRequestParamType
()
==
'NOKEY'
>${
id_etParams4
}<#
else
>${
id_etParams
}</#
if
>)
{
public
ResponseEntity
<${
itemCodeName
}
DTO
>
${
deactionCodeName
?
uncap_first
}${
byParams
}(<#
if
deaction
.
getRequestParamType
()
==
'NOKEY'
>${
id_etParams4
}<#
else
>${
id_etParams
}</#
if
>)
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
parentSetParams
}
${
parentSetParams
}
...
@@ -731,7 +722,6 @@ public class ${itemCodeName}Resource {
...
@@ -731,7 +722,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"新建${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"新建${deLogicName}"
)
@
ApiOperation
(
value
=
"新建${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"新建${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"${fullPath}/test"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"${fullPath}/test"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
testCreate
(${
etParams
})
{
public
ResponseEntity
<
Boolean
>
testCreate
(${
etParams
})
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
testCreate
(${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
)));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
testCreate
(${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
)));
}
}
...
@@ -747,7 +737,6 @@ public class ${itemCodeName}Resource {
...
@@ -747,7 +737,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"更新${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"更新${deLogicName}"
)
@
ApiOperation
(
value
=
"更新${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"更新${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/test"
)
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/test"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
testUpdate
(${
id_etParams
})
{
public
ResponseEntity
<
Boolean
>
testUpdate
(${
id_etParams
})
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
domain
.
set
${
dePKCodeName
}(${
itemCodeNameLC
+
keyCNLC
});
domain
.
set
${
dePKCodeName
}(${
itemCodeNameLC
+
keyCNLC
});
...
@@ -780,7 +769,6 @@ public class ${itemCodeName}Resource {
...
@@ -780,7 +769,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"删除${deLogicName}"
)
@
ApiOperation
(
value
=
"删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"删除${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/test"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/test"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
testRemove
(${
idParams
})
{
public
ResponseEntity
<
Boolean
>
testRemove
(${
idParams
})
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
testRemove
(${
itemCodeNameLC
+
keyCNLC
}));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
testRemove
(${
itemCodeNameLC
+
keyCNLC
}));
}
}
...
@@ -823,7 +811,6 @@ public class ${itemCodeName}Resource {
...
@@ -823,7 +811,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${deaction.getLogicName()}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${deaction.getLogicName()}"
)
@
ApiOperation
(
value
=
"${deaction.getLogicName()}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${deaction.getLogicName()}"
)
@
RequestMapping
(
method
=
RequestMethod
.${
reqMtd
},
value
=
"${fullPath}<#if deaction.getRequestParamType() == 'NOKEY'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}/test"
)
@
RequestMapping
(
method
=
RequestMethod
.${
reqMtd
},
value
=
"${fullPath}<#if deaction.getRequestParamType() == 'NOKEY'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}/test"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
test
${
deactionCodeName
?
cap_first
}(<#
if
deaction
.
getRequestParamType
()
==
'NOKEY'
>${
id_etParams4
}<#
else
>${
id_etParams
}</#
if
>)
{
public
ResponseEntity
<
Boolean
>
test
${
deactionCodeName
?
cap_first
}(<#
if
deaction
.
getRequestParamType
()
==
'NOKEY'
>${
id_etParams4
}<#
else
>${
id_etParams
}</#
if
>)
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
test
${
srfmethodname
(
deactionCodeName
)?
cap_first
}(
domain
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
test
${
srfmethodname
(
deactionCodeName
)?
cap_first
}(
domain
));
...
@@ -843,7 +830,6 @@ public class ${itemCodeName}Resource {
...
@@ -843,7 +830,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}建立${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}建立${deLogicName}"
)
@
ApiOperation
(
value
=
"${byTagParams}建立${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}建立${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"${fullPath}/test"
)
@
RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"${fullPath}/test"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
testCreate
${
byParams
}(${
etParams
})
{
public
ResponseEntity
<
Boolean
>
testCreate
${
byParams
}(${
etParams
})
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
parentSetParams
}
${
parentSetParams
}
...
@@ -865,7 +851,6 @@ public class ${itemCodeName}Resource {
...
@@ -865,7 +851,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}更新${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}更新${deLogicName}"
)
@
ApiOperation
(
value
=
"${byTagParams}更新${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}更新${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/test"
)
@
RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/test"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
testUpdate
${
byParams
}(${
id_etParams
})
{
public
ResponseEntity
<
Boolean
>
testUpdate
${
byParams
}(${
id_etParams
})
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
parentSetParams
}
${
parentSetParams
}
...
@@ -888,7 +873,6 @@ public class ${itemCodeName}Resource {
...
@@ -888,7 +873,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}删除${deLogicName}"
)
@
ApiOperation
(
value
=
"${byTagParams}删除${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}删除${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/test"
)
@
RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/test"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
testRemove
${
byParams
}(${
idParams
})
{
public
ResponseEntity
<
Boolean
>
testRemove
${
byParams
}(${
idParams
})
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
testRemove
(${
itemCodeNameLC
+
keyCNLC
}));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(${
deCodeNameLC
}
Service
.
testRemove
(${
itemCodeNameLC
+
keyCNLC
}));
}
}
...
@@ -954,7 +938,6 @@ public class ${itemCodeName}Resource {
...
@@ -954,7 +938,6 @@ public class ${itemCodeName}Resource {
<@
SecurityAnnotation
deaction
/>
<@
SecurityAnnotation
deaction
/>
@
ApiOperation
(
value
=
"${byTagParams}${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}${deLogicName}"
)
@
ApiOperation
(
value
=
"${byTagParams}${deLogicName}"
,
tags
=
{
"${deLogicName}"
},
notes
=
"${byTagParams}${deLogicName}"
)
@
RequestMapping
(
method
=
RequestMethod
.${
reqMtd
},
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/${deactionCodeName?lower_case}/test"
)
@
RequestMapping
(
method
=
RequestMethod
.${
reqMtd
},
value
=
"${fullPath}/{${itemCodeNameLC + keyCNLC}}/${deactionCodeName?lower_case}/test"
)
<#
if
de
.
getStorageMode
()==
4
><#
else
>
@
Transactional
</#
if
>
public
ResponseEntity
<
Boolean
>
test
${
deactionCodeName
?
cap_first
}${
byParams
}(${
id_etParams
})
{
public
ResponseEntity
<
Boolean
>
test
${
deactionCodeName
?
cap_first
}${
byParams
}(${
id_etParams
})
{
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
deCodeName
}
domain
=
${
itemCodeNameLC
}
Mapping
.
toDomain
(${
itemCodeNameLC
}
dto
);
${
parentSetParams
}
${
parentSetParams
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录