领取时间 范围校验
This commit is contained in:
@@ -55,10 +55,8 @@ public class MkShopCouponRecordServiceImpl extends ServiceImpl<MkShopCouponRecor
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public Page<MkShopCouponRecordDTO> getRecord(String search, MkShopCouponRecordDTO mkShopCouponRecordDTO) {
|
||||
public Page<MkShopCouponRecordDTO> getRecord(String search, MkShopCouponRecordDTO mkShopCouponRecordDTO, String startTime, String endTime) {
|
||||
Map<Long, UserInfo> userInfoMap = new HashMap<>();
|
||||
if (StrUtil.isNotBlank(search)) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
@@ -81,6 +79,7 @@ public class MkShopCouponRecordServiceImpl extends ServiceImpl<MkShopCouponRecor
|
||||
.eq(MkShopCouponRecord::getCouponId, mkShopCouponRecordDTO.getCouponId())
|
||||
.eq(MkShopCouponRecord::getIsDel, 0)
|
||||
.eq(MkShopCouponRecord::getStatus, mkShopCouponRecordDTO.getStatus())
|
||||
.between(MkShopCouponRecord::getCreateTime, startTime, endTime)
|
||||
.orderBy(MkShopCouponRecord::getCreateTime).desc();
|
||||
if (CollUtil.isNotEmpty(userInfoMap)) {
|
||||
recordQueryWrapper.in(MkShopCouponRecord::getUserId, userInfoMap.keySet());
|
||||
|
||||
Reference in New Issue
Block a user