| | |
| | | package com.zy.asrs.wms.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.wms.asrs.entity.TaskDetl; |
| | | import com.zy.asrs.wms.asrs.entity.TaskDetlField; |
| | | import com.zy.asrs.wms.asrs.entity.TaskDetlFieldLog; |
| | | import com.zy.asrs.wms.asrs.mapper.TaskDetlLogMapper; |
| | | import com.zy.asrs.wms.asrs.entity.TaskDetlLog; |
| | | import com.zy.asrs.wms.asrs.service.TaskDetlFieldLogService; |
| | | import com.zy.asrs.wms.asrs.service.TaskDetlFieldService; |
| | | 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); |
| | | } |
| | | } |