erp客商主、物料查询没数据直接返回
This commit is contained in:
@@ -140,7 +140,7 @@ public class ErpCustomerServiceImpl implements ErpCustomerService {
|
||||
dataArrayALL.addAll(dataArray);
|
||||
}
|
||||
if (dataArrayALL.isEmpty()) {
|
||||
throw exception(ERP_CUSTOMER_NOT_EXISTS);
|
||||
return;
|
||||
}
|
||||
|
||||
// 2. 处理数据,区分新增和更新
|
||||
|
||||
@@ -200,8 +200,8 @@ public class ErpMaterialServiceImpl implements ErpMaterialService {
|
||||
// 1. 调用ERP接口获取数据
|
||||
HashMap<String, Object> dataFromERP = erpConfig.fetchDataFromERP(funcnr, req);
|
||||
JSONArray dataArray = (JSONArray) dataFromERP.get("E_RESP");
|
||||
if (CollUtil.isEmpty(dataArray)) {
|
||||
throw exception(ERP_MATERIAL_NOT_EXISTS);
|
||||
if (dataArray == null || dataArray.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 2. 处理公司数据,区分新增和更新
|
||||
|
||||
Reference in New Issue
Block a user