|
@@ -37,6 +37,7 @@
|
37
|
37
|
<result column="in_car_no" property="inCarNo" jdbcType="VARCHAR" />
|
38
|
38
|
<result column="out_car_no" property="outCarNo" jdbcType="VARCHAR" />
|
39
|
39
|
<result column="fk_compony_name" property="fkComponyName" jdbcType="VARCHAR" />
|
|
40
|
+ <result column="pay_way" property="payWay" jdbcType="VARCHAR" />
|
40
|
41
|
<result column="invoice_price" property="invoicePrice" jdbcType="DOUBLE" />
|
41
|
42
|
<result column="verify_account_id" property="verifyAccountId" jdbcType="DOUBLE" />
|
42
|
43
|
|
|
@@ -93,6 +94,7 @@
|
93
|
94
|
<result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
|
94
|
95
|
<result column="pack_no" property="packNo" jdbcType="VARCHAR" />
|
95
|
96
|
<result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
|
|
97
|
+ <result column="pay_way" property="payWay" jdbcType="VARCHAR" />
|
96
|
98
|
</resultMap>
|
97
|
99
|
<resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
|
98
|
100
|
<result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
|
|
@@ -105,7 +107,7 @@
|
105
|
107
|
</sql>
|
106
|
108
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
107
|
109
|
select
|
108
|
|
- <include refid="Base_Column_List" />
|
|
110
|
+ *
|
109
|
111
|
from t_ware_out_record
|
110
|
112
|
where id = #{id,jdbcType=VARCHAR}
|
111
|
113
|
</select>
|
|
@@ -125,7 +127,7 @@
|
125
|
127
|
modify_id, modify_time, cancel_id,
|
126
|
128
|
cancel_time, cancel_flag, belong_id,
|
127
|
129
|
plate_no,in_id, record_type,back_flag,receive_address,distribution_id
|
128
|
|
- ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,pack_no,contract_no,ord_no,fk_compony_name)
|
|
130
|
+ ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,pack_no,contract_no,ord_no,fk_compony_name,in_ware_days,pay_way)
|
129
|
131
|
values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR},
|
130
|
132
|
#{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR},
|
131
|
133
|
#{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR},
|
|
@@ -136,7 +138,7 @@
|
136
|
138
|
#{plateNo,jdbcType=VARCHAR}, #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
|
137
|
139
|
#{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
|
138
|
140
|
,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},
|
139
|
|
- #{packNo,jdbcType=VARCHAR},#{contractNo,jdbcType=VARCHAR},#{ordNo,jdbcType=VARCHAR},#{fkComponyName,jdbcType=VARCHAR})
|
|
141
|
+ #{packNo,jdbcType=VARCHAR},#{contractNo,jdbcType=VARCHAR},#{ordNo,jdbcType=VARCHAR},#{fkComponyName,jdbcType=VARCHAR},#{inWareDays,jdbcType=DOUBLE},#{payWay,jdbcType=VARCHAR})
|
140
|
142
|
</insert>
|
141
|
143
|
<insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
|
142
|
144
|
insert into t_ware_out_record
|
|
@@ -423,7 +425,9 @@
|
423
|
425
|
) or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
|
424
|
426
|
and ifnull(p.tally_people,'*') like concat('%',#{param13,jdbcType=VARCHAR},'%')
|
425
|
427
|
and ifnull(c.ord_no,'*') like concat('%',#{param14,jdbcType=VARCHAR},'%')
|
426
|
|
- and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
|
|
428
|
+ <if test="param15 != null and param15 != ''">
|
|
429
|
+ and ifnull(e.name,'*') = #{param15,jdbcType=VARCHAR}
|
|
430
|
+ </if>
|
427
|
431
|
and ifnull(t.back_flag,0) <> '1'
|
428
|
432
|
order by t.add_time desc
|
429
|
433
|
</select>
|
|
@@ -450,7 +454,9 @@
|
450
|
454
|
and a.user_id = #{param10,jdbcType=VARCHAR} )
|
451
|
455
|
) or t.customer_name like CONCAT((select attr3 from sys_user temp where temp.id=#{param10,jdbcType=VARCHAR}),'%') )
|
452
|
456
|
and ifnull(p.tally_people,'*') like concat('%',#{param13,jdbcType=VARCHAR},'%')
|
453
|
|
- and ifnull(e.name,'*') like concat('%',#{param15,jdbcType=VARCHAR},'%')
|
|
457
|
+ <if test="param15 != null and param15 != ''">
|
|
458
|
+ and ifnull(e.name,'*') = #{param15,jdbcType=VARCHAR}
|
|
459
|
+ </if>
|
454
|
460
|
and ifnull(t.back_flag,0) <> '1'
|
455
|
461
|
and (t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
|
456
|
462
|
<if test="param18 != null and param18.size() !=0" >
|