文件名从 WMS/server/src/CMS.Plugin.HIAWms/Services/HIAWmsFlowService.cs 修改 |
| | |
| | | using CMS.Plugin.HIAWms.Abstractions; |
| | | using CMS.Plugin.HIAWms.Domain.WmsPlaces; |
| | | using CMS.Plugin.HIAWms.Domain.WmsContainers; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.Extensions.Logging; |
| | | using SYC.Flow.Kernel; |
| | |
| | | using var scope = _serviceProvider.CreateScope(); |
| | | var unitOfWorkManager = scope.ServiceProvider.GetRequiredService<IUnitOfWorkManager>(); |
| | | using var uow = unitOfWorkManager.Begin(requiresNew: true); |
| | | var wmsplaceRepository = scope.ServiceProvider.GetRequiredService<IWmsPlaceRepository>(); |
| | | var count = await wmsplaceRepository.GetCountAsync(); |
| | | var wmscontainerRepository = scope.ServiceProvider.GetRequiredService<IWmsContainerRepository>(); |
| | | var count = await wmscontainerRepository.GetCountAsync(); |
| | | |
| | | // 濡傛灉鏈夋洿鏂版暟鎹簱鎿嶄綔锛岄渶鎻愪氦淇濆瓨 |
| | | // await uow.SaveChangesAsync(); |