Commit 9aa6fd01 authored by 周健威's avatar 周健威

修改代码

parent 0693b437
...@@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.*;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_FALSE; import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_FALSE;
import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_TRUE;
@RestController @RestController
@RequestMapping("customForm/web") @RequestMapping("customForm/web")
...@@ -109,6 +110,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom ...@@ -109,6 +110,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
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);
} }
db.setIsDel(SYS_TRUE);
baseBiz.updateSelectiveById(entity); baseBiz.updateSelectiveById(entity);
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
......
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