| | |
| | | Integer userId = loginInfoUtil.getUserId(); |
| | | List<TLineUp> list = tLineUpService.lambdaQuery().eq(TLineUp::getStatus, 2) |
| | | .eq(TLineUp::getOptometristId, userId).list(); |
| | | if (!list.isEmpty())return ApiResult.failed("当前还有未结束的验光单"); |
| | | if (!list.isEmpty()){ |
| | | return ApiResult.failed("当前还有未结束的验光单"); |
| | | } |
| | | TLineUp lineUp = tLineUpService.getById(id); |
| | | // 获取今天凌晨00:00:00和今日23:59:59 |
| | | Date start = new Date(); |
| | |
| | | } |
| | | tLineUpService.updateBatchById(lineUps); |
| | | lineUp.setStatus(2); |
| | | lineUp.setOptometristId(userId); |
| | | tLineUpService.updateById(lineUp); |
| | | return ApiResult.success(); |
| | | } |