Forráskód Böngészése

2024-09-04 查询条件修改

luguang 2 hónapja%!(EXTRA string=óta)
szülő
commit
c0fbcb2d00

+ 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);