|
@@ -217,14 +217,14 @@ public class TBDingServiceImpl extends ServiceImpl<TBDingMapper, TBDing> impleme
|
|
SopCrmInfo sopCrmInfo = tbCrmService.findSopCrmInfoBySop(sopNo);
|
|
SopCrmInfo sopCrmInfo = tbCrmService.findSopCrmInfoBySop(sopNo);
|
|
Long serviceUnitId = sopCrmInfo.getServiceUnitId();
|
|
Long serviceUnitId = sopCrmInfo.getServiceUnitId();
|
|
DingElementResult dingElementResult = this.baseMapper.findDingResultByUserId(userId, serviceUnitId);
|
|
DingElementResult dingElementResult = this.baseMapper.findDingResultByUserId(userId, serviceUnitId);
|
|
- Integer reissueCardCount = dingElementResult.getReissueCardCount();
|
|
|
|
|
|
+ Integer reissueCardCount = dingElementResult!=null?dingElementResult.getReissueCardCount():0;
|
|
int applyCount = this.baseMapper.findDingExceptionApplyCount(userId, sopNo);
|
|
int applyCount = this.baseMapper.findDingExceptionApplyCount(userId, sopNo);
|
|
|
|
|
|
DingStatisticResult dingStatisticResult = new DingStatisticResult();
|
|
DingStatisticResult dingStatisticResult = new DingStatisticResult();
|
|
dingStatisticResult.setDingFormList(formList);
|
|
dingStatisticResult.setDingFormList(formList);
|
|
dingStatisticResult.setWorkDays(workCount);
|
|
dingStatisticResult.setWorkDays(workCount);
|
|
dingStatisticResult.setExceptionCount(exceptionCount);
|
|
dingStatisticResult.setExceptionCount(exceptionCount);
|
|
- dingStatisticResult.setRemainCount(reissueCardCount - applyCount);
|
|
|
|
|
|
+ dingStatisticResult.setRemainCount(reissueCardCount!=0?reissueCardCount - applyCount:0);
|
|
return dingStatisticResult;
|
|
return dingStatisticResult;
|
|
}
|
|
}
|
|
|
|
|