ShipmentContainerDetailMapper.xml
5.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?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.pc.shipment.shipmentContainerDetail.mapper.ShipmentContainerDetailMapper">
<resultMap id="BaseResultMap" type="com.huaheng.pc.shipment.shipmentContainerDetail.domain.ShipmentContainerDetail">
<!--@mbg.generated-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="containerCode" jdbcType="VARCHAR" property="containerCode" />
<result column="shippingContainerId" jdbcType="INTEGER" property="shippingContainerId" />
<result column="shipmentCode" jdbcType="VARCHAR" property="shipmentCode" />
<result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
<result column="shipmentId" jdbcType="INTEGER" property="shipmentId" />
<result column="shipmentDetailId" jdbcType="INTEGER" property="shipmentDetailId" />
<result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
<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="enable" jdbcType="INTEGER" property="enable" />
<result column="itemWeight" jdbcType="DECIMAL" property="itemWeight" />
<result column="itemVolume" jdbcType="DECIMAL" property="itemVolume" />
<result column="itemLength" jdbcType="DECIMAL" property="itemLength" />
<result column="itemWidth" jdbcType="DECIMAL" property="itemWidth" />
<result column="itemHeight" jdbcType="DECIMAL" property="itemHeight" />
<result column="qty" jdbcType="INTEGER" property="qty" />
<result column="waveId" jdbcType="INTEGER" property="waveId" />
<result column="taskCreated" jdbcType="INTEGER" property="taskCreated" />
<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="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="packingClass" jdbcType="VARCHAR" property="packingClass" />
<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" />
<result column="version" jdbcType="INTEGER" property="version" />
<result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
<result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
<result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
<result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
<result column="materialID" jdbcType="VARCHAR" property="materialID" />
<result column="mesCode" jdbcType="VARCHAR" property="mesCode" />
<result column="zCode" jdbcType="VARCHAR" property="zCode" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, containerCode, shippingContainerId, shipmentCode, warehouseCode, shipmentId,
shipmentDetailId, companyCode, materialCode, materialName, materialSpec, materialUnit,
`enable`, itemWeight, itemVolume, itemLength, itemWidth, itemHeight, qty,
waveId, taskCreated, attributeId, originalPickLoc, attribute1, attribute2, attribute3,
attribute4, batch, lot, projectNo, manufactureDate, expirationDate, agingDate, inventorySts,
packingClass, created, createdBy, lastUpdated, lastUpdatedBy,
version, userDef1, userDef2, userDef3,processStamp,materialID,mesCode,zCode
</sql>
<select id="selectListMapByEqual" resultType="java.util.HashMap">
SELECT ${columns} FROM shipment_container_detail
<where>
<if test="condition.id != null">
AND id = #{condition.id}
</if>
<if test="condition.shippingContainerId != null">
AND shippingContainerId = #{condition.shippingContainerId}
</if>
<if test="condition.shipmentCode != null">
AND shipmentCode = #{condition.shipmentCode}
</if>
<if test="condition.shipmentId != null">
AND shipmentId = #{condition.shipmentId}
</if>
<if test="condition.shipmentDetailId != null">
AND shipmentDetailId = #{condition.shipmentDetailId}
</if>
<if test="condition.materialCode != null">
AND materialCode = #{condition.materialCode}
</if>
<if test="condition.materialName != null">
AND materialName = #{condition.materialName}
</if>
<if test="condition.qty != null">
AND qty = #{condition.qty}
</if>
<if test="condition.inventoryId != null">
AND inventoryId = #{condition.inventoryId}
</if>
<if test="condition.created != null">
AND created = #{condition.created}
</if>
<if test="condition.createdBy != null">
AND createdBy = #{condition.createdBy}
</if>
<if test="condition.projectNo != null">
AND projectNo = #{condition.projectNo}
</if>
</where>
</select>
</mapper>