|
|
@ -41,8 +41,6 @@ public class DgProcessUserController { |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private HrmsFeignService hrmsFeignService; |
|
|
|
private HrmsFeignService hrmsFeignService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IDgProcessManageService processManageService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("根据进程id查询抄送用户") |
|
|
|
@ApiOperation("根据进程id查询抄送用户") |
|
|
|
@GetMapping("/queryCopySendUser") |
|
|
|
@GetMapping("/queryCopySendUser") |
|
|
@ -72,30 +70,11 @@ public class DgProcessUserController { |
|
|
|
return R.ok().data("userList",list); |
|
|
|
return R.ok().data("userList",list); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("添加流程的抄送用户") |
|
|
|
@ApiOperation("更新流程的抄送用户") |
|
|
|
@PostMapping("/addCopySendUser") |
|
|
|
@PostMapping("/updateCopySendUser") |
|
|
|
public R addCopySendUser(@RequestBody CopySendUserRequest copySendUserRequest){ |
|
|
|
public R updateCopySendUser(@RequestBody CopySendUserRequest copySendUserRequest){ |
|
|
|
boolean save = processUserService.saveCopySendUser(copySendUserRequest); |
|
|
|
boolean save = processUserService.saveCopySendUser(copySendUserRequest); |
|
|
|
return save ? R.ok() : R.error(); |
|
|
|
return save ? R.ok() : R.error(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "删除流程的抄送用户") |
|
|
|
|
|
|
|
@PostMapping("removeCopySendUser") |
|
|
|
|
|
|
|
public R removeCopySendUser( |
|
|
|
|
|
|
|
@ApiParam(name = "processId", value = "进程id", required = true) |
|
|
|
|
|
|
|
@RequestParam("processId") String processId, |
|
|
|
|
|
|
|
@ApiParam(name = "userId", value = "用户id", required = true) |
|
|
|
|
|
|
|
@RequestParam("userId") String userId){ |
|
|
|
|
|
|
|
QueryWrapper<DgProcessUser> wrapper = new QueryWrapper<>(); |
|
|
|
|
|
|
|
wrapper.eq("process_id",processId).eq("user_id",userId); |
|
|
|
|
|
|
|
boolean remove = processUserService.remove(wrapper); |
|
|
|
|
|
|
|
//更新流程管理的更新时间
|
|
|
|
|
|
|
|
UpdateWrapper<DgProcessManage> updateWrapper = new UpdateWrapper<>(); |
|
|
|
|
|
|
|
updateWrapper.eq("id",processId); |
|
|
|
|
|
|
|
DgProcessManage processManage = new DgProcessManage(); |
|
|
|
|
|
|
|
processManage.setUpdateTime(new Date()); |
|
|
|
|
|
|
|
processManageService.update(processManage,updateWrapper); |
|
|
|
|
|
|
|
return remove ? R.ok() : R.error(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|