zhangyuewww 3 rokov pred
rodič
commit
4a26d2f0e3

+ 14 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/PurchaseClosingReportMapper.xml

@@ -32,8 +32,21 @@
             status_flag =  #{statusFlag}
         </if>
         <if test="searchType != null and searchType != ''">
-            <if test="searchType == 1">
+            <if test="searchType == 1 and roleFlag==1" >
                 AND status_flag = '1'
+                OR status_flag = '8'
+                OR status_flag = '11'
+            </if>
+            <if test="searchType == 1 and roleFlag==2" >
+                AND status_flag = '2'
+            </if>
+            <if test="searchType == 1 and roleFlag==3" >
+                AND status_flag = '7'
+            </if>
+            <if test="searchType == 1 and roleFlag==4" >
+                AND status_flag = '3'
+                OR status_flag = '4'
+                OR status_flag = '9'
             </if>
             <if test="searchType == 2">
                 AND amount_ing_payable-amount_ed_payable>0