erp分页查询优化

This commit is contained in:
liss
2025-10-11 11:34:18 +08:00
parent 7fd3d4404c
commit 5923bfeb17
3 changed files with 7 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
package com.zt.plat.module.erp.api;
import com.zt.plat.module.erp.api.dto.ErpQueryReqDTO;
import com.zt.plat.module.erp.api.dto.ErpSubmitReqDTO;
import com.zt.plat.module.erp.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
@@ -25,6 +26,6 @@ public interface ErpExternalApi {
@GetMapping(PREFIX + "/query")
@Operation(summary = "erp数据查询")
HashMap<String, Object> queryDataToErp(@Valid @RequestBody String funcnr, Map<String, Object> req);
HashMap<String, Object> queryDataToErp(@Valid @RequestBody ErpQueryReqDTO reqDTO);
}

View File

@@ -12,21 +12,10 @@ public class ErpQueryReqDTO {
* 调用ERP接口查询erp数据
*
* 请求参数说明:
* "uuid": 请求uuid必须
* "sapsys": SAP系统ID, 必须
* "srcsys": 源调用系统ID必须
* "funcnr": 接口编号必须参见RFC功能列表可调用接口编号范围051-900
* "bskey": 调用系统业务单据编号,必须,在外部系统唯一,用于关联
* "usrid": 外部系统用户id
* "usrnm": 外部系统用户名
* "sign": 签名uuid+srcsys+密码MD5 32位小写签名密码另行约定
* "funcnr": 接口编号必须参见RFC功能列表可调用接口编号范围001-021
* "req": {具体参数参见RFC功能列表}
*/
private String funcnr;
private String bskey;
private String usrid;
private String usrnm;
private String sign;
private Map<String, Object> req;
}

View File

@@ -1,5 +1,6 @@
package com.zt.plat.module.erp.api;
import com.zt.plat.module.erp.api.dto.ErpQueryReqDTO;
import com.zt.plat.module.erp.api.dto.ErpSubmitReqDTO;
import com.zt.plat.module.erp.utils.ErpConfig;
import jakarta.annotation.Resource;
@@ -28,7 +29,9 @@ public class ErpExternalApiImpl implements ErpExternalApi {
}
@Override
public HashMap<String, Object> queryDataToErp(String funcnr, Map<String, Object> req) {
public HashMap<String, Object> queryDataToErp(ErpQueryReqDTO reqDTO) {
String funcnr = reqDTO.getFuncnr();
Map<String, Object> req = new HashMap<>();
return erpConfig.fetchDataFromERP(funcnr, req);
}
}