ReceiptContainerExcelMapper.xml
4.68 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.huaheng.receipt.receiptContainer.mapper.ReceiptContainerExcelMapper">
<resultMap id="BaseResultMap" type="com.huaheng.receipt.receiptContainer.domain.ReceiptContainerExcel">
<result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
<result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
<result column="containerCode" jdbcType="VARCHAR" property="containerCode" />
<result column="containerType" jdbcType="VARCHAR" property="containerType" />
<result column="taskType" jdbcType="VARCHAR" property="taskType" />
<result column="fromLocation" jdbcType="VARCHAR" property="fromLocation" />
<result column="toLocation" jdbcType="VARCHAR" property="toLocation" />
<result column="taskCreated" jdbcType="INTEGER" property="taskCreated" />
<result column="status" jdbcType="SMALLINT" property="status" />
<result column="recvDock" jdbcType="VARCHAR" property="recvDock" />
<result column="receiptId" jdbcType="INTEGER" property="receiptId" />
<result column="receiptDetailId" jdbcType="INTEGER" property="receiptDetailId" />
<result column="receiptCode" jdbcType="VARCHAR" property="receiptCode" />
<result column="receiptType" jdbcType="VARCHAR" property="receiptType" />
<result column="materialCode" jdbcType="VARCHAR" property="materialCode" />
<result column="materialName" jdbcType="VARCHAR" property="materialName" />
<result column="materialSpec" jdbcType="VARCHAR" property="materialSpec" />
<result column="materialUnit" jdbcType="VARCHAR" property="materialUnit" />
<result column="qty" jdbcType="INTEGER" property="qty" />
<result column="weight" jdbcType="VARCHAR" property="weight" />
<result column="attributeId" jdbcType="INTEGER" property="attributeId" />
<result column="attribute1" jdbcType="VARCHAR" property="attribute1" />
<result column="attribute2" jdbcType="VARCHAR" property="attribute2" />
<result column="attribute3" jdbcType="VARCHAR" property="attribute3" />
<result column="attribute4" jdbcType="VARCHAR" property="attribute4" />
<result column="supplierCode" jdbcType="VARCHAR" property="supplierCode" />
<result column="batch" jdbcType="VARCHAR" property="batch" />
<result column="lot" jdbcType="VARCHAR" property="lot" />
<result column="projectNo" jdbcType="VARCHAR" property="projectNo" />
<result column="manufactureDate" jdbcType="DATE" property="manufactureDate" />
<result column="expirationDate" jdbcType="DATE" property="expirationDate" />
<result column="agingDate" jdbcType="DATE" property="agingDate" />
<result column="inventorySts" jdbcType="VARCHAR" property="inventorySts" />
<result column="convertedQty" jdbcType="INTEGER" property="convertedQty" />
<result column="convertedQtyUnit" jdbcType="VARCHAR" property="convertedQtyUnit" />
<result column="created" jdbcType="TIMESTAMP" property="created" />
<result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
<result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
<result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
</resultMap>
<select id="list" resultMap="BaseResultMap" parameterType="java.util.List">
SELECT
h.warehouseCode,
h.companyCode,
h.containerCode,
h.containerType,
h.taskType,
h.fromLocation,
h.toLocation,
h.taskCreated,
h.`status`,
h.recvDock,
d.receiptId,
d.receiptDetailId,
d.receiptCode,
d.receiptType,
d.materialCode,
d.materialName,
d.materialSpec,
d.materialUnit,
d.qty,
d.weight,
d.attributeId,
d.attribute1,
d.attribute2,
d.attribute3,
d.attribute4,
d.supplierCode,
d.batch,
d.lot,
d.projectNo,
d.manufactureDate,
d.expirationDate,
d.agingDate,
d.inventorySts,
d.convertedQty,
d.convertedQtyUnit,
d.created,
d.createdBy,
d.lastUpdated,
d.lastUpdatedBy
FROM
receipt_container_header h
INNER JOIN receipt_container_detail d ON d.receiptContainerId = h.id
where h.id in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>