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

动态行为

上级 7aa7a50a
......@@ -366,9 +366,9 @@ public class ${itemCodeName}Resource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN')")
@RequestMapping(method = RequestMethod.POST, value = "${fullPath}/{${itemCodeNameLC + keyCNLC}}/{action}")
public ResponseEntity<${itemCodeName}DTO> dynamicCall(${dynamic_id_Params}) {
${itemCodeName} domain = ${deCodeNameLC}Service.dynamicCall(itemCodeNameLC + keyCNLC, action, ${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC + "dto"}));
${itemCodeName} domain = ${deCodeNameLC}Service.dynamicCall(${itemCodeNameLC + keyCNLC}, action, ${itemCodeNameLC}Mapping.toDomain(${itemCodeNameLC + "dto"}));
${itemCodeNameLC}dto = ${itemCodeNameLC}Mapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
return ResponseEntity.status(HttpStatus.OK).body(${itemCodeNameLC + "dto"});
}
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册