|
|
@ -249,11 +249,11 @@ public class CrmFileService extends MybatisBaseService<CrmFileMapper, CrmFile> { |
|
|
|
CrmFile commonAppendix = new CrmFile(); |
|
|
|
dto.fillEntity(commonAppendix); |
|
|
|
String filePath = dto.getFilePath(); |
|
|
|
String a = fileUploadComponent.getUrlPrefix(); |
|
|
|
System.out.println("a============" + a); |
|
|
|
if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
} |
|
|
|
// String a = fileUploadComponent.getUrlPrefix();
|
|
|
|
// System.out.println("a============" + a);
|
|
|
|
// if (filePath.indexOf(fileUploadComponent.getUrlPrefix()) > -1) {
|
|
|
|
// filePath = filePath.replace(fileUploadComponent.getUrlPrefix(), "");
|
|
|
|
// }
|
|
|
|
commonAppendix.setFilePath(filePath); |
|
|
|
commonAppendix.setLinkSid(sid); |
|
|
|
commonAppendix.setCreateBySid(staffSid); |
|
|
@ -279,7 +279,7 @@ public class CrmFileService extends MybatisBaseService<CrmFileMapper, CrmFile> { |
|
|
|
commonAppendix.setFileType(pcCommonAppendixDto.getFileType()); |
|
|
|
commonAppendix.setFileSize(pcCommonAppendixDto.getFileSize()); |
|
|
|
commonAppendix.setAttachType(CommonAttachTypeEnum.WITNESS.getAttachType()); |
|
|
|
commonAppendix.setFilePath(pcCommonAppendixDto.getFilePath().replace(fileUploadComponent.getUrlPrefix(), "")); |
|
|
|
commonAppendix.setFilePath(pcCommonAppendixDto.getFilePath()); |
|
|
|
s += commonAppendix.getFilePath()+","; |
|
|
|
save(commonAppendix); |
|
|
|
} |
|
|
@ -304,8 +304,7 @@ public class CrmFileService extends MybatisBaseService<CrmFileMapper, CrmFile> { |
|
|
|
public List<CommonAppendixVo> getPcAppendix(CommonAppendixSelectQuery query) { |
|
|
|
String attachType = query.getAttachType(); |
|
|
|
String linkSid = query.getLinkSid(); |
|
|
|
String urlPrefix = fileUploadComponent.getUrlPrefix(); |
|
|
|
return baseMapper.getPcAppendix(attachType,linkSid, urlPrefix); |
|
|
|
return baseMapper.getPcAppendix(attachType,linkSid); |
|
|
|
} |
|
|
|
|
|
|
|
public void saveAppendix(String linkSid, String attachType, List<PcCommonAppendixDto> list) { |
|
|
@ -325,7 +324,7 @@ public class CrmFileService extends MybatisBaseService<CrmFileMapper, CrmFile> { |
|
|
|
commonAppendix.setFileSize(pcCommonAppendixDto.getFileSize()); |
|
|
|
} |
|
|
|
commonAppendix.setAttachType(attachType); |
|
|
|
commonAppendix.setFilePath(pcCommonAppendixDto.getFilePath().replace(fileUploadComponent.getUrlPrefix(), "")); |
|
|
|
commonAppendix.setFilePath(pcCommonAppendixDto.getFilePath()); |
|
|
|
save(commonAppendix); |
|
|
|
} |
|
|
|
} |
|
|
|