费用结算报表
This commit is contained in:
parent
7ad03dbdd0
commit
1a1febf736
|
|
@ -122,6 +122,20 @@ public class SltAgreementInfoController extends BaseController {
|
|||
unitNames.add(info.getUnitName());
|
||||
projectNames.add(info.getProjectName());
|
||||
SltInfoVo vo = sltAgreementInfoService.getSltInfo(info);
|
||||
if (vo == null) {
|
||||
vo = new SltInfoVo();
|
||||
vo.setLeaseCost(BigDecimal.ZERO);
|
||||
vo.setRepairCost(BigDecimal.ZERO);
|
||||
vo.setScrapCost(BigDecimal.ZERO);
|
||||
vo.setLoseCost(BigDecimal.ZERO);
|
||||
vo.setReductionCost(BigDecimal.ZERO);
|
||||
vo.setLeaseList(Collections.emptyList());
|
||||
vo.setRepairList(Collections.emptyList());
|
||||
vo.setScrapList(Collections.emptyList());
|
||||
vo.setLoseList(Collections.emptyList());
|
||||
vo.setReductionList(Collections.emptyList());
|
||||
vo.setRelations(Collections.emptyList());
|
||||
}
|
||||
dataList.add(vo);
|
||||
if (info.getAgreementId() != null) {
|
||||
agreementId = info.getAgreementId();
|
||||
|
|
|
|||
|
|
@ -131,15 +131,17 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
|
|||
List<SltAgreementInfo> scrapList = getScrapList(info);
|
||||
//丢失费用列表
|
||||
List<SltAgreementInfo> loseList = getLoseList(info);
|
||||
//费用减免列表
|
||||
List<SltAgreementReduce> reductionList = getReductionList(info);
|
||||
|
||||
if (CollectionUtils.isEmpty(leaseList) && CollectionUtils.isEmpty(repairList)
|
||||
&& CollectionUtils.isEmpty(scrapList) && CollectionUtils.isEmpty(loseList))
|
||||
&& CollectionUtils.isEmpty(scrapList) && CollectionUtils.isEmpty(loseList)
|
||||
&& CollectionUtils.isEmpty(reductionList))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
//费用减免列表
|
||||
List<SltAgreementReduce> reductionList = getReductionList(info);
|
||||
|
||||
sltInfoVo.setLeaseList(leaseList);
|
||||
sltInfoVo.setRepairList(repairList);
|
||||
sltInfoVo.setScrapList(scrapList);
|
||||
|
|
|
|||
|
|
@ -811,6 +811,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="projectId != null and projectId != ''">
|
||||
and bp.pro_id = #{projectId}
|
||||
</if>
|
||||
<if test="startTime != null and endTime != null">
|
||||
and saa.create_time between #{startTime} and #{endTime}
|
||||
</if>
|
||||
|
||||
<choose>
|
||||
<when test="sltStatus == '1'.toString()">
|
||||
and saa.status = '1'
|
||||
|
|
|
|||
Loading…
Reference in New Issue