|
|
@@ -332,4 +332,21 @@ public class DefaultDeclaredProjectManage { |
|
|
|
params.setFormData(JSON.parseObject(JSON.toJSONString(conditionDto), new TypeReference<Map<String, Object>>() { |
|
|
|
})); |
|
|
|
} |
|
|
|
|
|
|
|
public void buildCondition(ProcessStartParamsVo params, Project projectInfo,DefaultDeclaredDTO dto) { |
|
|
|
//放入条件判断的项目字段 优先取dto的 再取项目的 |
|
|
|
ProjectDTO pdto = dto.getProjectInfo(); |
|
|
|
ProjectConditionDTO conditionDto = new ProjectConditionDTO(); |
|
|
|
conditionDto.setProjectId(projectInfo.getId()); |
|
|
|
conditionDto.setDeclareAmount(Objects.nonNull(pdto) && Objects.nonNull(pdto.getDeclareAmount()) |
|
|
|
?pdto.getDeclareAmount() : projectInfo.getDeclareAmount()); |
|
|
|
conditionDto.setIsDigitalReform(Objects.nonNull(pdto) && Objects.nonNull(pdto.getIsDigitalReform()) |
|
|
|
?pdto.getIsDigitalReform() : projectInfo.getIsDigitalReform()); |
|
|
|
conditionDto.setIsTemporaryAugment(Objects.nonNull(pdto) && Objects.nonNull(pdto.getIsTemporaryAugment()) |
|
|
|
?pdto.getIsTemporaryAugment() : projectInfo.getIsTemporaryAugment()); |
|
|
|
conditionDto.setBizDomain(Objects.nonNull(pdto) && Objects.nonNull(pdto.getBizDomain()) |
|
|
|
?pdto.getBizDomain() : projectInfo.getBizDomain()); |
|
|
|
params.setFormData(JSON.parseObject(JSON.toJSONString(conditionDto), new TypeReference<Map<String, Object>>() { |
|
|
|
})); |
|
|
|
} |
|
|
|
} |