Browse Source

保理轮询接口调整

tanmh 4 years ago
parent
commit
56e6f41a41

+ 4 - 3
src/main/java/com/uas/erp/schedular/finance/task/B2BInformation.java

@@ -64,16 +64,17 @@ public class B2BInformation  extends AbstractTask{
 		GetOfferQuotaInfoListResp resp = capitalSideSdk.getOfferQuotaInfoList(req);
 		List<OfferQuotaAndOfferQuotaInfoRest> restlist = resp.getOfferQuotaAndOfferQuotaInfoList();
 		List<Map<String, Object>> enUUList = new ArrayList<>();
-		StringBuffer buf=new StringBuffer();
-		String nameMob ="";
+		
 		for(OfferQuotaAndOfferQuotaInfoRest rest : restlist) {
+			StringBuffer buf=new StringBuffer();
+			String nameMob ="";
 			Object dbperson = rest.getOfferQuoteInfo().getGuarantorJson();
 			if(!dbperson.equals("")){
+				//sqls.add("update CUSTOMERQUOTA set cq_assuremeans = null where cq_code = " + rest.getOfferQuoteInfo().getCode());
 				com.alibaba.fastjson.JSONArray jsonArray = JSON.parseArray(rest.getOfferQuoteInfo().getGuarantorJson());
 				for (int i = 0; i < jsonArray.size(); i++){
 		              JSONObject jsonObject = jsonArray.getJSONObject(i);
 		               nameMob += jsonObject.getString("name").toString()+ ",";
-		               
 				}
 				if(nameMob.length() > 0){
 	            	   nameMob = nameMob.substring(0, nameMob.length() - 1);