Browse Source

修复筛选结算状态 0与空字符串在xml里面的bug

anderx 6 years ago
parent
commit
e72a105a35
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/main/java/com/goafanti/common/mapper/TOrderNewMapper.xml

+ 3 - 4
src/main/java/com/goafanti/common/mapper/TOrderNewMapper.xml

@@ -1112,10 +1112,9 @@ where delete_sign != 1 and (approval = 0 or approval = 2) and outsource=  #{o.ou
 	  	<if test="o.contractNo != null and o.contractNo != &quot;&quot;">
   	and o.contract_no like CONCAT('%',#{o.contractNo,jdbcType=VARCHAR},'%')
   	</if>
-  		<if test="o.liquidationStatus != null and o.liquidationStatus != &quot;&quot;">
+  		<if test="o.liquidationStatus != null">
 	  	and o.liquidation_status = #{o.liquidationStatus,jdbcType=INTEGER}
 	  	</if>
-  		
   		<if test="o.orderNo != null and o.orderNo != &quot;&quot;">
 	  	and o.order_no = #{o.orderNo,jdbcType=VARCHAR}
 	  	</if>
@@ -1163,7 +1162,7 @@ where delete_sign != 1 and (approval = 0 or approval = 2) and outsource=  #{o.ou
 	  	<if test="o.contractNo != null and o.contractNo != &quot;&quot;">
   	and o.contract_no like CONCAT('%',#{o.contractNo,jdbcType=VARCHAR},'%')
   	</if>
-  		<if test="o.liquidationStatus != null and o.liquidationStatus != &quot;&quot;">
+  		<if test="o.liquidationStatus != null">
 	  	and o.liquidation_status = #{o.liquidationStatus,jdbcType=INTEGER}
 	  	</if>
   		
@@ -1544,7 +1543,7 @@ where super_id is null ) e on e.order_no=a.order_no
 	  	<if test="contractNo != null and contractNo != &quot;&quot;">
   	and o.contract_no like CONCAT('%',#{contractNo,jdbcType=VARCHAR},'%')
   	</if>
-  		<if test="liquidationStatus != null and liquidationStatus != &quot;&quot;">
+  		<if test="liquidationStatus != null ">
 	  	and o.liquidation_status = #{liquidationStatus,jdbcType=INTEGER}
 	  	</if>