|
|
@@ -479,13 +479,16 @@ public class GovProjectCollectionManage { |
|
|
|
if(Objects.nonNull(cimplement)){ |
|
|
|
cimplement.setBaseProjId(baseProjId); |
|
|
|
cimplement.setBaseProjName(baseProjName); |
|
|
|
cimplement.setBaseBidCode(baseProjId + "-1"); |
|
|
|
cimplement.setBaseBidCode(baseProjId); |
|
|
|
cimplement.setBaseBidName(baseProjName); |
|
|
|
GovBizProjectCimplement oldCimplement = cimplementService.getOne(Wrappers.lambdaQuery(GovBizProjectCimplement.class) |
|
|
|
.eq(GovBizProjectCimplement::getBaseProjId, baseProjId) |
|
|
|
.last(BizConst.LIMIT_1)); |
|
|
|
|
|
|
|
GovBizProjectCimplement saveCimplement = BeanUtil.copyProperties(cimplement,GovBizProjectCimplement.class); |
|
|
|
saveCimplement.setBaseProjId(baseProjId); |
|
|
|
saveCimplement.setBaseBidCode(baseProjId); |
|
|
|
saveCimplement.setBaseBidName(baseProjName); |
|
|
|
if(Objects.nonNull(oldCimplement)){ |
|
|
|
saveCimplement.setId(oldCimplement.getId()); |
|
|
|
}else{ |
|
|
@@ -505,14 +508,16 @@ public class GovProjectCollectionManage { |
|
|
|
if(Objects.nonNull(mimplement)){ |
|
|
|
mimplement.setBaseProjId(baseProjId); |
|
|
|
mimplement.setBaseProjName(baseProjName); |
|
|
|
mimplement.setBaseBidCode(baseProjId + "-2"); |
|
|
|
mimplement.setBaseBidCode(baseProjId); |
|
|
|
mimplement.setBaseBidName(baseProjName); |
|
|
|
GovBizProjectMimplement oldMimplement = mimplementService.getOne(Wrappers.lambdaQuery(GovBizProjectMimplement.class) |
|
|
|
.eq(GovBizProjectMimplement::getBaseProjId, baseProjId) |
|
|
|
.last(BizConst.LIMIT_1)); |
|
|
|
|
|
|
|
GovBizProjectMimplement saveMimplement = BeanUtil.copyProperties(mimplement,GovBizProjectMimplement.class); |
|
|
|
saveMimplement.setBaseProjId(baseProjId); |
|
|
|
|
|
|
|
saveMimplement.setBaseBidCode(baseProjId); |
|
|
|
saveMimplement.setBaseBidName(baseProjName); |
|
|
|
if(Objects.nonNull(oldMimplement)){ |
|
|
|
saveMimplement.setId(oldMimplement.getId()); |
|
|
|
}else{ |
|
|
|