|
@@ -43,6 +43,9 @@
|
43
|
43
|
<result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
|
44
|
44
|
<result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
|
45
|
45
|
|
|
46
|
+ <result column="pack_no" property="packNo" jdbcType="VARCHAR" />
|
|
47
|
+ <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
|
|
48
|
+
|
46
|
49
|
<association column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
|
47
|
50
|
<association column="distribution_id" property="distribution" select="com.th.demo.mapping.ware.DistributionMapper.selectByPrimaryKey" />
|
48
|
51
|
</resultMap>
|
|
@@ -88,6 +91,8 @@
|
88
|
91
|
<result column="distribution_id" property="distributionId" jdbcType="VARCHAR" />
|
89
|
92
|
<result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
|
90
|
93
|
<result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
|
|
94
|
+ <result column="pack_no" property="packNo" jdbcType="VARCHAR" />
|
|
95
|
+ <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
|
91
|
96
|
</resultMap>
|
92
|
97
|
<resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
|
93
|
98
|
<result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
|
|
@@ -95,7 +100,7 @@
|
95
|
100
|
</resultMap>
|
96
|
101
|
<sql id="Base_Column_List" >
|
97
|
102
|
id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name,
|
98
|
|
- customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id,
|
|
103
|
+ customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, pack_no,contract_no,
|
99
|
104
|
cancel_time, cancel_flag, belong_id, plate_no,in_id, record_type,back_flag,receive_address,distribution_id,wgt_dcn_mtc_cd,edge_ty,production_place,verify_account_id
|
100
|
105
|
</sql>
|
101
|
106
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
@@ -120,7 +125,7 @@
|
120
|
125
|
modify_id, modify_time, cancel_id,
|
121
|
126
|
cancel_time, cancel_flag, belong_id,
|
122
|
127
|
plate_no,in_id, record_type,back_flag,receive_address,distribution_id
|
123
|
|
- ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price)
|
|
128
|
+ ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,pack_no,contract_no)
|
124
|
129
|
values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR},
|
125
|
130
|
#{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR},
|
126
|
131
|
#{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR},
|
|
@@ -130,7 +135,8 @@
|
130
|
135
|
#{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
|
131
|
136
|
#{plateNo,jdbcType=VARCHAR}, #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
|
132
|
137
|
#{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
|
133
|
|
- ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE})
|
|
138
|
+ ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},
|
|
139
|
+ #{packNo,jdbcType=VARCHAR},#{contractNo,jdbcType=VARCHAR})
|
134
|
140
|
</insert>
|
135
|
141
|
<insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
|
136
|
142
|
insert into t_ware_out_record
|
|
@@ -367,7 +373,9 @@
|
367
|
373
|
record_type = #{recordType,jdbcType=VARCHAR},
|
368
|
374
|
back_flag = #{backFlag,jdbcType=VARCHAR},
|
369
|
375
|
receive_address = #{receiveAddress,jdbcType=VARCHAR},
|
370
|
|
- distribution_id = #{distributionId,jdbcType=VARCHAR}
|
|
376
|
+ distribution_id = #{distributionId,jdbcType=VARCHAR},
|
|
377
|
+ pack_no = #{packNo,jdbcType=VARCHAR},
|
|
378
|
+ contract_no = #{contractNo,jdbcType=VARCHAR}
|
371
|
379
|
where id = #{id,jdbcType=VARCHAR}
|
372
|
380
|
</update>
|
373
|
381
|
|