瀏覽代碼

[CODE]: 财务查询数据

maxianghua 4 年之前
父節點
當前提交
ea6f3d0aa0
共有 1 個文件被更改,包括 8 次插入11 次删除
  1. 8 11
      ruoyi-warehouse/src/main/resources/mapper/finance/TFeeMapper.xml

+ 8 - 11
ruoyi-warehouse/src/main/resources/mapper/finance/TFeeMapper.xml

@@ -324,34 +324,31 @@
             <if test='map.tWareHouseFees.timeReconci != null and map.tWareHouseFees.timeReconci[1] != null and map.tWareHouseFees.timeReconci[1]!= ""'>
                 and w.f_accamount_date &lt;= #{map.tWareHouseFees.timeReconci[1]}
             </if>
-
             <if test="map.tWareHouseFees.fBilltype != null  and map.tWareHouseFees.fBilltype == 'SJRK'">
                 and w.f_billtype = #{map.tWareHouseFees.fBilltype}
                 AND dictIn.dict_type = 'st_in_type'
                 AND dictIn.status = '0'
             </if>
-
             <if test="map.tWareHouseFees.fBilltype != null  and map.tWareHouseFees.fBilltype == 'SJCK'">
                 and w.f_billtype = #{map.tWareHouseFees.fBilltype}
                 AND dictIn.dict_type = 'st_out_type'
                 AND dictIn.status = '0'
             </if>
-
             <if test="map.tWareHouseFees.fBilltype != null  and map.tWareHouseFees.fBilltype == 'HQZY'">
                 and w.f_billtype = #{map.tWareHouseFees.fBilltype}
                 AND dictIn.dict_type = 'st_trans_type'
                 AND dictIn.status = '0'
             </if>
-
+            <if test="map.tWareHouseFees.fBilltype == null ">
+                AND dictIn.dict_type in ('st_in_type','st_out_type','st_trans_type')
+                AND dictIn.status = '0'
+            </if>
             <if test="map.tWareHouseFees.fBusinessType != null  and map.tWareHouseFees.fBusinessType != '' ">
                 and  w.f_business_type in
                 <foreach collection="map.tWareHouseFees.fBusinessType" item="id" open="(" close=")" separator=",">
                     #{id}
                 </foreach>
             </if>
-
-
-
             and  t.f_review_date IS NOT NULL
             and  ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) > 0
         </where>
@@ -482,25 +479,25 @@
             <if test='map.tWareHouseFees.timeReconci != null and map.tWareHouseFees.timeReconci[1] != null and map.tWareHouseFees.timeReconci[1]!= ""'>
                 and w.f_accamount_date &lt;= #{map.tWareHouseFees.timeReconci[1]}
             </if>
-
             <if test="map.tWareHouseFees.fBilltype != null  and map.tWareHouseFees.fBilltype == 'SJRK'">
                 and w.f_billtype = #{map.tWareHouseFees.fBilltype}
                 AND dictIn.dict_type = 'st_in_type'
                 AND dictIn.status = '0'
              </if>
-
             <if test="map.tWareHouseFees.fBilltype != null  and map.tWareHouseFees.fBilltype == 'SJCK'">
                 and w.f_billtype = #{map.tWareHouseFees.fBilltype}
                 AND dictIn.dict_type = 'st_out_type'
                 AND dictIn.status = '0'
             </if>
-
             <if test="map.tWareHouseFees.fBilltype != null  and map.tWareHouseFees.fBilltype == 'HQZY'">
                 and w.f_billtype = #{map.tWareHouseFees.fBilltype}
                 AND dictIn.dict_type = 'st_trans_type'
                 AND dictIn.status = '0'
             </if>
-
+            <if test="map.tWareHouseFees.fBilltype == null ">
+                AND dictIn.dict_type in ('st_in_type','st_out_type','st_trans_type')
+                AND dictIn.status = '0'
+            </if>
             <if test="map.tWareHouseFees.fBusinessType != null  and map.tWareHouseFees.fBusinessType != '' ">
                 and  w.f_business_type in
                 <foreach collection="map.tWareHouseFees.fBusinessType" item="id" open="(" close=")" separator=",">