1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
| using WIDESEA_Common.LocationEnum;
| using WIDESEA_Common.StockEnum;
| using WIDESEA_IRecordService;
| using WIDESEA_Model.Models;
|
| namespace WIDESEA_RecordService
| {
| /// <summary>
| /// 记录服务聚合实现类
| /// </summary>
| public class RecordService : IRecordService
| {
| /// <summary>
| /// 货位状态变更记录服务
| /// </summary>
| public ILocationStatusChangeRecordService LocationStatusChangeRecordService { get; }
|
| /// <summary>
| /// 库存数量变更记录服务
| /// </summary>
| public IStockQuantityChangeRecordService StockQuantityChangeRecordService { get; }
|
| /// <summary>
| /// 构造函数
| /// </summary>
| public RecordService(
| ILocationStatusChangeRecordService locationStatusChangeRecordService,
| IStockQuantityChangeRecordService stockQuantityChangeRecordService)
| {
| LocationStatusChangeRecordService = locationStatusChangeRecordService;
| StockQuantityChangeRecordService = stockQuantityChangeRecordService;
| }
|
| /// <summary>
| /// 新增货位状态变更记录
| /// </summary>
| public Task<bool> AddLocationChangeRecordAsync(
| Dt_LocationInfo beforeLocation,
| Dt_LocationInfo afterLocation,
| LocationChangeType changeType,
| int? taskNum = null,
| string? orderNo = null,
| int? orderId = null,
| string? remark = null)
| {
| return LocationStatusChangeRecordService.AddChangeRecordAsync(
| beforeLocation,
| afterLocation,
| changeType,
| taskNum,
| orderNo,
| orderId,
| remark);
| }
|
| /// <summary>
| /// 新增库存变更记录
| /// </summary>
| public Task<bool> AddStockChangeRecordAsync(
| Dt_StockInfo? beforeStock,
| Dt_StockInfo? afterStock,
| StockChangeTypeEnum changeType,
| int? taskNum = null,
| string? orderNo = null,
| string? remark = null)
| {
| return StockQuantityChangeRecordService.AddChangeRecordAsync(
| beforeStock,
| afterStock,
| changeType,
| taskNum,
| orderNo,
| remark);
| }
| }
| }
|
|