|
@@ -138,6 +138,7 @@
|
|
|
<result property="isPledge" column="is_pledge" />
|
|
|
<result property="documentSummary" column="document_summary" />
|
|
|
<result property="financialBillType" column="financial_bill_type" />
|
|
|
+ <result property="checklists" column="checklists" />
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="WarehouseBillsVO" id="WarehousebillsVOResult">
|
|
@@ -163,7 +164,7 @@
|
|
|
f_ifsampling, send_sample_date, f_ifweight_recovery, weight_recovery_date, warehouse_status, f_times ,f_date_changed, f_chargetype,f_weigh_weight,
|
|
|
f_predict_branch,f_grade,f_delivery_details,f_salesman_id,f_itemstatus,f_updete_status, f_submit_update, f_delete_status,f_remarks_fees,f_cargo_planning,
|
|
|
f_arrival_status,f_dismount_status,f_serviceitems_new,f_receivable,f_recycle,f_due,f_pay,f_carego_status, f_ship_two, f_voy_two, pick_up_person, pick_up_time, facility_person, facility_time,is_pledge,
|
|
|
- document_summary,financial_bill_type from t_warehousebills
|
|
|
+ document_summary,financial_bill_type,checklists from t_warehousebills
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTWarehousebillsList" parameterType="TWarehousebills" resultMap="TWarehousebillsResult">
|
|
@@ -230,6 +231,7 @@
|
|
|
<if test="fBillstatus != null and fBillstatus != ''">and f_billstatus = #{fBillstatus}</if>
|
|
|
<if test="fNewTrademodeid != null ">and f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
<if test="isPledge != null and isPledge != ''">and is_pledge = #{isPledge}</if>
|
|
|
+ <if test="checklists != null and checklists != ''">and checklists = #{checklists}</if>
|
|
|
</where>
|
|
|
ORDER BY ware.create_time desc
|
|
|
${params.dataScope}
|
|
@@ -363,7 +365,8 @@
|
|
|
twfD.f_invoicing_date AS fAccbilldate,
|
|
|
bill.is_pledge AS isPledge,
|
|
|
bill.document_summary AS documentSummary,
|
|
|
- bill.financial_bill_type AS financialBillType
|
|
|
+ bill.financial_bill_type AS financialBillType,
|
|
|
+ bill.checklists AS checklists
|
|
|
FROM
|
|
|
t_warehousebills bill
|
|
|
LEFT JOIN t_goods g ON g.f_id = bill.f_goodsid
|
|
@@ -501,6 +504,7 @@
|
|
|
<if test="fVslid != null ">and bill.f_vslid = #{fVslid}</if>
|
|
|
<if test="fVoyid != null ">and bill.f_voyid = #{fVoyid}</if>
|
|
|
<if test="isPledge != null and isPledge != ''">and bill.is_pledge = #{isPledge}</if>
|
|
|
+ <if test="checklists != null and checklists != ''">and bill.checklists = #{checklists}</if>
|
|
|
<if test="remark != null and remark != ''">and bill.remark like concat('%', #{remark}, '%')</if>
|
|
|
<if test='timeInterval != null and timeInterval[0] != null and timeInterval[0]!= ""'>
|
|
|
and bill.f_bsdate >= #{timeInterval[0]}
|
|
@@ -592,7 +596,8 @@
|
|
|
tf.f_apply_money AS fApplyMoney,
|
|
|
tf.invoice_no AS invoiceNo,
|
|
|
tf.f_accbilldate AS fAccbilldate,
|
|
|
- bill.is_pledge AS isPledge
|
|
|
+ bill.is_pledge AS isPledge,
|
|
|
+ bill.checklists AS checklists
|
|
|
FROM
|
|
|
t_warehousebills bill
|
|
|
LEFT JOIN t_goods g ON g.f_id = bill.f_goodsid
|
|
@@ -687,6 +692,7 @@
|
|
|
<if test="fNewTrademodeid != null ">and bill.f_new_trademodeid = #{fNewTrademodeid}</if>
|
|
|
<if test="warehouseStatus != null and warehouseStatus != ''">and bill.warehouse_status = #{warehouseStatus}</if>
|
|
|
<if test="isPledge != null and isPledge != ''">and bill.is_pledge = #{isPledge}</if>
|
|
|
+ <if test="checklists != null and checklists != ''">and bill.checklists = #{checklists}</if>
|
|
|
</where>
|
|
|
${params.dataScope}
|
|
|
ORDER BY bill.f_bsdate DESC, bill.f_bstime DESC,bill.f_id DESC,bill.f_billstatus
|
|
@@ -1270,6 +1276,7 @@
|
|
|
<if test="isPledge != null and isPledge != ''">is_pledge,</if>
|
|
|
<if test="documentSummary != null and documentSummary != ''">document_summary,</if>
|
|
|
<if test="financialBillType != null and financialBillType != ''">financial_bill_type,</if>
|
|
|
+ <if test="checklists != null and checklists != ''">checklists,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fBillno != null">#{fBillno},</if>
|
|
@@ -1404,6 +1411,7 @@
|
|
|
<if test="isPledge != null and isPledge != ''">#{isPledge},</if>
|
|
|
<if test="documentSummary != null and documentSummary != ''">#{documentSummary},</if>
|
|
|
<if test="financialBillType != null and financialBillType != ''">#{financialBillType},</if>
|
|
|
+ <if test="checklists != null and checklists != ''">#{checklists},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -1542,6 +1550,7 @@
|
|
|
<if test="isPledge != null and isPledge != ''">is_pledge = #{isPledge},</if>
|
|
|
<if test="documentSummary != null and documentSummary != ''">document_summary = #{documentSummary},</if>
|
|
|
<if test="financialBillType != null and financialBillType != ''">financial_bill_type = #{financialBillType},</if>
|
|
|
+ <if test="checklists != null and checklists != ''">checklists = #{checklists},</if>
|
|
|
</trim>
|
|
|
where f_id = #{fId}
|
|
|
</update>
|
|
@@ -1679,6 +1688,7 @@
|
|
|
<if test="facilityPerson != null">facility_person = #{facilityPerson},</if>
|
|
|
<if test="facilityTime != null">facility_time = #{facilityTime},</if>
|
|
|
<if test="isPledge != null and isPledge != ''">is_pledge = #{isPledge},</if>
|
|
|
+ <if test="checklists != null and checklists != ''">checklists = #{checklists},</if>
|
|
|
</trim>
|
|
|
where f_id = #{fId}
|
|
|
</update>
|
|
@@ -3493,7 +3503,7 @@
|
|
|
<select id="selecStorageFeeList" resultType="Map">
|
|
|
SELECT DISTINCT w.f_id AS fId, w.f_billno AS fBillno, corp.f_name AS fCorpid, w.f_billing_deadline AS fBillingDeadline, w.remark,
|
|
|
w.f_billstatus AS fBillstatus, w.create_by AS createBy, w.create_time AS createTime, w.f_fee_status fFeeStatus,
|
|
|
- w.f_trademodeid AS fTrademodeid,dict.dict_label AS fTrademodeName
|
|
|
+ w.f_trademodeid AS fTrademodeid,dict.dict_label AS fTrademodeName ,w.checklists AS checklists
|
|
|
FROM t_warehousebills w LEFT JOIN t_warehousebillsitems item ON item.f_pid = w.f_id
|
|
|
LEFT JOIN t_corps corp ON corp.f_id = w.f_corpid
|
|
|
left join sys_user u on w.create_by = u.user_name
|
|
@@ -3514,6 +3524,7 @@
|
|
|
<if test="fMblno != null and fMblno != ''">and w.f_mblno like concat('%', #{fMblno}, '%')</if>
|
|
|
<if test="fCorpid != null and fCorpid != ''">and w.f_corpid = #{fCorpid}</if>
|
|
|
<if test="fTrademodeid != null and fTrademodeid != ''">and w.f_trademodeid = #{fTrademodeid}</if>
|
|
|
+ <if test="checklists != null and checklists != ''">and w.checklists = #{checklists}</if>
|
|
|
</where>
|
|
|
${params.dataScope}
|
|
|
ORDER BY w.f_bsdate DESC, w.f_bstime DESC,w.f_id DESC,w.f_billstatus
|