修改调用erp方法参数错误问题
This commit is contained in:
@@ -76,11 +76,8 @@ public class ErpBillMainServiceImpl implements ErpBillMainService {
|
|||||||
|
|
||||||
// 抽取重复代码:提交 ERP 并记录日志
|
// 抽取重复代码:提交 ERP 并记录日志
|
||||||
private String submitToErp(ErpSubmitReqDTO reqDTO) {
|
private String submitToErp(ErpSubmitReqDTO reqDTO) {
|
||||||
ResponseEntity<String> response = erpExternalApi.submitDataToErp(reqDTO);
|
HashMap<String, String> response = erpExternalApi.submitDataToErp(reqDTO);
|
||||||
if (response.getStatusCode() == HttpStatus.OK) {
|
return response.get("data");
|
||||||
log.info("ERP数据提交成功");
|
|
||||||
}
|
|
||||||
return response.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
Reference in New Issue
Block a user