anderx пре 1 година
родитељ
комит
0996f3d261
1 измењених фајлова са 2 додато и 5 уклоњено
  1. 2 5
      src/main/java/com/goafanti/common/mapper/ExpenseAccountMapper.xml

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

@@ -952,9 +952,6 @@
     <if test=" status != null">
       and mea.status = #{status}
     </if>
-    <if test=" current != null">
-      and a.aid= #{current}
-    </if>
     <if test=" aid != null">
       and a.aid= #{aid}
     </if>
@@ -965,10 +962,10 @@
       </foreach>
     </if>
     <if test="roleType ==1">
-      and dep.expense_finance_id = #{aid}
+      and dep.expense_finance_id = #{current}
     </if>
     <if test="roleType ==2">
-      and dep.expense_finance_id in  (select id from admin where superior_id = #{aid})
+      and dep.expense_finance_id in  (select id from admin where superior_id = #{current})
     </if>
     <if test=" contractNo != null">
       and o.contract_no like concat('%',#{contractNo},'%')