| | |
| | | public R<List<HospitalCollectTotalUpDto>> tanscollecttotal2(@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)LocalDate date) { |
| | | SysUser sysUser = SecurityUtils.getLoginUser().getUser(); |
| | | //先获取医院ids |
| | | List<MwCollectRecord> list = collectRecordService.lambdaQuery().eq(date!=null,MwCollectRecord::getCheckoutTime,date).eq(MwCollectRecord::getCheckoutUserId, sysUser.getUserId()).groupBy(MwCollectRecord::getDepartmentId).list(); |
| | | List<MwCollectRecord> list = collectRecordService.lambdaQuery().ge(MwCollectRecord::getCheckoutTime, date.atStartOfDay()) |
| | | .le(MwCollectRecord::getCheckoutTime, date.atTime(23,59,59)) |
| | | .eq(MwCollectRecord::getCheckoutUserId, sysUser.getUserId()).groupBy(MwCollectRecord::getDepartmentId).list(); |
| | | //循环医院,然后放入 |
| | | List<HospitalCollectTotalUpDto> list1 = new ArrayList<>(); |
| | | for (MwCollectRecord mwCollectRecord : list) { |
| | |
| | | return R.ok(); |
| | | } |
| | | MwTransitCar byId = carService.getById(one.getCarId()); |
| | | SysUser one1 = userService.lambdaQuery().eq(SysUser::getCarId, byId.getId()).one(); |
| | | SysUser one1 = userService.lambdaQuery().eq(SysUser::getCarId, byId.getId()).last("limit 1").one(); |
| | | CarDto carDto = new CarDto(); |
| | | carDto.setLicensePlateNumber(byId.getLicensePlateNumber()); |
| | | carDto.setUserName(one1.getUserName()); |