提交 4925ce4d 编写于 作者: zhouweidong's avatar zhouweidong

补充getDraft参数

上级 9de714df
......@@ -243,8 +243,9 @@ public class ${itemCodeName}Resource {
<#elseif deaction.codeName?lower_case == 'getdraft'><#comment>前端支持临时模式,后台不做处理</#comment>
@ApiOperation(value = "获取${deLogicName}草稿", tags = {"${deLogicName}" }, notes = "获取${deLogicName}草稿")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}")
public ResponseEntity<${itemCodeName}DTO> ${deactionCodeName?uncap_first}() {
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.getDraft(new ${deCodeName}())));
public ResponseEntity<${itemCodeName}DTO> ${deactionCodeName?uncap_first}(${itemCodeName}DTO dto) {
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDto(dto);
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.getDraft(domain)));
}
<#elseif deaction.codeName?lower_case == 'createbatch'>
......@@ -594,8 +595,8 @@ public class ${itemCodeName}Resource {
<#elseif deaction.codeName?lower_case == 'getdraft'>
@ApiOperation(value = "${byTagParams}获取${deLogicName}草稿", tags = {"${deLogicName}" }, notes = "${byTagParams}获取${deLogicName}草稿")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}")
public ResponseEntity<${itemCodeName}DTO> ${deactionCodeName?uncap_first}${byParams}(${parentParams}) {
${deCodeName} domain = new ${deCodeName}();
public ResponseEntity<${itemCodeName}DTO> ${deactionCodeName?uncap_first}${byParams}(${parentParams}, ${itemCodeName}DTO dto) {
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDto(dto);
${parentSetParams}
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.getDraft(domain)));
}
......@@ -862,8 +863,9 @@ public class ${itemCodeName}Resource {
<#elseif deaction.codeName?lower_case == 'getdraft'><#comment>前端支持临时模式,后台不做处理</#comment>
@ApiOperation(value = "获取${deLogicName}草稿", tags = {"${deLogicName}" }, notes = "获取${deLogicName}草稿")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}/test")
public ResponseEntity<Boolean> testGetDraft() {
return ResponseEntity.status(HttpStatus.OK).body(${deCodeNameLC}Service.testGetDraft(new ${deCodeName}()));
public ResponseEntity<Boolean> testGetDraft(${itemCodeName}DTO dto) {
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDto(dto);
return ResponseEntity.status(HttpStatus.OK).body(${deCodeNameLC}Service.testGetDraft(domain));
}
<#elseif deaction.codeName?lower_case == 'createbatch'>
......@@ -991,8 +993,8 @@ public class ${itemCodeName}Resource {
<#elseif deaction.codeName?lower_case == 'getdraft'>
@ApiOperation(value = "${byTagParams}获取${deLogicName}草稿", tags = {"${deLogicName}" }, notes = "${byTagParams}获取${deLogicName}草稿")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}/${deactionCodeName?lower_case}/test")
public ResponseEntity<Boolean> testGetDraft${byParams}(${parentParams}) {
${deCodeName} domain = new ${deCodeName}();
public ResponseEntity<Boolean> testGetDraft${byParams}(${parentParams}, ${itemCodeName}DTO dto) {
${deCodeName} domain = ${itemCodeNameLC}Mapping.toDto(dto);
${parentSetParams}
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC}Mapping.toDto(${deCodeNameLC}Service.testGetDraft(domain)));
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册