ShipmentHeaderMapper.java
1.88 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package com.huaheng.pc.shipment.shipmentHeader.mapper;
import com.huaheng.api.U8.domain.ICSShipmentHeader;
import com.huaheng.pc.receipt.receiptHeader.domain.ReceiptHeader;
import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentBillViewModel;
import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
* 出库单主 数据层
*
* @author huaheng
* @date 2018-08-19
*/
public interface ShipmentHeaderMapper {
/**
* 将 发货单头表转到历史表
* @param code
* @return
*/
int HeaderToHistory(@Param("code") String code);
/**
* 将发货单明细表转到历史表
* @param code
* @return
*/
int DetailToHistory(@Param("code") String code);
List<ShipmentHeader> list(@Param("model") ShipmentBillViewModel shipmentBillViewModel);
/**
* 根据出库单,返回物料明细信息
* @param code
* @return
*/
List<Map<String, Object>> getShipDetail(@Param("code") String code);
/**
* 获取容器里面的物料信息
* @param containerCode
* @return
*/
List<Map<String, Object>> getContainerMaterial(@Param("containerCode") String containerCode);
/**
* 生成出库单编码
* @return
*/
String createCode(String shipmentType);
//查询主单
ICSShipmentHeader selectModel(ICSShipmentHeader condition);
//添加出库下发主单
int insertModel(ICSShipmentHeader condition);
/**
* 查询最后一条单据
* @return
*/
ShipmentHeader selectLastOne();
ShipmentHeader getShipment(ShipmentHeader shipmentHeader);
/**
* 此方法是查询一条没有被钱柜扫描过的单据
* @return
*/
ShipmentHeader selectNosScanSSP(String code);
List<ShipmentHeader> selectListByCreated();
}