Browse Source

Merge branch '_update_bug' of zhujiawei/WarehouseManagement into dev

zhujiawei 3 years ago
parent
commit
46d4f9f08d

+ 3 - 2
ruoyi-warehouse/src/main/resources/mapper/reportManagement/TWhgenlegMapper.xml

@@ -470,8 +470,9 @@
             wh.f_corpid = #{warehouse.fCorpid}
             and ware.f_charg = 1
             and wh.f_chargedate < #{warehouse.fBillingDeadline}
-            <if test="warehouse.fGoodsid != null">and wh.f_goodsid = #{warehouse.fGoodsid}</if>
-            <if test="warehouse.fMblno != null">and wh.f_mblno = #{warehouse.fMblno}</if>
+            <if test="warehouse.fGoodsid != null and warehouse.fGoodsid != ''">and wh.f_goodsid = #{warehouse.fGoodsid}</if>
+            <if test="warehouse.fMblno != null and warehouse.fMblno != ''">and wh.f_mblno = #{warehouse.fMblno}</if>
+            <if test="warehouse.fWarehouseid != null and warehouse.fWarehouseid != ''">and wh.f_warehouseid = #{warehouse.fWarehouseid}</if>
         </where>
     </select>
 

+ 3 - 2
ruoyi-warehouse/src/main/resources/mapper/warehouseBusiness/TWarehousebillsitemsMapper.xml

@@ -477,8 +477,9 @@
             and item.f_billstatus = 40
             and item.f_storage_fee_deadline IS NULL
             and IF(ware.f_billtype = "SJCK", item.f_bsdate &lt;#{warehouse.fBillingDeadline}, item.f_chargedate &lt;= #{warehouse.fBillingDeadline})
-            <if test="warehouse.fGoodsid != null">and item.f_goodsid = #{warehouse.fGoodsid}</if>
-            <if test="warehouse.fMblno != null">and ware.f_mblno = #{warehouse.fMblno}</if>
+            <if test="warehouse.fGoodsid != null and warehouse.fGoodsid != ''">and item.f_goodsid = #{warehouse.fGoodsid}</if>
+            <if test="warehouse.fMblno != null and warehouse.fMblno != ''">and ware.f_mblno = #{warehouse.fMblno}</if>
+            <if test="warehouse.fWarehouseid != null and warehouse.fWarehouseid != ''">and ware.f_warehouseid = #{warehouse.fWarehouseid}</if>
            <!--  <if test="warehouse.fId != null">and item.f_id = #{warehouse.fId}</if> -->
         </where>
     </select>