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

自定义行为批处理

上级 4c624c10
......@@ -1006,7 +1006,7 @@ public class ${itemCodeName}Resource {
@ApiOperation(value = "${deaction.getLogicName()}Batch", tags = {"批量处理${deLogicName}" }, notes = "${deaction.getLogicName()}Batch")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}<#if deaction.getRequestParamType() == 'NONE'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}batch")
public ResponseEntity<Boolean> ${deactionCodeName?uncap_first}Batch(${etParamsList}) {
return ResponseEntity.status(HttpStatus.OK).body(${deCodeNameLC}Service.${srfmethodname(deactionCodeName)}(${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC}dtos)));
return ResponseEntity.status(HttpStatus.OK).body(${deCodeNameLC}Service.${srfmethodname(deactionCodeName)}Batch(${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC}dtos)));
}
</#macro>
......@@ -1016,7 +1016,7 @@ public class ${itemCodeName}Resource {
@ApiOperation(value = "${byTagParams}${deLogicName}Batch", tags = {"批量处理${deLogicName}" }, notes = "${byTagParams}${deLogicName}Batch")
@RequestMapping(method = RequestMethod.${reqMtd}, value = "${fullPath}<#if deaction.getRequestParamType() == 'NONE'><#else>/{${itemCodeNameLC + keyCNLC}}</#if>/${deactionCodeName?lower_case}batch")
public ResponseEntity<Boolean> ${deactionCodeName?uncap_first}${byParams}(${etParamsList}) {
return ResponseEntity.status(HttpStatus.OK).body(${deCodeNameLC}Service.${srfmethodname(deactionCodeName)}(${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC}dtos)));
return ResponseEntity.status(HttpStatus.OK).body(${deCodeNameLC}Service.${srfmethodname(deactionCodeName)}Batch(${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC}dtos)));
}
</#macro>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册