|
@@ -90,17 +90,20 @@ public class PreparationServiceImpl extends BaseServiceImpl<PreparationMapper, P
|
|
|
ExportPreparationNumVO preparationNumVO = new ExportPreparationNumVO();
|
|
|
Integer preparationNum = 0;
|
|
|
BigDecimal totalFee = new BigDecimal(0);
|
|
|
+ BigDecimal totalActualFee = new BigDecimal(0);
|
|
|
String positionName = null;
|
|
|
List<PreparationVO> detailList = new ArrayList<>();
|
|
|
for (PreparationVO vo : list) {
|
|
|
if (id.equals(vo.getPositionId())) {
|
|
|
preparationNum++;
|
|
|
totalFee = totalFee.add(vo.getFee());
|
|
|
+ totalActualFee = totalActualFee.add(vo.getActualFee());
|
|
|
positionName = vo.getPositionName();
|
|
|
detailList.add(vo);
|
|
|
}
|
|
|
}
|
|
|
preparationNumVO.setPreparationNum(preparationNum);
|
|
|
+ preparationNumVO.setTotalActualFee(totalActualFee);
|
|
|
preparationNumVO.setTotalFee(totalFee);
|
|
|
preparationNumVO.setPositionName(positionName);
|
|
|
preparationNumVO.setDetailList(detailList);
|