|
@@ -40,6 +40,7 @@
|
40
|
40
|
<result column="invoice_price" property="invoicePrice" jdbcType="DOUBLE" />
|
41
|
41
|
<result column="verify_account_id" property="verifyAccountId" jdbcType="DOUBLE" />
|
42
|
42
|
<result column="unit_price" property="unitPrice" jdbcType="DOUBLE" />
|
|
43
|
+ <result column="transport_name" property="transportName" jdbcType="VARCHAR" />
|
43
|
44
|
|
44
|
45
|
<result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
|
45
|
46
|
<result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
|
|
@@ -92,6 +93,7 @@
|
92
|
93
|
<result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
|
93
|
94
|
<result column="unit_price" property="unitPrice" jdbcType="DOUBLE" />
|
94
|
95
|
<result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
|
|
96
|
+ <result column="transport_name" property="transportName" jdbcType="VARCHAR" />
|
95
|
97
|
</resultMap>
|
96
|
98
|
<resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
|
97
|
99
|
<result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
|
|
@@ -398,7 +400,7 @@
|
398
|
400
|
|
399
|
401
|
<select id="select" resultMap="BaseResultMap" >
|
400
|
402
|
select
|
401
|
|
- e.name as fk_compony_name,p.tally_people as tally_people,t.*,c.ord_no,DATE_FORMAT(d.add_time, '%Y-%m-%d %H:%i:%s') as in_time,(select tt.user_desc as in_user from sys_user tt where tt.id = d.add_id) as in_user,d.car_no as in_car_no
|
|
403
|
+ e.name as fk_compony_name,p.tally_people as tally_people,p.transport_name as transport_name,t.*,c.ord_no,DATE_FORMAT(d.add_time, '%Y-%m-%d %H:%i:%s') as in_time,(select tt.user_desc as in_user from sys_user tt where tt.id = d.add_id) as in_user,d.car_no as in_car_no
|
402
|
404
|
,t.invoice_price
|
403
|
405
|
from t_ware_out_record t ,t_ware_distribution p,(select t.plate_no,max(t.ord_no) ord_no from t_ware_store t group by t.plate_no) c,t_ware_in_record d LEFT JOIN t_maint_customer e on d.fk_compony_name = e.id
|
404
|
406
|
where t.ware_name like concat('%',#{param1,jdbcType=VARCHAR},'%')
|
|
@@ -458,7 +460,7 @@
|
458
|
460
|
</select>
|
459
|
461
|
<select id="selectExpt" resultMap="CleanResultMap" >
|
460
|
462
|
select
|
461
|
|
- e.name as fk_compony_name,p.tally_people as tally_people,p.truck_no as out_car_no,f.user_desc as add_id,t.*,c.ord_no,DATE_FORMAT(d.add_time, '%Y-%m-%d %H:%i:%s') as in_time
|
|
463
|
+ e.name as fk_compony_name,p.tally_people as tally_people,p.transport_name as transport_name,p.truck_no as out_car_no,f.user_desc as add_id,t.*,c.ord_no,DATE_FORMAT(d.add_time, '%Y-%m-%d %H:%i:%s') as in_time
|
462
|
464
|
,(select tt.user_desc as in_user from sys_user tt where tt.id = d.add_id) as in_user,d.car_no as in_car_no
|
463
|
465
|
,t.invoice_price,t.distribution_id
|
464
|
466
|
from t_ware_out_record t LEFT JOIN sys_user f on t.add_id = f.id
|