|
|
@@ -1982,10 +1982,13 @@ public class YiDaController {
|
|
|
JSONObject obj=new JSONObject();
|
|
|
obj.put("textField_mipgcip7",createJson.getString("textField_l6ukuz13"));
|
|
|
JSONArray data = new JSONArray(dingUtil.yiDaSearch("FORM-DEE405950215455D8D07ABEBB01CE3FAFLFE", obj));
|
|
|
- if (data.length() > 0 && data.length() == 1) {
|
|
|
- createJson.put("textField_miingkfc", data.getJSONObject(0).getJSONObject("formData").getString("textField_mipgcip8"));//保险费
|
|
|
- }else{
|
|
|
- createJson.put("textField_miingkfc",createJson.getString("textField_l6ukuz13"));
|
|
|
+ createJson.put("textField_miingkfc",createJson.getString("textField_l6ukuz13"));
|
|
|
+ if (data.length() > 0) {
|
|
|
+ for (int k = 0; k < data.length(); k++) {
|
|
|
+ if(createJson.getString("textField_l6ukuz13").equals(data.getJSONObject(k).getJSONObject("formData").getString("textField_mipgcip8"))){
|
|
|
+ createJson.put("textField_miingkfc", data.getJSONObject(0).getJSONObject("formData").getString("textField_mipgcip8"));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
JSONArray tableField_l6ujr47b = new JSONArray();
|