diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/controller/SarBussStandFileController.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/controller/SarBussStandFileController.java index 22e08474..f439f28e 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/controller/SarBussStandFileController.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/controller/SarBussStandFileController.java @@ -74,4 +74,11 @@ public class SarBussStandFileController extends BaseController public ResponseMessage> batchUpdateSarBussFile() throws Exception { return sarBussStandFileEOService.batchUpdateSarBussFile(); } + + @ApiOperation(value = "|SarBussStandFileEO|批量修改加密文件不能打开问题") + @GetMapping("/batchUpdateSarBussFileMQ") + /*@RequiresPermissions("lawss:sarLawsFile:list")*/ + public ResponseMessage> batchUpdateSarBussFileMQ() throws Exception { + return sarBussStandFileEOService.batchUpdateSarBussFileMQ(); + } } diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/service/ISarBussStandFileService.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/service/ISarBussStandFileService.java index 1e14182b..56c2d4f9 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/service/ISarBussStandFileService.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/service/ISarBussStandFileService.java @@ -19,4 +19,6 @@ public interface ISarBussStandFileService extends IService { List selectFileByAttId(String attId) throws Exception; ResponseMessage> batchUpdateSarBussFile(); + + ResponseMessage> batchUpdateSarBussFileMQ(); } diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/service/impl/SarBussStandFileServiceImpl.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/service/impl/SarBussStandFileServiceImpl.java index dba442bf..339249e0 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/service/impl/SarBussStandFileServiceImpl.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussStandFile/service/impl/SarBussStandFileServiceImpl.java @@ -1,25 +1,26 @@ package com.adc.da.slrs.sarBussStandFile.service.impl; +import com.adc.da.att.entity.AttFileEO; import com.adc.da.att.service.IAttFileEOService; import com.adc.da.att.vo.AttFileVo; import com.adc.da.common.UseModuleEnum; import com.adc.da.http.ResponseMessage; import com.adc.da.http.Result; +import com.adc.da.mq.CreateOnlineEditingFileMQService; import com.adc.da.slrs.sarBussStandFile.entity.SarBussStandFile; import com.adc.da.slrs.sarBussStandFile.dao.SarBussStandFileDao; import com.adc.da.slrs.sarBussStandFile.service.ISarBussStandFileService; import com.adc.da.slrs.sarBussionessStand.service.impl.SarBussionessStandServiceImpl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; +import java.util.*; /** *

@@ -43,6 +44,9 @@ public class SarBussStandFileServiceImpl extends ServiceImpl selectFileByAttId(String attId) throws Exception{ return sarStandFileEODao.selectFileByAttId(attId); @@ -93,4 +97,47 @@ public class SarBussStandFileServiceImpl extends ServiceImpl> batchUpdateSarBussFileMQ() { + List sarBussStandFileArrayList = new ArrayList<>(); + QueryWrapper objectQueryWrapper = new QueryWrapper<>(); + objectQueryWrapper.eq("USE_MODEL","SOURCE_FILE"); + objectQueryWrapper.ne("FILE_SUFFIX","pdf"); + objectQueryWrapper.ne("FILE_SUFFIX","PDF"); + List sarBussStandFiles = sarStandFileEODao.selectList(objectQueryWrapper); + if(!sarBussStandFiles.isEmpty()){ + for (SarBussStandFile data :sarBussStandFiles) { + QueryWrapper QueryWrapper = new QueryWrapper<>(); + QueryWrapper.eq("ORI_ATT_ID",data.getOriAttId()); + QueryWrapper.eq("USE_MODEL", "WEB_FILE"); + List sarBussStandFileList = sarStandFileEODao.selectList(QueryWrapper); + if(sarBussStandFileList.isEmpty() && sarBussStandFileList.size()==0){ + AttFileEO fileInfo = attFileEOService.getFileInfo(sarBussStandFiles.get(0).getOriAttId()); + if(fileInfo!=null){ + String fileName = ""; + if(StringUtils.isNotBlank(fileInfo.getFileName())){ + String[] splitInfo = fileInfo.getFileName().split("\\."); + fileName = splitInfo[0]; + } + Map bussMap = new HashMap<>(); + bussMap.put("FILE_SUFFIX",sarBussStandFiles.get(0).getFileSuffix()); + bussMap.put("CONVERFILENAME",filePath+fileInfo.getFilePath()+fileInfo.getFileName()); + bussMap.put("SAVEPDFPATH",filePath+fileInfo.getFilePath()+fileName+".pdf"); + bussMap.put("STANDID",sarBussStandFiles.get(0).getStandId()); + bussMap.put("STANDFILECLASSIFY",sarBussStandFiles.get(0).getStandFileClassify()); + bussMap.put("FILENAME",filePath+fileInfo.getFilePath()+fileName+".pdf"); + bussMap.put("PASSWORD",sarBussStandFiles.get(0).getPassword()); + bussMap.put("OAIATTID",sarBussStandFiles.get(0).getOriAttId()); + logger.info("======================================word.doc发送mq================================="); + createOnlineEditingFileMQService.OnlineEditingFileMQ(bussMap); + sarBussStandFileArrayList.add(data); + }else { + logger.info("======================================word.doc转换失败================================="); + } + } + } + } + return Result.success(sarBussStandFileArrayList); + } } diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussionessStand/controller/SarBussionessStandController.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussionessStand/controller/SarBussionessStandController.java index ebffc100..07d9a10d 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussionessStand/controller/SarBussionessStandController.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussionessStand/controller/SarBussionessStandController.java @@ -55,6 +55,7 @@ import io.swagger.annotations.Api; import com.adc.da.base.web.BaseController; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.ModelAndView; +import springfox.documentation.spring.web.json.Json; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -158,6 +159,47 @@ public class SarBussionessStandController extends BaseController rows = sarBussionessStandEOService.getSarBussionStandPage(page); + exportContent = ""; + if(!rows.isEmpty()){ + for (SarBussionessStand data: rows){ + if(StringUtils.isNotBlank(exportContent)){ + exportContent = exportContent+","+data.getId(); + }else { + exportContent = data.getId(); + } + } + } + + } + exportType = "apart"; + } List datas = sarBussionessStandEOService.getSarBussionessStand(exportType,exportContent,userId); workbook = BussStandExportUtil.exportDatas(datas); os = response.getOutputStream(); diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussionessStand/service/impl/SarBussionessStandServiceImpl.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussionessStand/service/impl/SarBussionessStandServiceImpl.java index 754e34af..413f9fef 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussionessStand/service/impl/SarBussionessStandServiceImpl.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarBussionessStand/service/impl/SarBussionessStandServiceImpl.java @@ -398,41 +398,42 @@ public class SarBussionessStandServiceImpl extends ServiceImpl qw = new QueryWrapper<>(); - qw.eq("ID",page.getMenuId()); - qw.isNull("PARENT_ID"); - List children = iTsResourceService.list(qw); + if(StringUtils.isNotBlank(exportContent)) { + JSONObject jsonObject = JSONObject.fromObject(exportContent); + page = (SarBussionessStandEOPage) JSONObject.toBean(jsonObject, SarBussionessStandEOPage.class); + page.setPage(1); + page.setPageSize(10000); + //查询当前登录人角色拥有权限的菜单 + if (page.getMenuId() != null && page.getUserId() != null && StringUtils.isNotBlank(page.getUserId())) { + String treeType = page.getTreeType(); + QueryWrapper qw = new QueryWrapper<>(); + qw.eq("ID", page.getMenuId()); + qw.isNull("PARENT_ID"); + List children = iTsResourceService.list(qw); - if(children.isEmpty() && !page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(treeType) && "tsr".equals(treeType)){ - List getMenuIdList = tsUserService.getResourceUserId(page.getUserId()); - if (getMenuIdList != null && !getMenuIdList.isEmpty()) { - page.setMenuRoleList(getMenuIdList); - } else { - page.setMenuRoleList(null); + if (children.isEmpty() && !page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(treeType) && "tsr".equals(treeType)) { + List getMenuIdList = tsUserService.getResourceUserId(page.getUserId()); + if (getMenuIdList != null && !getMenuIdList.isEmpty()) { + page.setMenuRoleList(getMenuIdList); + } else { + page.setMenuRoleList(null); + } + List ids = iTsResourceService.getChildMenuList(page.getMenuId()); + if (ids != null && !ids.isEmpty()) { + page.setMenuAllChildrenIdList(ids); + } + } else if (!page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(treeType) && "sarMs".equals(treeType)) { + List getMenuIdList = tsUserService.getResourceUserId(page.getUserId()); + if (getMenuIdList != null && !getMenuIdList.isEmpty()) { + page.setMenuRoleList(getMenuIdList); + } else { + page.setMenuRoleList(null); + } + List ids = iSarMenuStandardService.getChildMenuList(page.getMenuId()); + if (ids != null && !ids.isEmpty()) { + page.setMenuAllChildrenIdList(ids); + } } - List ids = iTsResourceService.getChildMenuList(page.getMenuId()); - if (ids != null && !ids.isEmpty()) { - page.setMenuAllChildrenIdList(ids); - } - }else if(!page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(treeType) && "sarMs".equals(treeType)){ - List getMenuIdList = tsUserService.getResourceUserId(page.getUserId()); - if (getMenuIdList != null && !getMenuIdList.isEmpty()) { - page.setMenuRoleList(getMenuIdList); - } else { - page.setMenuRoleList(null); - } - List ids = iSarMenuStandardService.getChildMenuList(page.getMenuId()); - if (ids != null && !ids.isEmpty()) { - page.setMenuAllChildrenIdList(ids); - } - } // if(children.isEmpty() && !page.getMenuId().equals("nomenu")){ // List getMenuIdList = tsUserService.getResourceUserId(page.getUserId()); @@ -446,14 +447,15 @@ public class SarBussionessStandServiceImpl extends ServiceImpl searchList = com.alibaba.fastjson.JSONObject.parseArray(page.getAdvanceSearchVOStr(),SarAdvanceSearchVO.class); - String advanceStr = SarAdvanceSearchUtil.createSql(searchList,"SAR_BUSS_STAND_ATTR_INFO"); - if (com.adc.da.util.utils.StringUtils.isNotBlank(advanceStr)) { - page.setAdvanceSearchStr(advanceStr); - } else { - page.setAdvanceSearchStr(null); + } + if (StringUtils.isNotBlank(page.getAdvanceSearchVOStr())) { + List searchList = com.alibaba.fastjson.JSONObject.parseArray(page.getAdvanceSearchVOStr(), SarAdvanceSearchVO.class); + String advanceStr = SarAdvanceSearchUtil.createSql(searchList, "SAR_BUSS_STAND_ATTR_INFO"); + if (com.adc.da.util.utils.StringUtils.isNotBlank(advanceStr)) { + page.setAdvanceSearchStr(advanceStr); + } else { + page.setAdvanceSearchStr(null); + } } } } @@ -4920,49 +4922,49 @@ public class SarBussionessStandServiceImpl extends ServiceImpl sarBussStandFilesList = sarBussStandFileEODao.selectList(objectQueryWrapperSarBussStandFile); if(sarBussStandFilesList.isEmpty() && sarBussStandFilesList.size()==0){ - AttFileVo attFileVo = attFileEOService.wordConversionFilePdf(sarBussStandFiles.get(0).getOriAttId()); - if(attFileVo!=null){ - SarBussStandFile sarBussStandFile = new SarBussStandFile(); - //sarBussStandFile.setId(); - String uuId = com.adc.da.util.utils.UUID.randomUUID(20); - sarBussStandFile.setId(uuId); - sarBussStandFile.setStandId(sarBussStandFiles.get(0).getStandId()); - sarBussStandFile.setStandFileClassify(sarBussStandFiles.get(0).getStandFileClassify()); - sarBussStandFile.setAttId(attFileVo.getId()); - sarBussStandFile.setFileName(filePath+attFileVo.getFilePath()+attFileVo.getFileName()); - sarBussStandFile.setFileSuffix(attFileVo.getFileSuffix()); - sarBussStandFile.setUseModel(UseModuleEnum.WEB_FILE.getValue()); - sarBussStandFile.setPassword(sarBussStandFiles.get(0).getPassword()); - sarBussStandFile.setValidFlag(0); - sarBussStandFile.setCreationTime(new Date()); - sarBussStandFile.setModifyTime(new Date()); - sarBussStandFile.setOriAttId(sarBussStandFiles.get(0).getOriAttId()); - sarBussStandFileEODao.insert(sarBussStandFile); - }else { - logger.info("======================================word.doc转换失败================================="); - } -// AttFileEO fileInfo = attFileEOService.getFileInfo(sarBussStandFiles.get(0).getOriAttId()); -// if(fileInfo!=null){ -// String fileName = ""; -// if(StringUtils.isNotBlank(fileInfo.getFileName())){ -// String[] splitInfo = fileInfo.getFileName().split("\\."); -// fileName = splitInfo[0]; -// } -// -// Map bussMap = new HashMap<>(); -// bussMap.put("FILE_SUFFIX",sarBussStandFiles.get(0).getFileSuffix()); -// bussMap.put("CONVERFILENAME",filePath+fileInfo.getFilePath()+fileInfo.getFileName()); -// bussMap.put("SAVEPDFPATH",filePath+fileInfo.getFilePath()+fileName+".pdf"); -// bussMap.put("STANDID",sarBussStandFiles.get(0).getStandId()); -// bussMap.put("STANDFILECLASSIFY",sarBussStandFiles.get(0).getStandFileClassify()); -// bussMap.put("FILENAME",filePath+fileInfo.getFilePath()+fileName+".pdf"); -// bussMap.put("PASSWORD",sarBussStandFiles.get(0).getPassword()); -// bussMap.put("OAIATTID",sarBussStandFiles.get(0).getOriAttId()); -// logger.info("======================================word.doc发送mq================================="); -// createOnlineEditingFileMQService.OnlineEditingFileMQ(bussMap); +// AttFileVo attFileVo = attFileEOService.wordConversionFilePdf(sarBussStandFiles.get(0).getOriAttId()); +// if(attFileVo!=null){ +// SarBussStandFile sarBussStandFile = new SarBussStandFile(); +// //sarBussStandFile.setId(); +// String uuId = com.adc.da.util.utils.UUID.randomUUID(20); +// sarBussStandFile.setId(uuId); +// sarBussStandFile.setStandId(sarBussStandFiles.get(0).getStandId()); +// sarBussStandFile.setStandFileClassify(sarBussStandFiles.get(0).getStandFileClassify()); +// sarBussStandFile.setAttId(attFileVo.getId()); +// sarBussStandFile.setFileName(filePath+attFileVo.getFilePath()+attFileVo.getFileName()); +// sarBussStandFile.setFileSuffix(attFileVo.getFileSuffix()); +// sarBussStandFile.setUseModel(UseModuleEnum.WEB_FILE.getValue()); +// sarBussStandFile.setPassword(sarBussStandFiles.get(0).getPassword()); +// sarBussStandFile.setValidFlag(0); +// sarBussStandFile.setCreationTime(new Date()); +// sarBussStandFile.setModifyTime(new Date()); +// sarBussStandFile.setOriAttId(sarBussStandFiles.get(0).getOriAttId()); +// sarBussStandFileEODao.insert(sarBussStandFile); // }else { // logger.info("======================================word.doc转换失败================================="); // } + AttFileEO fileInfo = attFileEOService.getFileInfo(sarBussStandFiles.get(0).getOriAttId()); + if(fileInfo!=null){ + String fileName = ""; + if(StringUtils.isNotBlank(fileInfo.getFileName())){ + String[] splitInfo = fileInfo.getFileName().split("\\."); + fileName = splitInfo[0]; + } + + Map bussMap = new HashMap<>(); + bussMap.put("FILE_SUFFIX",sarBussStandFiles.get(0).getFileSuffix()); + bussMap.put("CONVERFILENAME",filePath+fileInfo.getFilePath()+fileInfo.getFileName()); + bussMap.put("SAVEPDFPATH",filePath+fileInfo.getFilePath()+fileName+".pdf"); + bussMap.put("STANDID",sarBussStandFiles.get(0).getStandId()); + bussMap.put("STANDFILECLASSIFY",sarBussStandFiles.get(0).getStandFileClassify()); + bussMap.put("FILENAME",filePath+fileInfo.getFilePath()+fileName+".pdf"); + bussMap.put("PASSWORD",sarBussStandFiles.get(0).getPassword()); + bussMap.put("OAIATTID",sarBussStandFiles.get(0).getOriAttId()); + logger.info("======================================word.doc发送mq================================="); + createOnlineEditingFileMQService.OnlineEditingFileMQ(bussMap); + }else { + logger.info("======================================word.doc转换失败================================="); + } } } diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandardsInfo/controller/SarStandardsInfoController.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandardsInfo/controller/SarStandardsInfoController.java index 4d5e6efc..e02c3374 100644 --- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandardsInfo/controller/SarStandardsInfoController.java +++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandardsInfo/controller/SarStandardsInfoController.java @@ -4,6 +4,8 @@ package com.adc.da.slrs.sarStandardsInfo.controller; import cn.hutool.core.util.ZipUtil; import com.adc.da.Log.BusinessType; import com.adc.da.Log.EpcLog; +import com.adc.da.att.service.IAttFileEOService; +import com.adc.da.att.vo.AttFileVo; import com.adc.da.common.FileUnZip; import com.adc.da.common.ReadExcel; import com.adc.da.exception.AdcDaBaseException; @@ -29,6 +31,13 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import io.swagger.annotations.ApiOperation; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.StringUtils; +import org.apache.http.HttpResponse; +import org.apache.http.HttpStatus; +import org.apache.http.client.HttpClient; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.util.EntityUtils; import org.apache.poi.hssf.usermodel.HSSFCellStyle; import org.apache.poi.hssf.usermodel.HSSFDateUtil; import org.apache.poi.hssf.usermodel.HSSFSheet; @@ -75,7 +84,6 @@ public class SarStandardsInfoController extends BaseController @Autowired private ISarStandFileService sarStandFileService; - @Value("${file.path}") private String filePath; @@ -89,6 +97,9 @@ public class SarStandardsInfoController extends BaseController @Autowired ISarLawsInfoService sarLawsInfoEOService; + @Autowired + IAttFileEOService iAttFileEOService; + // @ApiOperation(value="SarStandardsInfoEO|反向标准操作") // @GetMapping(value = "/reverseQueryStand") // public void reverseQueryStand(@RequestParam(name="ids",required=true) String ids, String standName, String type) { @@ -1047,4 +1058,93 @@ public class SarStandardsInfoController extends BaseController public ResponseMessage fileNameTranslation (){ return sarStandardsInfoEOService.fileNameTranslation(); } + + @ApiOperation(value = "|SarStandardsInfoEO|编号+名称组合为唯一标识(国内海外)") + @PostMapping("/ceshi") + public ResponseMessage ceshi (String docx,String urlInfo){ + String e7FAFC9C22A8 = onlyofficePdfUtil("E7FAFC9C22A8", "1111111.pdf", docx,urlInfo); + return Result.success(e7FAFC9C22A8); + } + + private String onlyofficePdfUtil(String key,String title,String urlFile,String urlInfo){ + HttpClient client = HttpClients.createDefault(); + Map cmd = new HashMap<>(); + cmd.put("async",false); + cmd.put("filetype","docx"); + cmd.put("key",key); + cmd.put("title",title); + cmd.put("url",urlFile); + //http://47.92.92.38:8103/7.2.1-34/ConvertService.ashx + //https://example.com/url-to-example-document.docx + //String url = "http://47.92.92.38:8103/url-to-example-document.docx"; +// String url = "http://47.92.92.38:8103/7.2.1-34/downloadas"; + String url = ""; + //"url": "https://127.0.0.1/document/example.docx" + + if(urlInfo.equals("1")){ + url = "http://47.92.92.38:8103/7.2.1-34/ConvertService.ashx"; + } + if(urlInfo.equals("2")){ + url = "http://39.98.140.126:8889/7.2.1-34/ConvertService.ashx"; + } + if(urlInfo.equals("3")){ + url = "http://10.100.5.116:8088//7.2.1-34/ConvertService.ashx"; + } + + if(urlInfo.equals("11")){ + url = "http://47.92.92.38:8103/7.2.1-34/document/example.docx"; + } + if(urlInfo.equals("22")){ + url = "http://39.98.140.126:8889/7.2.1-34/document/example.docx"; + } + if(urlInfo.equals("33")){ + url = "http://10.100.5.116:8088//7.2.1-34/document/example.docx"; + } + if(urlInfo.equals("111")){ + url = "http://47.92.92.38:8103/document/example.docx"; + } + if(urlInfo.equals("222")){ + url = "http://39.98.140.126:8889/document/example.docx"; + } + if(urlInfo.equals("333")){ + url = "http://10.100.5.116:8088/document/example.docx"; + } + + //HttpGet httpGet=new HttpGet(url); + HttpPost httpPost=new HttpPost(url); + JSONObject jsonObject = null; + try { + httpPost.setHeader("Accept","application/json"); + httpPost.setHeader("Content-Type","Content-Type"); + HttpResponse res = client.execute(httpPost); + if (res.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { + // 返回json格式: + jsonObject = JSONObject.parseObject(EntityUtils.toString(res.getEntity())); + Object fileUrl = jsonObject.get("fileUrl"); + logger.info("==============================================================="+jsonObject.toJSONString()); + if(fileUrl!=null){ + String urlStr = fileUrl.toString(); + if(StringUtils.isNotBlank(urlStr)){ + File file = new File(urlStr); + if(file.exists()){ + AttFileVo attFileVo = iAttFileEOService.saveFileInfo(file); + if(attFileVo!=null){ + logger.info("==============================================================="+attFileVo); + } + }else { + logger.info("===============================================================路径"+urlStr); + } + } + logger.info("==============================================================="+jsonObject.toJSONString()); + } + System.out.println(jsonObject); + }else { + jsonObject.put("fileUrl","失败!!!!!!"); + } + } catch (Exception e) { + System.out.println("服务间接口调用出错!"); + e.printStackTrace(); + } + return jsonObject.toJSONString(); + } }