Commit b921821e authored by suhuiguang's avatar suhuiguang

fix(大编辑):bug修复

1.管道长度编辑时机械能更新 2.流程中的改造变更登记、使用登记、安装告知更新冗余字段管道长度、管道名称
parent 8d5d8d69
......@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.biz.edit.process.biz.changeRegistrationR
import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import com.yeejoin.amos.boot.biz.common.entity.TzsBaseEntity;
import com.yeejoin.amos.boot.module.jg.api.dto.FieldChangeMeta;
......@@ -91,6 +92,11 @@ public class ChangeRegistrationReformEditUpdateService {
jsonObject.put("projectContraption", projectContraption.getProjectContraption());
jsonObject.put("equipmentLists", pieLineDataChangeService.buildEquipmentLists(pipelineChangeItemMap));
commonServiceBiz.saveOrUpdateHistory("", jsonObject, bizId, applyNo);
// 4.管道名称修改
LambdaUpdateWrapper<JgChangeRegistrationReform> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(JgChangeRegistrationReform::getSequenceNbr, jgChangeRegistrationReform.getSequenceNbr());
updateWrapper.set(JgChangeRegistrationReform::getProjectContraption, projectContraption.getProjectContraption());
mainService.update(updateWrapper);
} else { // 完成时,把管道更新为已纳管状态
// 按照装置id查询装置下管道,更新为已纳管状态
List<IdxBizJgUseInfo> useInfos = commonEquipDataProcessService.getIdxBizJgUseInfoService().list(new LambdaQueryWrapper<IdxBizJgUseInfo>().eq(IdxBizJgUseInfo::getProjectContraptionId, jgChangeRegistrationReform.getProjectContraptionId()).eq(IdxBizJgUseInfo::getIsIntoManagement, false).select(TzsBaseEntity::getSequenceNbr, IdxBizJgUseInfo::getRecord));
......
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