开票申请
This commit is contained in:
parent
304eb8061a
commit
d8d985df8e
|
@ -155,7 +155,6 @@ public class InvoiceDistributeServiceImpl extends BaseService<InvoiceDistributeE
|
|||
**/
|
||||
private JSONObject getlzfpsqdsqSendData(JSONObject mainData, JSONArray formson_0700,JSONArray formson_0332) throws ParseException {
|
||||
|
||||
JSONObject returnObject = new JSONObject();
|
||||
JSONObject parent = new JSONObject();
|
||||
JSONArray childrens = new JSONArray();
|
||||
parent.put("serialNumber", mainData.getString("id"));
|
||||
|
@ -268,8 +267,7 @@ public class InvoiceDistributeServiceImpl extends BaseService<InvoiceDistributeE
|
|||
}
|
||||
parent.put("applicationForm", applicationForm);
|
||||
parent.put("specialIndustryDTO", specialIndustryDTO);
|
||||
returnObject.put("bodys", parent.toJSONString());
|
||||
return returnObject;
|
||||
return parent;
|
||||
}
|
||||
public String stringAgg( JSONArray jsonArray) {
|
||||
// 防御空输入:若JSONArray为null或空,直接返回空字符串
|
||||
|
@ -311,8 +309,6 @@ public class InvoiceDistributeServiceImpl extends BaseService<InvoiceDistributeE
|
|||
* @Date 6:12 下午 2025/6/27
|
||||
**/
|
||||
private JSONObject gethzxxbsqdsqSendData(JSONObject mainData, JSONArray formson_0700,JSONArray formson_0332) throws ParseException {
|
||||
JSONObject returnObject = new JSONObject();
|
||||
JSONArray childrens = new JSONArray();
|
||||
JSONObject parent = new JSONObject();
|
||||
parent.put("serialNumber", mainData.getString("id"));
|
||||
parent.put("companyCode", "");
|
||||
|
@ -391,8 +387,7 @@ public class InvoiceDistributeServiceImpl extends BaseService<InvoiceDistributeE
|
|||
applicationFormJson.put("redFlushType", "0");
|
||||
applicationForm.add(applicationFormJson);
|
||||
parent.put("applicationForm", applicationForm);
|
||||
returnObject.put("bodys", parent.toJSONString());
|
||||
return returnObject;
|
||||
return parent;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -405,8 +400,7 @@ public class InvoiceDistributeServiceImpl extends BaseService<InvoiceDistributeE
|
|||
* @Date 6:12 下午 2025/6/27
|
||||
**/
|
||||
private JSONObject gethzfpsqdsqSendData(JSONObject mainData, JSONArray formson_0700,JSONArray formson_0332) throws ParseException {
|
||||
com.alibaba.fastjson.JSONObject returnObject = new com.alibaba.fastjson.JSONObject();
|
||||
com.alibaba.fastjson.JSONObject parent = new com.alibaba.fastjson.JSONObject();
|
||||
JSONObject parent = new JSONObject();
|
||||
parent.put("serialNumber", mainData.getString("id"));
|
||||
parent.put("companyCode", "0");
|
||||
parent.put("sellerTaxNo", mainData.getString("field0163"));
|
||||
|
@ -438,14 +432,14 @@ public class InvoiceDistributeServiceImpl extends BaseService<InvoiceDistributeE
|
|||
parent.put("sellerName", mainData.getString("field0108"));
|
||||
parent.put("sellerAddrPhone", "");
|
||||
parent.put("sellerBankAccount", "");
|
||||
com.alibaba.fastjson.JSONObject extFieldJSONObject = new com.alibaba.fastjson.JSONObject();
|
||||
JSONObject extFieldJSONObject = new JSONObject();
|
||||
extFieldJSONObject.put("SystemOrg","OA");
|
||||
parent.put("extFieldJSONObject",extFieldJSONObject);
|
||||
com.alibaba.fastjson.JSONObject extendFieldsObj = new com.alibaba.fastjson.JSONObject();
|
||||
JSONObject extendFieldsObj = new JSONObject();
|
||||
extendFieldsObj.put("SystemOrg","OA");
|
||||
parent.put("extendFields",extendFieldsObj);
|
||||
com.alibaba.fastjson.JSONArray applicationForm = new com.alibaba.fastjson.JSONArray();
|
||||
com.alibaba.fastjson.JSONObject applicationFormJson = new com.alibaba.fastjson.JSONObject();
|
||||
JSONArray applicationForm = new JSONArray();
|
||||
JSONObject applicationFormJson = new JSONObject();
|
||||
if(mainData.getString("field0109") != null){
|
||||
if("-5467259512157286597".equals(mainData.getString("field0109"))){
|
||||
applicationFormJson.put("invoiceType", "10");
|
||||
|
@ -468,7 +462,6 @@ public class InvoiceDistributeServiceImpl extends BaseService<InvoiceDistributeE
|
|||
applicationFormJson.put("remark", mainData.getString("field0092"));
|
||||
applicationForm.add(applicationFormJson);
|
||||
parent.put("applicationForm", applicationForm);
|
||||
returnObject.put("bodys", parent.toJSONString());
|
||||
return returnObject;
|
||||
return parent;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue