Explorar o código

检验场景是否被占用bug

wuweihao %!s(int64=3) %!d(string=hai) anos
pai
achega
61aeb2bf33

+ 1 - 1
720yun_local_manage/gis_pano/src/main/java/com/gis/cms/service/impl/WorkServiceImpl.java

@@ -167,7 +167,7 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
      */
     @Override
     public boolean existBySceneCode(String sceneCode) {
-        String sql = StrUtil.format("select id FROM tb_work WHERE  find_in_set('{}' , scene_codes )", sceneCode);
+        String sql = StrUtil.format("select id FROM tb_work WHERE is_delete=0 and find_in_set('{}' , scene_codes )", sceneCode);
         List<Map> list = entityMapper.runSql(sql);
         log.info("引用的作品id: {}", list);
         return list.size() > 0;