管道基础大数据平台系统开发-【后端】-Server
13693261870
2023-07-14 7264d09d329cf0ff533d59fa6b7a01c605fa5b8c
src/main/java/com/lf/server/controller/data/LayerController.java
@@ -139,6 +139,9 @@
            }
            int count = layerService.insert(entity);
            if (count > 0) {
                layerService.clearCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -162,6 +165,9 @@
            }
            int count = layerService.inserts(list);
            if (count > 0) {
                layerService.clearCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -178,6 +184,9 @@
    public ResponseMsg<Integer> delete(int id) {
        try {
            int count = layerService.delete(id);
            if (count > 0) {
                layerService.clearCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -198,6 +207,9 @@
            }
            int count = layerService.deletes(ids);
            if (count > 0) {
                layerService.clearCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -220,6 +232,9 @@
            }
            int count = layerService.update(entity);
            if (count > 0) {
                layerService.clearCache();
            }
            return success(count);
        } catch (Exception ex) {
@@ -244,6 +259,9 @@
            }
            int count = layerService.updates(list);
            if (count > 0) {
                layerService.clearCache();
            }
            return success(count);
        } catch (Exception ex) {