소스 검색

2024-09-04 查询条件修改

luguang 2 달 전
부모
커밋
c0fbcb2d00
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/sy/coinage/workshop/component/ScreenComponent.java

+ 1 - 1
src/main/java/com/sy/coinage/workshop/component/ScreenComponent.java

@@ -316,9 +316,9 @@ public class ScreenComponent {
      */
     public List<WorkshopAccount> workshopAccountList(int type, Date date, Dept dept) {
         LambdaQueryWrapper<WorkshopAccount> queryWrapper = new LambdaQueryWrapper<>();
-        queryWrapper.eq(WorkshopAccount::getDept, dept.getName());
         queryWrapper.eq(WorkshopAccount::getRedFlashFlag, 1);
         if (type == 1) {
+            queryWrapper.eq(WorkshopAccount::getDeptId, dept.getId());
             queryWrapper.eq(WorkshopAccount::getLocTo, 1);
         } else {
             queryWrapper.eq(WorkshopAccount::getLocFrom, 1);