mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 09:11:52 +08:00
code review 支付问题
This commit is contained in:
parent
67aaf28832
commit
9a5f085369
@ -109,6 +109,7 @@ public class PayAppController {
|
|||||||
// 得到所有的应用编号,查出所有的通道
|
// 得到所有的应用编号,查出所有的通道
|
||||||
Collection<Long> payAppIds = CollectionUtils.convertList(pageResult.getList(), PayAppDO::getId);
|
Collection<Long> payAppIds = CollectionUtils.convertList(pageResult.getList(), PayAppDO::getId);
|
||||||
List<PayChannelDO> channels = channelService.getChannelListByAppIds(payAppIds);
|
List<PayChannelDO> channels = channelService.getChannelListByAppIds(payAppIds);
|
||||||
|
// TODO @aquan:可以基于 appId 简历一个 multiMap。这样下面,直接 get 到之后,CollUtil buildSet 即可
|
||||||
Iterator<PayChannelDO> iterator = channels.iterator();
|
Iterator<PayChannelDO> iterator = channels.iterator();
|
||||||
|
|
||||||
// 得到所有的商户信息
|
// 得到所有的商户信息
|
||||||
|
@ -184,7 +184,6 @@ public class PayAppServiceImpl implements PayAppService {
|
|||||||
if (refundMapper.selectCount(appId, PayRefundStatusEnum.CREATE.getStatus()) > 0) {
|
if (refundMapper.selectCount(appId, PayRefundStatusEnum.CREATE.getStatus()) > 0) {
|
||||||
throw exception(PAY_APP_EXIST_TRANSACTION_ORDER_CANT_DELETE);
|
throw exception(PAY_APP_EXIST_TRANSACTION_ORDER_CANT_DELETE);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user