|
@@ -18,6 +18,8 @@
|
18
|
18
|
<result column="keep_day" property="keepDay" jdbcType="DOUBLE" />
|
19
|
19
|
<result column="ord_price" property="ordPrice" jdbcType="DOUBLE" />
|
20
|
20
|
<result column="out_ord_price" property="outOrdPrice" jdbcType="DOUBLE" />
|
|
21
|
+ <result column="material_name" property="materialName" jdbcType="VARCHAR" />
|
|
22
|
+ <result column="pay_way" property="payWay" jdbcType="VARCHAR" />
|
21
|
23
|
|
22
|
24
|
<association column="material_id" property="material" select="com.th.demo.mapping.maint.MaterialMapper.selectByPrimaryKey" />
|
23
|
25
|
<association column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
|
|
@@ -28,7 +30,7 @@
|
28
|
30
|
<sql id="Base_Column_List" >
|
29
|
31
|
id, material_id, storage_price,transfer_price, weight_price, add_id, add_time,
|
30
|
32
|
modify_id, modify_time, cancel_id, cancel_time, cancel_flag, belong_id,storage_type,
|
31
|
|
- keep_day,ord_price,out_ord_price,customer_id
|
|
33
|
+ keep_day,ord_price,out_ord_price,customer_id,material_name,pay_way
|
32
|
34
|
</sql>
|
33
|
35
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
34
|
36
|
select
|
|
@@ -51,13 +53,13 @@
|
51
|
53
|
add_time, modify_id, modify_time,
|
52
|
54
|
cancel_id, cancel_time, cancel_flag,
|
53
|
55
|
belong_id,storage_type,
|
54
|
|
- keep_day,ord_price,out_ord_price,customer_id)
|
|
56
|
+ keep_day,ord_price,out_ord_price,customer_id,material_name,pay_way)
|
55
|
57
|
values (#{id,jdbcType=VARCHAR}, #{material.id,jdbcType=VARCHAR}, #{storagePrice,jdbcType=DOUBLE},
|
56
|
58
|
#{transferPrice,jdbcType=DOUBLE}, #{weightPrice,jdbcType=DOUBLE}, #{addUser.id,jdbcType=VARCHAR},
|
57
|
59
|
#{addTime,jdbcType=TIMESTAMP}, #{modifyUser.id,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP},
|
58
|
60
|
#{cancelId,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR},
|
59
|
61
|
#{belongId,jdbcType=VARCHAR},#{storageType,jdbcType=VARCHAR}, #{keepDay,jdbcType=DOUBLE},
|
60
|
|
- #{ordPrice,jdbcType=DOUBLE},#{outOrdPrice,jdbcType=DOUBLE},#{customer.id,jdbcType=VARCHAR})
|
|
62
|
+ #{ordPrice,jdbcType=DOUBLE},#{outOrdPrice,jdbcType=DOUBLE},#{customer.id,jdbcType=VARCHAR},#{materialName,jdbcType=VARCHAR},#{payWay,jdbcType=VARCHAR})
|
61
|
63
|
</insert>
|
62
|
64
|
<insert id="insertSelective" parameterType="com.th.demo.model.maint.Price" >
|
63
|
65
|
insert into t_maint_price
|
|
@@ -204,7 +206,9 @@ transfer_price,
|
204
|
206
|
keep_day = #{keepDay,jdbcType=DOUBLE},
|
205
|
207
|
ord_price = #{ordPrice,jdbcType=DOUBLE},
|
206
|
208
|
out_ord_price = #{outOrdPrice,jdbcType=DOUBLE},
|
207
|
|
- customer_id = #{customer.id,jdbcType=VARCHAR}
|
|
209
|
+ customer_id = #{customer.id,jdbcType=VARCHAR},
|
|
210
|
+ material_name = #{materialName,jdbcType=VARCHAR},
|
|
211
|
+ pay_way = #{payWay,jdbcType=VARCHAR}
|
208
|
212
|
where id = #{id,jdbcType=VARCHAR}
|
209
|
213
|
</update>
|
210
|
214
|
|
|
@@ -221,6 +225,7 @@ transfer_price,
|
221
|
225
|
select t.* from t_maint_price t ,t_maint_customer d
|
222
|
226
|
where t.customer_id = d.id
|
223
|
227
|
and d.name like concat('%',#{param1,jdbcType=VARCHAR},'%')
|
|
228
|
+ and t.material_name like concat('%',#{param3,jdbcType=VARCHAR},'%')
|
224
|
229
|
and t.belong_id=#{param2,jdbcType=VARCHAR}
|
225
|
230
|
and t.cancel_flag = '0'
|
226
|
231
|
</select>
|
|
@@ -239,6 +244,7 @@ transfer_price,
|
239
|
244
|
where 1=1
|
240
|
245
|
and t.customer_id = #{param1,jdbcType=VARCHAR}
|
241
|
246
|
and t.belong_id = #{param2,jdbcType=VARCHAR}
|
|
247
|
+ and t.material_name = #{param3,jdbcType=VARCHAR}
|
242
|
248
|
and t.cancel_flag = '0'
|
243
|
249
|
</select>
|
244
|
250
|
</mapper>
|