Commit 79be2d22 by flying-cattle

修改模板

parent cb9fa13a
...@@ -57,7 +57,7 @@ public class ${entityName}Controller { ...@@ -57,7 +57,7 @@ public class ${entityName}Controller {
@GetMapping("/getById/{id}") @GetMapping("/getById/{id}")
@ApiOperation(value = "获取${entityComment}信息", notes = "获取${entityComment}信息[${objectName}],作者:${author}") @ApiOperation(value = "获取${entityComment}信息", notes = "获取${entityComment}信息[${objectName}],作者:${author}")
@ApiImplicitParam(paramType="path", name = "id", value = "${entityComment}id", required = true, dataType = "${idType}") @ApiImplicitParam(paramType="path", name = "id", value = "${entityComment}id", required = true, dataType = "${idType}")
public JsonResult<${entityName}> get${entityName}ById(@PathVariable("id")${idType} id){ public JsonResult<${entityName}> getById(@PathVariable("id")${idType} id){
JsonResult<${entityName}> result=new JsonResult<${entityName}>(); JsonResult<${entityName}> result=new JsonResult<${entityName}>();
try { try {
${entityName} ${objectName}=${objectName}ServiceImpl.getById(id); ${entityName} ${objectName}=${objectName}ServiceImpl.getById(id);
...@@ -86,7 +86,7 @@ public class ${entityName}Controller { ...@@ -86,7 +86,7 @@ public class ${entityName}Controller {
*/ */
@PostMapping("/saveOrUpdate") @PostMapping("/saveOrUpdate")
@ApiOperation(value = "添加${entityComment}", notes = "添加${entityComment}[${objectName}],作者:${author}") @ApiOperation(value = "添加${entityComment}", notes = "添加${entityComment}[${objectName}],作者:${author}")
public JsonResult<${entityName}> insertSelective(${entityName} ${objectName}){ public JsonResult<${entityName}> saveOrUpdate(${entityName} ${objectName}){
JsonResult<${entityName}> result=new JsonResult<${entityName}>(); JsonResult<${entityName}> result=new JsonResult<${entityName}>();
try { try {
boolean rg=${objectName}ServiceImpl.saveOrUpdate(${objectName}); boolean rg=${objectName}ServiceImpl.saveOrUpdate(${objectName});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment