| | |
| | | return publishMapper.selectMetasByPage(depcode, dircode, verid, types, name, limit, offset); |
| | | } |
| | | |
| | | public List<Integer> selectLasCs(PubEntity entity, String method, HttpServletRequest req) { |
| | | Map<String, Object> map = getMapData(entity); |
| | | |
| | | String str = RestHelper.postForRest(exportServer + method, map); |
| | | if (StringHelper.isEmpty(str)) { |
| | | return null; |
| | | } |
| | | |
| | | ResponseMsg<String> msg = JSON.parseObject(str, ResponseMsg.class); |
| | | if (msg == null || msg.getCode() != StaticData.TWO_HUNDRED) { |
| | | return null; |
| | | } |
| | | |
| | | String rs = msg.getResult(); |
| | | if (StringHelper.isEmpty(rs)) { |
| | | return null; |
| | | } |
| | | |
| | | return StringHelper.strToIntegers(rs); |
| | | } |
| | | |
| | | /** |
| | | * 发送发布请求 |
| | | */ |
| | |
| | | * 删除发布文件 |
| | | */ |
| | | public void deleteFiles(List<PublishEntity> list) { |
| | | String uploadPath = pathHelper.getConfig().getUploadPath(); |
| | | String lfData = pathHelper.getConfig().getLfData(); |
| | | for (PublishEntity pub : list) { |
| | | if (null != pub.getUrl() && pub.getUrl().contains("/SG/")) { |
| | | continue; |
| | | } |
| | | |
| | | String path = uploadPath + File.separator + pub.getPath().replace("\\tileset.json", ""); |
| | | String path = lfData + pub.getPath().replace("\\tileset.json", ""); |
| | | File file = new File(path); |
| | | if (!file.exists() || !file.isDirectory()) { |
| | | continue; |