mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 10:37:41 +08:00 
			
		
		
		
	Merge branch 'master-jdk21' of https://gitee.com/zhijiantianya/ruoyi-vue-pro
# Conflicts: # yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/app/PayAppController.java
This commit is contained in:
		| @ -1,6 +1,7 @@ | |||||||
| package cn.iocoder.yudao.module.pay.controller.admin.app; | package cn.iocoder.yudao.module.pay.controller.admin.app; | ||||||
|  |  | ||||||
| import cn.hutool.core.collection.CollUtil; | import cn.hutool.core.collection.CollUtil; | ||||||
|  | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | ||||||
| import cn.iocoder.yudao.framework.common.pojo.CommonResult; | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | ||||||
| import cn.iocoder.yudao.framework.common.pojo.PageResult; | import cn.iocoder.yudao.framework.common.pojo.PageResult; | ||||||
| import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; | ||||||
| @ -89,9 +90,10 @@ public class PayAppController { | |||||||
|             return success(PageResult.empty()); |             return success(PageResult.empty()); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         // 得到所有的应用编号,查出所有的渠道 |         // 得到所有的应用编号,查出所有的渠道,并移除未启用的渠道 | ||||||
|         Collection<Long> appIds = convertList(pageResult.getList(), PayAppDO::getId); |         List<PayChannelDO> channels = channelService.getChannelListByAppIds( | ||||||
|         List<PayChannelDO> channels = channelService.getChannelListByAppIds(appIds); |                 convertList(pageResult.getList(), PayAppDO::getId)); | ||||||
|  |         channels.removeIf(channel -> !CommonStatusEnum.ENABLE.getStatus().equals(channel.getStatus())); | ||||||
|  |  | ||||||
|         // 拼接后返回 |         // 拼接后返回 | ||||||
|         return success(PayAppConvert.INSTANCE.convertPage(pageResult, channels)); |         return success(PayAppConvert.INSTANCE.convertPage(pageResult, channels)); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV