| | |
| | | TLineUp lineUp = tLineUpService.getOne(Wrappers.lambdaQuery(TLineUp.class) |
| | | .eq(TLineUp::getUserId, userId) |
| | | .eq(TLineUp::getStoreId, storeId) |
| | | .likeRight(TLineUp::getCreateTime, LocalDate.now()) |
| | | .eq(TLineUp::getStatus, 1) |
| | | .orderByDesc(TLineUp::getCreateTime) |
| | | .last("LIMIT 1")); |
| | | TLineUpVO tLineUpVO = new TLineUpVO(); |
| | | BeanUtils.copyProperties(lineUp, tLineUpVO); |
| | | |
| | | if (lineUp!=null){ |
| | | BeanUtils.copyProperties(lineUp, tLineUpVO); |
| | | } |
| | | long count = tLineUpService.count(Wrappers.lambdaQuery(TLineUp.class) |
| | | .eq(TLineUp::getStoreId, storeId) |
| | | .eq(TLineUp::getStatus, 1) |