package com.chinaztt.mes.warehouse.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.chinaztt.mes.warehouse.entity.Escort;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 押运单主表
|
*
|
* @author cxf
|
* @date 2021-07-23 14:32:00
|
*/
|
@Mapper
|
public interface EscortMapper extends BaseMapper<Escort> {
|
|
/**
|
* 根据客户订单id获取押运单的信息
|
*
|
* @param customerOrderIds
|
* @return
|
*/
|
List<Escort> getEscortInfoByOrder(@Param("ids") List<Long> customerOrderIds);
|
|
/**
|
* 根据押运单id更新订单预留的发货数量
|
*
|
* @param id
|
* @param plusOrMinus
|
* @return
|
*/
|
int updateStockOrderById(@Param("id") Long id, @Param("plusOrMinus") String plusOrMinus);
|
|
/**
|
* 根据押运单id更新客户订单的发货数量
|
*
|
* @param escortId
|
* @return
|
*/
|
int updateCustomerOrderById(Long escortId);
|
|
|
/**
|
* 根据销售订单id 查询合同行号
|
*
|
* @return
|
*/
|
Long selectCustomerOrder(Long id);
|
|
|
}
|