提交 a2063393 编写于 作者: xignzi006's avatar xignzi006 🇨🇳

更新 %ITEM%Resource.java.ftl

上级 444e67e0
......@@ -175,10 +175,10 @@ public class ${itemCodeName}Resource {
@RequestMapping(method = RequestMethod.PUT, value = "${fullPath}/{${itemCodeNameLC + keyCNLC}}")
<#if de.getStorageMode()==4><#else> @Transactional</#if>
public ResponseEntity<${itemCodeName}DTO> update(${id_etParams}) {
${deCodeName} ${deCodeNameLC} = ${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC}dto);
${deCodeNameLC}.set${dePKCodeName}(${itemCodeNameLC + keyCNLC});
${deCodeNameLC}Service.update(${deCodeNameLC});
${itemCodeName}DTO dto = ${itemCodeNameLC}Mapping.toDto(${deCodeNameLC});
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC}dto);
domain .set${dePKCodeName}(${itemCodeNameLC + keyCNLC});
${deCodeNameLC}Service.update(domain );
${itemCodeName}DTO dto = ${itemCodeNameLC}Mapping.toDto(domain );
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册