Commit 66564790 by 张祺

Merge branch 'hy-tobacco' of http://132.232.112.242:7090/zhangkb/indicators into hy-tobacco

parents d4870059 3eaae77b
...@@ -98,10 +98,10 @@ public class IndicatorsDefCtrl { ...@@ -98,10 +98,10 @@ public class IndicatorsDefCtrl {
@ApiOperation(value = "新建考核指标(isUpdate:0 新增 1修改)", notes = "新建考核指标(isUpdate:0 新增 1修改)") @ApiOperation(value = "新建考核指标(isUpdate:0 新增 1修改)", notes = "新建考核指标(isUpdate:0 新增 1修改)")
@PostMapping(value = "/createDriveInd") @PostMapping(value = "/createDriveInd")
public void createDriveInd(@RequestBody DriveIndDef driveIndDef,@RequestParam String code,@RequestParam Integer catalogId, public String createDriveInd(@RequestBody DriveIndDef driveIndDef,@RequestParam String code,@RequestParam Integer catalogId,
@RequestParam String catalogIdPath,@RequestParam String user,@RequestParam String isUpdate, @RequestParam String catalogIdPath,@RequestParam String user,@RequestParam String isUpdate,
@RequestParam(required=false) String shortboardIds) throws Exception{ @RequestParam(required=false) String shortboardIds) throws Exception{
driveIndDefService.saveOrUpdate(driveIndDef, code, catalogId, catalogIdPath, user, isUpdate, shortboardIds); return driveIndDefService.saveOrUpdate(driveIndDef, code, catalogId, catalogIdPath, user, isUpdate, shortboardIds);
} }
@ApiOperation(value = "删除考核指标", notes = "删除考核指标") @ApiOperation(value = "删除考核指标", notes = "删除考核指标")
......
...@@ -45,7 +45,7 @@ public class DriveIndDefService { ...@@ -45,7 +45,7 @@ public class DriveIndDefService {
} }
if("0".equals(isUpdate)) {//新建 if("0".equals(isUpdate)) {//新建
DriveIndDef dbDriveIndDef = this.getById(driveIndDef.getIndId()); DriveIndDef dbDriveIndDef = this.getById(driveIndDef.getIndId());
if(dbDriveIndDef==null) { if(dbDriveIndDef!=null) {
return "indId is exist,create drive indicators fail"; return "indId is exist,create drive indicators fail";
}else { }else {
driveIndDef.setCreater(user); driveIndDef.setCreater(user);
......
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