refactor(buildpackage): 优化委外加工入库异常提示信息

- 修改了 ConsignmachiningIn 类中的错误提示信息,使其更加具体和友好
- 更新了测试用例中的订单编号和时间范围
This commit is contained in:
liuy 2024-11-05 15:29:42 +08:00
parent d282ed1f6a
commit 2fd90e74af
3 changed files with 5 additions and 5 deletions

View File

@ -622,9 +622,9 @@ public class ConsignmachiningIn extends PluginBaseEntity {
bdCumandocEntity1.setPkCubasdoc(fuzzyQueryCustomers.getPkCubasdoc());
List<BdCumandocEntity> bdCumandocEntityList = iBdCumandocDao.query(bdCumandocEntity1);
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) {
Assert.state(false, "根据客商基本档案主键{},匹配到多个客商管理档案", fuzzyQueryCustomers.getPkCubasdoc());
Assert.state(false, "客商:{} 公司:{} 存在多个对应关系!", fuzzyQueryCustomers.getCustshortname(), bdCorpEntityList.get(0).getUnitname());
}
//2024年8月25日 10:09:20 委外入库公司取委外订单上的公司已经和妮姐确认没有必要通过O的公司转换因为不存在跨组织的问题

View File

@ -27,9 +27,9 @@ public class ProxyPurchaseWarehousOrderTest {
@Test
public void startImplementByCode() {
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) {
e.printStackTrace();
}

View File

@ -26,6 +26,6 @@ public class ProxyPurchaseWarehousWarehouseTest {
@Test
public void startImplementByCode() {
proxyPurchaseWarehousWarehouse.startImplementByCode("LETS-RE2024102400000074");
proxyPurchaseWarehousWarehouse.startImplementByCode("LETS-RE2024103000000089");
}
}