点击编辑却还是驳回

gst4base
王家东 2 months ago
parent 8bb4dd41eb
commit 87c80bf1ff
  1. 7
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java

@ -400,14 +400,9 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom
//@RequiresPermissions("annualcomp:annual_comp:edit") //@RequiresPermissions("annualcomp:annual_comp:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<String> edit(@RequestBody AnnualComp annualComp) { public Result<String> edit(@RequestBody AnnualComp annualComp) {
if (annualComp.getBackinfo() != null && annualComp.getBackinfo() != "") {
annualComp.setState("3");
annualCompService.updateById(annualComp);
return Result.OK("驳回成功!");
} else {
annualCompService.updateById(annualComp); annualCompService.updateById(annualComp);
return Result.OK("编辑成功!"); return Result.OK("编辑成功!");
}
} }
@AutoLog(value = "年度比赛管理-驳回") @AutoLog(value = "年度比赛管理-驳回")

Loading…
Cancel
Save