Kaynağa Gözat

修改 推送项目

tags/24080901
PoffyZhang 1 yıl önce
ebeveyn
işleme
d173c91dfb
1 değiştirilmiş dosya ile 8 ekleme ve 3 silme
  1. +8
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java

+ 8
- 3
pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java Dosyayı Görüntüle

@@ -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{


Yükleniyor…
İptal
Kaydet