Browse Source

产能控制报表

liuchaohui 2 years ago
parent
commit
57d278859d

+ 3 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/capacity/mapper/xml/SyCapacityControlMapper.xml

@@ -12,13 +12,13 @@
         select
         id,supplier,supplier_code,capacity_quota,working_hours,capacity_section,supplier_state,remarks,state,cven_code_type from sy_capacity_control
         where state != '-1'
-        <if test="supplier != null">
+        <if test="supplier != null and supplier !=''">
             and supplier=#{supplier}
         </if>
-        <if test="cvenCodeType != null">
+        <if test="cvenCodeType != null and cvenCodeType!=''">
             and cven_code_type=#{cvenCodeType}
         </if>
-        <if test="state != null">
+        <if test="state != null and state!=''">
             and supplier_state=#{state}
         </if>
         order by id desc