Merge remote-tracking branch 'origin/master'
| | |
| | | .orderByDesc(TLineUp::getCreateTime) |
| | | .last("LIMIT 1")); |
| | | TLineUpVO tLineUpVO = new TLineUpVO(); |
| | | if (lineUp!=null){ |
| | | BeanUtils.copyProperties(lineUp, tLineUpVO); |
| | | |
| | | } |
| | | long count = tLineUpService.count(Wrappers.lambdaQuery(TLineUp.class) |
| | | .eq(TLineUp::getStoreId, storeId) |
| | | .eq(TLineUp::getStatus, 1) |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.temporal.ChronoUnit; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | private LoginInfoUtil loginInfoUtil; |
| | | @Autowired |
| | | private TOptometryService optometryService; |
| | | |
| | | @ApiOperation(value = "核算订单分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public ApiResult<PageInfo<TOrderVO>> pageList(@RequestBody TOrderAccountingQuery query) { |
| | |
| | | @Resource |
| | | private TLineUpService lineUpService; |
| | | |
| | | // 每天晚上9点执行的定时任务 |
| | | // 每天晚上11点执行的定时任务 |
| | | @Scheduled(cron = "0 0 23 * * ?") |
| | | public void taskNineDay() { |
| | | try { |
| | | System.err.println("执行每天晚上定时任务 排号修改状态"); |
| | | List<TLineUp> list = lineUpService.lambdaQuery().eq(TLineUp::getStatus, 1).list(); |
| | | List<TLineUp> list = lineUpService.lambdaQuery().ne(TLineUp::getStatus, 3).list(); |
| | | for (TLineUp tLineUp : list) { |
| | | tLineUp.setStatus(5); |
| | | } |