linxk 2 долоо хоног өмнө
parent
commit
54d08fe0d9

+ 1 - 1
cif-service/src/main/java/com/txz/cif/dao/RechargeRecordMapper.java

@@ -17,7 +17,7 @@ public interface RechargeRecordMapper extends Mapper<RechargeRecord> {
     @SelectProvider(type = RechargeRecordMapperImpl.class, method = "pageList")
     List<RechargeRecordBO> pageList(RecordParam param);
 
-    @Select("SELECT COUNT(DISTINCT user_id)  c_recharge_record WHERE status = #{status} and create_time > #{startTime} and create_time < #{endTime}")
+    @Select("SELECT COUNT(DISTINCT user_id) FROM c_recharge_record WHERE status = #{status} and create_time > #{startTime} and create_time < #{endTime}")
     Integer countByUserId(HashMap map);
 
     @Select("SELECT SUM(amount) FROM   c_recharge_record WHERE status = #{status} and create_time > #{startTime} and create_time < #{endTime}")

+ 1 - 1
cif-service/src/main/java/com/txz/cif/dao/WithdrawRecordMapper.java

@@ -9,7 +9,7 @@ import java.util.HashMap;
 
 public interface WithdrawRecordMapper extends Mapper<WithdrawRecord> {
 
-    @Select("SELECT COUNT(DISTINCT user_id)  c_withdraw_record WHERE status = #{status} and create_time > #{startTime} and create_time < #{endTime}")
+    @Select("SELECT COUNT(DISTINCT user_id) FROM  c_withdraw_record WHERE status = #{status} and create_time > #{startTime} and create_time < #{endTime}")
     Integer countByUserId(HashMap map);
 
     @Select("SELECT SUM(amount) FROM   c_withdraw_record WHERE status = #{status} and create_time > #{startTime} and create_time < #{endTime}")

+ 1 - 1
cif-service/src/main/resources/mapper/RedEnvelopeMapper.xml

@@ -76,7 +76,7 @@
       and status = 2
     </if>
     <if test="bizType != null">
-      and bizType = #{bizType}
+      and biz_type = #{bizType}
     </if>
     and create_time >= #{startTime} and #{endTime} >=  create_time
     </select>