提交 71269cc9 编写于 作者: lengyu's avatar lengyu

fixed

上级 86fb2a00
...@@ -196,7 +196,7 @@ public class ${itemCodeName}Resource { ...@@ -196,7 +196,7 @@ public class ${itemCodeName}Resource {
@ApiOperation(value = "保存${deLogicName}", tags = {"${deLogicName}" }, notes = "保存${deLogicName}") @ApiOperation(value = "保存${deLogicName}", tags = {"${deLogicName}" }, notes = "保存${deLogicName}")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}") @RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}")
public ResponseEntity<${itemCodeName}DTO> save(${etParams}) { public ResponseEntity<${itemCodeName}DTO> save(${etParams}) {
${itemCodeName} domain = ${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC}dto); ${deCodeName} domain = ${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC}dto);
${deCodeNameLC}Service.save(domain); ${deCodeNameLC}Service.save(domain);
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(domain)); return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(domain));
} }
...@@ -368,7 +368,7 @@ public class ${itemCodeName}Resource { ...@@ -368,7 +368,7 @@ public class ${itemCodeName}Resource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN')")
@RequestMapping(method = RequestMethod.POST, value = "${fullPath}/{${itemCodeNameLC + keyCNLC}}/{action}") @RequestMapping(method = RequestMethod.POST, value = "${fullPath}/{${itemCodeNameLC + keyCNLC}}/{action}")
public ResponseEntity<${itemCodeName}DTO> dynamicCall(${dynamic_id_Params}) { public ResponseEntity<${itemCodeName}DTO> dynamicCall(${dynamic_id_Params}) {
${itemCodeName} domain = ${deCodeNameLC}Service.dynamicCall(${itemCodeNameLC + keyCNLC}, action, ${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC + "dto"})); ${deCodeName} domain = ${deCodeNameLC}Service.dynamicCall(${itemCodeNameLC + keyCNLC}, action, ${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC + "dto"}));
${itemCodeNameLC}dto = ${itemCodeNameLC}Mapping.toDto(domain); ${itemCodeNameLC}dto = ${itemCodeNameLC}Mapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC + "dto"}); return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC + "dto"});
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册