资金管理查询界面参数修正

This commit is contained in:
gaoqr
2025-10-20 15:58:42 +08:00
parent de2bdb09c4
commit 9f8c4223ee
3 changed files with 16 additions and 4 deletions
@@ -1,5 +1,7 @@
package com.cf.imes.module.system.enums.pay; package com.cf.imes.module.system.enums.pay;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
import lombok.Getter; import lombok.Getter;
import java.util.ArrayList; import java.util.ArrayList;
@@ -120,8 +122,15 @@ public enum PayProductChannelCodeEnumNew {
* *
* @param code * @param code
*/ */
public static String describe(int code) { public static String describe(Integer code) {
return parse(code).stream() if (ObjectUtil.isNull(code)) {
return null;
}
List<PayProductChannelCodeEnumNew> parse = parse(code);
if (CollUtil.isEmpty(parse)) {
return null;
}
return parse.stream()
.map(PayProductChannelCodeEnumNew::getLabel) .map(PayProductChannelCodeEnumNew::getLabel)
.collect(Collectors.joining("+")); .collect(Collectors.joining("+"));
} }
@@ -79,7 +79,7 @@ public class IncomeExpenseServiceImpl implements IncomeExpenseService {
if (TradeTypeEnum.RECHARGE.getCode().equals(tradeType)) { if (TradeTypeEnum.RECHARGE.getCode().equals(tradeType)) {
respVO.setRechargeAmount(i.getCashAmountChange()); respVO.setRechargeAmount(i.getCashAmountChange());
respVO.setRechargeGiftAmount(i.getGiftAmountChange()); respVO.setRechargeGiftAmount(i.getGiftAmountChange());
respVO.setPaymentMethod(i.getChannelCode().getDesc()); respVO.setPaymentMethod(ObjectUtil.isNotNull(i.getChannelCode()) ? i.getChannelCode().getDesc() : null);
respVO.setOrderNo(i.getOrderNo()); respVO.setOrderNo(i.getOrderNo());
} else if (TradeTypeEnum.PRODUCT.getCode().equals(tradeType)) { } else if (TradeTypeEnum.PRODUCT.getCode().equals(tradeType)) {
@@ -12,7 +12,7 @@
AND i.organ_id = #{reqVO.organId} AND i.organ_id = #{reqVO.organId}
</if> </if>
<if test="reqVO.businessNo != null and reqVO.businessNo != ''"> <if test="reqVO.businessNo != null and reqVO.businessNo != ''">
AND i.business_no = #{reqVO.businessNo} AND i.business_no like concat('%', #{reqVO.businessNo}, '%')
</if> </if>
<if test="reqVO.orderNo != null and reqVO.orderNo != ''"> <if test="reqVO.orderNo != null and reqVO.orderNo != ''">
AND (i.order_no = #{reqVO.orderNo} or i.purchase_id = #{reqVO.orderNo}) AND (i.order_no = #{reqVO.orderNo} or i.purchase_id = #{reqVO.orderNo})
@@ -47,5 +47,8 @@
AND i.gift_amount_change = #{reqVO.giftAmount} AND i.gift_amount_change = #{reqVO.giftAmount}
AND (i.trade_type = '${@com.cf.imes.module.system.enums.pay.TradeTypeEnum@RECHARGE.code}' or i.trade_type = '${@com.cf.imes.module.system.enums.pay.TradeTypeEnum@MANUAL_ADJUST.code}') AND (i.trade_type = '${@com.cf.imes.module.system.enums.pay.TradeTypeEnum@RECHARGE.code}' or i.trade_type = '${@com.cf.imes.module.system.enums.pay.TradeTypeEnum@MANUAL_ADJUST.code}')
</if> </if>
<if test="reqVO.operator != null and reqVO.operator !=''">
AND i.creator like concat('%', #{reqVO.operator}, '%')
</if>
</select> </select>
</mapper> </mapper>