| | |
| | | package com.zy.asrs.wms.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.wms.asrs.entity.*; |
| | | import com.zy.asrs.wms.asrs.entity.statistics.InformationTop; |
| | | import com.zy.asrs.wms.asrs.mapper.TaskDetlLogMapper; |
| | | import com.zy.asrs.wms.asrs.service.TaskDetlFieldLogService; |
| | | import com.zy.asrs.wms.asrs.service.TaskDetlLogService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | @Service("taskDetlLogService") |
| | | public class TaskDetlLogServiceImpl extends ServiceImpl<TaskDetlLogMapper, TaskDetlLog> implements TaskDetlLogService { |
| | | |
| | | @Autowired |
| | | private TaskDetlFieldLogService taskDetlFieldLogService; |
| | | |
| | | @Override |
| | | public List<TaskDetlLog> getTaskDetlLogByTaskId(Long taskId) { |
| | | List<TaskDetlLog> taskDetlLogs = this.list(new LambdaQueryWrapper<TaskDetlLog>().eq(TaskDetlLog::getTaskId, taskId)); |
| | | for (TaskDetlLog taskDetlLog : taskDetlLogs) { |
| | | List<TaskDetlFieldLog> list = taskDetlFieldLogService.list(new LambdaQueryWrapper<TaskDetlFieldLog>().eq(TaskDetlFieldLog::getDetlId, taskDetlLog.getId())); |
| | | taskDetlLog.syncField(list); |
| | | } |
| | | return taskDetlLogs; |
| | | } |
| | | |
| | | @Override |
| | | public List<Long> getTaskIdsByDetlId(Long detlId) { |
| | | return this.baseMapper.getTaskIdsByDetlId(detlId); |
| | | } |
| | | |
| | | @Override |
| | | public List<TaskDetlLog> parseDetl(List<TaskDetlLog> list) { |
| | | for (TaskDetlLog taskDetlLog : list) { |
| | | List<TaskDetlFieldLog> taskDetlFieldLogList = taskDetlFieldLogService.list(new LambdaQueryWrapper<TaskDetlFieldLog>().eq(TaskDetlFieldLog::getDetlId, taskDetlLog.getId())); |
| | | taskDetlLog.syncField(taskDetlFieldLogList); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<InformationTop> getInformationTopIn(Integer top) { |
| | | return this.baseMapper.getInformationTopIn(top); |
| | | } |
| | | |
| | | @Override |
| | | public List<InformationTop> getInformationTopOut(Integer top) { |
| | | return this.baseMapper.getInformationTopOut(top); |
| | | } |
| | | } |
| | | package com.zy.asrs.wms.asrs.service.impl;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.zy.asrs.wms.asrs.entity.*;
|
| | | import com.zy.asrs.wms.asrs.entity.statistics.InformationTop;
|
| | | import com.zy.asrs.wms.asrs.mapper.TaskDetlLogMapper;
|
| | | import com.zy.asrs.wms.asrs.service.TaskDetlFieldLogService;
|
| | | import com.zy.asrs.wms.asrs.service.TaskDetlLogService;
|
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.util.Collections;
|
| | | import java.util.List;
|
| | |
|
| | | @Service("taskDetlLogService")
|
| | | public class TaskDetlLogServiceImpl extends ServiceImpl<TaskDetlLogMapper, TaskDetlLog> implements TaskDetlLogService {
|
| | |
|
| | | @Autowired
|
| | | private TaskDetlFieldLogService taskDetlFieldLogService;
|
| | |
|
| | | @Override
|
| | | public List<TaskDetlLog> getTaskDetlLogByTaskId(Long taskId) {
|
| | | List<TaskDetlLog> taskDetlLogs = this.list(new LambdaQueryWrapper<TaskDetlLog>().eq(TaskDetlLog::getTaskId, taskId));
|
| | | for (TaskDetlLog taskDetlLog : taskDetlLogs) {
|
| | | List<TaskDetlFieldLog> list = taskDetlFieldLogService.list(new LambdaQueryWrapper<TaskDetlFieldLog>().eq(TaskDetlFieldLog::getDetlId, taskDetlLog.getId()));
|
| | | taskDetlLog.syncField(list);
|
| | | }
|
| | | return taskDetlLogs;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Long> getTaskIdsByDetlId(Long detlId) {
|
| | | return this.baseMapper.getTaskIdsByDetlId(detlId);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<TaskDetlLog> parseDetl(List<TaskDetlLog> list) {
|
| | | for (TaskDetlLog taskDetlLog : list) {
|
| | | List<TaskDetlFieldLog> taskDetlFieldLogList = taskDetlFieldLogService.list(new LambdaQueryWrapper<TaskDetlFieldLog>().eq(TaskDetlFieldLog::getDetlId, taskDetlLog.getId()));
|
| | | taskDetlLog.syncField(taskDetlFieldLogList);
|
| | | }
|
| | | return list;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<InformationTop> getInformationTopIn(Integer top) {
|
| | | return this.baseMapper.getInformationTopIn(top);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<InformationTop> getInformationTopOut(Integer top) {
|
| | | return this.baseMapper.getInformationTopOut(top);
|
| | | }
|
| | | }
|