|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.digiwin.athena.app.service.supplier; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.digiwin.app.service.DWEAIResult; |
|
|
|
import com.digiwin.athena.app.infra.entity.ItemSupplierEntity; |
|
|
|
import com.digiwin.athena.app.infra.service.SupplierService; |
|
|
@ -35,6 +36,6 @@ public class SupplierCreateEAIService extends AbsEAIService { |
|
|
|
EAIRequest eaiRequest = EAIRequest.build(messageBody); |
|
|
|
List<ItemSupplierEntity> supplierInfo = eaiRequest.getObject("item_supplier_info", SupplierUtil.LIST_ENTITY_SUPPLIER); |
|
|
|
supplierService.saveBatch(supplierInfo); |
|
|
|
return EAIUtil.buildEAIResult(new HashMap<>()); |
|
|
|
return EAIUtil.buildEAIResult(new JSONObject().fluentPut("item_supplier_info", supplierInfo)); |
|
|
|
} |
|
|
|
} |