| | |
| | | private readonly IApiInfoRepository _apiInfoRepository; |
| | | public InvokeERPService(IApiInfoRepository apiInfoRepository) |
| | | { |
| | | _apiInfoRepository= apiInfoRepository; |
| | | _apiInfoRepository = apiInfoRepository; |
| | | } |
| | | // å建ä¸ä¸ªä½¿ç¨å°é©¼å³°å½åæ³çåºåå设置 |
| | | JsonSerializerSettings settings = new JsonSerializerSettings |
| | |
| | | /// <returns></returns> |
| | | public string InvokeMatReceiveApi(ERPReceiveModel receiveModel) |
| | | { |
| | | Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x=>x.ApiCode==APIEnum.InvokeErpApi.ToString()); |
| | | Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.InvokeMatReceiveApi.ToString()); |
| | | ERPBaseModel<ERPReceiveModel> model = new ERPBaseModel<ERPReceiveModel>() |
| | | { |
| | | Data = receiveModel, |