|
@@ -130,6 +130,7 @@
|
|
|
resultMap="TWarehousebillsfeesResult">
|
|
|
<include refid="selectTWarehousebillsfeesVo"/>
|
|
|
<where>
|
|
|
+ del_flag = '0'
|
|
|
<if test="fPid != null ">and f_pid = #{fPid}</if>
|
|
|
<if test="fLineno != null ">and f_lineno = #{fLineno}</if>
|
|
|
<if test="fCorpid != null ">and f_corpid = #{fCorpid}</if>
|
|
@@ -189,11 +190,12 @@
|
|
|
from t_warehousebillsfees
|
|
|
where f_pid = #{fId}
|
|
|
and f_billtype = 'SJCK'
|
|
|
+ and del_flag = '0'
|
|
|
</select>
|
|
|
|
|
|
<select id="selectWarehousebillsfeesByPId" parameterType="Long" resultMap="TWarehousebillsfeesResult">
|
|
|
<include refid="selectTWarehousebillsfeesVo"/>
|
|
|
- where f_pid = #{fId}
|
|
|
+ where f_pid = #{fId} and del_flag = '0'
|
|
|
</select>
|
|
|
|
|
|
<select id="selectReconciliation" resultType="java.lang.Integer">
|
|
@@ -239,6 +241,7 @@
|
|
|
LEFT JOIN t_whgenleg t ON t.f_corpid = s.f_corpid
|
|
|
WHERE
|
|
|
s.f_dc = 'D'
|
|
|
+ AND s.del_flag = '0'
|
|
|
<if test='fMonth != null and fMonth[0] != null and fMonth[0]!= ""'>
|
|
|
and s.f_bsdate >= #{fMonth[0]}
|
|
|
</if>
|
|
@@ -274,6 +277,7 @@
|
|
|
LEFT JOIN t_whgenleg t ON t.f_corpid = s.f_corpid
|
|
|
WHERE
|
|
|
s.f_dc = 'D'
|
|
|
+ and s.del_flag = '0'
|
|
|
<if test='fMonth != null and fMonth[0] != null and fMonth[0]!= ""'>
|
|
|
and s.f_bsdate >= #{fMonth[0]}
|
|
|
</if>
|
|
@@ -651,6 +655,7 @@
|
|
|
LEFT JOIN t_fees tf ON tw.f_feeid = tf.f_id
|
|
|
LEFT JOIN t_corps tc ON tw.f_corpid = tc.f_id
|
|
|
where tw.f_pid = #{fPid}
|
|
|
+ and tw.del_flag = '0'
|
|
|
and tw.f_billtype = 'KHDD'
|
|
|
<if test="fDc != null and fDc != ''">and tw.f_dc = #{fDc}</if>
|
|
|
</select>
|
|
@@ -665,6 +670,7 @@
|
|
|
LEFT JOIN t_fees tf ON tw.f_feeid = tf.f_id
|
|
|
WHERE
|
|
|
tw.f_pid = #{fPid}
|
|
|
+ and tw.del_flag = '0'
|
|
|
AND tw.f_billtype = 'KHDD'
|
|
|
<if test="fDc != null and fDc != ''">AND tw.f_dc = #{fDc}</if>
|
|
|
GROUP BY feeName;
|
|
@@ -677,7 +683,8 @@
|
|
|
from t_warehousebillsfees tw
|
|
|
LEFT JOIN t_fees tf on tw.f_feeid = tf.f_id
|
|
|
where
|
|
|
- <if test="fPid != null and fPid != ''">tw.f_pid = #{fPid}</if>
|
|
|
+ tw.del_flag = '0'
|
|
|
+ <if test="fPid != null and fPid != ''">and tw.f_pid = #{fPid}</if>
|
|
|
<if test="fDc != null and fDc != ''">and tw.f_dc = #{fDc}</if>
|
|
|
</select>
|
|
|
|
|
@@ -760,6 +767,7 @@
|
|
|
LEFT JOIN t_corps tp ON tp.f_id = tb.f_corpid
|
|
|
WHERE
|
|
|
tf.f_billstatus = 6
|
|
|
+ and tf.del_flag = '0'
|
|
|
AND tf.f_dc = 'D'
|
|
|
AND tb.f_typeid = 1
|
|
|
and tb.f_review_date IS NOT NULL
|
|
@@ -859,6 +867,7 @@
|
|
|
LEFT JOIN t_corps tp ON tp.f_id = te.f_corpid
|
|
|
WHERE
|
|
|
te.f_billtype = 'KHDZ'
|
|
|
+ and th.del_flag = '0'
|
|
|
<if test="fLoadportid != null">and tw.f_loadportid = #{fLoadportid}</if>
|
|
|
<if test="fDestportid != null">and tw.f_destportid = #{fDestportid}</if>
|
|
|
<if test="fInvoceobj != null and fInvoceobj != ''">and tw.f_invoceobj like concat('%', #{fInvoceobj}, '%')</if>
|
|
@@ -888,7 +897,7 @@
|
|
|
<select id="selectTWarehousebillsfeesSrcId" parameterType="Long" resultType="long">
|
|
|
select src_id
|
|
|
FROM t_warehousebillsfees
|
|
|
- where f_pid = #{fId}
|
|
|
+ where f_pid = #{fId} and del_flag = '0'
|
|
|
AND src_id IS NOT NULL
|
|
|
</select>
|
|
|
<select id="accountsDue" resultType="map">
|
|
@@ -932,6 +941,7 @@
|
|
|
LEFT JOIN t_corps tc ON tf.f_corpid = tc.f_id
|
|
|
WHERE ifnull(tf.f_amount, 0) - ifnull(tf.f_stlamount, 0) >0
|
|
|
AND tf.f_dc = 'D'
|
|
|
+ and tf.del_flag = '0'
|
|
|
AND YEAR(tf.create_time) = YEAR(NOW())
|
|
|
GROUP BY tf.f_corpid
|
|
|
LIMIT 10
|
|
@@ -981,6 +991,7 @@
|
|
|
LEFT JOIN t_fees te ON te.f_id = tf.f_feeid
|
|
|
LEFT JOIN t_warehousebills tw on tf.f_pid = tw.f_id
|
|
|
<where>
|
|
|
+ tf.del_flag = '0'
|
|
|
<if test="fBillstatus != null and fBillstatus != ''">and tf.f_billstatus = #{fBillstatus}</if>
|
|
|
<if test="fDc != null and fDc != ''">and tf.f_dc = #{fDc}</if>
|
|
|
<if test="fMblno != null and fMblno != ''">and tf.f_mblno like concat('%', #{fMblno}, '%')</if>
|
|
@@ -1068,6 +1079,7 @@
|
|
|
),dictIn.dict_label,NULL)
|
|
|
) dict ON dict.dict_value = twf.f_business_type
|
|
|
<where>
|
|
|
+ twf.del_flag = '0'
|
|
|
<if test="fCorpid != null and fCorpid != ''">and twf.f_corpid = #{fCorpid}</if>
|
|
|
<if test="fMblno != null and fMblno != ''">and twf.f_mblno like concat('%', #{fMblno}, '%')</if>
|
|
|
<if test='fBsdateList != null and fBsdateList[0] != null and fBsdateList[0]!= ""'>
|
|
@@ -1114,6 +1126,7 @@
|
|
|
t_fees tf
|
|
|
LEFT JOIN t_warehousebillsfees twf on tf.f_id = twf.f_feeid
|
|
|
<where>
|
|
|
+ twf.del_flag = '0'
|
|
|
<if test="fMblno != null and fMblno != ''">and twf.f_mblno = #{fMblno}</if>
|
|
|
<if test="fCorpid != null and fCorpid != ''">and twf.f_corpid = #{fCorpid}</if>
|
|
|
<if test="fDc != null and fDc != ''">and twf.f_dc = #{fDc}</if>
|
|
@@ -1134,7 +1147,7 @@
|
|
|
feeName
|
|
|
</select>
|
|
|
<select id="getCorpid" resultType="long">
|
|
|
- SELECT f_corpid FROM t_warehousebillsfees where f_id in
|
|
|
+ SELECT f_corpid FROM t_warehousebillsfees where del_flag = '0' and f_id in
|
|
|
<foreach item="fId" collection="fIds" open="(" separator="," close=")">
|
|
|
#{fId}
|
|
|
</foreach>
|
|
@@ -1204,6 +1217,7 @@
|
|
|
FROM
|
|
|
t_warehousebillsfees tw
|
|
|
<where>
|
|
|
+ tw.del_flag = '0'
|
|
|
<if test="fPid != null ">and tw.f_pid = #{fPid}</if>
|
|
|
<if test="fLineno != null ">and tw.f_lineno = #{fLineno}</if>
|
|
|
<if test="fCorpid != null ">and tw.f_corpid = #{fCorpid}</if>
|