ShipmentContainerDetailServiceImpl.java
2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.huaheng.pc.shipment.shipmentContainerDetail.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.huaheng.common.utils.Wrappers;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huaheng.pc.shipment.shipmentContainerDetail.mapper.ShipmentContainerDetailMapper;
import com.huaheng.pc.shipment.shipmentContainerDetail.domain.ShipmentContainerDetail;
@Service
public class ShipmentContainerDetailServiceImpl extends ServiceImpl<ShipmentContainerDetailMapper, ShipmentContainerDetail> implements ShipmentContainerDetailService{
@Resource
private ShipmentContainerDetailMapper shipmentContainerDetailMapper;
@Override
public List<Map<String, Object>> selectListMapByEqual(String columns, ShipmentContainerDetail condition) {
return shipmentContainerDetailMapper.selectListMapByEqual(columns, condition);
}
/**
* 根据组盘头id查询出库组盘明细
* @param shippingContainerId 出库组盘头id
* @return
*/
@Override
public List<ShipmentContainerDetail> selectByShippingContainerId(Integer shippingContainerId) {
LambdaQueryWrapper<ShipmentContainerDetail> lambdaQueryWrapper = Wrappers.lambdaQuery();
lambdaQueryWrapper.eq(ShipmentContainerDetail::getShippingContainerId, shippingContainerId);
return list(lambdaQueryWrapper);
}
/**
* 根据组盘头id查询出库组盘明细
* @param shippingContainerId 出库组盘头id
* @return
*/
@Override
public List<ShipmentContainerDetail> selectByShippingContainerIdUnComplete(Integer shippingContainerId) {
LambdaQueryWrapper<ShipmentContainerDetail> lambdaQueryWrapper = Wrappers.lambdaQuery();
lambdaQueryWrapper.eq(ShipmentContainerDetail::getShippingContainerId, shippingContainerId);
lambdaQueryWrapper.lt(ShipmentContainerDetail::getStatus, 10);
return list(lambdaQueryWrapper);
}
}