| | |
| | | package com.zy.asrs.wms.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.wms.asrs.mapper.TaskMapper; |
| | | import com.zy.asrs.wms.asrs.entity.Task; |
| | | import com.zy.asrs.wms.asrs.service.TaskDetlService; |
| | | import com.zy.asrs.wms.asrs.service.TaskService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | @Service("taskService") |
| | | public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService { |
| | | |
| | | @Autowired |
| | | private TaskDetlService taskDetlService; |
| | | |
| | | @Override |
| | | public List<Task> getByOrderDetlId(Long orderDetlId) { |
| | | ArrayList<Task> tasks = new ArrayList<>(); |
| | | List<Long> taskIds = taskDetlService.getTaskIdsByDetlId(orderDetlId); |
| | | if (!taskIds.isEmpty()) { |
| | | return this.list(new LambdaQueryWrapper<Task>().in(Task::getId, taskIds)); |
| | | } |
| | | return tasks; |
| | | } |
| | | |
| | | @Override |
| | | public List<Task> selectWaitWaveOut(List<Long> waveIds) { |
| | | return this.baseMapper.selectWaitWaveOut(waveIds); |
| | | } |
| | | } |
| | | package com.zy.asrs.wms.asrs.service.impl;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.zy.asrs.wms.asrs.mapper.TaskMapper;
|
| | | import com.zy.asrs.wms.asrs.entity.Task;
|
| | | import com.zy.asrs.wms.asrs.service.TaskDetlService;
|
| | | import com.zy.asrs.wms.asrs.service.TaskService;
|
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.Collections;
|
| | | import java.util.List;
|
| | |
|
| | | @Service("taskService")
|
| | | public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {
|
| | |
|
| | | @Autowired
|
| | | private TaskDetlService taskDetlService;
|
| | |
|
| | | @Override
|
| | | public List<Task> getByOrderDetlId(Long orderDetlId) {
|
| | | ArrayList<Task> tasks = new ArrayList<>();
|
| | | List<Long> taskIds = taskDetlService.getTaskIdsByDetlId(orderDetlId);
|
| | | if (!taskIds.isEmpty()) {
|
| | | return this.list(new LambdaQueryWrapper<Task>().in(Task::getId, taskIds));
|
| | | }
|
| | | return tasks;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Task> selectWaitWaveOut(List<Long> waveIds) {
|
| | | return this.baseMapper.selectWaitWaveOut(waveIds);
|
| | | }
|
| | | }
|