refactor(buildpackage): 优化委外加工入库异常提示信息
- 修改了 ConsignmachiningIn 类中的错误提示信息,使其更加具体和友好 - 更新了测试用例中的订单编号和时间范围
This commit is contained in:
parent
d282ed1f6a
commit
2fd90e74af
|
@ -622,9 +622,9 @@ public class ConsignmachiningIn extends PluginBaseEntity {
|
||||||
bdCumandocEntity1.setPkCubasdoc(fuzzyQueryCustomers.getPkCubasdoc());
|
bdCumandocEntity1.setPkCubasdoc(fuzzyQueryCustomers.getPkCubasdoc());
|
||||||
List<BdCumandocEntity> bdCumandocEntityList = iBdCumandocDao.query(bdCumandocEntity1);
|
List<BdCumandocEntity> bdCumandocEntityList = iBdCumandocDao.query(bdCumandocEntity1);
|
||||||
if (bdCumandocEntityList == null || bdCumandocEntityList.size() == 0) {
|
if (bdCumandocEntityList == null || bdCumandocEntityList.size() == 0) {
|
||||||
Assert.state(false, "根据客商基本档案主键{},无法匹配到客商管理档案", fuzzyQueryCustomers.getPkCubasdoc());
|
Assert.state(false, "客商:{} 没有分配给:{},或者客商属性为客户,不满足客商或者供应商的要求!", fuzzyQueryCustomers.getCustshortname(), bdCorpEntityList.get(0).getUnitname());
|
||||||
} else if (bdCumandocEntityList.size() >= 2) {
|
} else if (bdCumandocEntityList.size() >= 2) {
|
||||||
Assert.state(false, "根据客商基本档案主键{},匹配到多个客商管理档案", fuzzyQueryCustomers.getPkCubasdoc());
|
Assert.state(false, "客商:{} 公司:{} 存在多个对应关系!", fuzzyQueryCustomers.getCustshortname(), bdCorpEntityList.get(0).getUnitname());
|
||||||
}
|
}
|
||||||
|
|
||||||
//2024年8月25日 10:09:20 委外入库公司,取委外订单上的公司,已经和妮姐确认,没有必要通过O的公司转换,因为不存在跨组织的问题
|
//2024年8月25日 10:09:20 委外入库公司,取委外订单上的公司,已经和妮姐确认,没有必要通过O的公司转换,因为不存在跨组织的问题
|
||||||
|
|
|
@ -27,9 +27,9 @@ public class ProxyPurchaseWarehousOrderTest {
|
||||||
@Test
|
@Test
|
||||||
public void startImplementByCode() {
|
public void startImplementByCode() {
|
||||||
try {
|
try {
|
||||||
// proxyPurchaseWarehousOrder.startImplementByCode("LETS-PO2024102400000004");
|
proxyPurchaseWarehousOrder.startImplementByCode("LETS-PO2024103100000038");
|
||||||
|
|
||||||
proxyPurchaseWarehousOrder.startImplementByTime("2024-10-24 16:41:11", "2024-10-24 16:41:12");
|
// proxyPurchaseWarehousOrder.startImplementByTime("2024-10-24 16:41:11", "2024-10-24 16:41:12");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,6 @@ public class ProxyPurchaseWarehousWarehouseTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void startImplementByCode() {
|
public void startImplementByCode() {
|
||||||
proxyPurchaseWarehousWarehouse.startImplementByCode("LETS-RE2024102400000074");
|
proxyPurchaseWarehousWarehouse.startImplementByCode("LETS-RE2024103000000089");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue