| | |
| | | package com.zy.asrs.wms.asrs.service.impl;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | 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.service.OrderDetlFieldService;
|
| | | import com.zy.asrs.wms.asrs.service.OrderDetlLogService;
|
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import com.zy.asrs.wms.common.domain.BaseParam;
|
| | | import com.zy.asrs.wms.common.domain.PageParam;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | |
| | | private OrderDetlFieldLogService orderDetlFieldLogService;
|
| | |
|
| | | @Override
|
| | | public List<OrderDetlLog> getOrderDetlByOrderId(Long orderId) {
|
| | | List<OrderDetlLog> orderDetlLogs = this.list(new LambdaQueryWrapper<OrderDetlLog>().eq(OrderDetlLog::getOrderId, orderId));
|
| | | public List<OrderDetlLog> getOrderDetlByOrderId(String orderId) {
|
| | | List<OrderDetlLog> orderDetlLogs = this.list(new LambdaQueryWrapper<OrderDetlLog>().eq(OrderDetlLog::getOrderNo, orderId));
|
| | | for (OrderDetlLog orderDetlLog : orderDetlLogs) {
|
| | | List<OrderDetlFieldLog> list = orderDetlFieldLogService.list(new LambdaQueryWrapper<OrderDetlFieldLog>().eq(OrderDetlFieldLog::getDetlId, orderDetlLog.getId()));
|
| | | orderDetlLog.syncField(list);
|
| | | }
|
| | | return orderDetlLogs;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public IPage<OrderDetl> pageByType(PageParam<OrderDetl, BaseParam> pageParam, QueryWrapper<OrderDetl> queryWrapper) {
|
| | | IPage<OrderDetl> orders = this.baseMapper.pageByType(pageParam, queryWrapper);
|
| | | return orders; }
|
| | | }
|