Browse Source

Merge branch '20230904-project-collection-2.0' of http://git.ningdatech.com/liushuai/project-management into dev

master
PoffyZhang 1 year ago
parent
commit
4d9f9d4d0a
1 changed files with 12 additions and 11 deletions
  1. +12
    -11
      pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java

+ 12
- 11
pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java View File

@@ -568,17 +568,6 @@ public class GovProjectCollectionManage {
baseProjId = BizProjectContant.ProjectCollection.DRAFT;
}

BeanUtil.copyProperties(base, draft, CopyOptions.create()
.setIgnoreError(Boolean.TRUE).setIgnoreNullValue(Boolean.TRUE));
draft.setBaseProjId(baseProjId);
draft.setBaseProjName(baseProjName);
draft.setIsEffective(BizProjectContant.ProjectCollection.IS_EFFECTIVE);
draft.setAreaCode(RegionConst.RC_LS);
draft.setBizTime(LocalDateTime.now());
draft.setUpdateBy(user.getUsername());
draft.setUpdateOn(LocalDateTime.now());
draft.setOp(BizProjectContant.ProjectCollection.OP_INSERT);

// 2.保存 申报信息
GovBizProjectApplyDTO apply = saveDTO.getApply();
BeanUtil.copyProperties(apply, draft, CopyOptions.create()
@@ -630,6 +619,18 @@ public class GovProjectCollectionManage {
draft.setProcure(JSON.toJSONString(procures));
}

//最后再保存 基本信息
BeanUtil.copyProperties(base, draft, CopyOptions.create()
.setIgnoreError(Boolean.TRUE).setIgnoreNullValue(Boolean.TRUE));
draft.setBaseProjId(baseProjId);
draft.setBaseProjName(baseProjName);
draft.setIsEffective(BizProjectContant.ProjectCollection.IS_EFFECTIVE);
draft.setAreaCode(RegionConst.RC_LS);
draft.setBizTime(LocalDateTime.now());
draft.setUpdateBy(user.getUsername());
draft.setUpdateOn(LocalDateTime.now());
draft.setOp(BizProjectContant.ProjectCollection.OP_INSERT);

draftService.saveOrUpdate(draft);

return BizConst.SAVE_SUCCESS;


Loading…
Cancel
Save