JSONArray賦值給JSONObject是解析json後,json解析後,發現JSONArray變成字符串:
JSONArray爲字符串的樣子:
正常的樣子:
解決:
//科目信息jsonArray列表
JSONArray accounts = getAccounts(grdERPlist, description, employeeCode, unitCode);
formData.put("VOUCHER_D", accounts.toList());
JSONArray賦值給JSONObject是解析json後,json解析後,發現JSONArray變成字符串:
JSONArray爲字符串的樣子:
正常的樣子:
解決:
//科目信息jsonArray列表
JSONArray accounts = getAccounts(grdERPlist, description, employeeCode, unitCode);
formData.put("VOUCHER_D", accounts.toList());
引入依賴 <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId>