@@ -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 test="state != null">
+ <if test="state != null and state!=''">
and supplier_state=#{state}
order by id desc