|
|
@@ -41,6 +41,17 @@ public class UasEisApplicationTests {
|
|
|
@Autowired
|
|
|
private VwmsConfig vwmsConfig;
|
|
|
@Test
|
|
|
+ public void testSendJSTH(){
|
|
|
+ // 设置测试数据
|
|
|
+ String master = "YUEJH_TEST";
|
|
|
+ String id = "50744184";
|
|
|
+ String emCode = "TEST";
|
|
|
+ String caller="ProdInOut!AppropriationOut";
|
|
|
+ // 调用待测方法
|
|
|
+ Map<String, Object> result = erpService.sendIO(master, id, emCode,caller);
|
|
|
+ System.out.println("result:"+result.toString());
|
|
|
+ }
|
|
|
+ @Test
|
|
|
public void testSendZK(){
|
|
|
// 设置测试数据
|
|
|
String master = "YUEJH_TEST";
|
|
|
@@ -99,7 +110,7 @@ public class UasEisApplicationTests {
|
|
|
String master = "YUEJH_TEST";
|
|
|
String emCode = "test";
|
|
|
String caller = "Product";
|
|
|
- String id = baseDao.queryForObject("select pr_id from "+master+".product where pr_code = 'U00014727'",String.class);
|
|
|
+ String id = baseDao.queryForObject("select pr_id from "+master+".product where pr_code = 'U00014725'",String.class);
|
|
|
// 调用待测方法
|
|
|
Map<String, Object> result = erpService.sendProd(master, id, emCode,caller);
|
|
|
System.out.println("result:"+result.toString());
|