|
|
|
@ -49,7 +49,7 @@ import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
|
public class ZyProcessActionController extends JeecgController<ZyProcessAction, IZyProcessActionService> { |
|
|
|
|
@Autowired |
|
|
|
|
private IZyProcessActionService zyProcessActionService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页列表查询 |
|
|
|
|
* |
|
|
|
@ -97,7 +97,7 @@ public class ZyProcessActionController extends JeecgController<ZyProcessAction, |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加 |
|
|
|
|
* |
|
|
|
@ -108,10 +108,16 @@ public class ZyProcessActionController extends JeecgController<ZyProcessAction, |
|
|
|
|
@ApiOperation(value="zy_process_action-添加", notes="zy_process_action-添加") |
|
|
|
|
@PostMapping(value = "/add") |
|
|
|
|
public Result<?> add(@RequestBody ZyProcessAction zyProcessAction) { |
|
|
|
|
QueryWrapper s=new QueryWrapper(); |
|
|
|
|
s.eq("process_id",zyProcessAction.getProcessId()); |
|
|
|
|
s.eq("action_id",zyProcessAction.getActionId()); |
|
|
|
|
int a=zyProcessActionService.count(s); |
|
|
|
|
if(a>=1) |
|
|
|
|
return Result.error("已存在本信息"); |
|
|
|
|
zyProcessActionService.save(zyProcessAction); |
|
|
|
|
return Result.OK("添加成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 编辑 |
|
|
|
|
* |
|
|
|
@ -122,10 +128,16 @@ public class ZyProcessActionController extends JeecgController<ZyProcessAction, |
|
|
|
|
@ApiOperation(value="zy_process_action-编辑", notes="zy_process_action-编辑") |
|
|
|
|
@PutMapping(value = "/edit") |
|
|
|
|
public Result<?> edit(@RequestBody ZyProcessAction zyProcessAction) { |
|
|
|
|
QueryWrapper s=new QueryWrapper(); |
|
|
|
|
s.eq("process_id",zyProcessAction.getProcessId()); |
|
|
|
|
s.eq("action_id",zyProcessAction.getActionId()); |
|
|
|
|
int a=zyProcessActionService.count(s); |
|
|
|
|
if(a>=1) |
|
|
|
|
return Result.error("已存在本信息"); |
|
|
|
|
zyProcessActionService.updateById(zyProcessAction); |
|
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过id删除 |
|
|
|
|
* |
|
|
|
@ -139,7 +151,7 @@ public class ZyProcessActionController extends JeecgController<ZyProcessAction, |
|
|
|
|
zyProcessActionService.removeById(id); |
|
|
|
|
return Result.OK("删除成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 批量删除 |
|
|
|
|
* |
|
|
|
@ -153,7 +165,7 @@ public class ZyProcessActionController extends JeecgController<ZyProcessAction, |
|
|
|
|
this.zyProcessActionService.removeByIds(Arrays.asList(ids.split(","))); |
|
|
|
|
return Result.OK("批量删除成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过id查询 |
|
|
|
|
* |
|
|
|
|