李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
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
49
50
51
52
53
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);
 
 
}