Explorar o código

删除逻辑修改

xiewj %!s(int64=2) %!d(string=hai) anos
pai
achega
880698454d

+ 1 - 1
720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/WorkServiceImpl.java

@@ -279,7 +279,7 @@ public class WorkServiceImpl extends IBaseStrServiceImpl<WorkEntity, String> imp
     @Override
     public boolean getUserWorkCountBySceneCodes(List<String> sceneCodes) {
         for (String sceneCode : sceneCodes) {
-            String format = StrUtil.format("SELECT count(1) FROM tb_dir WHERE is_delete=0 and status={} and ( id = {} or find_in_set('{}' , scene_codes ))",
+            String format = StrUtil.format("SELECT count(1) FROM tb_work WHERE is_delete=0 and status={} and ( id = {} or find_in_set('{}' , scene_codes ))",
                     1, this.getUserNameForToken(),sceneCode);
             Integer count = entityMapper.getCountStr(format);
             if (count > 0){