|
|
@@ -48,4 +48,22 @@ public interface LifeDiscountCouponStoreFriendMapper extends BaseMapper<LifeDisc
|
|
|
"left join store_img img on si.id = img.store_id and img.img_type = 1 and img.delete_flag = 0\n" +
|
|
|
"${ew.customSqlSegment}")
|
|
|
List<LifeDiscountCouponFriendRuleVo> getReceivedSendFriendCouponList(@Param(Constants.WRAPPER) QueryWrapper<LifeDiscountCouponFriendRuleVo> lifeDiscountCouponFriendRuleVoQueryWrapper);
|
|
|
+
|
|
|
+ //我赠好友
|
|
|
+ @Select("select ldcsf.created_time endDate,ldc.nominal_value nominalValue,ldc.minimum_spending_amount minimumSpendingAmount,img.img_url imgUrl,\n" +
|
|
|
+ "si.store_name storeName,\n" +
|
|
|
+ "ldc.name couponName,\n" +
|
|
|
+ "ldcsf.single_qty couponNum\n" +
|
|
|
+ "from life_discount_coupon_store_friend ldcsf\n" +
|
|
|
+ "left join life_discount_coupon ldc\n" +
|
|
|
+ "on ldc.id = ldcsf.coupon_id and ldc.delete_flag = 0\n" +
|
|
|
+
|
|
|
+ "left join store_info si\n" +
|
|
|
+ "on si.id = ldcsf.store_user_id and si.delete_flag = 0\n" +
|
|
|
+
|
|
|
+ "left join store_user su on ldcsf.store_user_id = su.store_id\n" +
|
|
|
+
|
|
|
+ "left join store_img img on si.id = img.store_id and img.img_type = 1 and img.delete_flag = 0\n" +
|
|
|
+ "${ew.customSqlSegment}")
|
|
|
+ List<LifeDiscountCouponFriendRuleVo> getReceivedSendFriendCouponListwzhy(@Param(Constants.WRAPPER) QueryWrapper<LifeDiscountCouponFriendRuleVo> lifeDiscountCouponFriendRuleVoQueryWrapper);
|
|
|
}
|