fix(标准征求意见流程): 转交问题修复
This commit is contained in:
+2
@@ -12,4 +12,6 @@ public class TransferVO {
|
|||||||
String taskId;
|
String taskId;
|
||||||
|
|
||||||
String userId;
|
String userId;
|
||||||
|
|
||||||
|
String projectId;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -92,7 +92,7 @@ public class ProcessFbStandardConsultationController extends JeroController<Proc
|
|||||||
@ApiOperation(value="标准征求意见流程-转办", notes="标准征求意见流程-转办")
|
@ApiOperation(value="标准征求意见流程-转办", notes="标准征求意见流程-转办")
|
||||||
@PostMapping(value = "/transfer")
|
@PostMapping(value = "/transfer")
|
||||||
public Result<T> transfer(@RequestBody TransferVO transferVO) {
|
public Result<T> transfer(@RequestBody TransferVO transferVO) {
|
||||||
processFbStandardConsultationService.transfer(transferVO.getTaskId(), transferVO.getUserId());
|
processFbStandardConsultationService.transfer(transferVO.getTaskId(), transferVO.getUserId(), transferVO.getProjectId());
|
||||||
return Result.OK();
|
return Result.OK();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@ public interface IProcessFbStandardConsultationService extends IService<ProcessF
|
|||||||
* @Date: 2023/11/16 15:11
|
* @Date: 2023/11/16 15:11
|
||||||
* @Description: 转办
|
* @Description: 转办
|
||||||
**/
|
**/
|
||||||
void transfer(String taskId, String toUserId);
|
void transfer(String taskId, String toUserId, String projectId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: liao
|
* @Author: liao
|
||||||
|
|||||||
+23
-1
@@ -308,8 +308,30 @@ public class ProcessFbStandardConsultationServiceImpl extends ServiceImpl<Proces
|
|||||||
* @Description: 转办
|
* @Description: 转办
|
||||||
**/
|
**/
|
||||||
@Override
|
@Override
|
||||||
public void transfer(String taskId, String toUserId) {
|
public void transfer(String taskId, String toUserId, String projectId) {
|
||||||
processHandleService.transfer(taskId, toUserId);
|
processHandleService.transfer(taskId, toUserId);
|
||||||
|
// 模块负责人汇总填写意见
|
||||||
|
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
|
||||||
|
String taskDefinitionKey = task.getTaskDefinitionKey();
|
||||||
|
// 设计工程师填写征求意见
|
||||||
|
if (ConsultationTaskKey.DESIGN_ENGINEER_1.equals(taskDefinitionKey)
|
||||||
|
|| ConsultationTaskKey.DESIGN_ENGINEER_2.equals(taskDefinitionKey)){
|
||||||
|
processFbConsultationUserLinkService.update(
|
||||||
|
new LambdaUpdateWrapper<ProcessFbConsultationUserLink>()
|
||||||
|
.eq(ProcessFbConsultationUserLink::getBusinessId, projectId)
|
||||||
|
.eq(ProcessFbConsultationUserLink::getDesignEngineerId, CurrentUserUtil.getId())
|
||||||
|
.set(ProcessFbConsultationUserLink::getDesignEngineerId, toUserId));
|
||||||
|
}
|
||||||
|
// 模块负责人汇总填写意见
|
||||||
|
if (ConsultationTaskKey.DEPART_LEADER_START_1.equals(taskDefinitionKey)
|
||||||
|
|| ConsultationTaskKey.MODULE_OWNER_END_2.equals(taskDefinitionKey)
|
||||||
|
|| ConsultationTaskKey.MODULE_OWNER_END_3.equals(taskDefinitionKey)){
|
||||||
|
processFbConsultationUserLinkService.update(
|
||||||
|
new LambdaUpdateWrapper<ProcessFbConsultationUserLink>()
|
||||||
|
.eq(ProcessFbConsultationUserLink::getBusinessId, projectId)
|
||||||
|
.eq(ProcessFbConsultationUserLink::getModuleOwnerId, CurrentUserUtil.getId())
|
||||||
|
.set(ProcessFbConsultationUserLink::getModuleOwnerId, toUserId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user