|
@@ -56,11 +56,12 @@
|
|
|
<result property="fIsInventory" column="f_is_inventory"/>
|
|
|
<result property="fBusinessType" column="f_business_type"/>
|
|
|
<result property="fBillingDeadline" column="f_billing_deadline"/>
|
|
|
- <result property="fWarehouseInformation" column="f_warehouse_information" />
|
|
|
+ <result property="fWarehouseInformation" column="f_warehouse_information"/>
|
|
|
+ <result property="fOrgWarehouseInformation" column="f_orgwarehouse_information"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTWarehousebillsitemsVo">
|
|
|
- select f_id, f_pid, f_lineno, f_srcid, f_goodsid, f_billno, f_warehouselocid, f_mblno, f_originalbillno, f_bsdate, f_boxno, f_cntqty, f_goodsval, f_cntrtype, f_planvolumn, f_originalbilldate, f_transfer_warehouselocid, f_planqty, f_billingway, f_plangrossweight, f_packagespecs, f_chargedate, f_plannetweight, f_qty, f_grossweight, f_volumn, f_netweight, f_cntrno, f_truckno, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark, f_marks, f_inventory_days, f_storage_fee_deadline, f_amt, f_billing_days, f_driver_name, f_driver_tel, f_driver_id_car, f_serial_number, f_is_pass, f_billtype, f_billing_qty, f_billing_deadline, f_business_type, f_is_inventory , f_warehouse_information from t_warehousebillsitems
|
|
|
+ select f_id, f_pid, f_lineno, f_srcid, f_goodsid, f_billno, f_warehouselocid, f_mblno, f_originalbillno, f_bsdate, f_boxno, f_cntqty, f_goodsval, f_cntrtype, f_planvolumn, f_originalbilldate, f_transfer_warehouselocid, f_planqty, f_billingway, f_plangrossweight, f_packagespecs, f_chargedate, f_plannetweight, f_qty, f_grossweight, f_volumn, f_netweight, f_cntrno, f_truckno, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remark, f_marks, f_inventory_days, f_storage_fee_deadline, f_amt, f_billing_days, f_driver_name, f_driver_tel, f_driver_id_car, f_serial_number, f_is_pass, f_billtype, f_billing_qty, f_billing_deadline, f_business_type, f_is_inventory , f_warehouse_information, f_orgwarehouse_information from t_warehousebillsitems
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTWarehousebillsitemsList" parameterType="TWarehousebillsitems"
|
|
@@ -88,6 +89,8 @@
|
|
|
<if test="fIsInventory != null ">and f_is_inventory = #{fIsInventory}</if>
|
|
|
<if test="fPackagespecs != null ">and f_packagespecs = #{fPackagespecs}</if>
|
|
|
<if test="fBusinessType != null "> and f_business_type = #{fBusinessType}</if>
|
|
|
+ <if test="fWarehouseInformation != null "> and f_warehouse_information = #{fWarehouseInformation}</if>
|
|
|
+ <if test="fOrgWarehouseInformation != null "> and f_orgwarehouse_information = #{fOrgWarehouseInformation}</if>
|
|
|
<if test="fPlangrossweight != null ">and f_plangrossweight = #{fPlangrossweight}</if>
|
|
|
<if test="fPlannetweight != null ">and f_plannetweight = #{fPlannetweight}</if>
|
|
|
<if test="fQty != null ">and f_qty = #{fQty}</if>
|
|
@@ -156,7 +159,8 @@
|
|
|
item.f_truckno AS fTruckno,
|
|
|
item.f_billstatus AS fBillstatus,
|
|
|
item.remark ,
|
|
|
- item.f_warehouse_information AS fWarehouseInformation
|
|
|
+ item.f_warehouse_information AS fWarehouseInformation,
|
|
|
+ item.f_orgwarehouse_information AS fOrgwarehouseInformation
|
|
|
from
|
|
|
t_warehousebillsitems item
|
|
|
LEFT JOIN t_goods goods ON goods.f_id = item.f_goodsid
|
|
@@ -227,6 +231,7 @@
|
|
|
<if test="fBusinessType != null">f_business_type,</if>
|
|
|
<if test="fIsInventory != null">f_is_inventory,</if>
|
|
|
<if test="fWarehouseInformation != null">f_warehouse_information,</if>
|
|
|
+ <if test="fOrgwarehouseInformation != null">f_orgwarehouse_information,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fPid != null">#{fPid},</if>
|
|
@@ -280,6 +285,7 @@
|
|
|
<if test="fBusinessType != null">#{fBusinessType},</if>
|
|
|
<if test="fIsInventory != null">#{fIsInventory},</if>
|
|
|
<if test="fWarehouseInformation != null">#{fWarehouseInformation},</if>
|
|
|
+ <if test="fOrgwarehouseInformation != null">#{fOrgwarehouseInformation},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -337,6 +343,7 @@
|
|
|
<if test="fBillingDeadline != null">f_billing_deadline = #{fBillingDeadline},</if>
|
|
|
<if test="fBusinessType != null">f_business_type = #{fBusinessType},</if>
|
|
|
<if test="fWarehouseInformation != null">f_warehouse_information = #{fWarehouseInformation},</if>
|
|
|
+ <if test="fOrgwarehouseInformation != null">f_orgwarehouse_information = #{fOrgwarehouseInformation},</if>
|
|
|
</trim>
|
|
|
where f_id = #{fId}
|
|
|
</update>
|
|
@@ -372,6 +379,7 @@
|
|
|
item.f_billing_days AS fBillingDays,
|
|
|
item.f_is_inventory AS fIsInventory,
|
|
|
item.f_qty AS fQty,
|
|
|
+ item.f_orgwarehouse_information AS fOrgwarehouseInformation,
|
|
|
item.f_grossweight AS fGrossweight,
|
|
|
item.f_netweight AS fNetweight,
|
|
|
item.f_billtype AS fBilltype,
|