|
|
@ -320,8 +320,8 @@ public class SupCertController {
|
|
|
|
int i = 1;
|
|
|
|
int i = 1;
|
|
|
|
if (selectSupCertList != null && selectSupCertList.size() > 0) {
|
|
|
|
if (selectSupCertList != null && selectSupCertList.size() > 0) {
|
|
|
|
for (SupCertEntity obj : selectSupCertList) {
|
|
|
|
for (SupCertEntity obj : selectSupCertList) {
|
|
|
|
List<String> urlList=Arrays.asList(obj.getFilePath().split(","));
|
|
|
|
List<String> urlList = Arrays.asList(obj.getFilePath().split(","));
|
|
|
|
for (String url:urlList){
|
|
|
|
for (String url : urlList) {
|
|
|
|
//组装数据
|
|
|
|
//组装数据
|
|
|
|
Map<String, Object> supData = new HashMap<>();
|
|
|
|
Map<String, Object> supData = new HashMap<>();
|
|
|
|
supData.put("companyName", supCompanyEntity.getCompanyName() == null ? ' ' : supCompanyEntity.getCompanyName());
|
|
|
|
supData.put("companyName", supCompanyEntity.getCompanyName() == null ? ' ' : supCompanyEntity.getCompanyName());
|
|
|
@ -340,7 +340,7 @@ public class SupCertController {
|
|
|
|
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
|
|
|
|
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
|
|
|
|
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
|
|
|
|
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
|
|
|
|
supData.put("remark", obj.getRemark() == null ? ' ' : obj.getRemark());
|
|
|
|
supData.put("remark", obj.getRemark() == null ? ' ' : obj.getRemark());
|
|
|
|
supData.put("filePath", "d:/udi/udiwms/udiwmsfile/register/file/image2/" + url);
|
|
|
|
supData.put("filePath", filePath + "register/file/image2/" + url);
|
|
|
|
list.add(supData);
|
|
|
|
list.add(supData);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -434,8 +434,8 @@ public class SupCertController {
|
|
|
|
int i = 1;
|
|
|
|
int i = 1;
|
|
|
|
if (selectSupCertList != null && selectSupCertList.size() > 0) {
|
|
|
|
if (selectSupCertList != null && selectSupCertList.size() > 0) {
|
|
|
|
for (SupCertEntity obj : selectSupCertList) {
|
|
|
|
for (SupCertEntity obj : selectSupCertList) {
|
|
|
|
List<String> urlList=Arrays.asList(obj.getFilePath().split(","));
|
|
|
|
List<String> urlList = Arrays.asList(obj.getFilePath().split(","));
|
|
|
|
for (String url:urlList){
|
|
|
|
for (String url : urlList) {
|
|
|
|
//组装数据
|
|
|
|
//组装数据
|
|
|
|
Map<String, Object> supData = new HashMap<>();
|
|
|
|
Map<String, Object> supData = new HashMap<>();
|
|
|
|
supData.put("customerName", supManufacturerEntity.getSupName() == null ? ' ' : supManufacturerEntity.getSupName());
|
|
|
|
supData.put("customerName", supManufacturerEntity.getSupName() == null ? ' ' : supManufacturerEntity.getSupName());
|
|
|
@ -456,7 +456,7 @@ public class SupCertController {
|
|
|
|
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
|
|
|
|
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
|
|
|
|
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
|
|
|
|
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
|
|
|
|
supData.put("remark2", obj.getRemark() == null ? ' ' : obj.getRemark());
|
|
|
|
supData.put("remark2", obj.getRemark() == null ? ' ' : obj.getRemark());
|
|
|
|
supData.put("filePath", "d:/udi/udiwms/udiwmsfile/register/file/image2/" + url);
|
|
|
|
supData.put("filePath", filePath + "register/file/image2/" + url);
|
|
|
|
list.add(supData);
|
|
|
|
list.add(supData);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -498,8 +498,8 @@ public class SupCertController {
|
|
|
|
if (selectSupCertList != null && selectSupCertList.size() > 0) {
|
|
|
|
if (selectSupCertList != null && selectSupCertList.size() > 0) {
|
|
|
|
for (SupCertEntity obj : selectSupCertList) {
|
|
|
|
for (SupCertEntity obj : selectSupCertList) {
|
|
|
|
|
|
|
|
|
|
|
|
List<String> urlList=Arrays.asList(obj.getFilePath().split(","));
|
|
|
|
List<String> urlList = Arrays.asList(obj.getFilePath().split(","));
|
|
|
|
for (String url:urlList){
|
|
|
|
for (String url : urlList) {
|
|
|
|
//组装数据
|
|
|
|
//组装数据
|
|
|
|
Map<String, Object> supData = new HashMap<>();
|
|
|
|
Map<String, Object> supData = new HashMap<>();
|
|
|
|
supData.put("customerName", supManufacturerEntity.getSupName() == null ? ' ' : supManufacturerEntity.getSupName());
|
|
|
|
supData.put("customerName", supManufacturerEntity.getSupName() == null ? ' ' : supManufacturerEntity.getSupName());
|
|
|
@ -522,7 +522,7 @@ public class SupCertController {
|
|
|
|
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
|
|
|
|
supData.put("status", obj.getStatus() == 0 ? "有效" : "失效");
|
|
|
|
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
|
|
|
|
supData.put("auditStatus", getAuditStatus(obj.getAuditStatus()));
|
|
|
|
supData.put("remark2", obj.getRemark() == null ? ' ' : obj.getRemark());
|
|
|
|
supData.put("remark2", obj.getRemark() == null ? ' ' : obj.getRemark());
|
|
|
|
supData.put("filePath", "d:/udi/udiwms/udiwmsfile/register/file/image2/" + url);
|
|
|
|
supData.put("filePath", filePath + "register/file/image2/" + url);
|
|
|
|
list.add(supData);
|
|
|
|
list.add(supData);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -536,9 +536,9 @@ public class SupCertController {
|
|
|
|
//首营预览文件
|
|
|
|
//首营预览文件
|
|
|
|
@PostMapping("/udiwms/image/register/file")
|
|
|
|
@PostMapping("/udiwms/image/register/file")
|
|
|
|
public BaseResponse uploadRegisterFile(@RequestBody FilterImageRequest filterImageRequest) {
|
|
|
|
public BaseResponse uploadRegisterFile(@RequestBody FilterImageRequest filterImageRequest) {
|
|
|
|
List<String> urlList=Arrays.asList(filterImageRequest.getImageUrl().split(","));
|
|
|
|
List<String> urlList = Arrays.asList(filterImageRequest.getImageUrl().split(","));
|
|
|
|
List<String> list = new ArrayList<>();
|
|
|
|
List<String> list = new ArrayList<>();
|
|
|
|
for (String obj:urlList){
|
|
|
|
for (String obj : urlList) {
|
|
|
|
String url = filterImageRequest.getCertFileUrl() + obj;
|
|
|
|
String url = filterImageRequest.getCertFileUrl() + obj;
|
|
|
|
list.add(url);
|
|
|
|
list.add(url);
|
|
|
|
}
|
|
|
|
}
|
|
|
|