瀏覽代碼

年度预算费用申请页面不同岗位显示

梁世豪 10 月之前
父節點
當前提交
5c46c47f9a

+ 1 - 1
src/main/java/com/liang/controller/StaBudgetapprovalController.java

@@ -190,7 +190,7 @@ public class StaBudgetapprovalController extends BaseController {
190 190
         String post = "";
191 191
         if (postName.size() > 0) {
192 192
             for (int i = 0; i < postName.size(); i++) {
193
-                if (PostInfoEnum.KYZZ.equals(postName.get(i))||PostInfoEnum.KYFZR.equals(postName.get(i))) {
193
+                if (PostInfoEnum.KYZZ.postName().equals(postName.get(i))||PostInfoEnum.KYFZR.postName().equals(postName.get(i))) {
194 194
                     post = "过";
195 195
                 }
196 196
             }

+ 2 - 2
src/main/resources/mapper/PrjAnnualbudgetDao.xml

@@ -354,8 +354,8 @@
354 354
         AND bd.FJ = ''
355 355
         WHERE
356 356
         1 = 1
357
-        <if test="userId != null and userId != ''">
358
-            and (a.SQR = #{userId} or #{userId} in (select SHR from prj_ApproveRecord where XMID = a.ID))
357
+        <if test="deptName!= null and deptName != ''">
358
+            and d.dept_name = #{deptName}
359 359
         </if>
360 360
         <if test="xmmc != null and xmmc != ''">
361 361
             and a.XMMC like '%'+#{xmmc}+'%'