提交 26e74698 编写于 作者: zhouweidong's avatar zhouweidong

补充getDraft参数

上级 4925ce4d
...@@ -244,7 +244,7 @@ public class ${itemCodeName}Resource { ...@@ -244,7 +244,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> ${deactionCodeName?uncap_first}(${itemCodeName}DTO dto) { public ResponseEntity<${itemCodeName}DTO> ${deactionCodeName?uncap_first}(${itemCodeName}DTO dto) {
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDto(dto); ${deCodeName} domain = ${itemCodeNameLC}Mapping.toDomain(dto);
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.getDraft(domain))); return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.getDraft(domain)));
} }
...@@ -596,7 +596,7 @@ public class ${itemCodeName}Resource { ...@@ -596,7 +596,7 @@ public class ${itemCodeName}Resource {
@ApiOperation(value = "${byTagParams}获取${deLogicName}草稿", tags = {"${deLogicName}" }, notes = "${byTagParams}获取${deLogicName}草稿") @ApiOperation(value = "${byTagParams}获取${deLogicName}草稿", tags = {"${deLogicName}" }, notes = "${byTagParams}获取${deLogicName}草稿")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}") @RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}")
public ResponseEntity<${itemCodeName}DTO> ${deactionCodeName?uncap_first}${byParams}(${parentParams}, ${itemCodeName}DTO dto) { public ResponseEntity<${itemCodeName}DTO> ${deactionCodeName?uncap_first}${byParams}(${parentParams}, ${itemCodeName}DTO dto) {
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDto(dto); ${deCodeName} domain = ${itemCodeNameLC}Mapping.toDomain(dto);
${parentSetParams} ${parentSetParams}
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.getDraft(domain))); return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.getDraft(domain)));
} }
...@@ -864,7 +864,7 @@ public class ${itemCodeName}Resource { ...@@ -864,7 +864,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}/test") @RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}/test")
public ResponseEntity<Boolean> testGetDraft(${itemCodeName}DTO dto) { public ResponseEntity<Boolean> testGetDraft(${itemCodeName}DTO dto) {
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDto(dto); ${deCodeName} domain = ${itemCodeNameLC}Mapping.toDomain(dto);
return ResponseEntity.status(HttpStatus.OK).body(${deCodeNameLC}Service.testGetDraft(domain)); return ResponseEntity.status(HttpStatus.OK).body(${deCodeNameLC}Service.testGetDraft(domain));
} }
...@@ -994,7 +994,7 @@ public class ${itemCodeName}Resource { ...@@ -994,7 +994,7 @@ public class ${itemCodeName}Resource {
@ApiOperation(value = "${byTagParams}获取${deLogicName}草稿", tags = {"${deLogicName}" }, notes = "${byTagParams}获取${deLogicName}草稿") @ApiOperation(value = "${byTagParams}获取${deLogicName}草稿", tags = {"${deLogicName}" }, notes = "${byTagParams}获取${deLogicName}草稿")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}/test") @RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}/test")
public ResponseEntity<Boolean> testGetDraft${byParams}(${parentParams}, ${itemCodeName}DTO dto) { public ResponseEntity<Boolean> testGetDraft${byParams}(${parentParams}, ${itemCodeName}DTO dto) {
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDto(dto); ${deCodeName} domain = ${itemCodeNameLC}Mapping.toDomain(dto);
${parentSetParams} ${parentSetParams}
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.testGetDraft(domain))); return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.testGetDraft(domain)));
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册