ShipmentContainerDetailMapper.xml
9.41 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?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="weights" jdbcType="INTEGER" property="weights" />
<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="batteryPackageCode" jdbcType="VARCHAR" property="processStamp" />
<result column="enterpriseCode" jdbcType="VARCHAR" property="enterpriseCode" />
<result column="enterpriseName" jdbcType="VARCHAR" property="enterpriseName" />
<result column="shipmentDate" jdbcType="DATE" property="shipmentDate" />
<result column="echelonPacketCode" jdbcType="VARCHAR" property="echelonPacketCode" />
<result column="echelonApplicationField" jdbcType="VARCHAR" property="echelonApplicationField" />
<result column="otherContent" jdbcType="VARCHAR" property="otherContent" />
<result column="echelonEnterpriseName" jdbcType="VARCHAR" property="echelonEnterpriseName" />
<result column="echelonEnterpriseCode" jdbcType="VARCHAR" property="echelonEnterpriseCode" />
<result column="framework" jdbcType="VARCHAR" property="framework" />
<result column="customerName" jdbcType="VARCHAR" property="customerName" />
<result column="customerIDNumber" jdbcType="VARCHAR" property="customerIDNumber" />
<result column="originPackage" jdbcType="VARCHAR" property="originPackage" />
<result column="echelonModuleCode" jdbcType="VARCHAR" property="echelonModuleCode" />
<result column="originModule" jdbcType="VARCHAR" property="originModule" />
<result column="echelonMonomerCode" jdbcType="VARCHAR" property="echelonMonomerCode" />
<result column="originEchelon" jdbcType="VARCHAR" property="originEchelon" />
<result column="batteryType" jdbcType="VARCHAR" property="batteryType" />
<result column="batteryCode" jdbcType="VARCHAR" property="batteryCode" />
<result column="shipQuality" jdbcType="VARCHAR" property="shipQuality" />
<result column="treatmentQuality" jdbcType="VARCHAR" property="treatmentQuality" />
<result column="regenerateDate" jdbcType="DATE" property="regenerateDate" />
<result column="wasteDestination" jdbcType="VARCHAR" property="wasteDestination" />
<result column="batteryQty" jdbcType="DECIMAL" property="batteryQty" />
<result column="batteryPageCode" jdbcType="VARCHAR" property="batteryPageCode" />
<result column="regenerateSubstanceName" jdbcType="VARCHAR" property="regenerateSubstanceName" />
<result column="regenerateUtilizationRate" jdbcType="VARCHAR" property="regenerateUtilizationRate" />
<result column="substanceRegenerateQuality" jdbcType="VARCHAR" property="substanceRegenerateQuality" />
<result column="push" jdbcType="INTEGER" property="push" />
<result column="electricQuantity" jdbcType="DECIMAL" property="electricQuantity" />
<result column="materialNetWeight" jdbcType="DECIMAL" property="materialNetWeight" />
<result column="materialTareWeight" jdbcType="DECIMAL" property="materialTareWeight" />
<result column="materialGrossWeight" jdbcType="DECIMAL" property="materialGrossWeight" />
<result column="materialIsBattery" jdbcType="INTEGER" property="materialIsBattery" />
<result column="batteryPackTwoCode" jdbcType="VARCHAR" property="batteryPackTwoCode" />
<result column="barcodeDetailsCode" jdbcType="VARCHAR" property="barcodeDetailsCode" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, containerCode, shippingContainerId, shipmentCode, warehouseCode, shipmentId, weights,electricQuantity,
shipmentDetailId, companyCode, materialCode, materialName, materialSpec, materialUnit,
batteryPackageCode,enterpriseCode,enterpriseName,shipmentDate,echelonPacketCode,echelonApplicationField,otherContent,echelonEnterpriseName,
echelonEnterpriseCode,framework,customerName,customerIDNumber,originPackage,echelonModuleCode,originModule,echelonModuleCode,originModule,echelonMonomerCode,
originEchelon,batteryType,batteryCode,shipQuality,treatmentQuality,regenerateDate,wasteDestination,batteryQty,batteryPageCode,
regenerateSubstanceName,regenerateUtilizationRate,substanceRegenerateQuality,
`enable`, itemWeight, itemVolume, itemLength, itemWidth, itemHeight, qty,push,
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,materialNetWeight,materialTareWeight,materialGrossWeight,batteryPackTwoCode,barcodeDetailsCode
</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>