|
|
@ -181,6 +181,15 @@ public class ScmSpecialrebatedistributeService extends MybatisBaseService<ScmSpe |
|
|
|
qw.groupBy("sp.sid"); |
|
|
|
IPage<ScmSpecialrebatedistribute> page = PagerUtil.queryToPage(pq); |
|
|
|
IPage<ScmSpecialrebatedistributeVo> pagging = baseMapper.selectPageVo(page, qw); |
|
|
|
for (ScmSpecialrebatedistributeVo record : pagging.getRecords()) { |
|
|
|
String[] specialSids = record.getSpecialSid().split(","); |
|
|
|
int disVehCount = 0; |
|
|
|
for (String specialSid : specialSids) { |
|
|
|
int i = scmSpecialrebateVehsService.getDisVehCount(specialSid); |
|
|
|
disVehCount = disVehCount + i; |
|
|
|
} |
|
|
|
record.setDisNum(String.valueOf(disVehCount)); |
|
|
|
} |
|
|
|
PagerVo<ScmSpecialrebatedistributeVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|
return p; |
|
|
|
} |
|
|
|