Browse Source

create接口增加回参

master
郑贵龙 1 year ago
parent
commit
093e741160
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/supplier/SupplierCreateEAIService.java

+ 2
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/supplier/SupplierCreateEAIService.java View File

@ -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));
}
}

Loading…
Cancel
Save