From 4a09820519af817c7423abee62da3bd70a7f1afd Mon Sep 17 00:00:00 2001 From: zc <zc@123> Date: 星期六, 19 四月 2025 12:58:38 +0800 Subject: [PATCH] qw --- 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