|
@@ -27,11 +27,11 @@ public interface BusMarketCouponsCashUsedMapper extends BaseMapper<BusMarketCoup
|
|
|
* @param mobile 手机号
|
|
* @param mobile 手机号
|
|
|
* @return
|
|
* @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" +
|
|
"inner join bus_market_coupons_cash_info coupons_cash\n" +
|
|
|
"on coupons_cash.id=coupons_cash_used.coupons_id\n" +
|
|
"on coupons_cash.id=coupons_cash_used.coupons_id\n" +
|
|
|
"where coupons_cash_used.status=1\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='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>"+
|
|
"<if test='conditions >0'> and (coupons_cash.type=1 or (coupons_cash.type=2 and coupons_cash.conditions>=#{conditions}))</if>"+
|
|
|
"</script>")
|
|
"</script>")
|