商享通更新图片
This commit is contained in:
@@ -258,7 +258,8 @@ public class SmsSalesBillService extends MybatisBaseService<SmsSalesBillMapper,
|
||||
StringBuffer sb = new StringBuffer();
|
||||
List<String> pic = g.getPic();
|
||||
for (String s : pic) {
|
||||
String filePath = s.replace(fileUploadComponent.getUrlPrefix(), "");
|
||||
// String filePath = s.replace(fileUploadComponent.getUrlPrefix(), "");
|
||||
String filePath = s;
|
||||
sb.append(filePath).append(",");
|
||||
}
|
||||
if (sb.length() > 0) {
|
||||
@@ -275,7 +276,7 @@ public class SmsSalesBillService extends MybatisBaseService<SmsSalesBillMapper,
|
||||
//保存附件信息
|
||||
for (FileQueryUrl appendixUrl : files) {
|
||||
SmsAppendixDto appendixDto = new SmsAppendixDto();
|
||||
String filePath = appendixUrl.getUrl().replace(fileUploadComponent.getUrlPrefix(), "");
|
||||
String filePath = appendixUrl.getUrl();
|
||||
appendixDto.setLinkSid(sid);
|
||||
appendixDto.setAttachType(SmsFileEnum.SMSSALESBILL.getAttachType());
|
||||
appendixDto.setFilePath(filePath);
|
||||
@@ -338,7 +339,7 @@ public class SmsSalesBillService extends MybatisBaseService<SmsSalesBillMapper,
|
||||
String picUrl = detail.getGoodsImgUrl();
|
||||
String[] split = picUrl.split(",");
|
||||
for (String s : split) {
|
||||
picList.add(fileUploadComponent.getUrlPrefix() + s);
|
||||
picList.add(s);
|
||||
}
|
||||
detailVo.setPic(picList);
|
||||
}
|
||||
@@ -362,7 +363,7 @@ public class SmsSalesBillService extends MybatisBaseService<SmsSalesBillMapper,
|
||||
List<SmsAppendixDetailsVo> smsAppendixDetailsVos = smsAppendixService.selByLinkSid(sid);
|
||||
for (SmsAppendixDetailsVo smsAppendixDetailsVo : smsAppendixDetailsVos) {
|
||||
FileQueryUrl appendixUrl = new FileQueryUrl();
|
||||
String url = fileUploadComponent.getUrlPrefix() + smsAppendixDetailsVo.getFilePath();
|
||||
String url = smsAppendixDetailsVo.getFilePath();
|
||||
appendixUrl.setUrl(url);
|
||||
fileQueryUrls.add(appendixUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user