Browse Source

修改 推送项目

master
PoffyZhang 1 year ago
parent
commit
d173c91dfb
1 changed files with 8 additions and 3 deletions
  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 View File

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


Loading…
Cancel
Save