记得上下班打卡 | git大法好,push需谨慎

Commit b9be2f07 authored by 张国柄's avatar 张国柄

发放券+时间判断

parent a3e15c9d
......@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.time.LocalDateTime;
import java.util.List;
@Slf4j
......@@ -29,7 +30,7 @@ public class CandyMgtCouponTaskController {
public ResponseDto<String> issueCoupons() {
LambdaQueryWrapper<CandyMgtCoupon> queryWrapper = Wrappers.lambdaQuery(CandyMgtCoupon.class)
.eq(CandyMgtCoupon::getState, 0)
// TODO: 2021/8/26 时间判断
.le(CandyMgtCoupon::getEventAt, LocalDateTime.now())
.orderByAsc(CandyMgtCoupon::getEventAt);
List<CandyMgtCoupon> list = platformCandyMgtCouponService.list(queryWrapper);
int taskSize = CollectionUtils.isEmpty(list) ? -1 : list.size(), pl = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment