src/main/java/com/moon/server/controller/sys/AuthController.java
@@ -139,10 +139,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = authService.insertAuth(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -165,10 +163,8 @@ } } permsService.clearPermsCache(); int count = authService.insertAuths(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -184,10 +180,8 @@ @GetMapping(value = "/deleteAuth") public ResponseMsg<Integer> deleteAuth(int id) { try { permsService.clearPermsCache(); int count = authService.deleteAuth(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -207,10 +201,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = authService.deleteAuths(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -232,10 +224,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = authService.updateAuth(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/LayerController.java
@@ -104,10 +104,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = layerService.insert(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -130,10 +128,8 @@ } } permsService.clearPermsCache(); int count = layerService.inserts(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -149,10 +145,8 @@ @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { try { permsService.clearPermsCache(); int count = layerService.delete(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -172,10 +166,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = layerService.deletes(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -197,10 +189,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = layerService.update(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -224,10 +214,8 @@ } } permsService.clearPermsCache(); int count = layerService.updates(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/MenuAuthController.java
@@ -168,10 +168,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = menuAuthService.insert(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -194,10 +192,8 @@ } } permsService.clearPermsCache(); int count = menuAuthService.inserts(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -213,10 +209,8 @@ @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { try { permsService.clearPermsCache(); int count = menuAuthService.delete(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -236,10 +230,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = menuAuthService.deletes(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -261,10 +253,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = menuAuthService.update(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -288,10 +278,8 @@ } } permsService.clearPermsCache(); int count = menuAuthService.updates(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/MenuController.java
@@ -50,10 +50,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = menuService.insertMenu(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -76,10 +74,8 @@ } } permsService.clearPermsCache(); int count = menuService.insertMenus(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -95,10 +91,8 @@ @GetMapping(value = "/deleteMenu") public ResponseMsg<Integer> deleteMenu(int id) { try { permsService.clearPermsCache(); int count = menuService.deleteMenu(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -118,10 +112,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = menuService.deleteMenus(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -143,10 +135,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = menuService.updateMenu(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -170,10 +160,8 @@ } } permsService.clearPermsCache(); int count = menuService.updateMenus(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/ResController.java
@@ -140,10 +140,8 @@ entity.setDepid(ue.getDepcode()); } permsService.clearPermsCache(); int count = resService.insert(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -167,10 +165,8 @@ } } permsService.clearPermsCache(); int count = resService.inserts(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -186,10 +182,8 @@ @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { try { permsService.clearPermsCache(); int count = resService.delete(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -209,10 +203,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = resService.deletes(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -235,10 +227,8 @@ entity.setDepid(ue.getDepcode()); } permsService.clearPermsCache(); int count = resService.update(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -263,10 +253,8 @@ } } permsService.clearPermsCache(); int count = resService.updates(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/RoleController.java
@@ -117,10 +117,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleService.insertRole(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -143,10 +141,8 @@ } } permsService.clearPermsCache(); int count = roleService.insertRoles(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -162,10 +158,8 @@ @GetMapping(value = "/deleteRole") public ResponseMsg<Integer> deleteRole(int id) { try { permsService.clearPermsCache(); int count = roleService.deleteRole(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -185,10 +179,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = roleService.deleteRoles(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -210,10 +202,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleService.updateRole(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/RoleLayerController.java
@@ -108,10 +108,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleLayerService.insert(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -134,10 +132,8 @@ } } permsService.clearPermsCache(); int count = roleLayerService.inserts(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -153,10 +149,8 @@ @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { try { permsService.clearPermsCache(); int count = roleLayerService.delete(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -176,10 +170,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = roleLayerService.deletes(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -201,10 +193,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleLayerService.update(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -228,10 +218,8 @@ } } permsService.clearPermsCache(); int count = roleLayerService.updates(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/RoleMenuAuthController.java
@@ -168,10 +168,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleMenuAuthService.insert(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -194,10 +192,8 @@ } } permsService.clearPermsCache(); int count = roleMenuAuthService.inserts(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -213,10 +209,8 @@ @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { try { permsService.clearPermsCache(); int count = roleMenuAuthService.delete(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -236,10 +230,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = roleMenuAuthService.deletes(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -261,10 +253,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleMenuAuthService.update(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -288,10 +278,8 @@ } } permsService.clearPermsCache(); int count = roleMenuAuthService.updates(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/RoleResController.java
@@ -106,10 +106,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleResService.insert(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -132,10 +130,8 @@ } } permsService.clearPermsCache(); int count = roleResService.inserts(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -151,10 +147,8 @@ @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { try { permsService.clearPermsCache(); int count = roleResService.delete(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -174,10 +168,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = roleResService.deletes(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -199,10 +191,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleResService.update(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -226,10 +216,8 @@ } } permsService.clearPermsCache(); int count = roleResService.updates(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/controller/sys/RoleUserController.java
@@ -140,10 +140,8 @@ entity.setCreateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleUserService.insert(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -166,10 +164,8 @@ } } permsService.clearPermsCache(); int count = roleUserService.inserts(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -185,10 +181,8 @@ @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { try { permsService.clearPermsCache(); int count = roleUserService.delete(id); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -208,10 +202,8 @@ return fail("id数组不能为空", -1); } permsService.clearPermsCache(); int count = roleUserService.deletes(ids); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -233,10 +225,8 @@ entity.setUpdateUser(ue.getId()); } permsService.clearPermsCache(); int count = roleUserService.update(entity); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { @@ -260,10 +250,8 @@ } } permsService.clearPermsCache(); int count = roleUserService.updates(list); if (count > 0) { permsService.clearPermsCache(); } return success(count); } catch (Exception ex) { src/main/java/com/moon/server/entity/data/MetaEntity.java
@@ -52,7 +52,7 @@ private int ismeta; private String sensortype; private int sensortype; private Timestamp acqTime; @@ -66,7 +66,7 @@ private String hDatum; private String mataType; private int mataType; private String bands; @@ -261,11 +261,11 @@ this.ismeta = ismeta; } public String getSensortype() { public int getSensortype() { return sensortype; } public void setSensortype(String sensortype) { public void setSensortype(int sensortype) { this.sensortype = sensortype; } @@ -317,11 +317,11 @@ this.hDatum = hDatum; } public String getMataType() { public int getMataType() { return mataType; } public void setMataType(String mataType) { public void setMataType(int mataType) { this.mataType = mataType; } src/main/java/com/moon/server/entity/data/MetaFileEntity.java
@@ -52,7 +52,7 @@ private String geom; private String sensortype; private int sensortype; private Timestamp acqTime; @@ -66,7 +66,7 @@ private String hDatum; private String mataType; private int mataType; private String bands; @@ -242,11 +242,11 @@ this.geom = geom; } public String getSensortype() { public int getSensortype() { return sensortype; } public void setSensortype(String sensortype) { public void setSensortype(int sensortype) { this.sensortype = sensortype; } @@ -298,11 +298,11 @@ this.hDatum = hDatum; } public String getMataType() { public int getMataType() { return mataType; } public void setMataType(String mataType) { public void setMataType(int mataType) { this.mataType = mataType; }