Commit 0693b437 authored by 周健威's avatar 周健威

修改代码

parent 6309fa26
...@@ -104,7 +104,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom ...@@ -104,7 +104,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
@ApiOperation("删除") @ApiOperation("删除")
@RequestMapping(value = "/delCustom",method = RequestMethod.DELETE) @RequestMapping(value = "/delCustom",method = RequestMethod.DELETE)
@ResponseBody @ResponseBody
public ObjectRestResponse delCustom( CustomForm entity){ public ObjectRestResponse delCustom(@RequestBody CustomForm entity){
CustomForm db = baseBiz.selectById(entity.getId()); CustomForm db = baseBiz.selectById(entity.getId());
if(CustomForm.STATUS_SUBMIT != db.getStatus()) { if(CustomForm.STATUS_SUBMIT != db.getStatus()) {
throw new BaseException("该定制不能删除", ResultCode.PARAM_ILLEGAL_CODE); throw new BaseException("该定制不能删除", ResultCode.PARAM_ILLEGAL_CODE);
......
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