| | |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @GetMapping(value = "/getUserLineUpByStoreId") |
| | | public ApiResult getUserLineUpByStoreId(@RequestParam Integer storeId) { |
| | | long userId = loginInfoUtil.getUserId(); |
| | | List<Integer> list = Arrays.asList(1, 2); |
| | | |
| | | TLineUp lineUp = tLineUpService.getOne(Wrappers.lambdaQuery(TLineUp.class) |
| | | .eq(TLineUp::getUserId, userId) |
| | | .eq(TLineUp::getStoreId, storeId) |
| | | .eq(TLineUp::getStatus, 1) |
| | | .in(TLineUp::getStatus, list) |
| | | .orderByDesc(TLineUp::getCreateTime) |
| | | .last("LIMIT 1")); |
| | | TLineUpVO tLineUpVO = new TLineUpVO(); |