Browse Source

优化 采购信息的异步线程池

tags/24080901
PoffyZhang 1 year ago
parent
commit
c94c642b38
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java

+ 6
- 4
pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java View File

@@ -387,10 +387,6 @@ public class GovProjectCollectionManage {
String baseProjId = base.getBaseProjId(); String baseProjId = base.getBaseProjId();
String baseAreaCode = user.getRegionCode() + BizConst.NINE_AREA_CODE_LAST; String baseAreaCode = user.getRegionCode() + BizConst.NINE_AREA_CODE_LAST;
String baseProjName = base.getBaseProjName(); String baseProjName = base.getBaseProjName();
//如果是新增的话 要生成 项目编号
if(StringUtils.isBlank(baseProjId) || BizProjectContant.ProjectCollection.DRAFT.equals(baseProjId)){
baseProjId = generateProjectCodeUtil.generateProjectCode(saveDTO);
}


//1.保存基本信息 //1.保存基本信息
GovBizProjectBaseinfoDTO baseinfo = saveDTO.getBaseinfo(); GovBizProjectBaseinfoDTO baseinfo = saveDTO.getBaseinfo();
@@ -418,6 +414,12 @@ public class GovProjectCollectionManage {
saveBase.setBizTime(LocalDateTime.now()); saveBase.setBizTime(LocalDateTime.now());
saveBase.setUpdateBy(user.getUsername()); saveBase.setUpdateBy(user.getUsername());
saveBase.setUpdateOn(LocalDateTime.now()); saveBase.setUpdateOn(LocalDateTime.now());

//如果是新增的话 要生成 项目编号
if(StringUtils.isBlank(baseProjId) || BizProjectContant.ProjectCollection.DRAFT.equals(baseProjId)){
baseProjId = generateProjectCodeUtil.generateProjectCode(saveDTO);
}

baseinfoService.saveOrUpdate(saveBase); baseinfoService.saveOrUpdate(saveBase);


// 2.保存 申报信息 // 2.保存 申报信息


Loading…
Cancel
Save