|
|
@@ -43,7 +43,7 @@ public class UasEisApplicationTests {
|
|
|
System.out.println(new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()));
|
|
|
Object ob=baseDao.getFieldDataByCondition("enterprise","EN_WHICHSYSTEM","1=1");
|
|
|
System.out.println(ob.toString());
|
|
|
- erpService.pushInvoiceOrder("N_HUASL_SZ",39);
|
|
|
+ erpService.pushInvoiceOrder("N_HUASL_SZ",47);
|
|
|
}
|
|
|
/**
|
|
|
* 获取token
|
|
|
@@ -91,6 +91,9 @@ public class UasEisApplicationTests {
|
|
|
erpService.invoiceOrderSubmitKp("N_HUASL_SZ",5);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 删除平台开票订单
|
|
|
+ */
|
|
|
@Test
|
|
|
public void Test_del() {
|
|
|
erpService.cancelInvoiceOrder("N_HUASL_SZ",7);
|
|
|
@@ -100,7 +103,7 @@ public class UasEisApplicationTests {
|
|
|
*/
|
|
|
@Test
|
|
|
public void TestfindOrderState() {
|
|
|
- String OrderCode = "SZ23070005";
|
|
|
+ String OrderCode = "SZ23070031";
|
|
|
SqlRowList io = baseDao.queryForRowSet("SELECT io_id FROM N_HUASL_SZ.invoiceOrder where IO_STATUS ='已审核' and IO_DOCKSTATUS = '对接成功' " +
|
|
|
// "and nvl(IO_INVOICESTATUS,0) in(0,1,6) " +
|
|
|
"and io_code = '"+OrderCode+"'" +
|
|
|
@@ -150,7 +153,7 @@ public class UasEisApplicationTests {
|
|
|
|
|
|
@Test
|
|
|
public void TestDownLoadElecInvoice(){
|
|
|
- Map<String, Object> m = erpService.getElecInvoicesById("N_HUASL_SZ", 25);
|
|
|
+ Map<String, Object> m = erpService.getElecInvoicesById("N_HUASL_SZ", 47);
|
|
|
System.out.println(JSONObject.toJSONString(m));
|
|
|
// elecInvoiceTask.elecInvoiceDownLoad();
|
|
|
}
|
|
|
@@ -194,5 +197,18 @@ public class UasEisApplicationTests {
|
|
|
elecInvoiceTask.elecInvoiceAttachSave();
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ public void testRushRed(){
|
|
|
+ erpService.rushRed("N_HUASL_SZ",47);
|
|
|
+ }
|
|
|
|
|
|
+ @Test
|
|
|
+ public void queryInvoiceRedConfirm(){
|
|
|
+ String url=donlimConfig.getRoute();
|
|
|
+ String appKey = donlimConfig.getAppKey();
|
|
|
+ String appSecret = donlimConfig.getAppSecret();
|
|
|
+ String token = donlimConfig.getToken();
|
|
|
+ String taxnum= donlimConfig.getTaxnum();
|
|
|
+ erpService.queryInvoiceRedConfirm( taxnum, appKey, appSecret, token, url,"1135624457459470336");
|
|
|
+ }
|
|
|
}
|