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