| | |
| | | package com.sinata.system.service.impl; |
| | | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.idev.excel.FastExcel; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.sinata.common.entity.PageDTO; |
| | | import com.sinata.common.utils.BeanUtils; |
| | | import com.sinata.common.utils.CollUtils; |
| | | import com.sinata.common.utils.DateUtils; |
| | | import com.sinata.common.utils.StringUtils; |
| | | import com.sinata.system.domain.MwCheckoutRecord; |
| | | import com.sinata.system.domain.dto.CollectTotalUpDto; |
| | |
| | | import com.sinata.system.domain.vo.MwCheckoutRecordVO; |
| | | import com.sinata.system.domain.vo.MwCollectRecordVO; |
| | | import com.sinata.system.domain.vo.MwMedicalWasteBoxVO; |
| | | import com.sinata.system.domain.vo.MwTransitCarWarningVO; |
| | | import com.sinata.system.domain.vo.MwTransitRecordVO; |
| | | import com.sinata.system.domain.vo.TransformVO; |
| | | import com.sinata.system.mapper.MwCheckoutRecordMapper; |
| | |
| | | return this.baseMapper.totalUp(date,departmentId); |
| | | } |
| | | @Override |
| | | public List<CollectTotalUpDto> totalUp4(Long departmentId) { |
| | | return this.baseMapper.totalUp4(departmentId); |
| | | } |
| | | @Override |
| | | public List<CollectTotalUpDto> totalUp2(LocalDate date1,LocalDate date2, Long departmentId) { |
| | | return this.baseMapper.totalUp2(date1,date2,departmentId); |
| | | } |
| | | @Override |
| | | public List<CollectTotalUpDto> totalUp5( Long departmentId) { |
| | | return this.baseMapper.totalUp5(departmentId); |
| | | } |
| | | @Override |
| | | public List<CollectTotalUpDto> totalUp3(LocalDate date1,LocalDate date2, Long departmentId) { |
| | | return this.baseMapper.totalUp3(date1,date2,departmentId); |
| | | } |
| | | @Override |
| | | public List<CollectTotalUpDto> totalUp1( Long outId) { |
| | | return this.baseMapper.totalUp1(outId); |
| | | } |
| | | |
| | | @Override |
| | | public List<CollectTotalUpDto> totalUp6( Long outId) { |
| | | return this.baseMapper.totalUp6(outId); |
| | | } |
| | | /** |
| | | * 转运记录详情 |
| | | * |
| | | * @param departmentId |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public MwCheckoutRecordVO hospitalDetail(Long departmentId) { |
| | | return baseMapper.hospitalDetail(departmentId); |
| | | public MwCheckoutRecordVO hospitalDetail(Long id) { |
| | | return baseMapper.hospitalDetail(id); |
| | | } |
| | | |
| | | /** |
| | |
| | | String treeCode = sysDepartmentService.getTreeCodeByDepartmentId(query.getDepartmentId()); |
| | | if (StringUtils.isBlank(treeCode)) { |
| | | return PageDTO.empty(0L, 0L); |
| | | } |
| | | if (CollUtils.isNotEmpty(query.getStartTime())) { |
| | | query.setStartTimeStart(DateUtil.parse(query.getStartTime().get(0), DateUtils.YYYY_MM_DD_HH_MM_SS)); |
| | | query.setStartTimeEnd(DateUtil.parse(query.getStartTime().get(1), DateUtils.YYYY_MM_DD_HH_MM_SS)); |
| | | } |
| | | if (CollUtils.isNotEmpty(query.getEndTime())) { |
| | | query.setEndTimeStart(DateUtil.parse(query.getEndTime().get(0), DateUtils.YYYY_MM_DD_HH_MM_SS)); |
| | | query.setEndTimeEnd(DateUtil.parse(query.getEndTime().get(1), DateUtils.YYYY_MM_DD_HH_MM_SS)); |
| | | } |
| | | Page<MwTransitRecordVO> page = baseMapper.transitPageList(new Page<>(query.getPageCurr(), query.getPageSize()), query, treeCode); |
| | | return PageDTO.of(page); |
| | |
| | | String treeCode = sysDepartmentService.getTreeCodeByDepartmentId(query.getDepartmentId()); |
| | | return baseMapper.getRegulationReportList(query, treeCode); |
| | | } |
| | | |
| | | /** |
| | | * 车辆转运异常预警 |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<MwTransitCarWarningVO> queryWarningList() { |
| | | return baseMapper.queryWarningList(); |
| | | } |
| | | } |