Browse Source

新增我的与审核切换

anderx 1 year ago
parent
commit
9ecf9ba9e7
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/main/java/com/goafanti/common/mapper/ExpenseAccountMapper.xml

+ 5 - 1
src/main/java/com/goafanti/common/mapper/ExpenseAccountMapper.xml

@@ -1001,15 +1001,19 @@
         #{dep}
       </foreach>
     </if>
-    <if test="roleType ==1">
+    <if test="myType ==1">
       and a.aid = #{current}
     </if>
     <if test="roleType ==1">
+    <if test="myType ==0">
       and dep.expense_finance_id = #{current}
     </if>
+    </if>
     <if test="roleType ==2">
+    <if test="myType ==0">
       and (dep.expense_finance_id in  (select id from admin where superior_id = #{current}) or dep.expense_finance_id = #{current})
     </if>
+    </if>
     <if test=" contractNo != null">
       and o.contract_no like concat('%',#{contractNo},'%')
     </if><if test=" buyerName != null">