Compare commits
No commits in common. "79a441234fec277bdc60805cd6f56df9163c10c9" and "486828f9f3693aa5295af98e8e00075e7448a41d" have entirely different histories.
79a441234f
...
486828f9f3
@ -134,16 +134,17 @@ public abstract class ApproverAbstractServiceImpl implements ApproverService {
|
||||
}
|
||||
Page<PsApproverRecordVo> res = recordMapper.selectPageApproverList(pageQuery.build(), lqw, bo.getPay());
|
||||
|
||||
List<String> codes = res.getRecords().stream().map(PsApproverRecordVo::getContractCode).toList();
|
||||
|
||||
QueryWrapper<PsCompanyInfoVo> wq = Wrappers.<PsCompanyInfoVo>query()
|
||||
.eq("com.del_flag", "0")
|
||||
.eq("pcc.del_flag","0")
|
||||
.in("pcc.contract_code", codes);
|
||||
List<PsCompanyInfoVo> list = companyInfoMapper.selectContractServiceCompany(wq);
|
||||
Map<String, List<PsCompanyInfoVo>> contractCompanyMap = list.stream().collect(Collectors.groupingBy(PsCompanyInfoVo::getContractCode));
|
||||
|
||||
|
||||
if(CollectionUtils.isNotEmpty(res.getRecords())){
|
||||
List<String> codes = res.getRecords().stream().map(PsApproverRecordVo::getContractCode).toList();
|
||||
QueryWrapper<PsCompanyInfoVo> wq = Wrappers.<PsCompanyInfoVo>query()
|
||||
.eq("com.del_flag", "0")
|
||||
.eq("pcc.del_flag","0")
|
||||
.in("pcc.contract_code", codes);
|
||||
List<PsCompanyInfoVo> list = companyInfoMapper.selectContractServiceCompany(wq);
|
||||
Map<String, List<PsCompanyInfoVo>> contractCompanyMap = list.stream().collect(Collectors.groupingBy(PsCompanyInfoVo::getContractCode));
|
||||
|
||||
res.getRecords().forEach(item->{
|
||||
if (item.getContractAmount() != null)
|
||||
item.setResidualMoney(item.getContractAmount().subtract(item.getPayMoney()));
|
||||
|
@ -772,14 +772,8 @@ public class PsContractInfoServiceImpl implements IPsContractInfoService {
|
||||
detailBos.add(item);
|
||||
|
||||
for (PsContractBusinessDetailBo detailBo : item.getDetailBos()) {
|
||||
String dictLabel = "";
|
||||
if (StringUtils.isEmpty(detailBo.getBusinessProject())){
|
||||
dictLabel = detailBo.getBusinessProjectLabel();
|
||||
}else{
|
||||
contractType = dictDataService.selectDict("service_project", detailBo.getBusinessProject());
|
||||
dictLabel = contractType.getDictLabel();
|
||||
}
|
||||
|
||||
contractType = dictDataService.selectDict("service_project", detailBo.getBusinessProject());
|
||||
String dictLabel = contractType.getDictLabel();
|
||||
String remark = contractType.getRemark();
|
||||
if (!StringUtils.isEmpty(remark)){
|
||||
JSONObject jsonObject = JSONObject.parseObject(remark);
|
||||
|
Loading…
Reference in New Issue
Block a user