@@ -112,8 +112,6 @@ public class ProjectAdjustmentManage { | |||||
//先修改项目信息 | //先修改项目信息 | ||||
Project project = new Project(); | Project project = new Project(); | ||||
BeanUtils.copyProperties(projectDto,project); | BeanUtils.copyProperties(projectDto,project); | ||||
String projectCode = generateProjectCodeUtil.generateProjectCode(projectDto); | |||||
project.setProjectCode(projectCode); | |||||
project.setUpdateOn(LocalDateTime.now()); | project.setUpdateOn(LocalDateTime.now()); | ||||
if(!projectService.updateById(project)){ | if(!projectService.updateById(project)){ | ||||
throw new BusinessException("项目调整失败"); | throw new BusinessException("项目调整失败"); | ||||
@@ -34,9 +34,14 @@ public class GenerateProjectCodeUtil { | |||||
String fixedNumber = DeclaredProjectContant.Project.FIXED_NUMBER; | String fixedNumber = DeclaredProjectContant.Project.FIXED_NUMBER; | ||||
// 获取公司的财政编码 | // 获取公司的财政编码 | ||||
CompanyFiscalCode companyFiscalCode = companyFiscalCodeService.getByOrganizationCode(projectInfo.getBuildOrgCode()); | CompanyFiscalCode companyFiscalCode = companyFiscalCodeService.getByOrganizationCode(projectInfo.getBuildOrgCode()); | ||||
if (Objects.isNull(companyFiscalCode)){ | |||||
throw new BizException("申报单位未配置财政编码!"); | |||||
} | |||||
// 从表中查出单位配置的财政编码 | |||||
//if (Objects.isNull(companyFiscalCode)){ | |||||
// throw new BizException("申报单位未配置财政编码!"); | |||||
//} | |||||
// TODO 校验财政编码是否正确 部门编码(3位) + 单位编码(3位) | |||||
String fiscalCode = companyFiscalCode.getFiscalCode(); | String fiscalCode = companyFiscalCode.getFiscalCode(); | ||||
// 获取项目编号 | // 获取项目编号 | ||||
String projectIdStr; | String projectIdStr; | ||||