生日有礼问题
This commit is contained in:
@@ -27,12 +27,6 @@ public class BirthdayGiftController {
|
||||
@Resource
|
||||
private MkBirthdayGiftService service;
|
||||
|
||||
|
||||
@GetMapping("/test")
|
||||
public CzgResult<String> test() {
|
||||
service.deliver();
|
||||
return CzgResult.success();
|
||||
}
|
||||
/**
|
||||
* 配置信息获取
|
||||
* 权限标识: activate:list
|
||||
|
||||
@@ -104,7 +104,8 @@ public class MkBirthdayGiftServiceImpl extends ServiceImpl<MkBirthdayGiftMapper,
|
||||
|
||||
@Override
|
||||
public Page<MkBirthdayGiftRecordVO> getRecord(Long shopId, String key, LocalDateTime dateTime) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper().select()
|
||||
QueryWrapper queryWrapper = new MyQueryWrapper()
|
||||
.selectAll(MkBirthdayGiftRecord.class)
|
||||
.select(ShopUser::getNickName, ShopUser::getPhone)
|
||||
.eq(MkBirthdayGiftRecord::getMainShopId, shopId)
|
||||
.leftJoin(ShopUser.class).on(ShopUser::getId, MkBirthdayGiftRecord::getShopUserId);
|
||||
@@ -165,8 +166,7 @@ public class MkBirthdayGiftServiceImpl extends ServiceImpl<MkBirthdayGiftMapper,
|
||||
shopTemplate = null;
|
||||
}
|
||||
ShopInfo shopInfo = shopInfoService.getById(birthdayGift.getMainShopId());
|
||||
FunUtils.safeRunVoid(() -> {
|
||||
JSONArray.parseArray(birthdayGift.getConfigList()).toJavaList(MkBirthdayGiftConfig.class).forEach(config -> {
|
||||
FunUtils.safeRunVoid(() -> JSONArray.parseArray(birthdayGift.getConfigList()).toJavaList(MkBirthdayGiftConfig.class).forEach(config -> {
|
||||
LocalDate current = DateUtil.date().toLocalDateTime().toLocalDate();
|
||||
if ("day".equals(config.getDeliverDate())) {
|
||||
if (config.getDeliverTime() != 1) {
|
||||
@@ -223,8 +223,7 @@ public class MkBirthdayGiftServiceImpl extends ServiceImpl<MkBirthdayGiftMapper,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user