|
@@ -848,6 +848,19 @@
|
|
#{fId}
|
|
#{fId}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
|
|
+ <update id="anPinDeleteFeeUpdateByfPid">
|
|
|
|
+ update
|
|
|
|
+ t_warehousebillsfees
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ where f_pid in
|
|
|
|
+ <foreach item="fId" collection="fPid" open="(" separator="," close=")">
|
|
|
|
+ #{fId}
|
|
|
|
+ </foreach>
|
|
|
|
+ </update>
|
|
<select id="anPinTWarehousebillsfeesList" parameterType="TWarehousebillsfees"
|
|
<select id="anPinTWarehousebillsfeesList" parameterType="TWarehousebillsfees"
|
|
resultMap="TWarehousebillsfeesResult">
|
|
resultMap="TWarehousebillsfeesResult">
|
|
select tw.f_id,
|
|
select tw.f_id,
|
|
@@ -1032,6 +1045,7 @@
|
|
AND std.dict_type = 'data_cost_attribute'
|
|
AND std.dict_type = 'data_cost_attribute'
|
|
<where>
|
|
<where>
|
|
tw.del_flag = '0'
|
|
tw.del_flag = '0'
|
|
|
|
+ and ti.del_flag = '0'
|
|
<if test="fBillstatus != null and fBillstatus == 1">and tw.f_billstatus = 6</if>
|
|
<if test="fBillstatus != null and fBillstatus == 1">and tw.f_billstatus = 6</if>
|
|
<if test="fBillstatus != null and fBillstatus == 2">and tw.f_billstatus != 6</if>
|
|
<if test="fBillstatus != null and fBillstatus == 2">and tw.f_billstatus != 6</if>
|
|
<if test="fCorpid != null ">and ti.f_corpid = #{fCorpid}</if>
|
|
<if test="fCorpid != null ">and ti.f_corpid = #{fCorpid}</if>
|
|
@@ -1097,6 +1111,7 @@
|
|
LEFT JOIN t_fees tf ON tw.f_feeid = tf.f_id
|
|
LEFT JOIN t_fees tf ON tw.f_feeid = tf.f_id
|
|
WHERE
|
|
WHERE
|
|
tw.del_flag = '0'
|
|
tw.del_flag = '0'
|
|
|
|
+ AND tb.del_flag = '0'
|
|
AND tw.f_billtype = 'XS'
|
|
AND tw.f_billtype = 'XS'
|
|
<if test="fBillstatus != null">and tw.f_billstatus = #{fBillstatus}</if>
|
|
<if test="fBillstatus != null">and tw.f_billstatus = #{fBillstatus}</if>
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tb.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tb.f_goodsid = #{fGoodsid}</if>
|
|
@@ -1164,6 +1179,7 @@
|
|
WHERE
|
|
WHERE
|
|
tf.f_billtype = 'XS'
|
|
tf.f_billtype = 'XS'
|
|
AND tf.del_flag = '0'
|
|
AND tf.del_flag = '0'
|
|
|
|
+ AND tw.del_flag = '0'
|
|
AND tf.f_billstatus = 6
|
|
AND tf.f_billstatus = 6
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tw.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tw.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fFeeType != null">and te.f_feetype = #{fFeeType}</if>
|
|
<if test="fFeeType != null">and te.f_feetype = #{fFeeType}</if>
|
|
@@ -1195,6 +1211,7 @@
|
|
WHERE
|
|
WHERE
|
|
tf.f_billtype = 'SQ'
|
|
tf.f_billtype = 'SQ'
|
|
AND tf.del_flag = '0'
|
|
AND tf.del_flag = '0'
|
|
|
|
+ AND tw.del_flag = '0'
|
|
AND tf.f_billstatus = 6
|
|
AND tf.f_billstatus = 6
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tw.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tw.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fFeeType != null">and te.f_feetype = #{fFeeType}</if>
|
|
<if test="fFeeType != null">and te.f_feetype = #{fFeeType}</if>
|
|
@@ -1249,6 +1266,7 @@
|
|
WHERE
|
|
WHERE
|
|
tf.f_billtype = 'SQ'
|
|
tf.f_billtype = 'SQ'
|
|
AND tf.del_flag = '0'
|
|
AND tf.del_flag = '0'
|
|
|
|
+ AND tw.del_flag = '0'
|
|
AND tf.f_billstatus = 6
|
|
AND tf.f_billstatus = 6
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tw.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tw.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fFeeType != null">and te.f_feetype = #{fFeeType}</if>
|
|
<if test="fFeeType != null">and te.f_feetype = #{fFeeType}</if>
|
|
@@ -1280,6 +1298,7 @@
|
|
WHERE
|
|
WHERE
|
|
tf.f_billtype = 'XS'
|
|
tf.f_billtype = 'XS'
|
|
AND tf.del_flag = '0'
|
|
AND tf.del_flag = '0'
|
|
|
|
+ AND tw.del_flag = '0'
|
|
AND tf.f_billstatus = 6
|
|
AND tf.f_billstatus = 6
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tw.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fGoodsid != null and fGoodsid != ''">and tw.f_goodsid = #{fGoodsid}</if>
|
|
<if test="fFeeType != null">and te.f_feetype = #{fFeeType}</if>
|
|
<if test="fFeeType != null">and te.f_feetype = #{fFeeType}</if>
|