From d41349dff95bbc34d6e34997bb8c68eb0d8dc46a Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 12 十一月 2024 14:14:07 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/controller/WrkMastLogController.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/WrkMastLogController.java b/src/main/java/com/zy/asrs/controller/WrkMastLogController.java
index 669978a..9a41f8e 100644
--- a/src/main/java/com/zy/asrs/controller/WrkMastLogController.java
+++ b/src/main/java/com/zy/asrs/controller/WrkMastLogController.java
@@ -12,6 +12,7 @@
 import com.core.common.R;
 import com.zy.asrs.entity.WrkMastLog;
 import com.zy.asrs.service.WrkMastLogService;
+import com.zy.common.utils.RoleUtils;
 import com.zy.common.web.BaseController;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -51,8 +52,10 @@
             }
             wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
         }else {
-            wrapper.orderBy("modi_time", false).orderBy("wrk_no", false);
+            wrapper.orderBy("modi_time", false);
         }
+        // 涓嶅悓缁ф壙瑙掕壊鏄剧ず涓嶅悓搴撲俊鎭�
+        RoleUtils.addRoleWrapperByCrn(getUserId(),wrapper);
         return R.ok(wrkMastLogService.selectPage(new Page<>(curr, limit), wrapper));
     }
 
@@ -64,7 +67,11 @@
                 wrapper.ge(entry.getKey(), DateUtils.convert(dates[0]));
                 wrapper.le(entry.getKey(), DateUtils.convert(dates[1]));
             } else {
-                wrapper.like(entry.getKey(), val);
+                if (entry.getKey().equals("manu_type")) {
+                    wrapper.like(entry.getKey(), val);
+                } else {
+                    wrapper.eq(entry.getKey(), val);
+                }
             }
         }
     }

--
Gitblit v1.9.1