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