1.付款申请商务条件页面报错问题

This commit is contained in:
zhangbb 2020-06-15 16:18:44 +08:00
parent fd5d0d8b8e
commit 09e4a823bf

View File

@ -698,18 +698,23 @@ public class ProductParamUtil {
BusinessObject b = BusinessObject.createBusinessObject("Component");
b.setAttributes(jo);
BusinessObject[] bos = new BusinessObject[ja.size()];
for(int i=0;i<ja.size();i++){
if(ja.get(i) instanceof JSONNull){
continue;
for(int i=0;i<ja.size();i++){
if(ja.get(i) instanceof JSONNull){
continue;
}
if(jo.get("Parameter")==null){
continue;
}
JSONObject value = ja.getJSONObject(i).getJSONObject("jbo.sample.Parameter");
Map<String,Object> valMap = new HashMap<String,Object>();
Set<Entry> vSet = value.entrySet();
for(Entry v:vSet){
valMap.put(v.getKey().toString(), v.getValue());
}
bos[i] = BusinessObject.createBusinessObject("jbo.sample.Parameter",valMap);
}
JSONObject value = ja.getJSONObject(i).getJSONObject("jbo.sample.Parameter");
Map<String,Object> valMap = new HashMap<String,Object>();
Set<Entry> vSet = value.entrySet();
for(Entry v:vSet){
valMap.put(v.getKey().toString(), v.getValue());
}
bos[i] = BusinessObject.createBusinessObject("jbo.sample.Parameter",valMap);
}
b.setAttributeValue("Parameter", bos);
exists.add(b);
}