|
|
@ -12,6 +12,7 @@ import au.com.royalpay.payment.manage.riskbusiness.core.RiskUploadService;
|
|
|
|
import au.com.royalpay.payment.manage.riskbusiness.enums.RiskResultTypeEnum;
|
|
|
|
import au.com.royalpay.payment.manage.riskbusiness.enums.RiskResultTypeEnum;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
import au.com.royalpay.payment.tools.threadpool.RoyalThreadPoolExecutor;
|
|
|
|
import au.com.royalpay.payment.tools.threadpool.RoyalThreadPoolExecutor;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
@ -55,10 +56,10 @@ public class RiskUploadServiceIpml implements RiskUploadService {
|
|
|
|
material.put("material_id",riskMaterialMapper.findAllMaterials(riskId).get(0).getString("material_id"));
|
|
|
|
material.put("material_id",riskMaterialMapper.findAllMaterials(riskId).get(0).getString("material_id"));
|
|
|
|
for(int i=1;i<=10;i++){
|
|
|
|
for(int i=1;i<=10;i++){
|
|
|
|
if(material.containsKey("file"+i+"_url")){
|
|
|
|
if(material.containsKey("file"+i+"_url")){
|
|
|
|
List<String> urls = (List<String>)material.get("file"+i+"_url");
|
|
|
|
JSONArray urls = material.getJSONArray("file" + i + "_url");
|
|
|
|
if (urls == null || urls.isEmpty())
|
|
|
|
if (urls == null || urls.isEmpty())
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
for(String url:urls){
|
|
|
|
for(Object url:urls){
|
|
|
|
JSONObject file = new JSONObject();
|
|
|
|
JSONObject file = new JSONObject();
|
|
|
|
file.put("file_url",url);
|
|
|
|
file.put("file_url",url);
|
|
|
|
file.put("file_type",i);
|
|
|
|
file.put("file_type",i);
|
|
|
|