gqx 2 роки тому
батько
коміт
379147ff7a

+ 2 - 2
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/mapper/BusMarketCouponsCashUsedMapper.java

@@ -27,11 +27,11 @@ public interface BusMarketCouponsCashUsedMapper extends BaseMapper<BusMarketCoup
      * @param mobile 手机号
      * @return
      */
-    @Select("<script>select coupons_cash.name as couponsName,coupons_cash.cost from bus_market_coupons_cash_used coupons_cash_used " +
+    @Select("<script>select coupons_cash_used.id,coupons_cash.name as couponsName,coupons_cash.cost from bus_market_coupons_cash_used coupons_cash_used " +
             "inner join bus_market_coupons_cash_info coupons_cash\n" +
             "on coupons_cash.id=coupons_cash_used.coupons_id\n" +
             "where coupons_cash_used.status=1\n" +
-            "<if test='mobile != null and mobile !=\"\"'> and coupons_cash_used.mobile = #{mobile} </if>"+
+            "<if test='mobile != null and mobile !=\"\"'> and coupons_cash_used.userId = #{mobile} </if>"+
             "<if test='hotelId != null and hotelId !=\"\"'> and coupons_cash_used.hotel_id = #{hotelId} </if>"+
             "<if test='conditions >0'> and (coupons_cash.type=1 or (coupons_cash.type=2 and coupons_cash.conditions>=#{conditions}))</if>"+
             "</script>")