parent
a38ee502f3
commit
e0b7a6ea2d
@ -1,105 +0,0 @@ |
||||
import cn.hutool.json.JSONUtil; |
||||
import com.dxhy.order.model.newsk.discinfo.DiscInfoResponse; |
||||
import com.dxhy.order.model.newsk.vehicle.VehicleInvoiceExpResponse; |
||||
import com.dxhy.order.consumer.ConsumerStarter; |
||||
import com.dxhy.order.invoice.module.invoice.model.bo.VehicleInvoiceExpBo; |
||||
import com.dxhy.order.invoice.utils.HttpInvoiceRequestUtil; |
||||
import com.dxyun.invoice.protocol.InterfaceData; |
||||
import com.dxyun.invoice.protocol.ProtocolUtil; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
/** |
||||
* @author: <a href="yaoxuguang@ele-cloud.com">yaoxuguang</a> |
||||
* @createDate: Created in 2021-07-26 |
||||
*/ |
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest(classes = ConsumerStarter.class) |
||||
@Slf4j |
||||
public class HttpInvoiceRequestUtilTest { |
||||
// private static final String url = "http://10.1.2.51:9077/accept/invoice/V1.0/";
|
||||
private static final String url = "http://10.1.23.170:9077/accept/invoice/V1.0/"; |
||||
|
||||
@Test |
||||
public void vehicleInvoiceExp() { |
||||
String requestUrl = url + "vehicleInvoiceExp"; |
||||
String requestStr = "{" + |
||||
" \"nsrsbh\":\"140301206111099566\"," + |
||||
" \"fjh\":\"0\"," + |
||||
" \"qqsj\":\"20210701\"," + |
||||
" \"zzsj\":\"20210730\"" + |
||||
"}"; |
||||
String terminalCode = "002"; |
||||
VehicleInvoiceExpBo vehicleInvoiceExpBo = JSONUtil.toBean(requestStr, VehicleInvoiceExpBo.class); |
||||
VehicleInvoiceExpResponse response = HttpInvoiceRequestUtil.vehicleInvoiceExp(requestUrl, vehicleInvoiceExpBo, terminalCode); |
||||
log.info("机动车专票导出加密数据,返回结果:" + JSONUtil.toJsonStr(response)); |
||||
} |
||||
|
||||
@Test |
||||
public void queryDiscInfo() { |
||||
String requestUrl = url + "queryDiscInfo"; |
||||
String terminalCode = "014"; |
||||
String nsrsbh = "110108202007090012"; |
||||
String fjh = ""; |
||||
DiscInfoResponse discInfoResponse = HttpInvoiceRequestUtil.queryDiscInfo(requestUrl, nsrsbh, fjh, terminalCode); |
||||
log.info("税盘信息查询,返回结果:" + JSONUtil.toJsonStr(discInfoResponse)); |
||||
} |
||||
|
||||
@Test |
||||
public void parseInvoiceControlReturn() { |
||||
String response = "{" + |
||||
" \"machineType\":\"A9\"," + |
||||
" \"key\":\"0454267656P8q6+KbpXvzs4uAbkj/ojQ==\"," + |
||||
" \"taxpayerNo\":\"140301206111099566\"," + |
||||
" \"terminalCode\":\"0\"," + |
||||
" \"machineNo\":\"\"," + |
||||
" \"encryCode\":\"1\"," + |
||||
" \"returnCode\":\"0000\"," + |
||||
" \"returnMsg\":\"成功\"," + |
||||
" \"data\":\"rR5s9sDe8TeEfSxeF5Mj/aRZewnijFHx8EXqqwuan1hMyJY2edf5SBzD173zvrGXiLnl/nCSoj/lqvILGH9aTqoW+pOlYjXoX2UWhH3sbdS+H1Cs9tO6Ei+NrVXTl/k6s8KFN8C5sMCYai4bkRGyzTqZVQK5Mt0EWIEO/c/r5mWLRjguFNCWLpU2XFyScV+EzhQApp18dr8gEC4dtBpC+mrsiKXbp/N+3j8/h2NOBhk1LMmF4gvVLVAq23xj6zt734aFK+d2TeaRvV2UHB+e47BjUmuTqByiMhPpn9kQGghNVZ3evD2F1TQeb65a+IglTzpPFvCw8x+f2oaW8fG0VM/sdXGvrUSKgsesm2cPp1TYvfneREsGh62FcjUhJzA8OFYPP40PRifMGulAxHUM1QnPJDn1N4V4fg4/x4NsiPHi6en8iOeZtYqNev9cDZ2q8X9b6I3BD7zKYtVwX6vo4zayAPY/lN9N/9Xp3duCMWGyzIeDAtWD4i96IvdROFHcHC2lIa37CGnbh2f9cg2xzaMz50MoapXtxFmeK2smyP2XR8yTUeHxEyycv7tLCO89dMOygJ6x2+Ymd0iTxj4//t4gRW3xCkt3fST+4y46cB0=\"," + |
||||
" \"version\":\"1.2\"," + |
||||
" \"checkCode\":\"6AC2\"" + |
||||
"}"; |
||||
try { |
||||
InterfaceData interfaceData = ProtocolUtil.decodeData(response); |
||||
log.info("新版税控,解析返回结果:" + JSONUtil.toJsonStr(interfaceData)); |
||||
} catch (Exception e) { |
||||
e.printStackTrace(); |
||||
} |
||||
} |
||||
|
||||
@Test |
||||
public void encryptRequestParam(){ |
||||
String requestStr = "{" + |
||||
" \"FPLB\":\"2\"," + |
||||
" \"FPQQLSH\":\"712807865741094912001\"," + |
||||
" \"KPRQ\":\"20220729092701\"," + |
||||
" \"FPKJ_MS\":\"发票赋码成功\"," + |
||||
" \"FPKJ_ZT\":\"2100\"," + |
||||
" \"HJBHSJE\":\"5.35\"," + |
||||
" \"KPLX\":\"0\"," + |
||||
" \"FPLX\":\"1\"," + |
||||
" \"EWM\":\"\"," + |
||||
" \"FP_HM\":\"00924618\"," + |
||||
" \"FWM\":\"033<7-*05<47<7-89-0/9>2/-3/574>6/4*>11-41-7+090//+475>>-310-<+/722*96+89>2282>1791/5+9*/4/25/601407206+981*8716/\"," + |
||||
" \"KPHJSE\":\"0.27\"," + |
||||
" \"FP_DM\":\"011111111007\"," + |
||||
" \"JYM\":\"13986795859659759017\"," + |
||||
" \"FAILDETAIL\":{" + |
||||
" \"CWDM\":\"\"," + |
||||
" \"CWMS\":\"\"," + |
||||
" \"SFXYCS\":\"1\"" + |
||||
" }" + |
||||
"}"; |
||||
try { |
||||
String requestParam = ProtocolUtil.packageProtocol("110108202007090012", |
||||
"499000172123", "1", "FGKP", requestStr, "712807865741094912001"); |
||||
System.out.println(requestParam); |
||||
} catch (Exception e) { |
||||
e.printStackTrace(); |
||||
} |
||||
} |
||||
} |
File diff suppressed because one or more lines are too long
@ -1,308 +0,0 @@ |
||||
|
||||
|
||||
### 测试环境 发票开具结果获取 |
||||
#POST http://10.1.1.222:8087/order-api/v1/GetAllocatedInvoices |
||||
#POST http://sims.ele-cloud.com/order-api/v1/GetAllocatedInvoices |
||||
POST http://10.1.31.217:8087/order-api/v1/ImportOrders |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"COMMON_INVOICE": [ |
||||
{ |
||||
"COMMON_INVOICE_DETAIL": [ |
||||
{ |
||||
"XMMC": "商品名称153035.97", |
||||
"HSBZ": "1", |
||||
"ZXBM": "", |
||||
"LSLBS": "", |
||||
"XMSL": "", |
||||
"ZZSTSGL": "", |
||||
"XMXH": "1", |
||||
"SPBM": "1010115010200000000", |
||||
"GGXH": "", |
||||
"XMDJ": "", |
||||
"SE": 7287.43, |
||||
"DW": "", |
||||
"YHZCBS": "0", |
||||
"XMJE": 153035.97, |
||||
"SL": "0.05", |
||||
"BYZD3": "", |
||||
"BYZD2": "", |
||||
"BYZD1": "", |
||||
"FPHXZ": "0" |
||||
} |
||||
], |
||||
"COMMON_INVOICE_HEAD": { |
||||
"QDXMMC": "", |
||||
"FPZLDM": "0", |
||||
"GMF_NSRSBH": "140301206111099566", |
||||
"YWLX": "业务类型dfy", |
||||
"XSF_DH": "88662200", |
||||
"GMF_YH": "购方银行123412341234", |
||||
"KPR": "kpr", |
||||
"GMF_SJ": "", |
||||
"FHR": "cjw", |
||||
"QD_BZ": "0", |
||||
"KPLX": "0", |
||||
"GMF_MC": "销项9566", |
||||
"GMF_DZ": "购方地址", |
||||
"GMF_SF": "", |
||||
"BZ": "君不见黄河之水天上君不见黄河之水君不见黄河", |
||||
"BYZD4": "", |
||||
"BYZD3": "", |
||||
"CHYY": "", |
||||
"BYZD2": "", |
||||
"BYZD1": "", |
||||
"GMF_ID": "", |
||||
"HJJE": 145748.54, |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"BYZD5": "", |
||||
"GMF_GDDH": "12344321", |
||||
"XSF_NSRSBH": "1403016L1NN5336", |
||||
"FPQQLSH": "0923191108_wA1r", |
||||
"JSHJ": 153035.97, |
||||
"GMF_EMAIL": "", |
||||
"BMB_BBH": "33.0", |
||||
"NSRMC": "1403016L1NN5336", |
||||
"XSF_ID": "", |
||||
"GMF_QYLX": "01", |
||||
"TSCHBZ": "", |
||||
"XSF_YHZH": "", |
||||
"HJSE": 7287.43, |
||||
"GMF_YHZH": "", |
||||
"XSF_MC": "销项测试有限公司", |
||||
"XSF_DZ": "销方地址", |
||||
"YFP_DM": "", |
||||
"SKR": "wjcc", |
||||
"YFP_HM": "", |
||||
"XSF_YH": "销方银行111122223333" |
||||
} |
||||
} |
||||
], |
||||
"COMMON_INVOICE_ORDER": { |
||||
"DDH": "WJC_210923191108", |
||||
"DDDATE": "2021-09-23 18:15:14", |
||||
"THDH": "" |
||||
} |
||||
} |
||||
|
||||
|
||||
### 测试环境 发票开具结果获取 |
||||
#POST http://10.1.1.222:8087/order-api/v1/GetAllocatedInvoices |
||||
POST http://sims.ele-cloud.com/order-api/v1/GetAllocatedInvoices |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPLX": "2", |
||||
"FPQQPCH": "h_191212115036", |
||||
"NSRSBH": "1500000100030828A128" |
||||
} |
||||
|
||||
### 测试环境 发票开具结果获取 |
||||
POST http://10.1.1.222:8087/order-api/v1/GetAllocateInvoicesStatus |
||||
#POST http://sims.ele-cloud.com/order-api/v1/GetAllocateInvoicesStatus |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPLX": "1", |
||||
"FPQQPCH": "h_191212115036", |
||||
"NSRSBH": "1500000100030828A128" |
||||
} |
||||
|
||||
### 预发环境 发票开具结果获取 |
||||
POST http://10.1.2.9:8087/order-api/v1/GetAllocatedInvoices |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPLX": "2", |
||||
"FPQQPCH": "421219914298380288" |
||||
} |
||||
|
||||
|
||||
### 线上环境 发票开具结果获取 |
||||
POST http://10.1.1.222:8087/order-api/invoice/v1/GetAllocatedInvoices |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"Nonce": "11886", |
||||
"SecretId": "289efb7512e54146273b982456b03f42ea93", |
||||
"Timestamp": "1484718385", |
||||
"content": "eyJERFFRUENIIjoiRFgxNTg5NzcxODU4MTU5ODAwNSIsIkZQTFgiOiIyIn0", |
||||
"encryptCode": "0", |
||||
"zipCode": "0", |
||||
"Signature": "" |
||||
} |
||||
|
||||
### 方格 发票开具结果获取 |
||||
POST http://10.1.1.222:8087/order-api/invoice/fangge/v1/GetAllocatedInvoices |
||||
Content-Type: application/x-www-form-urlencoded |
||||
|
||||
Nonce=11886&SecretId=289efb7512e54146273b982456b03f42ea93&Timestamp=1484718385&content=eyJERFFRUENIIjoiRFgxNTg5NzcxODU4MTU5ODAwNSIsIkZQTFgiOiIyIn0&encryptCode=0&zipCode=0&Signature= |
||||
|
||||
|
||||
|
||||
|
||||
### 受理点上下票管理列表 |
||||
POST http://10.1.31.217:8087/order-api/v1/Queryinvoicerollplolist |
||||
#POST http://sims.ele-cloud.com/order-api/v1/Queryinvoicerollplolist |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"KPDID": "", |
||||
"FPZLDM": "0", |
||||
"NSRSBH": "15000120561127953X" |
||||
} |
||||
|
||||
|
||||
### 受理点上票 |
||||
POST http://10.1.31.217:8087/order-api/v1/AccessPointUpInvoice |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPZLDM": "2", |
||||
"FP_DM": "123333333333", |
||||
"FPQSHM": "12345678", |
||||
"FPZZHM": "12345679", |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"SPR": "上票人", |
||||
"SLDID": "11" |
||||
} |
||||
|
||||
### 受理点下票 |
||||
POST http://10.1.31.217:8087/order-api/v1/AccessPointDownInvoice |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "15000120561127953X", |
||||
"SLDID": "1178", |
||||
"XPR": "wjc" |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
### 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8087/order-api/v1/QueryCpyJdKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0", |
||||
"SJFW": "1" |
||||
} |
||||
|
||||
|
||||
### 成品油已下载库存查询 |
||||
POST http://10.1.31.217:8087/order-api/v1/QueryCpyYxzKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0", |
||||
"SPBM": "" |
||||
} |
||||
|
||||
|
||||
### 成品油库存下载 |
||||
POST http://10.1.31.217:8087/order-api/v1/DownloadCpyKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0", |
||||
"MXS": [ |
||||
{ |
||||
"MX": { |
||||
"SPBM": "1070101010100000000", |
||||
"SL": "1.00000" |
||||
} |
||||
} |
||||
] |
||||
} |
||||
|
||||
### 成品油库存退回 |
||||
POST http://10.1.31.217:8087/order-api/v1/BackCpyKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0", |
||||
"MX": { |
||||
"SPBM": "1070101010100000000", |
||||
"SL": "1.00000" |
||||
} |
||||
} |
||||
|
||||
|
||||
### 成品油同步 |
||||
POST http://10.1.31.217:8087/order-api/v1/SyncCpyKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0" |
||||
} |
||||
|
||||
|
||||
### 红字信息表上传 |
||||
POST http://10.1.31.217:8087/order-api/v1/AllocateRedInvoiceApplication |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"HZFPSQBSCS_BATCH": { |
||||
"SQBSCQQPCH": "661619921493210923161813", |
||||
"NSRSBH": "15000019860615543754", |
||||
"SLDID": "661619921493", |
||||
"KPJH": "", |
||||
"FPLX": "1", |
||||
"FPLB": "0", |
||||
"SQLB": "0", |
||||
"KZZD": "扩展字段" |
||||
}, |
||||
"HZFPSQBSC": [ |
||||
{ |
||||
"HZFPSQBSC_HEAD": { |
||||
"SQBSCQQLSH": "661619921493210923161813", |
||||
"YYSBZ": "0000000000", |
||||
"XXBLX": "0", |
||||
"YFP_DM": "1500020560", |
||||
"YFP_HM": "49562654", |
||||
"YFP_KPRQ": "2021-09-23 14:25:39", |
||||
"TKSJ": "2021-09-23", |
||||
"XSF_NSRSBH": "15000019860615543754", |
||||
"XSF_MC": "15000019860615543754", |
||||
"GMF_NSRSBH": "913100004250096176", |
||||
"GMF_MC": "光明食品集团上海农场有限公司", |
||||
"HJJE": "-876.11", |
||||
"HJSE": "-113.89", |
||||
"SQSM": "", |
||||
"BMB_BBH": "33.0", |
||||
"KZZD1": "扩展字段1", |
||||
"KZZD2": "扩展字段2" |
||||
}, |
||||
"HZFPSQBSCDETAILIST": [ |
||||
{ |
||||
"XMXH": "1", |
||||
"FPHXZ": "0", |
||||
"SPBM": "1040105080000000000", |
||||
"ZXBM": "", |
||||
"YHZCBS": "0", |
||||
"LSLBS": "", |
||||
"ZZSTSGL": "", |
||||
"XMMC": "1040105080000000000", |
||||
"GGXH": "", |
||||
"DW": "", |
||||
"XMSL": "-22", |
||||
"XMDJ": "39.82318182", |
||||
"XMJE": "-876.11", |
||||
"HSBZ": "0", |
||||
"SL": "0.13", |
||||
"SE": "-113.89" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
||||
|
||||
|
||||
### |
@ -1,148 +0,0 @@ |
||||
|
||||
|
||||
### 发票开具结果获取 |
||||
POST http://10.1.1.222:8087/order-api/v2/GetAllocatedInvoices |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPLX": "2", |
||||
"FPQQPCH": "421219914298380288" |
||||
} |
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
#POST http://10.1.31.217:8081/order-api/v2/PrintInvoices |
||||
POST http://10.1.1.222:8087/order-api/v2/PrintInvoices |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"DYPCH": "123213123", |
||||
"DYLX": "fp", |
||||
"DYDBS": "451", |
||||
"L": [ |
||||
{ |
||||
"FPQQLSH": "748692365675" |
||||
} |
||||
] |
||||
} |
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8081/order-api/v2/QueryCpyJdKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0", |
||||
"SJFW": "1" |
||||
} |
||||
|
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8081/order-api/v2/QueryCpyYxzKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0", |
||||
"SJFW": "" |
||||
} |
||||
|
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8081/order-api/v2/DownloadCpyKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0", |
||||
"MXS": [ |
||||
{ |
||||
"MX": { |
||||
"SPBM": "1070101060100000000", |
||||
"SL": "1.00000" |
||||
} |
||||
} |
||||
] |
||||
} |
||||
|
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8081/order-api/v2/BackCpyKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0", |
||||
"MX": { |
||||
"SPBM": "1070101060100000000", |
||||
"SL": "1.00000" |
||||
} |
||||
} |
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8081/order-api/v2/SyncCpyKc |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"FJH": "0" |
||||
} |
||||
|
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8087/order-api/v2/Queryinvoicerollplolist |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"KPDID": "187", |
||||
"FPZLDM": "2", |
||||
"NSRSBH": "1403016L1NN5336" |
||||
} |
||||
|
||||
|
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8081/order-api/v2/AccessPointUpInvoice |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPZLDM": "2", |
||||
"FP_DM": "1100181650", |
||||
"FPQSHM": "95369669", |
||||
"FPZZHM": "95419591", |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"SPR": "上票人", |
||||
"SLDID": "222" |
||||
} |
||||
|
||||
|
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8081/order-api/v2/AccessPointDownInvoice |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"SLDID": "222", |
||||
"XPR": "下票人" |
||||
} |
||||
|
||||
|
||||
### 5.15. 成品油库存局端可下载库存查询 |
||||
POST http://10.1.31.217:8087/order-api/v2/GetInvoicePdfFiles |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPQQPCH": "600903700966944778", |
||||
"REQUEST_EINVOICE_PDF": [ |
||||
{ |
||||
"FP_DM": "150010020012", |
||||
"FP_HM": "37522586" |
||||
} |
||||
] |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### |
@ -1,630 +0,0 @@ |
||||
|
||||
### 测试环境-发票开具接口 |
||||
POST http://10.1.3.230:8087/order-api/v4/AllocateInvoices |
||||
#POST http://10.1.31.217:8087/order-api/v4/AllocateInvoices |
||||
#POST http://10.1.31.217:8087/order-api/v5/GenerateInvoice |
||||
#POST http://10.1.2.9:8080/order-api/v4/AllocateInvoices |
||||
#POST http://10.1.5.222:8087/order-api/v4/AllocateInvoices |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"DDZXX": [ |
||||
{ |
||||
"DDMXXX": [ |
||||
{ |
||||
"XMMC": "", |
||||
"HSBZ": "", |
||||
"ZXBM": "", |
||||
"LSLBS": "", |
||||
"DJ": "", |
||||
"ZZSTSGL": "", |
||||
"KCE": "", |
||||
"SPBM": "", |
||||
"XH": "1", |
||||
"SPSL": "", |
||||
"GGXH": "", |
||||
"SE": "", |
||||
"DW": "", |
||||
"YHZCBS": "", |
||||
"BYZD4": "mx4", |
||||
"SL": "", |
||||
"BYZD3": "mx3", |
||||
"BYZD2": "mx2", |
||||
"JE": 187.42, |
||||
"BYZD1": "mx1", |
||||
"SPID": "779498411524112384", |
||||
"FPHXZ": "0", |
||||
"BYZD5": "mx5" |
||||
} |
||||
], |
||||
"DDTXX": { |
||||
"XHFSBH": "15000120561127953X", |
||||
"QDXMMC": "", |
||||
"GMFZH": "", |
||||
"YWLX": "test1", |
||||
"DDSJ": "20230130153733", |
||||
"DDH": "JKV501301533733_qjU_007", |
||||
"KPR": "", |
||||
"DDQQLSH": "01301537333_qjU_007", |
||||
"QDBZ": "0", |
||||
"SFCF": "1", |
||||
"FHR": "", |
||||
"KPLX": "0", |
||||
"XHFMC": "销项测试有限公司", |
||||
"XHFDZ": "", |
||||
"BZ": "", |
||||
"BYZD4": "txx4", |
||||
"BYZD3": "txx3", |
||||
"CHYY": "", |
||||
"BYZD2": "txx2", |
||||
"BYZD1": "txx1", |
||||
"XHFYH": "", |
||||
"HJJE": 187.42, |
||||
"THDH": "", |
||||
"BYZD5": "txx5", |
||||
"GMFLX": "", |
||||
"XHFDH": "", |
||||
"GMFYH": "", |
||||
"HZXXBBH": "", |
||||
"GMFBM": "779498411524112384", |
||||
"GMFDH": "", |
||||
"JSHJ": 187.42, |
||||
"YFPDM": "", |
||||
"GMFDZYX": "", |
||||
"YFPHM": "", |
||||
"TSCHBZ": "", |
||||
"HJSE": 0.00, |
||||
"GMFSJH": "", |
||||
"GMFMC": "", |
||||
"GMFDZ": "", |
||||
"SKR": "", |
||||
"XHFZH": "", |
||||
"GMFSBH": "" |
||||
} |
||||
} |
||||
], |
||||
"DDPCXX": { |
||||
"KPFS": "0", |
||||
"FPLXDM": "007", |
||||
"ENTID": "15000120561127953X", |
||||
"DDQQPCH": "202301330170011292", |
||||
"KPZD": "-1", |
||||
"NSRSBH": "15000120561127953X" |
||||
} |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
### 测试环境-发票开具结果获取 |
||||
#POST http://10.1.1.222:8087/order-api/v4/GetAllocatedInvoices |
||||
#POST http://101.124.4.253/order-api/v4/GetAllocatedInvoices |
||||
#POST http://10.1.31.217:8087/order-api/v4/GetAllocatedInvoices |
||||
#POST http://sims.ele-cloud.com/order-api/v4/GetAllocatedInvoices |
||||
POST http://sims.dxyun.com:52381/order-api/v4/GetAllocatedInvoices |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPLXDM": "026", |
||||
"SFFHSBSJ": "0", |
||||
"DDQQPCH": "0001A9100000000LRUN5_109", |
||||
"NSRSBH": "1403016L1NN5336" |
||||
} |
||||
|
||||
### 测试环境-订单查询接口 |
||||
#POST http://10.1.1.222:8087/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
#POST http://10.1.31.217:8087/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
#POST http://10.1.2.225:8087/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
#POST http://sims.dxyun.com:52381/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
POST http://sims.ele-cloud.com/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "913706125667016231", |
||||
"DDQQLSH": "30e75409-dded-ec11-a309-0a94ef6ebd27", |
||||
"TQM": "", |
||||
"DDH": "", |
||||
"BSWJ": "0", |
||||
"DDRQQ": "", |
||||
"DDRQZ": "" |
||||
} |
||||
|
||||
|
||||
### 测试环境-订单查询接口 |
||||
POST http://10.1.1.222:8087/order-api/v4/GetInvoiceInfo |
||||
#POST http://10.1.31.217:8087/order-api/v4/GetInvoiceInfo |
||||
#POST http://10.1.1.221:8081/order-api/v4/GetInvoiceInfo |
||||
Content-Type: application/json |
||||
|
||||
{"NSRSBH":"15000120561127953X","BSWJ":"","FPDM":"SDDDD","FPHM":"","KPRQQ":"","KPRQZ":""} |
||||
|
||||
|
||||
### 测试环境-发票作废接口 |
||||
POST http://10.1.1.222:8087/order-api/v5/DeprecateInvoices |
||||
#POST http://sims.ele-cloud.com/order-api/v4/DeprecateInvoices |
||||
#POST http://10.1.31.217:8081/order-api/v4/DeprecateInvoices |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"FPDM": "5100211130", |
||||
"FPLXDM": "004", |
||||
"FPQH": "09622793", |
||||
"FPZH": "09622793", |
||||
"XHFSBH": "915114223377432211", |
||||
"ZFLX": "1", |
||||
"ZFPCH": "2021121511184124043526683694927793", |
||||
"ZFYY": "发票打印有误" |
||||
} |
||||
|
||||
|
||||
### 测试环境-红字信息表上传接口 |
||||
POST http://10.1.1.222:8087/order-api/v4/AllocateRedInvoiceApplication |
||||
#POST http://10.1.31.217:8087/order-api/v4/AllocateRedInvoiceApplication |
||||
#POST http://10.1.5.222:8080/order-api/v4/AllocateRedInvoiceApplication |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"HZSQDSCPC": { |
||||
"SQBSCQQPCH": "20220119173833545", |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"KPZD": "", |
||||
"FPLXDM": "0", |
||||
"SQLB": "0", |
||||
"KZZD": "" |
||||
}, |
||||
"HZSQDSCZXX": [ |
||||
{ |
||||
"HZSQDTXX": { |
||||
"SQBSCQQLSH": "20220119173833", |
||||
"YYSBZ": "0000000090", |
||||
"XXBLX": "0", |
||||
"YFPDM": "5000181530", |
||||
"YFPHM": "54736533", |
||||
"YFPKPRQ": "2021-07-06 09:22:12", |
||||
"TKSJ": "20220119173831", |
||||
"XHFSBH": "1403016L1NN5336", |
||||
"XHFMC": "1403016L1NN5336", |
||||
"GMFSBH": "1403016L1NN5336", |
||||
"GMFMC": "珠海丽珠试剂股份有限公司", |
||||
"HJJE": "-5831.83", |
||||
"HJSE": "-758.13", |
||||
"SQSM": "0000000100", |
||||
"BMBBBH": "36.0", |
||||
"KZZD1": "", |
||||
"KZZD2": "" |
||||
}, |
||||
"DDMXXX": [ |
||||
{ |
||||
"XH": "1", |
||||
"FPHXZ": "0", |
||||
"SPBM": "1070101050300000000", |
||||
"ZXBM": "", |
||||
"YHZCBS": "0", |
||||
"LSLBS": "", |
||||
"ZZSTSGL": "", |
||||
"XMMC": "*石脑油【废矿物油】*防疫用品", |
||||
"GGXH": "", |
||||
"DW": "升", |
||||
"SPSL": "-60", |
||||
"DJ": "60.6545", |
||||
"JE": "-3639.27", |
||||
"HSBZ": "0", |
||||
"SL": "0.13", |
||||
"SE": "-473.10", |
||||
"KCE": "" |
||||
}, |
||||
{ |
||||
"XH": "2", |
||||
"FPHXZ": "0", |
||||
"SPBM": "1070101050300000000", |
||||
"ZXBM": "", |
||||
"YHZCBS": "0", |
||||
"LSLBS": "", |
||||
"ZZSTSGL": "", |
||||
"XMMC": "*石脑油【废矿物油】*防疫用品", |
||||
"GGXH": "", |
||||
"DW": "升", |
||||
"SPSL": "-30", |
||||
"DJ": "58.54566667", |
||||
"JE": "-1756.37", |
||||
"HSBZ": "0", |
||||
"SL": "0.13", |
||||
"SE": "-228.33", |
||||
"KCE": "" |
||||
}, |
||||
{ |
||||
"XH": "3", |
||||
"FPHXZ": "0", |
||||
"SPBM": "1070101050300000000", |
||||
"ZXBM": "", |
||||
"YHZCBS": "0", |
||||
"LSLBS": "", |
||||
"ZZSTSGL": "", |
||||
"XMMC": "*石脑油【废矿物油】*防疫用品", |
||||
"GGXH": "", |
||||
"DW": "升", |
||||
"SPSL": "-20", |
||||
"DJ": "21.8095", |
||||
"JE": "-436.19", |
||||
"HSBZ": "0", |
||||
"SL": "0.13", |
||||
"SE": "-56.70", |
||||
"KCE": "" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
||||
|
||||
|
||||
|
||||
### 测试环境-红字信息表上传接口 |
||||
#POST http://10.1.1.222:8087/order-api/v4/DownloadRedInvoiceApplicationResult |
||||
POST http://sims.ele-cloud.com/order-api/v4/DownloadRedInvoiceApplicationResult |
||||
#POST http://10.1.31.217:8081/order-api/v4/DownloadRedInvoiceApplicationResult |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"SQBXZQQPCH": "zschzsqdxz123124124123169", |
||||
"NSRSBH": "91610138MAB0W8RJ0H", |
||||
"FPLXDM": "028", |
||||
"TKRQQ": "20220314", |
||||
"TKRQZ": "20220317", |
||||
"GMFSBH": "", |
||||
"XHFSBH": "", |
||||
"XXBBH": "6101822203010714", |
||||
"XXBFW": "0", |
||||
"YS": "1", |
||||
"GS": "10" |
||||
} |
||||
|
||||
|
||||
### 测试环境-税控设备维护接口 |
||||
POST http://10.1.3.230:8087/order-api/v4/SyncTaxEquipmentInfo |
||||
#POST http://10.1.31.217:8087/order-api/v4/SyncTaxEquipmentInfo |
||||
#POST http://10.1.5.222:8080/order-api/v4/SyncTaxEquipmentInfo |
||||
#POST http://sims.dxyun.com:52381/order-api/v4/SyncTaxEquipmentInfo |
||||
#POST http://sims.ele-cloud.com/order-api/v4/SyncTaxEquipmentInfo |
||||
Content-Type: application/json |
||||
|
||||
[ |
||||
{ |
||||
"XHFSBH": "92653223MA7833001A", |
||||
"XHFMC": "皮山县鑫广通汽车修理与维护汽车维护中心", |
||||
"SKSBDM": "002", |
||||
"SKSBXH": "", |
||||
"CZLX": "1", |
||||
"GLSJ": "2021-11-02 14:39:01", |
||||
"BZ": "" |
||||
} |
||||
] |
||||
|
||||
### 测试环境-初始化接口 |
||||
#POST http://sims.ele-cloud.com/order-api/api/autoConfigEnterprise |
||||
POST http://10.1.31.217:8087/order-api/api/autoConfigEnterprise |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"xhfMc": "5336-C48", |
||||
"xhfNsrsbh": "1403016L1NN5336" |
||||
} |
||||
|
||||
|
||||
|
||||
### 测试环境-发票余量查询接口 |
||||
POST http://10.1.3.230:8087/order-api/v4/QueryInvoiceStore |
||||
#POST http://sims.dxyun.com:52380/order-api-zsc/v4/QueryInvoiceStore |
||||
#POST http://test.5ifapiao.com:8888/order-api/v4/QueryInvoiceStore |
||||
#POST http://10.1.31.217:8087/order-api/v4/QueryInvoiceStore |
||||
#POST http://sims.ele-cloud.com/order-api/v4/QueryInvoiceStore |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"XHFSBH": "1403016L1NN5336" |
||||
} |
||||
|
||||
### 测试环境-购方信息查询接口 |
||||
POST http://10.1.3.230:8087/order-api/v4/queryBuyerInfo |
||||
#POST http://10.1.5.222:8080/order-api/v4/queryBuyerInfo |
||||
#POST http://10.1.31.217:8081/order-api/v4/queryBuyerInfo |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"GMFBM": "", |
||||
"XHFSBH": "15000120561127953X", |
||||
"XHFMC": "", |
||||
"GMFMC": "", |
||||
"GMFSBH": "", |
||||
"YS": "1", |
||||
"GS": "10" |
||||
} |
||||
|
||||
### 测试环境-购方信息同步接口 |
||||
POST http://10.1.1.222:8087/order-api/v4/SyncBuyerInfo |
||||
#POST http://10.1.31.217:8081/order-api/v4/SyncBuyerInfo |
||||
Content-Type: application/json |
||||
|
||||
[ |
||||
{ |
||||
"GMFBM": "123122222222225", |
||||
"XHFSBH": "15000120561127953X", |
||||
"XHFMC": "销项测试有限公司", |
||||
"GMFLX": "01", |
||||
"GMFSBH": "432523242323432", |
||||
"GMFMC": "3332234", |
||||
"GMFDZ": "asfa阿萨德发呆发呆发射点发三分大赛阿德法旦法撒旦法撒旦法色法撒旦发射发大", |
||||
"GMFDH": "撒旦发射发色发", |
||||
"GMFYH": "asfa阿萨德发呆发呆发射点发三分萨德发送到撒旦法的德射发大", |
||||
"GMFZH": "", |
||||
"CZLX": "0", |
||||
"BZ": "" |
||||
} |
||||
] |
||||
|
||||
|
||||
### 测试环境-商品信息查询接口 |
||||
POST http://10.1.3.230:8087/order-api/v4/QueryCommodityInfo |
||||
#POST http://10.1.5.222:8080/order-api/v4/QueryCommodityInfo |
||||
#POST http://10.1.31.217:8081/order-api/v4/QueryCommodityInfo |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"XHFSBH": "15000120561127953X", |
||||
"XHFMC": "销项测试有限公司", |
||||
"YS": "1", |
||||
"GS": "10", |
||||
"SPID": "" |
||||
} |
||||
|
||||
### 测试环境-商品信息同步接口 |
||||
POST http://10.1.3.230:8087/order-api/v4/SyncCommodityInfo |
||||
#POST http://10.1.5.222:8080/order-api/v4/SyncCommodityInfo |
||||
#POST http://10.1.31.217:8081/order-api/v4/SyncCommodityInfo |
||||
Content-Type: application/json |
||||
|
||||
[ |
||||
{ |
||||
"SPID": "", |
||||
"XHFSBH": "1403016L1NN5336", |
||||
"XHFMC": "5336-C48", |
||||
"SPBM": "1010101070000000000", |
||||
"ZXBM": "", |
||||
"YHZCBS": "0", |
||||
"LSLBS": "", |
||||
"ZZSTSGL": "", |
||||
"XMMC": "三星(SAMSUNG) 兼容性004", |
||||
"GGXH": "", |
||||
"DW": "", |
||||
"DJ": "", |
||||
"HSBZ": "1", |
||||
"SL": "0.03", |
||||
"CZLX": "0" |
||||
} |
||||
] |
||||
|
||||
|
||||
|
||||
### 二维码生成接口 |
||||
#POST http://10.1.1.222:8087/order-api/v4/GenerateDynamicCode |
||||
POST http://10.1.5.222:8080/order-api/v4/GenerateDynamicCode |
||||
#POST http://10.1.31.217:8087/order-api/v4/GenerateDynamicCode |
||||
#POST http://sims.ele-cloud.com/order-api/v4/GenerateDynamicCode |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"DDTXX": { |
||||
"DDQQLSH": "202109131708178332", |
||||
"NSRSBH": "1403016L1NN5336", |
||||
"NSRMC": "天津千麦亿纳谱医学检验实验室有限公司", |
||||
"KPLX": "0", |
||||
"BMBBBH": "", |
||||
"XHFSBH": "1403016L1NN5336", |
||||
"XHFMC": "天津千麦亿纳谱医学检验实验室有限公司", |
||||
"XHFDZ": "北京市海淀区", |
||||
"XHFDH": "1234567890", |
||||
"XHFYH": "交通银行海淀支行", |
||||
"XHFZH": "140301615336", |
||||
"GMFBM": "", |
||||
"GMFSBH": "", |
||||
"GMFMC": "", |
||||
"GMFDZ": "", |
||||
"GMFDH": "", |
||||
"GMFYH": "", |
||||
"GMFZH": "", |
||||
"GMFLX": "", |
||||
"GMFSF": "", |
||||
"GMFSJH": "", |
||||
"GMFDZYX": "", |
||||
"KPR": "张胜男", |
||||
"SKR": "", |
||||
"FHR": "", |
||||
"YFPDM": "", |
||||
"YFPHM": "", |
||||
"QDBZ": "0", |
||||
"QDXMMC": "", |
||||
"JSHJ": "477.00", |
||||
"HJJE": "450.00", |
||||
"HJSE": "27.00", |
||||
"BZ": "", |
||||
"CHYY": "", |
||||
"TSCHBZ": "", |
||||
"FPLXDM": "", |
||||
"DDH": "", |
||||
"THDH": "", |
||||
"DDSJ": "", |
||||
"YWLX": "", |
||||
"KQMBID": "", |
||||
"BYZD1": "", |
||||
"BYZD2": "", |
||||
"BYZD3": "", |
||||
"BYZD4": "", |
||||
"BYZD5": "", |
||||
"CHBZ": "", |
||||
"KPJH": "", |
||||
"KPZD": "", |
||||
"ZJLLX": "", |
||||
"JQBH": "", |
||||
"FPDM": "", |
||||
"FPHM": "", |
||||
"KPRQ": "", |
||||
"JYM": "", |
||||
"FWM": "", |
||||
"EWM": "", |
||||
"PDFZJL": "" |
||||
}, |
||||
"DDMXXX": { |
||||
"XH": "", |
||||
"FPHXZ": "0", |
||||
"SPBM": "", |
||||
"ZXBM": "", |
||||
"YHZCBS": "0", |
||||
"LSLBS": "", |
||||
"ZZSTSGL": "", |
||||
"XMMC": "服务费", |
||||
"GGXH": "", |
||||
"DW": "", |
||||
"SPSL": "", |
||||
"DJ": "", |
||||
"JE": "450.00", |
||||
"HSBZ": "0", |
||||
"SL": "6", |
||||
"SE": "27.00", |
||||
"KCE": "0.00", |
||||
"BYZD1": "", |
||||
"BYZD2": "", |
||||
"BYZD3": "" |
||||
} |
||||
} |
||||
|
||||
### 测试环境-企业初始化信息接口 |
||||
#POST http://10.1.1.222:8087/order-api/v4/GetEnterpriseStatus |
||||
#POST http://10.1.31.217:8087/order-api/v4/GetEnterpriseStatus |
||||
POST http://sims.ele-cloud.com/order-api/v4/GetEnterpriseStatus |
||||
Content-Type: application/json |
||||
|
||||
|
||||
{ |
||||
"NSRSBH": "92520112MAAK356CXH" |
||||
} |
||||
|
||||
|
||||
### 测试环境-清卡状态接口 |
||||
#POST http://10.1.1.222:8087/order-api/v4/GetCleanCardStatus |
||||
POST http://10.1.31.217:8087/order-api/v4/GetCleanCardStatus |
||||
#POST http://sims.ele-cloud.com/order-api/v4/GetCleanCardStatus |
||||
Content-Type: application/json |
||||
|
||||
|
||||
{ |
||||
"NSRSBH": "110110202040307", |
||||
"FPLXDM": "026" |
||||
} |
||||
|
||||
### 测试环境-清卡状态接口 |
||||
#POST http://10.1.1.222:8087/order-api/v4/GetOnLineStatus |
||||
POST http://10.1.31.217:8087/order-api/v4/GetOnLineStatus |
||||
#POST http://sims.ele-cloud.com/order-api/v4/GetOnLineStatus |
||||
Content-Type: application/json |
||||
|
||||
|
||||
{ |
||||
"NSRSBH": "110110202040307", |
||||
"asdf": "daf" |
||||
} |
||||
|
||||
|
||||
### 测试环境-下架接口 |
||||
#POST http://10.1.31.217:8087/order-api/v4/EnterpriseOffline |
||||
POST http://10.1.1.222:8087/order-api/v4/EnterpriseOffline |
||||
Content-Type: application/json |
||||
|
||||
|
||||
[ |
||||
{ |
||||
"NSRSBH": "110108202007060003", |
||||
"QYZT": "0" |
||||
} |
||||
] |
||||
|
||||
|
||||
### 测试环境-申领结果接口 |
||||
#POST http://10.1.31.217:8087/order-api/v4/ReceiveInvoiceApplication |
||||
POST http://10.1.1.222:8087/order-api/v4/ReceiveInvoiceApplication |
||||
Content-Type: application/json |
||||
|
||||
|
||||
{ |
||||
"SLLSH": "589726653363769344", |
||||
"NSRSBH": "110110202040302", |
||||
"SLXH": "45", |
||||
"PYXX": [ |
||||
{ |
||||
"FPQH": "12345678", |
||||
"FPZH": "12345678" |
||||
} |
||||
] |
||||
} |
||||
|
||||
|
||||
### 测试环境-设备信息查询接口 |
||||
POST http://10.1.31.217:8087/order-api/v4/QueryTaxpayerInfo |
||||
#POST http://10.1.1.222:8087/order-api/v4/QueryTaxpayerInfo |
||||
#POST http://sims.dxyun.com:52381/order-api/v4/QueryTaxpayerInfo |
||||
#POST http://sims.ele-cloud.com/order-api/v4/QueryTaxpayerInfo |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "91610101202001080G" |
||||
} |
||||
|
||||
### 打印机查询接口 |
||||
#POST http://10.1.31.217:8087/order-api/v4/QueryPrinter |
||||
POST http://10.1.1.222:8087/order-api/v4/QueryPrinter |
||||
#POST http://sims.dxyun.com:52381/order-api/v4/QueryPrinter |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "140301206111099566", |
||||
"DYJMC": "" |
||||
} |
||||
|
||||
### 打印机接口 |
||||
#POST http://10.1.31.217:8087/order-api/v4/PrintInvoice |
||||
POST http://10.1.1.222:8087/order-api/v4/PrintInvoice |
||||
#POST http://sims.dxyun.com:52381/order-api/v4/PrintInvoice |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "15000120561127953X", |
||||
"FJH": "0", |
||||
"DYJID": "446", |
||||
"DYPCH": "14359812730478123084", |
||||
"FPBS": "1", |
||||
"DYFPXX": [ |
||||
{ |
||||
"FPZLDM": "2", |
||||
"FPDM": "5000181320", |
||||
"FPQH": "43013052", |
||||
"FPZH": "43013052" |
||||
} |
||||
] |
||||
} |
||||
|
||||
|
||||
### 打印机接口 |
||||
#POST http://10.1.31.217:8087/order-api/v4/PrintInvoice |
||||
POST http://10.1.1.222:8087/order-api/v4/PrintInvoice |
||||
#POST http://sims.dxyun.com:52381/order-api/v4/PrintInvoice |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "15000120561127953X", |
||||
"SLDID": "1178", |
||||
"XPR": "wjc" |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,278 +0,0 @@ |
||||
|
||||
### 测试环境-发票开具接口 |
||||
#POST http://10.1.3.230:8087/order-api/v5/GenerateInvoice |
||||
POST http://10.1.31.217:8087/order-api/v5/GenerateInvoice |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"DDPCXX": { |
||||
"DDQQPCH": "56123087517397362040893195857365", |
||||
"FPLXDM": "004", |
||||
"KPFS": "0", |
||||
"KPZD": "", |
||||
"NSRSBH": "1403016L1NN5336" |
||||
}, |
||||
"DDZXX": [ |
||||
{ |
||||
"DDMXXX": [ |
||||
{ |
||||
"BYZD1": "", |
||||
"BYZD2": "", |
||||
"BYZD3": "", |
||||
"DJ": "1764269.65", |
||||
"DW": "", |
||||
"FPHXZ": "0", |
||||
"GGXH": "", |
||||
"HSBZ": "0", |
||||
"JE": "-1764269.65", |
||||
"KCE": "", |
||||
"LSLBS": "", |
||||
"SE": "-229355.05", |
||||
"SL": "0.13", |
||||
"SPBM": "1070218090000000000", |
||||
"SPID": "", |
||||
"SPSL": "-1", |
||||
"XH": "", |
||||
"XMMC": "*信息化学品*电子半导体材料", |
||||
"YHZCBS": "0", |
||||
"ZXBM": "", |
||||
"ZZSTSGL": "" |
||||
} |
||||
], |
||||
"DDTXX": { |
||||
"BYZD1": "", |
||||
"BYZD2": "", |
||||
"BYZD3": "", |
||||
"BYZD4": "", |
||||
"BYZD5": "", |
||||
"BZ": "", |
||||
"CHYY": "", |
||||
"DDH": "1020AR202302010004", |
||||
"DDQQLSH": "tfngSRiazx5xGsKhBnp2i0", |
||||
"DDSJ": "", |
||||
"FHR": "黄某某", |
||||
"GMFBM": "", |
||||
"GMFDH": "5060A,", |
||||
"GMFDZ": "\"Room", |
||||
"GMFDZYX": "", |
||||
"GMFLX": "04", |
||||
"GMFMC": "MMD (Shanghai) Electronics Technolo\"Co., Ltd\"", |
||||
"GMFSBH": "91110108700000458B", |
||||
"GMFSJH": "5060A,", |
||||
"GMFYH": "工商银行", |
||||
"GMFZH": "24048920482048", |
||||
"HJJE": "-1764269.65", |
||||
"HJSE": "-229355.05", |
||||
"HZXXBBH": "5001012301032918", |
||||
"JSHJ": "-1993624.70", |
||||
"KPLX": "1", |
||||
"KPR": "林先生", |
||||
"QDBZ": "0", |
||||
"SFCF": "", |
||||
"SKR": "黄某某", |
||||
"SLKJLY": "", |
||||
"TSCHBZ": "0", |
||||
"XHFDH": "15000000003", |
||||
"XHFDZ": "测试", |
||||
"XHFMC": "测试36", |
||||
"XHFSBH": "1403016L1NN5336", |
||||
"XHFYH": "测试", |
||||
"XHFZH": "测试", |
||||
"YFPDM": "", |
||||
"YFPHM": "", |
||||
"YFPKPRQ": "", |
||||
"YFPLX": "", |
||||
"YWLX": "" |
||||
} |
||||
} |
||||
] |
||||
} |
||||
|
||||
|
||||
### 测试环境-订单查询接口 |
||||
#POST http://10.1.1.222:8087/order-api/v5/GetOrderInfoAndInvoiceInfo |
||||
POST http://10.1.31.217:8087/order-api/v5/GetOrderInfoAndInvoiceInfo |
||||
#POST http://10.1.2.225:8087/order-api/v5/GetOrderInfoAndInvoiceInfo |
||||
#POST http://sims.dxyun.com:52381/order-api/v5/GetOrderInfoAndInvoiceInfo |
||||
#POST http://sims.ele-cloud.com/order-api/v5/GetOrderInfoAndInvoiceInfo |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "15000009000924818X", |
||||
"DDQQLSH": "", |
||||
"TQM": "", |
||||
"DDH": "JD0114194823_N69", |
||||
"BSWJ": "", |
||||
"DDRQQ": "", |
||||
"DDRQZ": "" |
||||
} |
||||
|
||||
|
||||
### 测试环境-订单查询接口 |
||||
#POST http://10.1.1.222:8087/order-api/v5/GetAllocatedInvoices |
||||
POST http://10.1.31.217:8087/order-api/v5/GetAllocatedInvoices |
||||
#POST http://10.1.2.225:8087/order-api/v5/GetAllocatedInvoices |
||||
#POST http://sims.dxyun.com:52381/order-api/v5/GetAllocatedInvoices |
||||
#POST http://sims.ele-cloud.com/order-api/v5/GetAllocatedInvoices |
||||
Content-Type: application/json |
||||
|
||||
|
||||
{ |
||||
"FPLXDM": "026", |
||||
"SFFHSBSJ": "0", |
||||
"DDQQPCH": "2021060415441139258800005", |
||||
"NSRSBH": "15000120561127953X" |
||||
} |
||||
|
||||
|
||||
### 测试环境-订单查询接口 |
||||
#POST http://10.1.1.222:8087/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
#POST http://10.1.31.217:8087/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
#POST http://10.1.2.225:8087/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
#POST http://sims.dxyun.com:52381/order-api/v4/GetOrderInfoAndInvoiceInfo |
||||
POST http://sims.ele-cloud.com/order-api/v5/GetOrderInfoAndInvoiceInfo |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "91510106MA67X7RPX2", |
||||
"DDQQLSH": "130841097964-001-000", |
||||
"TQM": "", |
||||
"DDH": "", |
||||
"BSWJ": "0", |
||||
"DDRQQ": "", |
||||
"DDRQZ": "" |
||||
} |
||||
|
||||
|
||||
|
||||
### 测试环境-抄报接口 |
||||
#POST http://10.1.1.222:8087/order-api/v5/DeclareTaxUpload |
||||
POST http://10.1.31.217:8087/order-api/v5/DeclareTaxUpload |
||||
#POST http://10.1.2.225:8087/order-api/v5/DeclareTaxUpload |
||||
#POST http://sims.dxyun.com:52381/order-api/v5/DeclareTaxUpload |
||||
#POST http://sims.ele-cloud.com/order-api/v5/DeclareTaxUpload |
||||
Content-Type: application/json |
||||
|
||||
|
||||
{ |
||||
"FPLXDM": "026", |
||||
"FJH": "927000443420", |
||||
"SBLX": "1", |
||||
"NSRSBH": "91110108MA004CPN95" |
||||
} |
||||
|
||||
|
||||
|
||||
### 测试环境-订单查询接口 |
||||
#POST http://10.1.1.222:8087/order-api/v4/GetInvoiceInfo |
||||
POST http://10.1.31.217:8087/order-api/v5/GetInvoiceInfo |
||||
#POST http://10.1.2.225:8087/order-api/v4/GetInvoiceInfo |
||||
#POST http://sims.dxyun.com:52381/order-api/v4/GetInvoiceInfo |
||||
#POST http://sims.ele-cloud.com/order-api/v5/GetInvoiceInfo |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "150301199811285326", |
||||
"FPDM": "050001901011", |
||||
"FPHM": "93615303", |
||||
"BSWJ": "1", |
||||
"KPRQQ": "2022-05-21 16:01:33", |
||||
"KPRQZ": "2022-05-22 16:01:33" |
||||
} |
||||
|
||||
|
||||
|
||||
### 测试环境-历史数据导入接口 |
||||
POST http://10.1.1.222:8087/order-api/v5/importInvoiceInfo |
||||
#POST http://10.1.31.217:8087/order-api/v5/importInvoiceInfo |
||||
#POST http://10.1.2.225:8087/order-api/v5/importInvoiceInfo |
||||
#POST http://sims.dxyun.com:52381/order-api/v5/importInvoiceInfo |
||||
#POST http://sims.ele-cloud.com/order-api/v5/importInvoiceInfo |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"DDFPZXX": [ |
||||
{ |
||||
"DDFPXX": { |
||||
"DDQQLSH": "13241234134", |
||||
"KPLX": "0", |
||||
"XHFSBH": "150301199811285326", |
||||
"XHFMC": "150301199811285326", |
||||
"XHFDZ": "销货方地址", |
||||
"XHFDH": "1341324", |
||||
"XHFYH": "销货方银行名称", |
||||
"XHFZH": "销货方银行账号", |
||||
"GMFBM": "", |
||||
"GMFSBH": "323423423423423", |
||||
"GMFMC": "购买方名称", |
||||
"GMFDZ": "购买方地址", |
||||
"GMFLX": "04", |
||||
"GMFDH": "45456", |
||||
"GMFSJH": "15652241400", |
||||
"GMFDZYX": "123456@qq.com", |
||||
"GMFYH": "购买方银行名称", |
||||
"GMFZH": "购买方银行账号", |
||||
"KPR": "开票人", |
||||
"SKR": "收款人", |
||||
"FHR": "复核人", |
||||
"YFPDM": "", |
||||
"YFPHM": "", |
||||
"QDBZ": "0", |
||||
"JSHJ": "12.00", |
||||
"HJJE": "0.00", |
||||
"HJSE": "0.00", |
||||
"BZ": "备注", |
||||
"TSCHBZ": "0", |
||||
"CHBZ": "0", |
||||
"ZFBZ": "0", |
||||
"KPZD": "45", |
||||
"FPLXDM": "026", |
||||
"DDH": "65465488", |
||||
"DDSJ": "2022-06-07 17:42:36", |
||||
"YWLX": "", |
||||
"JQBH": "123456789124", |
||||
"FPDM": "123456789745", |
||||
"FPHM": "12345678", |
||||
"KPRQ": "2022-06-07 17:43:02", |
||||
"JYM": "", |
||||
"FWM": "6546546465465", |
||||
"FJH": "", |
||||
"EWM": "564654646", |
||||
"PDFZJL": "", |
||||
"ZJLLX": "", |
||||
"BYZD1": "备用字段1", |
||||
"BYZD2": "备用字段2", |
||||
"BYZD3": "备用字段3", |
||||
"BYZD4": "备用字段4", |
||||
"BYZD5": "备用字段5" |
||||
}, |
||||
"DDMXXX": [ |
||||
{ |
||||
"XH": "1", |
||||
"FPHXZ": "0", |
||||
"SPBM": "6020000000000000000", |
||||
"ZXBM": "", |
||||
"YHZCBS": "0", |
||||
"LSLBS": "", |
||||
"ZZSTSGL": "", |
||||
"XMMC": "项目名称", |
||||
"GGXH": "规格型号", |
||||
"DW": "单位", |
||||
"SPSL": "12.00", |
||||
"DJ": "1.00", |
||||
"JE": "12.00", |
||||
"HSBZ": "0", |
||||
"SL": "0.01", |
||||
"SE": "0.12", |
||||
"KCE": "", |
||||
"BYZD1": "备用字段1", |
||||
"BYZD2": "备用字段2", |
||||
"BYZD3": "备用字段3" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
||||
|
||||
|
||||
|
@ -1,22 +0,0 @@ |
||||
|
||||
### 测试环境-航信RPA二次认证状态接口 |
||||
POST http://10.1.3.230:8087/order-api/v6/GetRpaAuthStatus |
||||
#POST http://10.1.31.217:8087/order-api/v6/GetRpaAuthStatus |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"NSRSBH": "91150000114124263Y" |
||||
} |
||||
|
||||
|
||||
### 测试环境-发票余量查询接口 |
||||
#POST http://10.1.3.230:8087/order-api/v6/QueryInvoiceStore |
||||
POST http://sims.dxyun.com/order-api/v6/QueryInvoiceStore |
||||
#POST http://test.5ifapiao.com:8888/order-api/v4/QueryInvoiceStore |
||||
#POST http://10.1.31.217:8087/order-api/v4/QueryInvoiceStore |
||||
#POST http://sims.ele-cloud.com/order-api/v4/QueryInvoiceStore |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"XHFSBH": "1403016L1NN5336" |
||||
} |
@ -1,245 +0,0 @@ |
||||
### A9 已开发票作废 2 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/ykfpzf |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"FP_DM": "str", |
||||
"FP_QH": "str", |
||||
"FP_ZH": "str", |
||||
"FPZLDM": "str", |
||||
"ISHISTORY": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"ZFLX": "str", |
||||
"ZFPCH": "str", |
||||
"ZFYY": "str", |
||||
"ZFR": "str" |
||||
} |
||||
|
||||
|
||||
### A9 空白发票作废 3 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/blankInvoiceZf |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"FP_DM": "str", |
||||
"FP_HM": "str", |
||||
"FPLB": "str", |
||||
"KPJH": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"ZFLX": "str", |
||||
"ZFYY": "str", |
||||
"ZFR": "str" |
||||
} |
||||
|
||||
|
||||
### A9 获取pdf数据 4 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getPdf |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"id": "str", |
||||
"FPQQPCH": "str", |
||||
"NSRSBH": "str", |
||||
"REQUEST_EINVOICE_PDF": [ |
||||
{ |
||||
"ID": "str", |
||||
"FP_DM": "str", |
||||
"FP_HM": "str" |
||||
} |
||||
] |
||||
} |
||||
|
||||
### A9 查询开票点 5 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/querySld |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"cpybs": "", |
||||
"fpzldm": "2", |
||||
"fplxDm": "", |
||||
"qyzt": "", |
||||
"id": "199", |
||||
"nsrsbh": "140301206111099566", |
||||
"fjh": "" |
||||
} |
||||
|
||||
### A9 查询开票点可用库存份数 6 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/querySldKykc |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"sldid": "str", |
||||
"fpzldm": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"jqbh": "str" |
||||
} |
||||
|
||||
|
||||
### A9 查询票种开票限额 7 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNsrpzKpxe |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"fjh": "str", |
||||
"fpzlDm": "str", |
||||
"id": "str", |
||||
"nsrsbh": "str", |
||||
"qysj": "str", |
||||
"zdh": "str" |
||||
} |
||||
|
||||
### A9 查询受理点下一张发票 8 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNextInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"fpzlDm": "2", |
||||
"nsrsbh": "140301206111099566", |
||||
"sldId": "199" |
||||
} |
||||
|
||||
### A9 月度统计查询 9 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/ydtj |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"xhfNsrsbh": "140301206111099566", |
||||
"xhfMc": "", |
||||
"xhfDzdh": "", |
||||
"xhfYhzh": "", |
||||
"fjh": "0", |
||||
"year": "2020", |
||||
"month": "11", |
||||
"fpzlDm": "51", |
||||
"xnsbh": "" |
||||
} |
||||
|
||||
|
||||
### A9 打印机列表查询 10 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryDyjByDyjmcAndDyjzt |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"nsrsbh": "str", |
||||
"dyjzt": "str", |
||||
"dydMc": "str" |
||||
} |
||||
|
||||
### A9 打印发票 11 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/printInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"dyjId": "str", |
||||
"dyjMc": "str", |
||||
"dypch": "str", |
||||
"sbj": "str", |
||||
"zbj": "str", |
||||
"fpbs": "str", |
||||
"dylx": "str", |
||||
"spotKey": "str", |
||||
"invoicePrintPackageDetailList": [ |
||||
{ |
||||
"kpzdbs": "str", |
||||
"fpzlDm": "str", |
||||
"fpdm": "str", |
||||
"fpqh": "str", |
||||
"fpzh": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"sldId": "str", |
||||
"fpqqlsh": "str", |
||||
"ddqqlsh": "str" |
||||
} |
||||
] |
||||
} |
||||
|
||||
### A9 库存信息查询 12 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryKcxx |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"sldid": "", |
||||
"fpzldm": "", |
||||
"nsrsbh": "140301206111099566", |
||||
"fjh": "", |
||||
"jqbh": "" |
||||
} |
||||
|
||||
|
||||
### A9 根据分机号查询发票种类代码 13 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getSearchFjhFpzlDm |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"nsrsbhs": [ |
||||
{ |
||||
"nsrsbh": "str" |
||||
} |
||||
], |
||||
"qyzt": "str", |
||||
"fjh": "str", |
||||
"pageNo": "str", |
||||
"pageSize": "str" |
||||
} |
||||
|
||||
|
||||
### A9 查询发票开具状态 15 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryInvoiceStatus |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"NSRSBH": "str", |
||||
"FPQQLSH": "str" |
||||
} |
||||
|
||||
### A9 发票开具 1 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/invoiceIssuing |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"COMMON_INVOICES_BATCH": { |
||||
"FPQQPCH": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"KPJH": "str", |
||||
"FPLX": "str", |
||||
"FPLB": "str", |
||||
"KZZD": "str", |
||||
"CPYFP": true |
||||
}, |
||||
"COMMON_INVOICE": "CommonInvoice[]" |
||||
} |
||||
|
||||
|
||||
|
||||
### C48 月度统计查询 9 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getBbfxDeclareList |
||||
#POST http://10.1.41.194:58089/invoice/business/v1.0/getBbfxDeclareList |
||||
Content-Type: application/json |
||||
X-Request-Id: A9 |
||||
|
||||
{ |
||||
"nsrsbhs": [ |
||||
"140301206111099566" |
||||
], |
||||
"startTime": "2020-08-01", |
||||
"endTime": "2020-09-01" |
||||
} |
@ -1,300 +0,0 @@ |
||||
### C48 已开发票作废 2 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/ykfpzf |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"FP_DM": "str", |
||||
"FP_QH": "str", |
||||
"FP_ZH": "str", |
||||
"FPZLDM": "str", |
||||
"ISHISTORY": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"ZFLX": "str", |
||||
"ZFPCH": "str", |
||||
"ZFYY": "str", |
||||
"ZFR": "str" |
||||
} |
||||
|
||||
|
||||
### C48 空白发票作废 3 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/blankInvoiceZf |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"FP_DM": "str", |
||||
"FP_HM": "str", |
||||
"FPLB": "str", |
||||
"KPJH": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"ZFLX": "str", |
||||
"ZFYY": "str", |
||||
"ZFR": "str" |
||||
} |
||||
|
||||
|
||||
### C48 获取pdf数据 4 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getPdf |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"id": "str", |
||||
"FPQQPCH": "str", |
||||
"NSRSBH": "str", |
||||
"REQUEST_EINVOICE_PDF": [ |
||||
{ |
||||
"ID": "str", |
||||
"FP_DM": "str", |
||||
"FP_HM": "str" |
||||
} |
||||
] |
||||
} |
||||
|
||||
### C48 查询开票点 5 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/querySld |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"cpyzt": "", |
||||
"fpzlDm": "2", |
||||
"fplxDm": "2", |
||||
"qyzt": "1", |
||||
"id": "222", |
||||
"nsrsbh": "1403016L1NN5336", |
||||
"fjh": "1" |
||||
} |
||||
|
||||
### C48 查询开票点可用库存份数 6 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/querySldKykc |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"sldid": "str", |
||||
"fpzldm": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"jqbh": "str" |
||||
} |
||||
|
||||
|
||||
### C48 查询票种开票限额 7 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNsrpzKpxe |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"fjh": "str", |
||||
"fpzlDm": "str", |
||||
"id": "str", |
||||
"nsrsbh": "str", |
||||
"qysj": "str", |
||||
"zdh": "str" |
||||
} |
||||
|
||||
### C48 查询受理点下一张发票 8 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNextInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"fpzlDm": "2", |
||||
"nsrsbh": "1403016L1NN5336", |
||||
"sldId": "222" |
||||
} |
||||
|
||||
### C48 月度统计查询 9 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getBbfxList |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"nsrsbhs": [ |
||||
"15000120561127953X" |
||||
], |
||||
"kpnf": "2020", |
||||
"kpyf": "8", |
||||
"fjh": "0", |
||||
"currPage": 1, |
||||
"pageSize": 10 |
||||
} |
||||
|
||||
### C48 月度统计查询 9 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getBbfxDeclareList |
||||
#POST http://10.1.41.194:58089/invoice/business/v1.0/getBbfxDeclareList |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"nsrsbhs": [ |
||||
"15000120561127953X" |
||||
], |
||||
"startTime": "2020-08-01", |
||||
"endTime": "2020-09-01" |
||||
} |
||||
|
||||
|
||||
### C48 打印发票 11 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/printInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"dyjId": "str", |
||||
"dyjMc": "str", |
||||
"dypch": "str", |
||||
"sbj": "str", |
||||
"zbj": "str", |
||||
"fpbs": "str", |
||||
"dylx": "str", |
||||
"spotKey": "str", |
||||
"invoicePrintPackageDetailList": [ |
||||
{ |
||||
"kpzdbs": "str", |
||||
"fpzlDm": "str", |
||||
"fpdm": "str", |
||||
"fpqh": "str", |
||||
"fpzh": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"sldId": "str", |
||||
"fpqqlsh": "str", |
||||
"ddqqlsh": "str" |
||||
} |
||||
] |
||||
} |
||||
|
||||
### C48 库存信息查询 12 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryKcxx |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"sldid": "str", |
||||
"fpzldm": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"jqbh": "str" |
||||
} |
||||
|
||||
|
||||
### C48 根据分机号查询发票种类代码 13 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getSearchFjhFpzlDm |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"nsrsbhs": [ |
||||
{ |
||||
"nsrsbh": "1403016L1NN5336" |
||||
} |
||||
], |
||||
"qyzt": "1", |
||||
"fjh": "0", |
||||
"pageNo": "1", |
||||
"pageSize": "10" |
||||
} |
||||
|
||||
|
||||
### C48 查询发票开具状态 15 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryInvoiceStatus |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"NSRSBH": "str", |
||||
"FPQQLSH": "str" |
||||
} |
||||
|
||||
### C48 发票开具 1 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/invoiceIssuing |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"COMMON_INVOICES_BATCH": { |
||||
"FPQQPCH": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"KPJH": "str", |
||||
"FPLX": "str", |
||||
"FPLB": "str", |
||||
"KZZD": "str", |
||||
"CPYFP": true |
||||
}, |
||||
"COMMON_INVOICE": "CommonInvoice[]" |
||||
} |
||||
|
||||
|
||||
#########后续新增接口 |
||||
|
||||
### C48 成品油局端库存查询 |
||||
POST http://10.1.41.194:58089/invoice/business/v1.0/queryCpyJdKc |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"nsrsbh": "1403016L1NN5336", |
||||
"fjh": "0", |
||||
"sjfw": "1" |
||||
} |
||||
|
||||
### C48 成品油本地库存查询 |
||||
POST http://10.1.41.194:58089/invoice/business/v1.0/queryCpyYxzKc |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"nsrsbh": "1403016L1NN5336", |
||||
"fjh": "0", |
||||
"spbm": "" |
||||
} |
||||
|
||||
### C48 成品油本地库存查询 |
||||
POST http://10.1.41.194:58089/invoice/business/v1.0/downloadCpyKc |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"nsrsbh": "1403016L1NN5336", |
||||
"fjh": "0", |
||||
"spbm": "" |
||||
} |
||||
|
||||
### C48 成品油本地库存查询 |
||||
POST http://10.1.41.194:58089/invoice/business/v1.0/queryYhzxx |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"nsrsbh": "1403016L1NN5336", |
||||
"fjh": "0", |
||||
"fpzlDm": "51", |
||||
"kplx": "", |
||||
"sl": "", |
||||
"ssyf": "202008", |
||||
"id": "" |
||||
} |
||||
|
||||
### C48 成品油本地库存查询 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryKpdList |
||||
Content-Type: application/json |
||||
X-Request-Id: C48 |
||||
|
||||
{ |
||||
"fjh": "", |
||||
"nsrsbhs": [ |
||||
{ |
||||
"nsrsbh": "1403016L1NN5336" |
||||
} |
||||
], |
||||
"pageNo": "1", |
||||
"pageSize": "100", |
||||
"qyzt": "1" |
||||
} |
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,229 +0,0 @@ |
||||
### bwpz 已开发票作废 2 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/ykfpzf |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"FP_DM": "str", |
||||
"FP_QH": "str", |
||||
"FP_ZH": "str", |
||||
"FPZLDM": "str", |
||||
"ISHISTORY": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"ZFLX": "str", |
||||
"ZFPCH": "str", |
||||
"ZFYY": "str", |
||||
"ZFR": "str" |
||||
} |
||||
|
||||
|
||||
### bwpz 空白发票作废 3 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/blankInvoiceZf |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"FP_DM": "str", |
||||
"FP_HM": "str", |
||||
"FPLB": "str", |
||||
"KPJH": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"ZFLX": "str", |
||||
"ZFYY": "str", |
||||
"ZFR": "str" |
||||
} |
||||
|
||||
|
||||
### bwpz 获取pdf数据 4 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getPdf |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"id": "str", |
||||
"FPQQPCH": "str", |
||||
"NSRSBH": "str", |
||||
"REQUEST_EINVOICE_PDF": [ |
||||
{ |
||||
"ID": "str", |
||||
"FP_DM": "str", |
||||
"FP_HM": "str" |
||||
} |
||||
] |
||||
} |
||||
|
||||
### bwpz 查询开票点 5 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/querySld |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"cpyzt": "", |
||||
"fpzlDm": "2", |
||||
"fplxDm": "2", |
||||
"qyzt": "1", |
||||
"id": "", |
||||
"nsrsbh": "911010812312312311", |
||||
"fjh": "0" |
||||
} |
||||
|
||||
### bwpz 查询开票点可用库存份数 6 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/querySldKykc |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"sldid": "str", |
||||
"fpzldm": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"jqbh": "str" |
||||
} |
||||
|
||||
|
||||
### bwpz 查询票种开票限额 7 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNsrpzKpxe |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"fjh": "str", |
||||
"fpzlDm": "str", |
||||
"id": "str", |
||||
"nsrsbh": "str", |
||||
"qysj": "str", |
||||
"zdh": "str" |
||||
} |
||||
|
||||
### bwpz 查询受理点下一张发票 8 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNextInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"fpzlDm": "2", |
||||
"nsrsbh": "91500108053631391F", |
||||
"sldId": "0001" |
||||
} |
||||
|
||||
### bwpz 月度统计查询 9 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/ydtj |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"xhfNsrsbh": "str", |
||||
"xhfMc": "str", |
||||
"xhfDzdh": "str", |
||||
"xhfYhzh": "str", |
||||
"fjh": "str", |
||||
"year": "str", |
||||
"month": "str", |
||||
"fpzlDm": "str", |
||||
"xnsbh": "str" |
||||
} |
||||
|
||||
|
||||
### bwpz 打印机列表查询 10 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryDyjByDyjmcAndDyjzt |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"nsrsbh": "str", |
||||
"dyjzt": "str", |
||||
"dydMc": "str" |
||||
} |
||||
|
||||
### bwpz 打印发票 11 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/printInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"dyjId": "str", |
||||
"dyjMc": "str", |
||||
"dypch": "str", |
||||
"sbj": "str", |
||||
"zbj": "str", |
||||
"fpbs": "str", |
||||
"dylx": "str", |
||||
"spotKey": "str", |
||||
"invoicePrintPackageDetailList": [ |
||||
{ |
||||
"kpzdbs": "str", |
||||
"fpzlDm": "str", |
||||
"fpdm": "str", |
||||
"fpqh": "str", |
||||
"fpzh": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"sldId": "str", |
||||
"fpqqlsh": "str", |
||||
"ddqqlsh": "str" |
||||
} |
||||
] |
||||
} |
||||
|
||||
### bwpz 库存信息查询 12 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryKcxx |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"sldid": "str", |
||||
"fpzldm": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"jqbh": "str" |
||||
} |
||||
|
||||
|
||||
### bwpz 根据分机号查询发票种类代码 13 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getSearchFjhFpzlDm |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"nsrsbhs": [ |
||||
{ |
||||
"nsrsbh": "str" |
||||
} |
||||
], |
||||
"qyzt": "str", |
||||
"fjh": "str", |
||||
"pageNo": "str", |
||||
"pageSize": "str" |
||||
} |
||||
|
||||
|
||||
### bwpz 查询发票开具状态 15 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryInvoiceStatus |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"NSRSBH": "str", |
||||
"FPQQLSH": "str" |
||||
} |
||||
|
||||
### bwpz 发票开具 1 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/invoiceIssuing |
||||
Content-Type: application/json |
||||
X-Request-Id: bwpz |
||||
|
||||
{ |
||||
"COMMON_INVOICES_BATCH": { |
||||
"FPQQPCH": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"KPJH": "str", |
||||
"FPLX": "str", |
||||
"FPLB": "str", |
||||
"KZZD": "str", |
||||
"CPYFP": true |
||||
}, |
||||
"COMMON_INVOICE": "CommonInvoice[]" |
||||
} |
@ -1,259 +0,0 @@ |
||||
### U180 已开发票作废 2 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/ykfpzf |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"FP_DM": "5000191650", |
||||
"FP_QH": "00294934", |
||||
"FP_ZH": "00294934", |
||||
"FPZLDM": "2", |
||||
"ISHISTORY": "", |
||||
"NSRSBH": "50010227030822059", |
||||
"SLDID": "8", |
||||
"ZFLX": "1", |
||||
"ZFPCH": "1234134123412341234123", |
||||
"ZFYY": "str", |
||||
"ZFR": "str" |
||||
} |
||||
|
||||
|
||||
### U180 空白发票作废 3 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/blankInvoiceZf |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"FP_DM": "str", |
||||
"FP_HM": "str", |
||||
"FPLB": "str", |
||||
"KPJH": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"ZFLX": "str", |
||||
"ZFYY": "str", |
||||
"ZFR": "str" |
||||
} |
||||
|
||||
|
||||
### U180 发票作废状态查询 3 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryInvalidStatus |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"FP_DM": "5000191650", |
||||
"FP_HM": "00294936", |
||||
"NSRSBH": "50010227030822059", |
||||
"ZFLX": "1" |
||||
} |
||||
|
||||
|
||||
### U180 获取pdf数据 4 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getPdf |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"FPQQPCH": "488599795474321408", |
||||
"NSRSBH": "911110101000000045", |
||||
"REQUEST_EINVOICE_PDF": [ |
||||
{ |
||||
"FP_DM": "111001202011", |
||||
"FP_HM": "31004399", |
||||
"ID": "b547f232-6a49-4487-ba85-4e6258196e3d" |
||||
} |
||||
], |
||||
"id": "", |
||||
"terminalCode": "013" |
||||
} |
||||
|
||||
### U180 查询开票点 5 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/querySld |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"cpyzt": "", |
||||
"fpzlDm": "2", |
||||
"fplxDm": "2", |
||||
"qyzt": "1", |
||||
"id": "", |
||||
"nsrsbh": "911110101000000045", |
||||
"fjh": "" |
||||
} |
||||
|
||||
|
||||
### U180 查询开票点可用库存份数 6 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/querySldKykc |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"sldid": "str", |
||||
"fpzldm": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"jqbh": "str" |
||||
} |
||||
|
||||
|
||||
### U180 查询票种开票限额 7 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNsrpzKpxe |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"fjh": "str", |
||||
"fpzlDm": "str", |
||||
"id": "str", |
||||
"nsrsbh": "str", |
||||
"qysj": "str", |
||||
"zdh": "str" |
||||
} |
||||
|
||||
### U180 查询受理点下一张发票 8 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNextInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"fpzlDm": "str", |
||||
"nsrsbh": "str", |
||||
"sldId": "str" |
||||
} |
||||
|
||||
### U180 月度统计查询 9 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/ydtj |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"fjh": "0", |
||||
"fpzlDm": "51", |
||||
"month": "11", |
||||
"terminalCode": "012", |
||||
"xhfDzdh": "", |
||||
"xhfMc": "", |
||||
"xhfNsrsbh": "50010227030822059", |
||||
"xhfYhzh": "", |
||||
"xnsbh": "", |
||||
"year": "2020" |
||||
} |
||||
|
||||
|
||||
### U180 打印机列表查询 10 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryDyjByDyjmcAndDyjzt |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"nsrsbh": "str", |
||||
"dyjzt": "str", |
||||
"dydMc": "str" |
||||
} |
||||
|
||||
### U180 打印发票 11 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/printInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"dyjId": "str", |
||||
"dyjMc": "str", |
||||
"dypch": "str", |
||||
"sbj": "str", |
||||
"zbj": "str", |
||||
"fpbs": "str", |
||||
"dylx": "str", |
||||
"spotKey": "str", |
||||
"invoicePrintPackageDetailList": [ |
||||
{ |
||||
"kpzdbs": "str", |
||||
"fpzlDm": "str", |
||||
"fpdm": "str", |
||||
"fpqh": "str", |
||||
"fpzh": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"sldId": "str", |
||||
"fpqqlsh": "str", |
||||
"ddqqlsh": "str" |
||||
} |
||||
] |
||||
} |
||||
|
||||
### U180 库存信息查询 12 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryKcxx |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"sldid": "str", |
||||
"fpzldm": "str", |
||||
"nsrsbh": "str", |
||||
"fjh": "str", |
||||
"jqbh": "str" |
||||
} |
||||
|
||||
|
||||
### U180 根据分机号查询发票种类代码 13 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/getSearchFjhFpzlDm |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"nsrsbhs": [ |
||||
{ |
||||
"nsrsbh": "str" |
||||
} |
||||
], |
||||
"qyzt": "str", |
||||
"fjh": "str", |
||||
"pageNo": "str", |
||||
"pageSize": "str" |
||||
} |
||||
|
||||
|
||||
### U180 查询发票开具状态 15 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryInvoiceStatus |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"NSRSBH": "str", |
||||
"FPQQLSH": "str" |
||||
} |
||||
|
||||
### U180 发票开具 1 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/invoiceIssuing |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"COMMON_INVOICES_BATCH": { |
||||
"FPQQPCH": "str", |
||||
"NSRSBH": "str", |
||||
"SLDID": "str", |
||||
"KPJH": "str", |
||||
"FPLX": "str", |
||||
"FPLB": "str", |
||||
"KZZD": "str", |
||||
"CPYFP": true |
||||
}, |
||||
"COMMON_INVOICE": "CommonInvoice[]" |
||||
} |
||||
|
||||
### U180 发票开具 1 |
||||
POST http://10.1.2.51:58089/invoice/business/v2.0/printInvoice |
||||
#POST http://10.1.29.179:58089/invoice/business/v2.0/printInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: U180 |
||||
|
||||
{ |
||||
"FP_DM": "5000191650", |
||||
"FP_HM": "85453853", |
||||
"NSRSBH": "50010227030822059", |
||||
"SFYL": "0", |
||||
"FPLX": "1" |
||||
} |
@ -1,201 +0,0 @@ |
||||
POST https://wdfp.5ifapiao.com/wxservice/api/getAuthUrl |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"money": 6600, |
||||
"gzh_appid": "", |
||||
"source": "web", |
||||
"type": "0", |
||||
"order_id": "01552718355188559872", |
||||
"redirect_url": "", |
||||
"timestamp": "1620889935" |
||||
} |
||||
|
||||
|
||||
### |
||||
POST http://localhost:80/api/item |
||||
Content-Type: application/x-www-form-urlencoded |
||||
|
||||
id=99&content=new-element |
||||
|
||||
### |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryKcxx |
||||
Content-Type: application/json |
||||
X-Request-Id: ukey |
||||
|
||||
{ |
||||
"nsrsbh": "110110202040307", |
||||
"fjh": "", |
||||
"jqbh": "237000120526", |
||||
"fpzlDm": "026" |
||||
} |
||||
|
||||
|
||||
### 百旺盘阵和新税控UKey获取分机号 |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryJqbh |
||||
Content-Type: application/json |
||||
X-Request-Id: ukey |
||||
|
||||
{ |
||||
"nsrsbh": "110110202040307", |
||||
"fjh": "", |
||||
"jqbh": "", |
||||
"fpzlDm": "026" |
||||
} |
||||
|
||||
|
||||
### |
||||
POST http://10.1.2.51:58089/invoice/business/v1.0/queryNsrXnsbxx |
||||
Content-Type: application/json |
||||
X-Request-Id: newtax |
||||
|
||||
{ |
||||
"cpybs": "", |
||||
"fplxDm": "026", |
||||
"qyzt": "", |
||||
"id": "", |
||||
"nsrsbh": "91500108MA004CPN95", |
||||
"fjh": "" |
||||
} |
||||
|
||||
### 新税控发票数据查询 |
||||
POST http://10.1.2.51:9077/accept/invoice/V1.0/invoiceFileDown |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"data": "eyJGUERNIjoiMTUwMDAwMDIwMDI2IiwiRlBITSI6IjM4ODY1Njc4In0=", |
||||
"encryCode": "0", |
||||
"key": "", |
||||
"machineNo": "", |
||||
"machineType": "A9", |
||||
"returnCode": "", |
||||
"returnMsg": "", |
||||
"taxpayerNo": "140301206111099566", |
||||
"terminalCode": "1" |
||||
} |
||||
|
||||
|
||||
### 新税控发票数据查询 |
||||
POST http://10.1.2.53:9079/api/managerment/invoice/sk/2.0/queryInvoice |
||||
Content-Type: application/json |
||||
X-Request-Id: newtax |
||||
|
||||
{ |
||||
"FPQQLSH": "463597929967603712001", |
||||
"NSRSBH": "91500108053631391F", |
||||
"FPDM": "", |
||||
"FPHM": "" |
||||
} |
||||
|
||||
### 新税控发票数据查询 |
||||
POST http://10.1.1.221:8081/order-api/buyer/queryBuyerInfoList |
||||
Content-Type: application/x-www-form-urlencoded |
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsaWNlbnNlIjoibWFkZSBieSBoZWF2ZW4iLCJ1c2VyX25hbWUiOiJ6c2MxQ1AiLCJzY29wZSI6WyJzZXJ2ZXIiXSwidXNlclR5cGUiOiIyIiwiZXhwIjoxNjAyNjk4MTQwLCJ1c2VySWQiOjIwMjAyNSwiYXV0aG9yaXRpZXMiOlsiUk9MRV9VU0VSIl0sImp0aSI6IjVkMjNhZWJiLWJlMWYtNDg3Mi04YWZiLTA3OTU2ZTFmZTQ2ZCIsImNsaWVudF9pZCI6ImZhdGMifQ.vxTjZFUTOYiDAYZjqyrW3NSFvUOLiLfp95eqv6kJ5hU |
||||
|
||||
purchaseName=大象慧云&xhfNsrsbh=%5B%221403016L1NN5336%22%5D |
||||
|
||||
|
||||
### 新税控发票数据查询 |
||||
POST http://10.1.1.221:8081/order-api/buyer/queryPlatformBuyerInfo |
||||
Content-Type: application/x-www-form-urlencoded |
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsaWNlbnNlIjoibWFkZSBieSBoZWF2ZW4iLCJ1c2VyX25hbWUiOiJ6c2MxQ1AiLCJzY29wZSI6WyJzZXJ2ZXIiXSwidXNlclR5cGUiOiIyIiwiZXhwIjoxNjAyNjk4MTQwLCJ1c2VySWQiOjIwMjAyNSwiYXV0aG9yaXRpZXMiOlsiUk9MRV9VU0VSIl0sImp0aSI6IjVkMjNhZWJiLWJlMWYtNDg3Mi04YWZiLTA3OTU2ZTFmZTQ2ZCIsImNsaWVudF9pZCI6ImZhdGMifQ.vxTjZFUTOYiDAYZjqyrW3NSFvUOLiLfp95eqv6kJ5hU |
||||
|
||||
purchaseName=大象慧云信息技术有限公司 |
||||
|
||||
###### |
||||
POST http://sims.ele-cloud.com/order-api/invoice/fangge/v1/updateInvoices |
||||
Content-Type: application/x-www-form-urlencoded |
||||
[{"NSRSBH":"91411425MA46L46M3Y","DDQQLSH":"chanjet0000000050351","JQBH":"589913696490","DDH":"SB-2020-10-0017","JYM":"05390708153048683085","FWM":"039*30-1/49977-8232380<049>4<5/>892>*/8716893*+-53+0-63024/>/<<67>>*5687/*8*95/*809>/436+/131/01420706<*>>37/4>7","EWM":"","FP_DM":"041001900204","FP_HM":"78579840","KPRQ":"20201022145016","FPZLDM":"2","HJBHSJE":"38470.15","KPHJSE":"","STATUSCODE":"0","STATUSMSG":"处理成功"}] |
||||
|
||||
|
||||
###### |
||||
GET https://efats.utax360.cn/fatsapi/uadmin/user/queryUserInfo |
||||
Content-Type: application/json |
||||
Authorization: BearereyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsaWNlbnNlIjoibWFkZSBieSBoZWF2ZW4iLCJ1c2VyX25hbWUiOiIxNTkwMTUyMTIzNSIsInNjb3BlIjpbInNlcnZlciJdLCJ1c2VyVHlwZSI6IjEiLCJleHAiOjE2MjA0NjYxNjEsInVzZXJJZCI6MTAwMDAyODYwNywiYXV0aG9yaXRpZXMiOlsiUk9MRV9VU0VSIl0sImp0aSI6IjlhMGI1YmNiLTNjMTYtNGE3NC04OTU3LTdlZjBlZWY5Y2ExMSIsImNsaWVudF9pZCI6ImZhdGMifQ.dw8qV3pFuwPj_aQgqvBESMPuzzKi-mjdnZ0L-uU9_kk |
||||
|
||||
|
||||
###### |
||||
POST http://10.1.31.217:8087/order-api/sysQueueConfig/saveRabbitQueue |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"type": "0", |
||||
"qd": "23423423", |
||||
"qdMc": "2345234", |
||||
"shList": [ |
||||
"" |
||||
], |
||||
"queueList": [ |
||||
"23kk", |
||||
"234" |
||||
] |
||||
} |
||||
|
||||
|
||||
###### |
||||
POST http://10.1.31.217:8087/order-api/sysQueueConfig/saveRabbitQueue |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"type": "1", |
||||
"shList": [ |
||||
"324234", |
||||
"2342355" |
||||
], |
||||
"queueList": [ |
||||
"23kk", |
||||
"234" |
||||
] |
||||
} |
||||
|
||||
### |
||||
#POST http://10.1.31.217:8087/order-api/rabbitmq/restartListen |
||||
#POST http://sims.dxyun.com:52380/order-api-cs/rabbitmq/restartListen?nsrsbh=110110202040307&queueName=order_fpkj_message22 |
||||
POST http://10.1.1.222:8087/order-api/rabbitmq/restartListen |
||||
Content-Type: application/x-www-form-urlencoded |
||||
|
||||
nsrsbh=&queueName=order_fpkj_message_config_150044 |
||||
|
||||
### |
||||
POST http://10.1.31.217:8087/order-api/rabbitmq/stopListen |
||||
#POST http://10.1.1.222:8087/order-api/rabbitmq/stopListen |
||||
Content-Type: application/json |
||||
|
||||
[ |
||||
"order_invalid_message2" |
||||
] |
||||
|
||||
|
||||
|
||||
###### |
||||
#POST http://10.1.31.217:8087/order-api/rabbitmq/delNoListenQueue |
||||
POST http://10.1.5.222:8080/order-api/rabbitmq/delNoListenQueue |
||||
Content-Type: application/json |
||||
|
||||
[ |
||||
"order_yxts_message0" |
||||
] |
||||
|
||||
|
||||
###### |
||||
POST https://openapi.ele-cloud.com/api/authen/token |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"appKey":"VkhkI7plSfAInxb8INfJIn1g", "appSecret":"2YAZWKT9OpzsJTFoYVxeSbKO" |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
### 推送京东万家数据 |
||||
POST https://openapi.ele-cloud.com/api/order-api/order-api/v5/GetOrderInfoAndInvoiceInfo?access_token=ad8f08b1-9740-497f-bbbc-e8aee3934294 |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"content": "eyJkZHFxbHNoIjoiMjAyMjA3MTRhZDhmMTRkNjhkMTM0OTY4YmY4MmUyNmE3ZWU5NzdlNyIsIm5zcnNiaCI6IjkxMTEwMTA4NTk5NjM0MDVYVyJ9", |
||||
"dataExchangeId": "3298c63481c94de8b9b7989a547f41b1", |
||||
"encryptCode": "0", |
||||
"entCode": "911101080673385595", |
||||
"zipCode": "0" |
||||
} |
@ -1,199 +0,0 @@ |
||||
import com.sun.mail.pop3.POP3Folder; |
||||
import com.sun.mail.pop3.POP3Store; |
||||
import com.sun.mail.util.MailSSLSocketFactory; |
||||
import org.junit.Test; |
||||
|
||||
import javax.mail.*; |
||||
import javax.mail.internet.InternetAddress; |
||||
import javax.mail.internet.MimeMessage; |
||||
import javax.mail.internet.MimeMultipart; |
||||
import javax.mail.internet.MimeUtility; |
||||
import javax.mail.search.FlagTerm; |
||||
import java.io.*; |
||||
import java.security.GeneralSecurityException; |
||||
import java.text.SimpleDateFormat; |
||||
import java.util.Properties; |
||||
|
||||
public class Pop3Test { |
||||
|
||||
@Test |
||||
public void main() throws Exception { |
||||
|
||||
POP3Store pop3Store = null; |
||||
try { |
||||
Session session = setCollectProperties(); |
||||
pop3Store = (POP3Store)session.getStore("pop3"); |
||||
pop3Store.connect("pop.qq.com", 995, "1021674882@qq.com", "szcrvcsoakumbcid"); |
||||
POP3Folder pop3Folder = (POP3Folder) pop3Store.getFolder("INBOX"); |
||||
pop3Folder.open(Folder.READ_WRITE); //打开收件箱
|
||||
FetchProfile fetchProfile = new FetchProfile(); |
||||
fetchProfile.add(FetchProfile.Item.ENVELOPE); |
||||
FlagTerm flagTerm = new FlagTerm(new Flags(Flags.Flag.SEEN),false); |
||||
Message[] messages = pop3Folder.search(flagTerm); |
||||
pop3Folder.fetch(messages,fetchProfile); |
||||
int length = messages.length; |
||||
System.out.println("收件箱的邮件数:" + length); |
||||
Folder folder = pop3Folder.getStore().getDefaultFolder(); |
||||
Folder[] folders = folder.list(); |
||||
|
||||
for (int i = 0; i < folders.length; i++) { |
||||
System.out.println("名称:"+folders[i].getName()); |
||||
} |
||||
|
||||
for (int i = 0; i < length; i++) { |
||||
MimeMessage msg = (MimeMessage) messages[i]; |
||||
String from = MimeUtility.decodeText(messages[i].getFrom()[0].toString()); |
||||
InternetAddress ia = new InternetAddress(from); |
||||
System.out.println("发件人:" + ia.getPersonal() + '(' + ia.getAddress() + ')'); |
||||
System.out.println("主题:" + messages[i].getSubject()); |
||||
System.out.println("邮件发送时间:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(messages[i].getSentDate())); |
||||
boolean isContainerAttachment = isContainAttachment(msg); |
||||
System.out.println("是否包含附件:" + isContainerAttachment); |
||||
if (isContainerAttachment) { |
||||
//设置需要保存的目录并保存附件
|
||||
// saveAttachment(msg, "F:\\test\\"+msg.getSubject() + "_"+i+"_"); //保存附件
|
||||
} |
||||
messages[i].setFlag(Flags.Flag.SEEN, true); |
||||
} |
||||
|
||||
} catch (Exception e) { |
||||
e.printStackTrace(); |
||||
} finally { |
||||
if(pop3Store != null){ |
||||
pop3Store.close(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 设置连接邮箱属性 |
||||
* @return |
||||
* @throws GeneralSecurityException |
||||
*/ |
||||
private static Session setCollectProperties() throws GeneralSecurityException { |
||||
Properties props = new Properties(); |
||||
props.setProperty("mail.popStore.protocol", "pop3"); // 使用pop3协议
|
||||
props.setProperty("mail.pop3.port", "995"); // 端口
|
||||
|
||||
MailSSLSocketFactory sf = new MailSSLSocketFactory(); |
||||
sf.setTrustAllHosts(true); |
||||
props.put("mail.pop3.ssl.enable",true); |
||||
props.put("mail.pop3.ssl.socketFactory",sf); |
||||
props.setProperty("mail.pop3.host", "pop.qq.com"); |
||||
|
||||
|
||||
return Session.getInstance(props); |
||||
} |
||||
|
||||
/** |
||||
* 判断邮件中是否包含附件 |
||||
* @param |
||||
* @return 邮件中存在附件返回true,不存在返回false |
||||
* @throws MessagingException |
||||
* @throws Exception |
||||
*/ |
||||
public static boolean isContainAttachment(Part part) throws Exception { |
||||
boolean flag = false; |
||||
if (part.isMimeType("multipart/*")) { |
||||
MimeMultipart multipart = (MimeMultipart) part.getContent(); |
||||
int partCount = multipart.getCount(); |
||||
for (int i = 0; i < partCount; i++) { |
||||
BodyPart bodyPart = multipart.getBodyPart(i); |
||||
String disp = bodyPart.getDisposition(); |
||||
if (disp != null && (disp.equalsIgnoreCase(Part.ATTACHMENT) || disp.equalsIgnoreCase(Part.INLINE))) { |
||||
flag = true; |
||||
} else if (bodyPart.isMimeType("multipart/*")) { |
||||
flag = isContainAttachment(bodyPart); |
||||
} else { |
||||
String contentType = bodyPart.getContentType(); |
||||
if (contentType.indexOf("application") != -1) { |
||||
flag = true; |
||||
} |
||||
|
||||
if (contentType.indexOf("name") != -1) { |
||||
flag = true; |
||||
} |
||||
} |
||||
|
||||
if (flag) break; |
||||
} |
||||
} else if (part.isMimeType("message/rfc822")) { |
||||
flag = isContainAttachment((Part)part.getContent()); |
||||
} |
||||
return flag; |
||||
} |
||||
|
||||
/** |
||||
* 保存附件 |
||||
* @param part 邮件中多个组合体中的其中一个组合体 |
||||
* @param destDir 附件保存目录 |
||||
* @throws UnsupportedEncodingException |
||||
* @throws MessagingException |
||||
* @throws FileNotFoundException |
||||
* @throws IOException |
||||
*/ |
||||
public static void saveAttachment(Part part, String destDir) throws Exception{ |
||||
if (part.isMimeType("multipart/*")) { |
||||
Multipart multipart = (Multipart) part.getContent(); //复杂体邮件
|
||||
//复杂体邮件包含多个邮件体
|
||||
int partCount = multipart.getCount(); |
||||
for (int i = 0; i < partCount; i++) { |
||||
//获得复杂体邮件中其中一个邮件体
|
||||
BodyPart bodyPart = multipart.getBodyPart(i); |
||||
//某一个邮件体也有可能是由多个邮件体组成的复杂体
|
||||
String disp = bodyPart.getDisposition(); |
||||
if (disp != null && (disp.equalsIgnoreCase(Part.ATTACHMENT) || disp.equalsIgnoreCase(Part.INLINE))) { |
||||
InputStream is = bodyPart.getInputStream(); |
||||
saveFile(is, destDir, decodeText(bodyPart.getFileName())); |
||||
} else if (bodyPart.isMimeType("multipart/*")) { |
||||
saveAttachment(bodyPart,destDir); |
||||
} else { |
||||
String contentType = bodyPart.getContentType(); |
||||
if (contentType.indexOf("name") != -1 || contentType.indexOf("application") != -1) { |
||||
saveFile(bodyPart.getInputStream(), destDir, decodeText(bodyPart.getFileName())); |
||||
} |
||||
} |
||||
} |
||||
} else if (part.isMimeType("message/rfc822")) { |
||||
saveAttachment((Part) part.getContent(),destDir); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 读取输入流中的数据保存至指定目录 |
||||
* @param is 输入流 |
||||
* @param fileName 文件名 |
||||
* @param destDir 文件存储目录 |
||||
* @throws Exception |
||||
*/ |
||||
private static void saveFile(InputStream is, String destDir, String fileName) |
||||
throws Exception { |
||||
//如果文件名称包含关键字则进行保存
|
||||
BufferedInputStream bis = new BufferedInputStream(is); |
||||
BufferedOutputStream bos = new BufferedOutputStream( |
||||
new FileOutputStream(new File(destDir + fileName))); |
||||
int len = -1; |
||||
while ((len = bis.read()) != -1) { |
||||
bos.write(len); |
||||
bos.flush(); |
||||
} |
||||
bos.close(); |
||||
bis.close(); |
||||
} |
||||
|
||||
/** |
||||
* 文本解码 |
||||
* @param encodeText 解码MimeUtility.encodeText(String text)方法编码后的文本 |
||||
* @return 解码后的文本 |
||||
* @throws UnsupportedEncodingException |
||||
*/ |
||||
public static String decodeText(String encodeText) throws UnsupportedEncodingException { |
||||
if (encodeText == null || "".equals(encodeText)) { |
||||
return ""; |
||||
} else { |
||||
return MimeUtility.decodeText(encodeText); |
||||
} |
||||
} |
||||
} |
||||
|
||||
|
@ -1,174 +0,0 @@ |
||||
import cn.hutool.core.io.FileUtil; |
||||
import com.alibaba.fastjson.JSONArray; |
||||
import com.alibaba.fastjson.JSONObject; |
||||
|
||||
import java.io.File; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @description: |
||||
* @author: ZhongMing.Liu |
||||
* @create: 2020/5/22 16:34 |
||||
*/ |
||||
public class ToStringUtils { |
||||
|
||||
/** |
||||
* 获取key |
||||
* |
||||
* @param str |
||||
* @return |
||||
*/ |
||||
private static String before(String str) { |
||||
int i = str.indexOf("="); |
||||
int j = i; |
||||
if (i == -1) { |
||||
return null; |
||||
} |
||||
while (true) { |
||||
String tempStr = null; |
||||
if (j - 1 >= 0) { |
||||
tempStr = str.substring(j - 1, j); |
||||
} else { |
||||
break; |
||||
} |
||||
if ("()[],".indexOf(tempStr) > -1 || " ".equals(tempStr)) { |
||||
break; |
||||
} |
||||
j--; |
||||
} |
||||
return str.substring(j, i); |
||||
} |
||||
|
||||
/** |
||||
* 获取value |
||||
* |
||||
* @param str |
||||
* @return |
||||
*/ |
||||
private static String after(String str) { |
||||
int i = str.indexOf("="); |
||||
int j = i + 1; |
||||
int length = str.length(); |
||||
if (i == -1 || j >= length) { |
||||
return null; |
||||
} |
||||
while (true) { |
||||
String tempStr1 = null; |
||||
if (j + 1 < length) { |
||||
tempStr1 = str.substring(j, j + 1); |
||||
} else |
||||
break; |
||||
if (",".equals(tempStr1) || ")".equals(tempStr1)) { |
||||
String tempStr2 = null; |
||||
if (j + 2 < length) { |
||||
tempStr2 = str.substring(j + 1, j + 2); |
||||
if (" ".equals(tempStr2) || "]".equals(tempStr2) || ",".equals(tempStr2)) |
||||
break; |
||||
} else |
||||
break; |
||||
} |
||||
j++; |
||||
} |
||||
return str.substring(i + 1, j); |
||||
} |
||||
|
||||
/** |
||||
* lombok @Data默认toString反序列化成对象 |
||||
* |
||||
* @param str |
||||
* @param cls |
||||
* @param <T> |
||||
* @return |
||||
*/ |
||||
public static <T> T strToObject(String str, Class<T> cls) { |
||||
return strToJson(str).toJavaObject(cls); |
||||
} |
||||
|
||||
/** |
||||
* 数组l |
||||
* lombok @Data默认toString反序列化成对象 |
||||
* |
||||
* @param str |
||||
* @param cls |
||||
* @param <T> |
||||
* @return |
||||
*/ |
||||
public static <T> List<T> strToList(String str, String objStr, Class<T> cls) { |
||||
return strToJsonArray(str, objStr).toJavaList(cls); |
||||
} |
||||
|
||||
/** |
||||
* 数组 |
||||
* lombok @Data默认toString反序列化成JSON |
||||
* |
||||
* @param str |
||||
* @param obj |
||||
* @return |
||||
*/ |
||||
public static JSONArray strToJsonArray(String str, String obj) { |
||||
JSONArray array = new JSONArray(); |
||||
if ("[".equals(str.substring(0, 1)) && "]".equals(str.substring(str.length() - 1))) { |
||||
while (true) { |
||||
String t1 = str.replaceFirst(obj, ""); |
||||
if (t1.indexOf(obj) != -1) { |
||||
String temp = t1.substring(0, t1.indexOf(obj)); |
||||
str = t1.substring(t1.indexOf(obj)); |
||||
array.add(strToJson(temp)); |
||||
} else { |
||||
array.add(strToJson(t1)); |
||||
break; |
||||
} |
||||
} |
||||
} else { |
||||
array.add(strToJson(str)); |
||||
} |
||||
return array; |
||||
} |
||||
|
||||
/** |
||||
* lombok @Data默认toString反序列化成JSON |
||||
* |
||||
* @param str |
||||
* @return |
||||
*/ |
||||
public static JSONObject strToJson(String str) { |
||||
JSONObject result = new JSONObject(); |
||||
while (true) { |
||||
String before = before(str); |
||||
String after = after(str); |
||||
if (before == null) { |
||||
break; |
||||
} |
||||
if ("null".equals(after)) { |
||||
result.put(before, null); |
||||
} else { |
||||
result.put(before, after); |
||||
} |
||||
str = str.replace(before + "=" + after, ""); |
||||
} |
||||
return result; |
||||
} |
||||
//
|
||||
// //测试
|
||||
// public static void main(String[] args) {
|
||||
// String str = "Square(width=10, height=20)";
|
||||
// System.out.println(strToJson(str));
|
||||
// System.out.println(strToJsonArray(str, "Square"));
|
||||
// }
|
||||
|
||||
//结果
|
||||
//{"width":"10","height":"20"}
|
||||
//[{"width":"10","height":"20"}]
|
||||
public static void main(String[] args) { |
||||
String a = FileUtil.readString(new File("d://test/1222.txt"), StandardCharsets.UTF_8); |
||||
String b = FileUtil.readString(new File("d://test/1223.txt"), StandardCharsets.UTF_8); |
||||
String aa = strToJson(a).toString(); |
||||
// System.out.println(aa);
|
||||
String bb = strToJsonArray(b,"JarFpqzKjmxBO").toString(); |
||||
// System.out.println(bb);
|
||||
|
||||
String cc = aa.replace("}","") +",\"JAR_FPQZ_KJMXS\":"+bb+"}"; |
||||
System.out.println(cc); |
||||
} |
||||
} |
@ -1,53 +0,0 @@ |
||||
import com.alibaba.fastjson.JSON; |
||||
import com.alibaba.fastjson.JSONArray; |
||||
import com.alibaba.fastjson.JSONObject; |
||||
import com.dxhy.order.constant.OrderManagementConstant; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import com.dxhy.order.utils.JsonUtils; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import java.io.File; |
||||
import java.io.IOException; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.HashMap; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 每日优鲜-线上数据推送 |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class Wdfpdelinvoice { |
||||
public static void main(String[] args) throws IOException { |
||||
|
||||
String string = FileUtils.readFileToString(new File("d://test/wdfp.txt"), StandardCharsets.UTF_8); |
||||
System.out.println(string); |
||||
JSONObject jsonObject = JSON.parseObject(string); |
||||
JSONArray readInvoiceFrontList = jsonObject.getJSONObject(OrderManagementConstant.DATA).getJSONArray("readInvoiceFrontList"); |
||||
for (int i = 0; i < readInvoiceFrontList.size(); i++) { |
||||
String invioceId = readInvoiceFrontList.getJSONObject(i).getString("invoiceinfo_id"); |
||||
String json = ""; |
||||
String url = "https://www.5dfp.com/myinvoice-invoice/secured/invoice/deleteInvoice"; |
||||
String request = "invoiceId=" + invioceId + "&token=b7db85ec-30a7-469d-a59c-9ec04420985f&type=0"; |
||||
Map<String, String> requestMap = new HashMap<>(); |
||||
requestMap.put("invoiceId", invioceId); |
||||
requestMap.put("token", "b7db85ec-30a7-469d-a59c-9ec04420985f"); |
||||
requestMap.put("type", "0"); |
||||
String post = HttpUtils.doPost(url, requestMap); |
||||
// String post = HttpUtils.doGet(url);
|
||||
// Thread.sleep(3);
|
||||
System.out.println(post); |
||||
System.out.println("处理了" + i); |
||||
Map<String, String> map = JsonUtils.getInstance().parseObject(post, Map.class); |
||||
// if(map.get("code").equals("9999")){
|
||||
// url = "https://www.5dfp.com/myinvoice-invoice/secured/invoice/deleteInvoice?invoiceId="+invioceId+"&token=80744367-6927-403b-8b4a-fd19bc8d1b66&type=1";
|
||||
// post = HttpUtils.post(url);
|
||||
// System.out.println(post);
|
||||
// System.out.println("处理了" + i);
|
||||
// }
|
||||
} |
||||
|
||||
|
||||
} |
||||
} |
@ -1,6 +0,0 @@ |
||||
{ |
||||
"test": { |
||||
"description": "This dynamic variable generates a random integer between 0 and 1000", |
||||
"sample-value": "10.1.1.222:8087" |
||||
} |
||||
} |
@ -1,63 +0,0 @@ |
||||
import com.dxhy.order.constant.ConfigureConstant; |
||||
import com.dxhy.order.constant.OrderManagementConstant; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import com.dxhy.order.utils.JsonUtils; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import java.io.File; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.ArrayList; |
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* @author ZSC-DXHY |
||||
* @date 创建时间: 2019/5/25 10:43 |
||||
*/ |
||||
public class mryt_online_rushred { |
||||
|
||||
public static void main(String[] args) throws Exception { |
||||
/** |
||||
* 格式:发票代码,发票号码,销方税号 |
||||
*/ |
||||
List<String> gbk = FileUtils.readLines(new File("d://test/rushRed.txt"), StandardCharsets.UTF_8); |
||||
List<String> errorfphm = new ArrayList<>(); |
||||
List<String> successfphm = new ArrayList<>(); |
||||
for (int i = 0; i < gbk.size(); i++) { |
||||
String[] split = gbk.get(i).split(","); |
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
headMap.put("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsaWNlbnNlIjoibWFkZSBieSBoZWF2ZW4iLCJ1c2VyX25hbWUiOiIxODUzODIzNjA0OCIsInNjb3BlIjpbInNlcnZlciJdLCJ1c2VyVHlwZSI6IjEiLCJleHAiOjE2MzQyMDE1ODEsInVzZXJJZCI6MTAwMDIwNzE0OCwiYXV0aG9yaXRpZXMiOlsiUk9MRV9VU0VSIl0sImp0aSI6IjEzZDBiNGIxLWVjZDAtNGY1YS1iMDFhLTgwZDlhZTdlYWM4YyIsImNsaWVudF9pZCI6ImZhdGMifQ.vEuabpGepSnBBNtT1RLRg7IyIehikl1S7DQSom9k3cI"); |
||||
|
||||
|
||||
String url = "http://sims.ele-cloud.com/order-api/invoice/rushRed"; |
||||
// String url = "http://10.1.31.217:8087/order-api/invoice/rushRed";
|
||||
Map<String, String> headMap1 = new HashMap<>(4); |
||||
headMap1.put("fpdm", split[0]); |
||||
headMap1.put("fphm", split[1]); |
||||
headMap1.put("chyy", "开重"); |
||||
headMap1.put("xhfNsrsbh", "[\"" + split[2] + "\"]"); |
||||
String post = HttpUtils.doPostWithHeader(url, JsonUtils.getInstance().toJsonString(headMap1), headMap); |
||||
|
||||
System.out.println(post); |
||||
System.out.println("处理了" + i); |
||||
Map map = JsonUtils.getInstance().parseObject(post, Map.class); |
||||
String code = map.get(OrderManagementConstant.CODE).toString(); |
||||
String msg = map.get("msg").toString(); |
||||
if ("0000".equals(code)) { |
||||
System.out.println("==>处理成功的号码:" + split[0]); |
||||
successfphm.add(split[0]); |
||||
} else { |
||||
System.out.println("处理失败的序号为:" + i); |
||||
System.out.println("处理失败的号码:" + split[0]); |
||||
errorfphm.add(split[0]); |
||||
} |
||||
Thread.sleep(1000); |
||||
|
||||
} |
||||
|
||||
System.err.println(JsonUtils.getInstance().toJsonString(successfphm)); |
||||
System.err.println(JsonUtils.getInstance().toJsonString(errorfphm)); |
||||
} |
||||
} |
@ -1,86 +0,0 @@ |
||||
import com.dxhy.order.model.sk.kp.AllocateInvoicesReq; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import com.dxhy.order.utils.JsonUtils; |
||||
import org.apache.commons.codec.binary.Base64; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import javax.crypto.Mac; |
||||
import javax.crypto.spec.SecretKeySpec; |
||||
import java.io.File; |
||||
import java.io.IOException; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.security.InvalidKeyException; |
||||
import java.security.NoSuchAlgorithmException; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 每日优鲜-线上数据推送 |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class mryx_online_push { |
||||
public static void main(String[] args) throws IOException, NoSuchAlgorithmException, InvalidKeyException, InterruptedException { |
||||
|
||||
List<String> gbk = FileUtils.readLines(new File("C://Users/thinkpad/Desktop/31.txt"), StandardCharsets.UTF_8); |
||||
for (int i = 0; i < gbk.size(); i++) { |
||||
AllocateInvoicesReq parseObject = JsonUtils.getInstance().parseObject(gbk.get(i), AllocateInvoicesReq.class); |
||||
|
||||
String baseUrl = Base64.encodeBase64URLSafeString(gbk.get(i).getBytes(StandardCharsets.UTF_8)); |
||||
|
||||
String content = "Nonce=3192706&SecretId=55a7b76015704357b5369aa3caab9fe97900&Timestamp=1544520105543&content=" + baseUrl + "&encryptCode=0&zipCode=0"; |
||||
String srcStr = "POSTsims.ele-cloud.com/order-api/invoice/v2/AllocateInvoices?" + content; |
||||
String secretKey = "86f290a794d441209033ca0e777829e8"; |
||||
SecretKeySpec keySpec = new SecretKeySpec(secretKey.getBytes(StandardCharsets.UTF_8), "HmacSHA1"); |
||||
Mac mac = Mac.getInstance("HmacSHA1"); |
||||
mac.init(keySpec); |
||||
byte[] signBytes = mac.doFinal(srcStr.getBytes(StandardCharsets.UTF_8)); |
||||
String signStr = Base64.encodeBase64URLSafeString(signBytes); |
||||
|
||||
String result = content + "&Signature=" + signStr; |
||||
|
||||
String url = "http://sims.ele-cloud.com/order-api/invoice/v2/AllocateInvoices"; |
||||
String post = HttpUtils.doPost(url, result); |
||||
System.out.println(post); |
||||
System.out.println("处理了" + i); |
||||
Map map = JsonUtils.getInstance().parseObject(post, Map.class); |
||||
Map map1 = JsonUtils.getInstance().parseObject(map.get("responseData").toString(), Map.class); |
||||
String content1 = map1.get("content").toString(); |
||||
String result1 = new String(Base64.decodeBase64(content1.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8); |
||||
Map m2 = JsonUtils.getInstance().parseObject(result1, Map.class); |
||||
if ("010000".equals(m2.get("STATUS_CODE"))) { |
||||
System.out.println("==>处理成功的批次号:" + parseObject.getCOMMON_INVOICES_BATCH().getFPQQPCH()); |
||||
} else { |
||||
System.out.println("处理失败的序号为:" + i); |
||||
System.out.println("处理失败的批次号:" + parseObject.getCOMMON_INVOICES_BATCH().getFPQQPCH()); |
||||
} |
||||
if ("702001".equals(m2.get("STATUS_CODE"))) { |
||||
|
||||
System.err.println(parseObject.getCOMMON_INVOICE()[0].getCOMMON_INVOICE_HEAD().getFPQQLSH()); |
||||
Thread.sleep(10000); |
||||
for (int j = 0; j < 2; j++) { |
||||
post = HttpUtils.doPost(url, result); |
||||
map = JsonUtils.getInstance().parseObject(post, Map.class); |
||||
map1 = JsonUtils.getInstance().parseObject(map.get("responseData").toString(), Map.class); |
||||
content1 = map1.get("content").toString(); |
||||
result1 = new String(Base64.decodeBase64(content1.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8); |
||||
if ("000000".equals(JsonUtils.getInstance().parseObject(result1, Map.class).get("STATUS_CODE"))) { |
||||
break; |
||||
} |
||||
} |
||||
} else { |
||||
System.out.println("zanting"); |
||||
|
||||
} |
||||
|
||||
|
||||
// System.out.println(JsonUtils.getInstance().toJsonString(parseObject));
|
||||
|
||||
// ALLOCATE_INVOICES_REQ parseObject = JsonUtils.getInstance().parseObject(gbk.get(i), ALLOCATE_INVOICES_REQ.class);
|
||||
// System.out.println(parseObject.getCOMMON_INVOICE()[0].getCOMMON_INVOICE_HEAD().getFPQQLSH());
|
||||
|
||||
|
||||
} |
||||
} |
||||
} |
@ -1,124 +0,0 @@ |
||||
import com.dxhy.order.constant.ConfigureConstant; |
||||
import com.dxhy.order.constant.OrderInfoEnum; |
||||
import com.dxhy.order.utils.AesEncryptUtil; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import com.dxhy.order.utils.JsonUtils; |
||||
import com.dxhy.order.consumer.model.page.PageInterfaceUpdateRabbitMq; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import java.io.File; |
||||
import java.io.IOException; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.ArrayList; |
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 线上数据rabbitmq |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class sims_api_processRabbitMq { |
||||
public static void main(String[] args) throws IOException { |
||||
//操作队列监听
|
||||
operateQueueListener(); |
||||
|
||||
//按税号重新缓存队列配置
|
||||
// reCacheSysQueueConfig();
|
||||
|
||||
//重新缓存渠道队列配置
|
||||
// reCacheSysQdQueueConfig();
|
||||
} |
||||
|
||||
private static void operateQueueListener() throws IOException { |
||||
/* |
||||
* 格式:队列名 |
||||
*/ |
||||
List<String> gbk = FileUtils.readLines(new File("d://test/processRabbitMq.txt"), StandardCharsets.UTF_8); |
||||
List<String> resultList = new ArrayList<>(); |
||||
for (int i = 0; i < gbk.size(); i++) { |
||||
String[] split = gbk.get(i).split(","); |
||||
|
||||
String url = "https://sims.ele-cloud.com/order-api/api/updateRabbitMq"; |
||||
url = "https://sims.dxyun.com/order-api/api/updateRabbitMq"; |
||||
// url = "http://10.1.1.222:8087/order-api/api/updateRabbitMq";
|
||||
// url = "http://10.1.31.217:8087/order-api/api/updateRabbitMq";
|
||||
// String url = "http://10.1.29.55:8087/order-api/api/updateRabbitMq";
|
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
PageInterfaceUpdateRabbitMq pageInterfaceUpdateRabbitMq = new PageInterfaceUpdateRabbitMq(); |
||||
//操作类型(0:停止监听;1:删除监听;2:重启监听)
|
||||
pageInterfaceUpdateRabbitMq.setType("2"); |
||||
List<String> queueNameList = new ArrayList<>(); |
||||
queueNameList.add(split[0]); |
||||
pageInterfaceUpdateRabbitMq.setQueueNameList(queueNameList); |
||||
|
||||
String content = AesEncryptUtil.encrypt(JsonUtils.getInstance().toJsonString(pageInterfaceUpdateRabbitMq), "dtfbjpqla0dn7pmb"); |
||||
|
||||
String result = "{\"type\":\"0\",\"content\":\"" + content + "\"}"; |
||||
String post = HttpUtils.doPostWithHeader(url, result, headMap); |
||||
Map map = JsonUtils.getInstance().parseObject(post, Map.class); |
||||
System.out.println(post); |
||||
System.out.println("执行了:" + (i + 1)); |
||||
resultList.add(split[0] + "," + map.get("msg")); |
||||
} |
||||
|
||||
for (String s : resultList) { |
||||
System.out.println(s); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 按税号重新缓存队列配置 |
||||
*/ |
||||
private static void reCacheSysQueueConfig() throws IOException { |
||||
/* |
||||
* 格式:税号 |
||||
*/ |
||||
List<String> gbk = FileUtils.readLines(new File("d://test/processRabbitMq.txt"), StandardCharsets.UTF_8); |
||||
|
||||
String url = "https://sims.ele-cloud.com/order-api/api/updateRabbitMq"; |
||||
// url = "http://10.1.1.222:8087/order-api/api/updateRabbitMq";
|
||||
// String url = "http://10.1.29.55:8087/order-api/api/updateRabbitMq";
|
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
|
||||
PageInterfaceUpdateRabbitMq pageInterfaceUpdateRabbitMq = new PageInterfaceUpdateRabbitMq(); |
||||
//操作类型(0:停止监听;1:删除监听;2:重启监听;3:重新缓存队列配置;4:重新缓存渠道队列配置)
|
||||
pageInterfaceUpdateRabbitMq.setType(OrderInfoEnum.OPERATE_RABBITMQ_BY_FANOUT_TYPE_3.getKey()); |
||||
// pageInterfaceUpdateRabbitMq.setShList(gbk);
|
||||
|
||||
String content = AesEncryptUtil.encrypt(JsonUtils.getInstance().toJsonString(pageInterfaceUpdateRabbitMq), "dtfbjpqla0dn7pmb"); |
||||
|
||||
String result = "{\"type\":\"0\",\"content\":\"" + content + "\"}"; |
||||
String post = HttpUtils.doPostWithHeader(url, result, headMap); |
||||
Map map = JsonUtils.getInstance().parseObject(post, Map.class); |
||||
System.out.println(post); |
||||
|
||||
} |
||||
|
||||
/** |
||||
* 重新缓存渠道队列配置 |
||||
*/ |
||||
private static void reCacheSysQdQueueConfig() throws IOException { |
||||
String url = "http://10.1.29.55:8087/order-api/api/updateRabbitMq"; |
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
|
||||
PageInterfaceUpdateRabbitMq pageInterfaceUpdateRabbitMq = new PageInterfaceUpdateRabbitMq(); |
||||
//操作类型(0:停止监听;1:删除监听;2:重启监听;3:重新缓存队列配置;4:重新缓存渠道队列配置)
|
||||
pageInterfaceUpdateRabbitMq.setType(OrderInfoEnum.OPERATE_RABBITMQ_BY_FANOUT_TYPE_4.getKey()); |
||||
List<String> qdList = FileUtils.readLines(new File("d://data/dxhy/reCacheSysQdQueueConfig.txt"), StandardCharsets.UTF_8); |
||||
pageInterfaceUpdateRabbitMq.setQdList(qdList); |
||||
|
||||
String content = AesEncryptUtil.encrypt(JsonUtils.getInstance().toJsonString(pageInterfaceUpdateRabbitMq), "dtfbjpqla0dn7pmb"); |
||||
String request = "{\"type\":\"0\",\"content\":\"" + content + "\"}"; |
||||
|
||||
String response = HttpUtils.doPostWithHeader(url, request, headMap); |
||||
Map map = JsonUtils.getInstance().parseObject(response, Map.class); |
||||
System.out.println(response); |
||||
System.out.println(map.get("msg")); |
||||
} |
||||
} |
@ -1,56 +0,0 @@ |
||||
import com.dxhy.order.constant.ConfigureConstant; |
||||
import com.dxhy.order.utils.AesEncryptUtil; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import com.dxhy.order.utils.JsonUtils; |
||||
import com.dxhy.order.consumer.model.page.PageInterfaceUpdateRedis; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import java.io.File; |
||||
import java.io.IOException; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.ArrayList; |
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 线上数据redis |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class sims_api_processRedis { |
||||
public static void main(String[] args) throws IOException { |
||||
|
||||
/* |
||||
* 格式:xxfp:cache:order:operate:发票请求流水号 |
||||
*/ |
||||
List<String> gbk = FileUtils.readLines(new File("d://test/processRedis.txt"), StandardCharsets.UTF_8); |
||||
List<String> resultList = new ArrayList<>(); |
||||
for (int i = 0; i < gbk.size(); i++) { |
||||
String[] split = gbk.get(i).split(","); |
||||
|
||||
String url = "https://sims.ele-cloud.com/order-api/api/updateRedis"; |
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
PageInterfaceUpdateRedis pageInterfaceUpdateRedis = new PageInterfaceUpdateRedis(); |
||||
//操作类型(0:查询;1:更新;2:删除;3:模糊删除)
|
||||
pageInterfaceUpdateRedis.setType("3"); |
||||
pageInterfaceUpdateRedis.setRedisKey(split[0]); |
||||
pageInterfaceUpdateRedis.setRedisValue("88"); |
||||
|
||||
String content = AesEncryptUtil.encrypt(JsonUtils.getInstance().toJsonString(pageInterfaceUpdateRedis), "dtfbjpqla0dn7pmb"); |
||||
|
||||
String result = "{\"type\":\"0\",\"content\":\"" + content + "\"}"; |
||||
String post = HttpUtils.doPostWithHeader(url, result, headMap); |
||||
Map map = JsonUtils.getInstance().parseObject(post, Map.class); |
||||
System.out.println(post); |
||||
System.out.println("执行了:" + (i + 1)); |
||||
resultList.add(split[0] + "," + map.get("msg")); |
||||
} |
||||
|
||||
for (String s : resultList) { |
||||
System.out.println(s); |
||||
} |
||||
} |
||||
} |
@ -1,64 +0,0 @@ |
||||
import com.dxhy.order.constant.ConfigureConstant; |
||||
import com.dxhy.order.model.queue.jdwj.JdwjMqData; |
||||
import com.dxhy.order.utils.AesEncryptUtil; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import com.dxhy.order.utils.JsonUtils; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import java.io.File; |
||||
import java.io.IOException; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.HashMap; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 线上数据部署状态 |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class sims_api_pushJdwj { |
||||
public static void main(String[] args) throws IOException { |
||||
|
||||
/* |
||||
* 格式: |
||||
* |
||||
{ |
||||
"QYID": "企业标识", |
||||
"QYQD": "企业渠道", |
||||
"NSRMC": "纳税人名称", |
||||
"NSRSBH": "纳税人识别号", |
||||
"TSLX": "推送类型", |
||||
"BSZTDM": "部署状态代码", |
||||
"BSZT": "部署状态", |
||||
"SBJCXX": [ |
||||
{ |
||||
"JQBH": "机器编号", |
||||
"FPLXDMXX": [ |
||||
{ |
||||
"FPLXDM": "发票种类代码", |
||||
"DZKPXE": "单张开票限额" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
||||
|
||||
*/ |
||||
String readFileToString = FileUtils.readFileToString(new File("d://test/processJdwj.txt"), StandardCharsets.UTF_8); |
||||
|
||||
String url = "https://sims.ele-cloud.com/order-api/api/simsBack/pushJdwj"; |
||||
url = "http://10.1.31.217:8087/order-api/api/simsBack/pushJdwj"; |
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
JdwjMqData jdwjMqData = JsonUtils.getInstance().parseObject(readFileToString, JdwjMqData.class); |
||||
|
||||
String content = AesEncryptUtil.encrypt(JsonUtils.getInstance().toJsonString(jdwjMqData), "dtfbjpqla0dn7pmb"); |
||||
|
||||
String result = "{\"type\":\"0\",\"content\":\"" + content + "\"}"; |
||||
String post = HttpUtils.doPostWithHeader(url, result, headMap); |
||||
Map map = JsonUtils.getInstance().parseObject(post, Map.class); |
||||
System.out.println(post); |
||||
|
||||
} |
||||
} |
@ -1,50 +0,0 @@ |
||||
import com.dxhy.order.constant.ConfigureConstant; |
||||
import com.dxhy.order.utils.AesEncryptUtil; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import com.dxhy.order.utils.JsonUtils; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import java.io.File; |
||||
import java.io.IOException; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 线上数据放入rabbitmq |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class sims_api_sendDataToRabbit { |
||||
public static void main(String[] args) throws IOException { |
||||
|
||||
/* |
||||
* 格式: |
||||
* |
||||
* { |
||||
"queueNameList": [ |
||||
"" |
||||
], |
||||
"dataList": [ |
||||
"" |
||||
], |
||||
"messagePriority": 0 |
||||
*/ |
||||
|
||||
List<String> gbk = FileUtils.readLines(new File("d://test/sendDataToRabbitmq.txt"), StandardCharsets.UTF_8); |
||||
|
||||
String url = "https://sims.ele-cloud.com/order-api/api/setDataToRabbitMq"; |
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
|
||||
|
||||
String content = AesEncryptUtil.encrypt(JsonUtils.getInstance().toJsonString(gbk), "dtfbjpqla0dn7pmb"); |
||||
|
||||
String result = "{\"type\":\"0\",\"content\":\"" + content + "\"}"; |
||||
String post = HttpUtils.doPostWithHeader(url, result, headMap); |
||||
System.out.println(post); |
||||
|
||||
} |
||||
} |
@ -1,46 +0,0 @@ |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import com.dxhy.order.utils.JsonUtils; |
||||
import org.apache.commons.io.FileUtils; |
||||
import org.apache.commons.lang3.StringUtils; |
||||
|
||||
import java.io.File; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 线上推送我的发票销方信息 |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class sims_online_myinvoice_syncSeller { |
||||
public static void main(String[] args) throws Exception { |
||||
//销方名称,销方税号,销方地址,销方电话,销方银行,销方帐号
|
||||
|
||||
//SELECT xhf_mc,xhf_nsrsbh,xhf_dz,xhf_dh,xhf_yh,xhf_zh from order_info where xhf_nsrsbh = '913201045935299451' LIMIT 1;
|
||||
List<String> gbk = FileUtils.readLines(new File("d://test/sync_myinvoice.txt"), StandardCharsets.UTF_8); |
||||
for (String s : gbk) { |
||||
String[] split = s.split(","); |
||||
|
||||
|
||||
String url = "https://wdfp.5ifapiao.com/myinvoice-data/enterprise/insertSelective"; |
||||
Map<String, String> dataMap = new HashMap<>(2); |
||||
|
||||
dataMap.put("nsrmc", split[0]); |
||||
dataMap.put("nsrsbh", split[1]); |
||||
dataMap.put("dz", split[2]); |
||||
dataMap.put("dh", split[3]); |
||||
String yhzh = StringUtils.isEmpty(split[4]) ? "" : split[4] |
||||
+ (StringUtils.isEmpty(split[5]) ? "" : split[5]); |
||||
dataMap.put("yhzh", yhzh); |
||||
String request = JsonUtils.getInstance().toJsonString(dataMap); |
||||
System.out.println(request); |
||||
String post = HttpUtils.doPost(url, request); |
||||
System.out.println(post); |
||||
|
||||
|
||||
} |
||||
} |
||||
} |
@ -1,52 +0,0 @@ |
||||
import cn.hutool.core.date.DateUtil; |
||||
import com.dxhy.order.constant.ConfigureConstant; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import java.io.File; |
||||
import java.io.IOException; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.Date; |
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 线上数据推送 |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class sims_online_pushInvoice { |
||||
public static void main(String[] args) throws IOException, InterruptedException { |
||||
|
||||
/** |
||||
* 格式:发票请求流水号,税号 |
||||
*/ |
||||
List<String> gbk = FileUtils.readLines(new File("d://test/发票推送.txt"), StandardCharsets.UTF_8); |
||||
long l2 = System.currentTimeMillis(); |
||||
for (int i = 0; i < gbk.size(); i++) { |
||||
String[] split = gbk.get(i).split(","); |
||||
|
||||
long l = System.currentTimeMillis(); |
||||
String url = "https://sims.ele-cloud.com/order-api/receive/manualPushInvoice"; |
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
|
||||
String result = "[{\"ddqqlsh\":\"" + split[0] + "\",\"xhfNsrsbh\":\"" + split[1] + "\"}]"; |
||||
System.out.println(result); |
||||
String post = HttpUtils.doPostWithHeader(url, result, headMap); |
||||
long l1 = System.currentTimeMillis(); |
||||
System.out.println(post); |
||||
System.out.println("当前数据耗时:" + (l1 - l) + "ms"); |
||||
System.out.println("执行了:" + (i + 1) + ",共耗时:" + (l1 - l2) + "ms"); |
||||
System.out.println("当前时间为:" + DateUtil.formatDateTime(new Date())); |
||||
Thread.sleep(20); |
||||
if (i > 0 && i % 2000 == 0) { |
||||
Thread.sleep(20000); |
||||
} |
||||
|
||||
|
||||
} |
||||
} |
||||
} |
@ -1,57 +0,0 @@ |
||||
import com.dxhy.order.constant.ConfigureConstant; |
||||
import com.dxhy.order.utils.AesEncryptUtil; |
||||
import com.dxhy.order.utils.HttpUtils; |
||||
import org.apache.commons.io.FileUtils; |
||||
|
||||
import java.io.File; |
||||
import java.io.IOException; |
||||
import java.nio.charset.StandardCharsets; |
||||
import java.util.HashMap; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 线上推送京东万家 |
||||
* |
||||
* @author ZSC-DXHY-PC |
||||
* @date 创建时间: 2018/12/24 22:55 |
||||
*/ |
||||
public class sims_online_pushJdwj { |
||||
public static void main(String[] args) throws IOException { |
||||
|
||||
/** |
||||
* 格式: |
||||
* { |
||||
* "QYID": "企业标识", |
||||
* "NSRMC": "纳税人名称", |
||||
* "NSRSBH": "纳税人识别号", |
||||
* "TSLX": "推送类型", |
||||
* "BSZTDM": "部署状态代码", |
||||
* "BSZT": "部署状态", |
||||
* "SBJCXX": [ |
||||
* { |
||||
* "JQBH": "机器编号", |
||||
* "FPLXDMXX": [ |
||||
* { |
||||
* "FPLXDM": "发票种类代码", |
||||
* "DZKPXE": "单张开票限额" |
||||
* } |
||||
* ] |
||||
* } |
||||
* ] |
||||
* } |
||||
*/ |
||||
String gbk = FileUtils.readFileToString(new File("d://test/pushJdwj.txt"), StandardCharsets.UTF_8); |
||||
|
||||
String url = "https://sims.ele-cloud.com/order-api/api/simsBack/pushJdwj"; |
||||
url = "http://10.1.31.217:8087/order-api/api/simsBack/pushJdwj"; |
||||
Map<String, String> headMap = new HashMap<>(2); |
||||
headMap.put("Content-Type", ConfigureConstant.STRING_APPLICATION_JSON); |
||||
|
||||
String content = AesEncryptUtil.encrypt(gbk, "dtfbjpqla0dn7pmb"); |
||||
|
||||
String result = "{\"type\":\"0\",\"content\":\"" + content + "\"}"; |
||||
String post = HttpUtils.doPostWithHeader(url, result, headMap); |
||||
System.out.println(post); |
||||
|
||||
} |
||||
} |
File diff suppressed because one or more lines are too long
@ -1,10 +0,0 @@ |
||||
POST http://test.5ifapiao.com:8888/wxservice/api/getAuthData |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"authAppId": "", |
||||
"s_pappid": "", |
||||
"order_id": "01456221383502024704" |
||||
} |
||||
|
||||
### |
Loading…
Reference in new issue