Commit f68e09af by 程裕兵

feat:count channel

parent a80bd8f3
......@@ -112,10 +112,9 @@ public class PartyToMerchantRpService extends
this.baseMapper.delete(wrapper);
}
public long countAll(){
public Integer countByChannelNo(String channelNo) {
QueryWrapper<PartyToMerchant> wrapper = new QueryWrapper<>();
wrapper.eq(PartyToMerchant.CHANNEL_NO, channelNo);
return this.baseMapper.selectCount(wrapper);
}
}
......@@ -571,7 +571,7 @@ public class AxfServiceImpl implements AxfService {
Future<Integer> total = ((ThreadPoolTaskExecutor) executor).submit(
() -> studioAxfApplyRpService.countDistinctStudioId());
Future<Integer> success = ((ThreadPoolTaskExecutor) executor).submit(
() -> ((Long) partyToMerchantRpService.countAll()).intValue());
() -> (partyToMerchantRpService.countByChannelNo(AxfConst.CHANNEL_NO)));
try {
return AggStudioAxfApplyVO.builder().total(total.get(5, TimeUnit.SECONDS))
.success(success.get(5, TimeUnit.SECONDS)).build();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment