소스 검색

部门休息

cs 2 년 전
부모
커밋
663314848b

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/TimeAutoExcludeController.java

@@ -108,7 +108,7 @@ public class TimeAutoExcludeController {
         }
         //新增
         //如果某部门曾设置过重叠的时间段,不予添加
-        List<TimeAutoExclude> times = timeAutoExcludeMapper.selectList(new QueryWrapper<TimeAutoExclude>().in("d_id", item.getDepartmentId()).ne("id",item.getId()));
+        List<TimeAutoExclude> times = timeAutoExcludeMapper.selectList(new QueryWrapper<TimeAutoExclude>().in("d_id", item.getDepartmentId()));
         for (TimeAutoExclude t : times) {
             Boolean b = timeAutoExcludeService.timeCheck(start1, t.getStartTime(), end1, t.getEndTime());
             if (b) {