|
@@ -142,10 +142,7 @@ public class ThOCRAction extends AbstractNCAction{
|
|
|
String trate = extobj.getString("trate");//税率
|
|
|
|
|
|
JSONArray flist = info.getJSONArray("flist");
|
|
|
- String name = "";
|
|
|
- for(int k = 0;k < flist.size();k++){
|
|
|
- name = flist.getJSONObject(k).getString("name").replace("\"", "");//发票名称
|
|
|
- }
|
|
|
+ String name = filewjlis.get(i);
|
|
|
String memo = info.getString("number");//发票号
|
|
|
String code = info.getString("number");//发票代码
|
|
|
JSONObject comm_info = info.getJSONObject("comm_info");
|
|
@@ -187,7 +184,7 @@ public class ThOCRAction extends AbstractNCAction{
|
|
|
// defvo.setAttributeValue("name", name);
|
|
|
// defvo.setAttributeValue("memo", memo);
|
|
|
defvo.setAttributeValue("name", memo);
|
|
|
- defvo.setAttributeValue("memo", name );
|
|
|
+ defvo.setAttributeValue("memo", name);
|
|
|
defvo.setAttributeValue("mnecode", mnecode);
|
|
|
defvo.setAttributeValue("name2", name2);
|
|
|
defvo.setAttributeValue("name3", name3);
|