|
@@ -3,10 +3,7 @@ package com.zjugis.business.service.impl;
|
|
|
import com.alibaba.excel.util.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import com.zjugis.business.bean.dto.ContractApplyDto;
|
|
|
-import com.zjugis.business.bean.dto.ContractApplyToPayDto;
|
|
|
-import com.zjugis.business.bean.dto.ContractDto;
|
|
|
-import com.zjugis.business.bean.dto.ContractMessageDto;
|
|
|
+import com.zjugis.business.bean.dto.*;
|
|
|
import com.zjugis.business.bean.entity.Contract;
|
|
|
import com.zjugis.business.bean.entity.Project;
|
|
|
import com.zjugis.business.bean.entity.ProjectAmount;
|
|
@@ -187,8 +184,10 @@ public class ContractServiceImpl implements ContractService{
|
|
|
DeptDataPermissionRespDTO deptPermissions = deptDataPermissionRes.getCheckedData();
|
|
|
ContractMessageDto dto = new ContractMessageDto();
|
|
|
ContractApplyDto applyDto = new ContractApplyDto();
|
|
|
+ ProjectDto projectAmountDto = new ProjectDto();
|
|
|
if(!deptPermissions.getAll()){
|
|
|
dto.setDeptIds(deptPermissions.getDeptIds());
|
|
|
+ projectAmountDto.setDeptIds(deptPermissions.getDeptIds());
|
|
|
applyDto.setDeptIds(deptPermissions.getDeptIds());
|
|
|
}
|
|
|
if(infoRequest.getYear() != null) {
|
|
@@ -205,6 +204,10 @@ public class ContractServiceImpl implements ContractService{
|
|
|
resp.setNetAmount(resp.getSignAmount().subtract(yearDto.getSubAmount()));
|
|
|
resp.setSubToPay(subToPayDto.getSubToPay());
|
|
|
resp.setOutToPay(subToPayDto.getOutToPay());
|
|
|
+ ContractInfoResp cost = projectAmountService.selectCostSum(projectAmountDto);
|
|
|
+ resp.setPaymentCost(cost.getPaymentCost());
|
|
|
+ resp.setReimbursementCost(cost.getReimbursementCost());
|
|
|
+ resp.setTravelCost(cost.getTravelCost());
|
|
|
return resp;
|
|
|
}
|
|
|
|