Commit 2159746c authored by 刘林's avatar 刘林

Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register

parents fe29bcf0 859a0444
...@@ -405,7 +405,7 @@ public class JgInstallationNotice extends BaseEntity { ...@@ -405,7 +405,7 @@ public class JgInstallationNotice extends BaseEntity {
private String createUserCompanyName; private String createUserCompanyName;
//下一步任务ID //下一步任务ID
@TableField(value = "\"next_taskId\"") @TableField(value = "\"next_task_id\"")
private String nextTaskId; private String nextTaskId;
/** /**
......
...@@ -302,7 +302,7 @@ public class JgTransferNotice extends BaseEntity { ...@@ -302,7 +302,7 @@ public class JgTransferNotice extends BaseEntity {
private String createUserCompanyName; private String createUserCompanyName;
//下一步任务ID //下一步任务ID
@TableField(value = "\"next_taskId\"") @TableField(value = "\"next_task_id\"")
private String nextTaskId; private String nextTaskId;
......
...@@ -30,6 +30,6 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> { ...@@ -30,6 +30,6 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
String selectBusinessData(String tableName, String instanceId); String selectBusinessData(String tableName, String instanceId);
void updateBusinessData(String tableName,String assignee, String transferToUserIds, String instanceId); void updateBusinessData(String tableName,String assignee, String transferToUserIds, String instanceId,String nextTaskId);
} }
...@@ -153,4 +153,10 @@ import java.util.Map; ...@@ -153,4 +153,10 @@ import java.util.Map;
*/ */
@ApiModelProperty("next_task_id") @ApiModelProperty("next_task_id")
private String nextTaskId; private String nextTaskId;
/**
* 安全管理员姓名联系方式
*/
@ApiModelProperty("maintenance_manager_phone")
private String maintenanceManagerPhone;
} }
...@@ -76,7 +76,8 @@ ...@@ -76,7 +76,8 @@
<update id="updateBusinessData"> <update id="updateBusinessData">
update ${tableName} update ${tableName}
set transfer_to_user_ids = #{transferToUserIds}, set transfer_to_user_ids = #{transferToUserIds},
next_execute_user_ids = #{assignee} next_execute_user_ids = #{assignee},
next_task_id = #{nextTaskId}
where instance_id = #{instanceId} where instance_id = #{instanceId}
</update> </update>
</mapper> </mapper>
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
ur.apply_no as applyNo, ur.apply_no as applyNo,
ifnull(ur.next_executor_ids,'') as nextExecutorIds, ifnull(ur.next_executor_ids,'') as nextExecutorIds,
ur.promoter, ur.promoter,
ur.supervisory_code as supervisoryCode,
ur.next_execute_user_ids as nextExecuteUserIds, ur.next_execute_user_ids as nextExecuteUserIds,
ur.next_task_id as nextTaskId ur.next_task_id as nextTaskId
from tzs_jg_change_registration_reform ur from tzs_jg_change_registration_reform ur
......
...@@ -14,5 +14,5 @@ public interface ICmWorkflowService { ...@@ -14,5 +14,5 @@ public interface ICmWorkflowService {
ProcessTaskDTO rollBack(String processInstanceId); ProcessTaskDTO rollBack(String processInstanceId);
String assign(FlowTaskVo taskVo); ProcessTaskDTO assign(FlowTaskVo taskVo);
} }
...@@ -93,11 +93,11 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService { ...@@ -93,11 +93,11 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService {
@Override @Override
public String assign(FlowTaskVo taskVo) { public ProcessTaskDTO assign(FlowTaskVo taskVo) {
String result; ProcessTaskDTO processTaskDTO = new ProcessTaskDTO();
try { try {
log.info("开始请求工作流转办任务接口:/assign/{taskVo},请求参数:{},{}", taskVo); log.info("开始请求工作流转办任务接口:/assign/{taskVo},请求参数:{},{}", taskVo);
result = Workflow.taskV2Client.assign(taskVo).getResult(); processTaskDTO = Workflow.taskV2Client.assign(taskVo).getResult();
} catch (InnerInvokException e) { } catch (InnerInvokException e) {
//拦截无审核人异常信息 //拦截无审核人异常信息
String devMessage = e.getDevMessage(); String devMessage = e.getDevMessage();
...@@ -108,6 +108,6 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService { ...@@ -108,6 +108,6 @@ public class CmWorkflowServiceImpl implements ICmWorkflowService {
log.error("调用工作流转办任务接口失败", e); log.error("调用工作流转办任务接口失败", e);
throw new RuntimeException("调用工作流转办任务接口失败"); throw new RuntimeException("调用工作流转办任务接口失败");
} }
return result; return processTaskDTO;
} }
} }
...@@ -654,7 +654,7 @@ public class CommonServiceImpl implements ICommonService { ...@@ -654,7 +654,7 @@ public class CommonServiceImpl implements ICommonService {
FlowTaskVo flowTaskVo = new FlowTaskVo(); FlowTaskVo flowTaskVo = new FlowTaskVo();
flowTaskVo.setTaskId(taskId); flowTaskVo.setTaskId(taskId);
flowTaskVo.setAssignee(assignee); flowTaskVo.setAssignee(assignee);
cmWorkflowService.assign(flowTaskVo); ProcessTaskDTO processTaskDTO = cmWorkflowService.assign(flowTaskVo);
//修改待办 //修改待办
List<TaskV2Model> result = Systemctl.taskV2Client.selectListByRelationId(instanceId).getResult(); List<TaskV2Model> result = Systemctl.taskV2Client.selectListByRelationId(instanceId).getResult();
List<TaskV2Model> collect = result.stream().sorted((r1, r2) -> r2.getSequenceNbr().compareTo(r1.getSequenceNbr())).collect(Collectors.toList()); List<TaskV2Model> collect = result.stream().sorted((r1, r2) -> r2.getSequenceNbr().compareTo(r1.getSequenceNbr())).collect(Collectors.toList());
...@@ -672,7 +672,11 @@ public class CommonServiceImpl implements ICommonService { ...@@ -672,7 +672,11 @@ public class CommonServiceImpl implements ICommonService {
Systemctl.taskV2Client.update(taskV2Model, taskV2Model.getSequenceNbr()); Systemctl.taskV2Client.update(taskV2Model, taskV2Model.getSequenceNbr());
//创建新待办 //创建新待办
taskV2Model.setExecuteUserIds(assignee); taskV2Model.setExecuteUserIds(assignee);
String nextTaskId = processTaskDTO.getNextTask().get(0).getId();
taskV2Model.setFlowCode(nextTaskId);
String routhPath1 = routhPath.replace("nextTaskId", "nextTask") + "&nextTaskId=" + nextTaskId;
taskV2Model.setCreateDate(new Date()); taskV2Model.setCreateDate(new Date());
taskV2Model.setRoutePath(routhPath1);
taskV2Model.setTaskStatus(0); taskV2Model.setTaskStatus(0);
taskV2Model.setTaskStatusLabel(FlowStatusEnum.TO_BE_PROCESSED.getName()); taskV2Model.setTaskStatusLabel(FlowStatusEnum.TO_BE_PROCESSED.getName());
taskV2Model.setEndUserId(null); taskV2Model.setEndUserId(null);
...@@ -683,7 +687,7 @@ public class CommonServiceImpl implements ICommonService { ...@@ -683,7 +687,7 @@ public class CommonServiceImpl implements ICommonService {
String id = commonMapper.selectBusinessData(tableName, instanceId); String id = commonMapper.selectBusinessData(tableName, instanceId);
id = ObjectUtils.isEmpty(id) ? assignee : id + "," + assignee; id = ObjectUtils.isEmpty(id) ? assignee : id + "," + assignee;
//修改业务数据 //修改业务数据
commonMapper.updateBusinessData(tableName, assignee, id, instanceId); commonMapper.updateBusinessData(tableName, assignee, id, instanceId,nextTaskId);
return Boolean.TRUE; return Boolean.TRUE;
} }
......
...@@ -25,6 +25,7 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.JgMaintainNoticeMapper; ...@@ -25,6 +25,7 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.JgMaintainNoticeMapper;
import com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService; import com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService;
import com.yeejoin.amos.boot.module.jg.api.service.IJgMaintainNoticeService; import com.yeejoin.amos.boot.module.jg.api.service.IJgMaintainNoticeService;
import com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient; import com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient;
import com.yeejoin.amos.boot.module.jg.biz.service.IIdxBizJgRegisterInfoService;
import com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils; import com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils;
import com.yeejoin.amos.boot.module.jg.biz.utils.WordTemplateUtils; import com.yeejoin.amos.boot.module.jg.biz.utils.WordTemplateUtils;
import com.yeejoin.amos.boot.module.ymt.api.entity.RegistrationInfo; import com.yeejoin.amos.boot.module.ymt.api.entity.RegistrationInfo;
...@@ -105,6 +106,9 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -105,6 +106,9 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
@Autowired @Autowired
private CmWorkflowServiceImpl cmWorkflowService; private CmWorkflowServiceImpl cmWorkflowService;
@Autowired
IIdxBizJgRegisterInfoService idxBizJgRegisterInfoService;
/** /**
* 根据sequenceNbr查询 * 根据sequenceNbr查询
...@@ -137,9 +141,11 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -137,9 +141,11 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
String[] fields = {"productPhoto", "designDoc", "designStandard", "factoryStandard", "productQualityYieldProve", String[] fields = {"productPhoto", "designDoc", "designStandard", "factoryStandard", "productQualityYieldProve",
"insUseMaintainExplain", "inspectReport", "proxyStatementAttachment", "installContractAttachment"}; "insUseMaintainExplain", "inspectReport", "proxyStatementAttachment", "installContractAttachment"};
// 设备信息 "equCategory", "equDefine", "equRegisterCode", "produceCountry", "produceLicenseNum", // 设备信息 "equCategory", "equDefine", "equRegisterCode", "produceCountry", "produceLicenseNum",
JgMaintainNoticeEq jgMaintainNoticeEq = jgMaintainNoticeEqMapper.selectOne(new LambdaQueryWrapper<JgMaintainNoticeEq>().eq(JgMaintainNoticeEq::getEquipTransferId, sequenceNbr)); JgMaintainNoticeEq jgMaintainNoticeEq = jgMaintainNoticeEqMapper.selectOne(new LambdaQueryWrapper<JgMaintainNoticeEq>().eq(JgMaintainNoticeEq::getEquipTransferId, sequenceNbr));
Map<String, Object> map = jgMaintainNoticeMapper.getEquipInfoByRecord(jgMaintainNoticeEq.getEquId()); Map<String, Object> map = idxBizJgRegisterInfoService.getDetailFieldCamelCaseByRecord(jgMaintainNoticeEq.getEquId());
map.put("uuseUnitCreditCode",map.get("useUnitCreditCode"));
map.remove("useUnitCreditCode");
map.remove("address");
for (String s : fields) { for (String s : fields) {
if (maintainInfo.containsKey(s) && !ObjectUtils.isEmpty(map.get(s))) if (maintainInfo.containsKey(s) && !ObjectUtils.isEmpty(map.get(s)))
......
...@@ -239,6 +239,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC ...@@ -239,6 +239,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
FlowStatusEnum flowStatusEnum = this.getTaskStatus(operate); FlowStatusEnum flowStatusEnum = this.getTaskStatus(operate);
taskV2Model.setTaskStatus(flowStatusEnum.getCode()); taskV2Model.setTaskStatus(flowStatusEnum.getCode());
taskV2Model.setTaskStatusLabel(flowStatusEnum.getName()); taskV2Model.setTaskStatusLabel(flowStatusEnum.getName());
taskV2Model.setFlowCode(contract.getNextTaskId());
taskV2Model.setFlowStatus(this.getTaskStatusByName(contract.getStatus())); taskV2Model.setFlowStatus(this.getTaskStatusByName(contract.getStatus()));
taskV2Model.setFlowStatusLabel(contract.getStatus()); taskV2Model.setFlowStatusLabel(contract.getStatus());
taskV2Model.setTaskType(BusinessTypeEnum.JG_MAINTENANCE_RECORD.getCode()); taskV2Model.setTaskType(BusinessTypeEnum.JG_MAINTENANCE_RECORD.getCode());
...@@ -553,6 +554,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC ...@@ -553,6 +554,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
taskModelDto.setFlowStatusLabel(contract.getStatus()); taskModelDto.setFlowStatusLabel(contract.getStatus());
taskModelDto.setStartUserId(contract.getCreateUserId()); taskModelDto.setStartUserId(contract.getCreateUserId());
taskModelDto.setStartUser(contract.getCreateUserName()); taskModelDto.setStartUser(contract.getCreateUserName());
taskModelDto.setFlowCode(contract.getNextTaskId());
taskModelDto.setStartUserCompanyName(contract.getUseUnitName()); taskModelDto.setStartUserCompanyName(contract.getUseUnitName());
taskModelDto.setNextExecuteUser(contract.getNextExecuteIds()); taskModelDto.setNextExecuteUser(contract.getNextExecuteIds());
taskModelDto.setStartDate(contract.getCreateDate()); taskModelDto.setStartDate(contract.getCreateDate());
......
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