diff --git a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue index 7c683dd70..d0a96a691 100644 --- a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue +++ b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue @@ -147,9 +147,9 @@ 禁用 - + 取 消 diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java index 6789a1afd..a65f9fd58 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java @@ -20,6 +20,7 @@ import com.fuint.business.userManager.entity.LJUserGrade; import com.fuint.business.userManager.service.LJUserGradeService; import com.fuint.common.util.TokenUtil; import org.apache.commons.lang3.ObjectUtils; +import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -263,8 +264,12 @@ public class ActiveConsumptionServiceImpl extends ServiceImpl userIds; + //优惠券ids private List cardFavorableIds; + //等级ID + private List gradeIds; + //天数 + private Integer days; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/CardFavorableRecordMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/CardFavorableRecordMapper.java index c0be2bdf0..cade4337b 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/CardFavorableRecordMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/CardFavorableRecordMapper.java @@ -29,6 +29,7 @@ public interface CardFavorableRecordMapper extends BaseMapper getCardFavorableList(@Param("page")Page page,@Param("cardFavorableRecord") CardFavorableRecord cardFavorableRecord); + IPage getCardFavorableLists(@Param("page")Page page,@Param("cardFavorableRecord") CardFavorableRecord cardFavorableRecord); /** * 查询优惠券接口(小程序) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml index 991da8eeb..ba33d0fe9 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml @@ -55,6 +55,33 @@ order by cfr.create_time DESC + + - \ No newline at end of file + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java index 52b0ef501..66273d518 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java @@ -20,6 +20,7 @@ public interface LJUserMapper extends BaseMapper { */ public IPage selectUserList(Page page, @Param("user") LJUserVo user); public IPage getUserList(Page page, @Param("user") LJUserVo user); + public List getUserLists(@Param("user") LJUserVo user); /** * 根据店铺id查询所有会员信息 diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml index 135c28ab7..4b7a9548a 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml @@ -31,7 +31,62 @@ LEFT JOIN mt_user_balance mub ON mu.id = mub.mt_user_id left join oil_order oo on mu.id = oo.user_id - oo.create_time <= DATE_SUB(NOW(), INTERVAL 14 DAY) + oo.create_time <= DATE_SUB(NOW(), INTERVAL #{days} DAY) + + and mub.chain_store_id = #{user.chainStoreId} + + + and mub.store_id = #{user.storeId} + + + and mu.mobile like concat('%', #{user.mobile}, '%') + + + and mu.user_no like concat('%', #{user.userNo}, '%') + + + and mu.name like concat('%', #{user.name}, '%') + + + and mub.grade_id = #{user.gradeId} + + + and mu.official = #{user.official} + + + and mub.card_balance = 0 + + + and mub.card_balance != 0 + + + and date_format(mu.create_time,'%y%m%d') >= date_format(#{user.params.beginTime},'%y%m%d') + + + and date_format(mu.create_time,'%y%m%d') <= date_format(#{user.params.endTime},'%y%m%d') + + + GROUP BY mu.id + ORDER BY oo.create_time desc + + +