Browse Source

后端整合模块

detached
huangqizhen 5 months ago
parent
commit
1d4e79c071
  1. 2
      src/main/java/com/example/demo/mapper/RechargeMapper.java
  2. 5
      src/main/java/com/example/demo/mapper/RefundMapper.java

2
src/main/java/com/example/demo/mapper/RechargeMapper.java

@ -58,7 +58,7 @@ public interface RechargeMapper {
"<if test='startDate != null and endDate != null'>AND recharge.create_time BETWEEN #{startDate} AND #{endDate}</if>", "<if test='startDate != null and endDate != null'>AND recharge.create_time BETWEEN #{startDate} AND #{endDate}</if>",
"<if test='payWay!=null and payWay.length>0 '>and pay_way like concat('%',#{payWay},'%')</if>", "<if test='payWay!=null and payWay.length>0 '>and pay_way like concat('%',#{payWay},'%')</if>",
"<if test='rechargeWay!=null and rechargeWay.length>0 '>and recharge_way like concat('%',#{rechargeWay},'%')</if>", "<if test='rechargeWay!=null and rechargeWay.length>0 '>and recharge_way like concat('%',#{rechargeWay},'%')</if>",
"<if test='area!=null and area.length>0'>and area=#{area}</if>",
"<if test='area!=null and area.length>0'>and user.area=#{area}</if>",
"<if test='status!=null'>and audit.status=#{status}</if>", "<if test='status!=null'>and audit.status=#{status}</if>",
"</where>", "</where>",
"ORDER BY recharge.create_time DESC", "ORDER BY recharge.create_time DESC",

5
src/main/java/com/example/demo/mapper/RefundMapper.java

@ -76,9 +76,10 @@ public interface RefundMapper {
"LEFT JOIN audit au ON d.detail_id = au.refund_id", "LEFT JOIN audit au ON d.detail_id = au.refund_id",
"WHERE d.detail_flag = 1 and update_type = 2 ", "WHERE d.detail_flag = 1 and update_type = 2 ",
"<if test='status!=null'>and au.status=#{status}</if>", "<if test='status!=null'>and au.status=#{status}</if>",
"<if test='area!=null and area.length>0'>AND u.area = #{area}</if>",
"<if test='jwcode != null'>AND d.jwcode = #{jwcode}</if>", "<if test='jwcode != null'>AND d.jwcode = #{jwcode}</if>",
"<if test='refundType != null'>AND d.refund_type LIKE CONCAT('%', #{refundType}, '%')</if>",
"<if test='refundGoods != null'>AND d.refund_goods LIKE CONCAT('%', #{refundGoods}, '%')</if>",
"<if test='refundType != null and refundType.length>0'>AND d.refund_type LIKE CONCAT('%', #{refundType}, '%')</if>",
"<if test='refundGoods != null and refundGoods.length>0'>AND d.refund_goods LIKE CONCAT('%', #{refundGoods}, '%')</if>",
"<if test='startDate != null and endDate != null'>AND d.create_time BETWEEN #{startDate} AND #{endDate}</if>", "<if test='startDate != null and endDate != null'>AND d.create_time BETWEEN #{startDate} AND #{endDate}</if>",
"ORDER BY d.create_time DESC", "ORDER BY d.create_time DESC",
"</script>" "</script>"

Loading…
Cancel
Save