ShipmentContainerDetailServiceImpl.java
1.5 KB
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);
}
}