| | |
| | | package com.zy.asrs.wms.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlField; |
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlFieldLog; |
| | | import com.zy.asrs.wms.asrs.mapper.OrderDetlLogMapper; |
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlLog; |
| | | import com.zy.asrs.wms.asrs.service.OrderDetlFieldLogService; |
| | | import com.zy.asrs.wms.asrs.service.OrderDetlFieldService; |
| | | import com.zy.asrs.wms.asrs.service.OrderDetlLogService; |
| | | 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("orderDetlLogService") |
| | | public class OrderDetlLogServiceImpl extends ServiceImpl<OrderDetlLogMapper, OrderDetlLog> implements OrderDetlLogService { |
| | | |
| | | @Autowired |
| | | private OrderDetlFieldLogService orderDetlFieldLogService; |
| | | |
| | | @Override |
| | | public List<OrderDetlLog> getOrderDetlByOrderId(Long orderId) { |
| | | List<OrderDetlLog> orderDetlLogs = this.list(new LambdaQueryWrapper<OrderDetlLog>().eq(OrderDetlLog::getOrderId, orderId)); |
| | | for (OrderDetlLog orderDetlLog : orderDetlLogs) { |
| | | List<OrderDetlFieldLog> list = orderDetlFieldLogService.list(new LambdaQueryWrapper<OrderDetlFieldLog>().eq(OrderDetlFieldLog::getDetlId, orderDetlLog.getId())); |
| | | orderDetlLog.syncField(list); |
| | | } |
| | | return orderDetlLogs; |
| | | } |
| | | } |
| | | package com.zy.asrs.wms.asrs.service.impl;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetl;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlField;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlFieldLog;
|
| | | import com.zy.asrs.wms.asrs.mapper.OrderDetlLogMapper;
|
| | | import com.zy.asrs.wms.asrs.entity.OrderDetlLog;
|
| | | import com.zy.asrs.wms.asrs.service.OrderDetlFieldLogService;
|
| | | import com.zy.asrs.wms.asrs.service.OrderDetlFieldService;
|
| | | import com.zy.asrs.wms.asrs.service.OrderDetlLogService;
|
| | | 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("orderDetlLogService")
|
| | | public class OrderDetlLogServiceImpl extends ServiceImpl<OrderDetlLogMapper, OrderDetlLog> implements OrderDetlLogService {
|
| | |
|
| | | @Autowired
|
| | | private OrderDetlFieldLogService orderDetlFieldLogService;
|
| | |
|
| | | @Override
|
| | | public List<OrderDetlLog> getOrderDetlByOrderId(Long orderId) {
|
| | | List<OrderDetlLog> orderDetlLogs = this.list(new LambdaQueryWrapper<OrderDetlLog>().eq(OrderDetlLog::getOrderId, orderId));
|
| | | for (OrderDetlLog orderDetlLog : orderDetlLogs) {
|
| | | List<OrderDetlFieldLog> list = orderDetlFieldLogService.list(new LambdaQueryWrapper<OrderDetlFieldLog>().eq(OrderDetlFieldLog::getDetlId, orderDetlLog.getId()));
|
| | | orderDetlLog.syncField(list);
|
| | | }
|
| | | return orderDetlLogs;
|
| | | }
|
| | | }
|