mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
资金管理查询界面参数修正
This commit is contained in:
+11
-2
@@ -1,5 +1,7 @@
|
||||
package com.cf.imes.module.system.enums.pay;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -120,8 +122,15 @@ public enum PayProductChannelCodeEnumNew {
|
||||
*
|
||||
* @param code
|
||||
*/
|
||||
public static String describe(int code) {
|
||||
return parse(code).stream()
|
||||
public static String describe(Integer code) {
|
||||
if (ObjectUtil.isNull(code)) {
|
||||
return null;
|
||||
}
|
||||
List<PayProductChannelCodeEnumNew> parse = parse(code);
|
||||
if (CollUtil.isEmpty(parse)) {
|
||||
return null;
|
||||
}
|
||||
return parse.stream()
|
||||
.map(PayProductChannelCodeEnumNew::getLabel)
|
||||
.collect(Collectors.joining("+"));
|
||||
}
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ public class IncomeExpenseServiceImpl implements IncomeExpenseService {
|
||||
if (TradeTypeEnum.RECHARGE.getCode().equals(tradeType)) {
|
||||
respVO.setRechargeAmount(i.getCashAmountChange());
|
||||
respVO.setRechargeGiftAmount(i.getGiftAmountChange());
|
||||
respVO.setPaymentMethod(i.getChannelCode().getDesc());
|
||||
respVO.setPaymentMethod(ObjectUtil.isNotNull(i.getChannelCode()) ? i.getChannelCode().getDesc() : null);
|
||||
respVO.setOrderNo(i.getOrderNo());
|
||||
|
||||
} else if (TradeTypeEnum.PRODUCT.getCode().equals(tradeType)) {
|
||||
|
||||
+4
-1
@@ -12,7 +12,7 @@
|
||||
AND i.organ_id = #{reqVO.organId}
|
||||
</if>
|
||||
<if test="reqVO.businessNo != null and reqVO.businessNo != ''">
|
||||
AND i.business_no = #{reqVO.businessNo}
|
||||
AND i.business_no like concat('%', #{reqVO.businessNo}, '%')
|
||||
</if>
|
||||
<if test="reqVO.orderNo != null and 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.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 test="reqVO.operator != null and reqVO.operator !=''">
|
||||
AND i.creator like concat('%', #{reqVO.operator}, '%')
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user