|
@@ -128,6 +128,8 @@
|
|
<result property="fDue" column="f_due" />
|
|
<result property="fDue" column="f_due" />
|
|
<result property="fPay" column="f_pay" />
|
|
<result property="fPay" column="f_pay" />
|
|
<result property="fCaregoStatus" column="f_carego_status" />
|
|
<result property="fCaregoStatus" column="f_carego_status" />
|
|
|
|
+ <result property="fShipTwo" column="f_ship_two" />
|
|
|
|
+ <result property="fVoyTwo" column="f_voy_two" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="WarehouseBillsVO" id="WarehousebillsVOResult">
|
|
<resultMap type="WarehouseBillsVO" id="WarehousebillsVOResult">
|
|
@@ -152,7 +154,7 @@
|
|
free_container_date, f_business_attribution, f_fee_status, f_supervision_unit, f_declaration_elements, f_part_number, f_ifinspection, f_value, f_weighing_date,
|
|
free_container_date, f_business_attribution, f_fee_status, f_supervision_unit, f_declaration_elements, f_part_number, f_ifinspection, f_value, f_weighing_date,
|
|
f_ifsampling, send_sample_date, f_ifweight_recovery, weight_recovery_date, warehouse_status, f_times ,f_date_changed, f_chargetype,f_weigh_weight,
|
|
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_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 from t_warehousebills
|
|
|
|
|
|
+ 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 from t_warehousebills
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTWarehousebillsList" parameterType="TWarehousebills" resultMap="TWarehousebillsResult">
|
|
<select id="selectTWarehousebillsList" parameterType="TWarehousebills" resultMap="TWarehousebillsResult">
|
|
@@ -1151,6 +1153,8 @@
|
|
<if test="fDue != null">f_due,</if>
|
|
<if test="fDue != null">f_due,</if>
|
|
<if test="fPay != null">f_pay,</if>
|
|
<if test="fPay != null">f_pay,</if>
|
|
<if test="fCaregoStatus != null">f_carego_status,</if>
|
|
<if test="fCaregoStatus != null">f_carego_status,</if>
|
|
|
|
+ <if test="fShipTwo != null">f_ship_two,</if>
|
|
|
|
+ <if test="fVoyTwo != null">f_voy_two,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="fBillno != null">#{fBillno},</if>
|
|
<if test="fBillno != null">#{fBillno},</if>
|
|
@@ -1275,6 +1279,8 @@
|
|
<if test="fDue != null">#{fDue},</if>
|
|
<if test="fDue != null">#{fDue},</if>
|
|
<if test="fPay != null">#{fPay},</if>
|
|
<if test="fPay != null">#{fPay},</if>
|
|
<if test="fCaregoStatus != null">#{fCaregoStatus},</if>
|
|
<if test="fCaregoStatus != null">#{fCaregoStatus},</if>
|
|
|
|
+ <if test="fShipTwo != null">#{fShipTwo},</if>
|
|
|
|
+ <if test="fVoyTwo != null">#{fVoyTwo},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -1403,6 +1409,8 @@
|
|
<if test="fDue != null">f_due = #{fDue},</if>
|
|
<if test="fDue != null">f_due = #{fDue},</if>
|
|
<if test="fPay != null">f_pay = #{fPay},</if>
|
|
<if test="fPay != null">f_pay = #{fPay},</if>
|
|
<if test="fCaregoStatus != null">f_carego_status = #{fCaregoStatus},</if>
|
|
<if test="fCaregoStatus != null">f_carego_status = #{fCaregoStatus},</if>
|
|
|
|
+ <if test="fShipTwo != null">f_ship_two = #{fShipTwo},</if>
|
|
|
|
+ <if test="fVoyTwo != null">f_voy_two = #{fVoyTwo},</if>
|
|
</trim>
|
|
</trim>
|
|
where f_id = #{fId}
|
|
where f_id = #{fId}
|
|
</update>
|
|
</update>
|
|
@@ -1533,6 +1541,8 @@
|
|
<if test="fDue != null">f_due = #{fDue},</if>
|
|
<if test="fDue != null">f_due = #{fDue},</if>
|
|
<if test="fPay != null">f_pay = #{fPay},</if>
|
|
<if test="fPay != null">f_pay = #{fPay},</if>
|
|
<if test="fCaregoStatus != null">f_carego_status = #{fCaregoStatus},</if>
|
|
<if test="fCaregoStatus != null">f_carego_status = #{fCaregoStatus},</if>
|
|
|
|
+ <if test="fShipTwo != null">f_ship_two = #{fShipTwo},</if>
|
|
|
|
+ <if test="fVoyTwo != null">f_voy_two = #{fVoyTwo},</if>
|
|
</trim>
|
|
</trim>
|
|
where f_id = #{fId}
|
|
where f_id = #{fId}
|
|
</update>
|
|
</update>
|
|
@@ -2052,7 +2062,9 @@
|
|
WHEN tw.f_carego_status = '1' THEN '未放货'
|
|
WHEN tw.f_carego_status = '1' THEN '未放货'
|
|
WHEN tw.f_carego_status = '2' THEN '放货'
|
|
WHEN tw.f_carego_status = '2' THEN '放货'
|
|
WHEN tw.f_carego_status = '3' THEN '扣货'
|
|
WHEN tw.f_carego_status = '3' THEN '扣货'
|
|
- END AS fCaregoStatus
|
|
|
|
|
|
+ END AS fCaregoStatus,
|
|
|
|
+ tv1.f_name fShipTwoName,
|
|
|
|
+ ty1.f_no fVoyTwoName
|
|
FROM
|
|
FROM
|
|
t_warehousebills tw
|
|
t_warehousebills tw
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_laneid
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_laneid
|
|
@@ -2065,6 +2077,8 @@
|
|
</if>
|
|
</if>
|
|
LEFT JOIN t_vessel tv ON tw.f_vslid = tv.f_id
|
|
LEFT JOIN t_vessel tv ON tw.f_vslid = tv.f_id
|
|
LEFT JOIN t_voyage ty ON tw.f_voyid = ty.f_id
|
|
LEFT JOIN t_voyage ty ON tw.f_voyid = ty.f_id
|
|
|
|
+ LEFT JOIN t_vessel tv1 ON tw.f_ship_two = tv1.f_id
|
|
|
|
+ LEFT JOIN t_voyage ty1 ON tw.f_voy_two = ty1.f_id
|
|
LEFT JOIN t_corps tp ON tw.f_corpid = tp.f_id
|
|
LEFT JOIN t_corps tp ON tw.f_corpid = tp.f_id
|
|
LEFT JOIN (
|
|
LEFT JOIN (
|
|
SELECT
|
|
SELECT
|
|
@@ -2231,6 +2245,8 @@
|
|
<if test="fCargoPlanning != null "> and tw.f_cargo_planning = #{fCargoPlanning}</if>
|
|
<if test="fCargoPlanning != null "> and tw.f_cargo_planning = #{fCargoPlanning}</if>
|
|
<if test="fArrivalStatus != null and fArrivalStatus != 3"> and tw.f_arrival_status = #{fArrivalStatus}</if>
|
|
<if test="fArrivalStatus != null and fArrivalStatus != 3"> and tw.f_arrival_status = #{fArrivalStatus}</if>
|
|
<if test="fArrivalStatus != null and fArrivalStatus == 3"> and tw.f_arrival_status != '2'</if>
|
|
<if test="fArrivalStatus != null and fArrivalStatus == 3"> and tw.f_arrival_status != '2'</if>
|
|
|
|
+ <if test="fShipTwo != null "> and tw.f_ship_two = #{fShipTwo}</if>
|
|
|
|
+ <if test="fVoyTwo != null "> and tw.f_voy_two = #{fVoyTwo}</if>
|
|
</where>
|
|
</where>
|
|
ORDER BY tw.create_time DESC, tw.f_id DESC
|
|
ORDER BY tw.create_time DESC, tw.f_id DESC
|
|
</select>
|
|
</select>
|
|
@@ -2497,6 +2513,8 @@
|
|
</if>
|
|
</if>
|
|
<if test="fCargoPlanning != null "> and tw.f_cargo_planning = #{fCargoPlanning}</if>
|
|
<if test="fCargoPlanning != null "> and tw.f_cargo_planning = #{fCargoPlanning}</if>
|
|
<if test="fArrivalStatus != null "> and tw.f_arrival_status = #{fArrivalStatus}</if>
|
|
<if test="fArrivalStatus != null "> and tw.f_arrival_status = #{fArrivalStatus}</if>
|
|
|
|
+ <if test="fShipTwo != null "> and tw.f_ship_two = #{fShipTwo}</if>
|
|
|
|
+ <if test="fVoyTwo != null "> and tw.f_voy_two = #{fVoyTwo}</if>
|
|
</where>
|
|
</where>
|
|
ORDER BY tw.create_time DESC, tw.f_id DESC
|
|
ORDER BY tw.create_time DESC, tw.f_id DESC
|
|
</select>
|
|
</select>
|
|
@@ -2614,7 +2632,11 @@
|
|
WHEN tw.f_carego_status = '1' THEN '未放货'
|
|
WHEN tw.f_carego_status = '1' THEN '未放货'
|
|
WHEN tw.f_carego_status = '2' THEN '放货'
|
|
WHEN tw.f_carego_status = '2' THEN '放货'
|
|
WHEN tw.f_carego_status = '3' THEN '扣货'
|
|
WHEN tw.f_carego_status = '3' THEN '扣货'
|
|
- END AS fCaregoStatus
|
|
|
|
|
|
+ END AS fCaregoStatus,
|
|
|
|
+ tv1.f_name fShipTwoName,
|
|
|
|
+ ty1.f_no fVoyTwoName,
|
|
|
|
+ tw.f_ship_two,
|
|
|
|
+ tw.f_voy_two
|
|
FROM t_warehousebills tw
|
|
FROM t_warehousebills tw
|
|
LEFT JOIN t_address address ON address.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address address ON address.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_loadportid
|
|
LEFT JOIN t_address ta ON ta.f_id = tw.f_loadportid
|
|
@@ -2634,6 +2656,8 @@
|
|
AND sda.dict_type = 'f_paymode'
|
|
AND sda.dict_type = 'f_paymode'
|
|
LEFT JOIN t_vessel tv ON tv.f_id = tw.f_vslid
|
|
LEFT JOIN t_vessel tv ON tv.f_id = tw.f_vslid
|
|
LEFT JOIN t_voyage ty ON ty.f_id = tw.f_voyid
|
|
LEFT JOIN t_voyage ty ON ty.f_id = tw.f_voyid
|
|
|
|
+ LEFT JOIN t_vessel tv1 ON tv1.f_id = tw.f_ship_two
|
|
|
|
+ LEFT JOIN t_voyage ty1 ON ty1.f_id = tw.f_voy_two
|
|
where 1= 1
|
|
where 1= 1
|
|
<if test="fMblno != null and fMblno != ''">and tw.f_mblno = #{fMblno} </if>
|
|
<if test="fMblno != null and fMblno != ''">and tw.f_mblno = #{fMblno} </if>
|
|
<if test="fId != null ">and tw.f_id = #{fId} </if>
|
|
<if test="fId != null ">and tw.f_id = #{fId} </if>
|