Browse Source

项目新增筛选

anderx 6 years ago
parent
commit
7d1c7ee2a7
1 changed files with 16 additions and 4 deletions
  1. 16 4
      src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

+ 16 - 4
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -936,9 +936,15 @@
     <if test="orderNo != null">
   	and a.order_no= #{orderNo,jdbcType=VARCHAR}
   	</if>
-  	<if test="approval != null">
-  	and a.approval= #{approval,jdbcType=INTEGER}
+  	<if test="approval ==0">
+  	and e.approval = 0
   	</if>
+  	<if test="approval ==1">
+  	and e.approval = 1
+  	</if>
+  	<if test="approval ==2">
+  	and e.approval &gt; 1
+  	</if> 
   	<if test="contractNo != null">
   	and e.contract_no like CONCAT('%',#{contractNo,jdbcType=VARCHAR},'%')
   	</if>
@@ -984,9 +990,15 @@
     <if test="orderNo != null">
   	and a.order_no= #{orderNo,jdbcType=VARCHAR}
   	</if>
-  	<if test="approval != null">
-  	and a.approval= #{approval,jdbcType=INTEGER}
+  	<if test="approval ==0">
+  	and e.approval = 0
+  	</if>
+  	<if test="approval ==1">
+  	and e.approval = 1
   	</if>
+  	<if test="approval ==2">
+  	and e.approval &gt; 1
+  	</if> 
   	<if test="contractNo != null">
   	and e.contract_no like CONCAT('%',#{contractNo,jdbcType=VARCHAR},'%')
   	</if>