Commit 42ed1295 authored by 徐俊's avatar 徐俊

xujun

parent 4f0a3b53
...@@ -49,6 +49,10 @@ public class ComTalentBudget extends BaseEntity { ...@@ -49,6 +49,10 @@ public class ComTalentBudget extends BaseEntity {
@ApiModelProperty(value = "第五年预算", position = 7) @ApiModelProperty(value = "第五年预算", position = 7)
private BigDecimal yearValue5; private BigDecimal yearValue5;
/** 合计 */
@ApiModelProperty(value = "合计", position = 7)
private BigDecimal amountFee;
/** 预算科目名称 */ /** 预算科目名称 */
@ApiModelProperty(value = "预算科目名称", position = 8) @ApiModelProperty(value = "预算科目名称", position = 8)
@Length(max=100, message = "预算科目名称不能大于100") @Length(max=100, message = "预算科目名称不能大于100")
......
...@@ -43,6 +43,9 @@ public class ComTalentBudgetDTO extends BaseDTO { ...@@ -43,6 +43,9 @@ public class ComTalentBudgetDTO extends BaseDTO {
@ApiModelProperty(value = "第五年预算") @ApiModelProperty(value = "第五年预算")
private BigDecimal yearValue5; private BigDecimal yearValue5;
@ApiModelProperty(value = "合计", position = 7)
private BigDecimal amountFee;
@ApiModelProperty(value = "排序") @ApiModelProperty(value = "排序")
private Integer showIndex; private Integer showIndex;
......
...@@ -43,6 +43,9 @@ public class ComTalentBudgetQueryVO extends PaginationVO { ...@@ -43,6 +43,9 @@ public class ComTalentBudgetQueryVO extends PaginationVO {
@ApiModelProperty(value = "第五年预算") @ApiModelProperty(value = "第五年预算")
private BigDecimal yearValue5; private BigDecimal yearValue5;
@ApiModelProperty(value = "合计", position = 7)
private BigDecimal amountFee;
@ApiModelProperty(value = "排序") @ApiModelProperty(value = "排序")
private Integer showIndex; private Integer showIndex;
......
...@@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -133,6 +134,9 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO ...@@ -133,6 +134,9 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO
List<ComTalentBudgetDTO> bugetList = comTalentBudgetService.getList(); List<ComTalentBudgetDTO> bugetList = comTalentBudgetService.getList();
dto.setBudgetList(bugetList); dto.setBudgetList(bugetList);
dto.setApplyFund(new BigDecimal(0.00));
dto.setOtherFund(new BigDecimal(0.00));
dto.setTotalFund(new BigDecimal(0.00));
dto.setReportYear(comBatchService.getReportYear(null, CommonEnum.timeType.talentApply.getCode())); dto.setReportYear(comBatchService.getReportYear(null, CommonEnum.timeType.talentApply.getCode()));
dto.setCompleteStatus("0,0,0,0,0,0"); dto.setCompleteStatus("0,0,0,0,0,0");
dto.setTalentState(CommonEnum.projState.draft.getCode()); dto.setTalentState(CommonEnum.projState.draft.getCode());
...@@ -170,6 +174,13 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO ...@@ -170,6 +174,13 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO
List<ComPersonScientificGainDTO> scientificList = comPersonScientificGainService.getListByTalentId(dto.getId()); List<ComPersonScientificGainDTO> scientificList = comPersonScientificGainService.getListByTalentId(dto.getId());
dto.setScientificList(scientificList); dto.setScientificList(scientificList);
if (Objects.isNull(dto.getApplyFund()))
dto.setApplyFund(new BigDecimal(0.00));
if (Objects.isNull(dto.getOtherFund()))
dto.setOtherFund(new BigDecimal(0.00));
if (Objects.isNull(dto.getTotalFund()))
dto.setTotalFund(new BigDecimal(0.00));
return dto; return dto;
} }
......
...@@ -72,6 +72,7 @@ public class ComTalentBudgetServiceImpl extends BaseServiceImpl<ComTalentBudgetD ...@@ -72,6 +72,7 @@ public class ComTalentBudgetServiceImpl extends BaseServiceImpl<ComTalentBudgetD
newVO.setYearValue3(new BigDecimal(0.00)); newVO.setYearValue3(new BigDecimal(0.00));
newVO.setYearValue4(new BigDecimal(0.00)); newVO.setYearValue4(new BigDecimal(0.00));
newVO.setYearValue5(new BigDecimal(0.00)); newVO.setYearValue5(new BigDecimal(0.00));
newVO.setAmountFee(new BigDecimal(0.00));
newVO.setBudgetName(p.getName()); newVO.setBudgetName(p.getName());
newVO.setShowIndex(i); newVO.setShowIndex(i);
newVO.setIsRequired(p.getIsRequired()); newVO.setIsRequired(p.getIsRequired());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment