|
@@ -43,6 +43,7 @@
|
43
|
43
|
|
44
|
44
|
<result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
|
45
|
45
|
<result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
|
|
46
|
+ <result column="remark1" property="remark1" jdbcType="VARCHAR" />
|
46
|
47
|
|
47
|
48
|
<association column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
|
48
|
49
|
<association column="distribution_id" property="distribution" select="com.th.demo.mapping.ware.DistributionMapper.selectByPrimaryKey" />
|
|
@@ -97,7 +98,7 @@
|
97
|
98
|
</resultMap>
|
98
|
99
|
<sql id="Base_Column_List" >
|
99
|
100
|
id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name,
|
100
|
|
- customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id,
|
|
101
|
+ customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, remark1,
|
101
|
102
|
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,unit_price
|
102
|
103
|
</sql>
|
103
|
104
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
@@ -122,7 +123,8 @@
|
122
|
123
|
modify_id, modify_time, cancel_id,
|
123
|
124
|
cancel_time, cancel_flag, belong_id,
|
124
|
125
|
plate_no,in_id, record_type,back_flag,receive_address,distribution_id
|
125
|
|
- ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,unit_price)
|
|
126
|
+ ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,unit_price
|
|
127
|
+ ,remark1)
|
126
|
128
|
values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR},
|
127
|
129
|
#{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR},
|
128
|
130
|
#{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR},
|
|
@@ -132,7 +134,8 @@
|
132
|
134
|
#{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
|
133
|
135
|
#{plateNo,jdbcType=VARCHAR}, #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
|
134
|
136
|
#{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
|
135
|
|
- ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},#{unitPrice,jdbcType=DOUBLE})
|
|
137
|
+ ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},#{unitPrice,jdbcType=DOUBLE}
|
|
138
|
+ ,#{remark1,jdbcType=VARCHAR})
|
136
|
139
|
</insert>
|
137
|
140
|
<insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
|
138
|
141
|
insert into t_ware_out_record
|
|
@@ -370,7 +373,8 @@
|
370
|
373
|
back_flag = #{backFlag,jdbcType=VARCHAR},
|
371
|
374
|
receive_address = #{receiveAddress,jdbcType=VARCHAR},
|
372
|
375
|
distribution_id = #{distributionId,jdbcType=VARCHAR},
|
373
|
|
- unit_price = #{unitPrice,jdbcType=DOUBLE}
|
|
376
|
+ unit_price = #{unitPrice,jdbcType=DOUBLE},
|
|
377
|
+ remark1 = #{remark1,jdbcType=VARCHAR}
|
374
|
378
|
where id = #{id,jdbcType=VARCHAR}
|
375
|
379
|
</update>
|
376
|
380
|
|
|
@@ -434,7 +438,12 @@
|
434
|
438
|
<if test="param6 != null and param6 != ''" >
|
435
|
439
|
and t.customer_name = #{param6,jdbcType=VARCHAR}
|
436
|
440
|
</if>
|
437
|
|
- and t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
|
|
441
|
+ and (t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
|
|
442
|
+ <if test="param16 != null and param16.size() !=0" >
|
|
443
|
+ OR t.plate_no IN <foreach item="item" collection="param16" index="index" open="(" separator="," close=")">
|
|
444
|
+ #{item,jdbcType=VARCHAR} </foreach>
|
|
445
|
+ </if>
|
|
446
|
+ )
|
438
|
447
|
and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
|
439
|
448
|
and t.distribution_id = p.id
|
440
|
449
|
and t.plate_no = c.plate_no
|
|
@@ -446,8 +455,14 @@
|
446
|
455
|
and a.user_id = #{param10,jdbcType=VARCHAR} )
|
447
|
456
|
) or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
|
448
|
457
|
and ifnull(p.tally_people,'*') like concat('%',#{param13,jdbcType=VARCHAR},'%')
|
449
|
|
- and ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
|
|
458
|
+ and (ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
|
|
459
|
+ <if test="param17 != null and param17.size() !=0" >
|
|
460
|
+ OR ifnull(c.ord_no,'*') IN <foreach item="item" collection="param17" index="index" open="(" separator="," close=")">
|
|
461
|
+ #{item,jdbcType=VARCHAR} </foreach>
|
|
462
|
+ </if>
|
|
463
|
+ )
|
450
|
464
|
and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
|
|
465
|
+ and ifnull(t.remark1,'*') like concat('%',#{param18,jdbcType=VARCHAR},'%')
|
451
|
466
|
and ifnull(t.back_flag,0) <> '1'
|
452
|
467
|
order by t.add_time desc
|
453
|
468
|
</select>
|
|
@@ -468,7 +483,12 @@
|
468
|
483
|
<if test="param6 != null and param6 != ''" >
|
469
|
484
|
and t.customer_name = #{param6,jdbcType=VARCHAR}
|
470
|
485
|
</if>
|
471
|
|
- and t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
|
|
486
|
+ and (t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
|
|
487
|
+ <if test="param16 != null and param16.size() !=0" >
|
|
488
|
+ OR t.plate_no IN <foreach item="item" collection="param16" index="index" open="(" separator="," close=")">
|
|
489
|
+ #{item,jdbcType=VARCHAR} </foreach>
|
|
490
|
+ </if>
|
|
491
|
+ )
|
472
|
492
|
and t.add_time between #{param8,jdbcType=TIMESTAMP} and #{param9,jdbcType=TIMESTAMP}
|
473
|
493
|
and t.distribution_id = p.id
|
474
|
494
|
and t.plate_no = c.plate_no
|
|
@@ -480,8 +500,14 @@
|
480
|
500
|
and a.user_id = #{param10,jdbcType=VARCHAR} )
|
481
|
501
|
) or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
|
482
|
502
|
and ifnull(p.tally_people,'*') like concat('%',#{param13,jdbcType=VARCHAR},'%')
|
483
|
|
- and ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
|
|
503
|
+ and (ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
|
|
504
|
+ <if test="param17 != null and param17.size() !=0" >
|
|
505
|
+ OR ifnull(c.ord_no,'*') IN <foreach item="item" collection="param17" index="index" open="(" separator="," close=")">
|
|
506
|
+ #{item,jdbcType=VARCHAR} </foreach>
|
|
507
|
+ </if>
|
|
508
|
+ )
|
484
|
509
|
and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
|
|
510
|
+ and ifnull(t.remark1,'*') like concat('%',#{param18,jdbcType=VARCHAR},'%')
|
485
|
511
|
and ifnull(t.back_flag,0) <> '1'
|
486
|
512
|
order by t.add_time desc
|
487
|
513
|
</select>
|