| | |
| | | entity.setToken(WebHelper.getToken(req)); |
| | | } |
| | | |
| | | layerService.clearCache(); |
| | | String method = getConvertMethod(entity.getType()); |
| | | long count = publishService.postForPub(entity, method, req); |
| | | if (count > 0) { |
| | | layerService.clearCache(); |
| | | } |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | |
| | | } |
| | | |
| | | // publishService.deleteFiles(list) |
| | | layerService.clearCache(); |
| | | publishService.deleteFiles(ids, req); |
| | | |
| | | int count = publishService.deletes(ids, req); |
| | | if (count > 0) { |
| | | layerService.clearCache(); |
| | | } |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | |
| | | entity.setUpdateUser(ue.getId()); |
| | | } |
| | | |
| | | layerService.clearCache(); |
| | | int count = publishService.update(entity); |
| | | if (count > 0) { |
| | | layerService.clearCache(); |
| | | } |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |