20261008-ide1.0发布 #1

Merged
zzh merged 42 commits from test into master 2026-10-08 09:18:00 +08:00
Showing only changes of commit c2ac20df04 - Show all commits

View File

@ -337,7 +337,11 @@ public partial class ServiceChannelService
? await BuildPricePublishSnapshotAsync(serviceChannelId) ? await BuildPricePublishSnapshotAsync(serviceChannelId)
: await BuildRulesPublishSnapshotAsync(serviceChannelId); : await BuildRulesPublishSnapshotAsync(serviceChannelId);
// Content 中保存完整快照,回滚时直接从快照恢复。 var content = operatorType == PriceOperatorType
? OmsDocHelper.CanonicalizeChannelPriceSnapshotJson(snapshot)
: OmsDocHelper.SerializeSnapshotJson(snapshot);
// Content 存 canonical 形态,与 sync-status 对比口径一致。
await ServiceChannelRepository.InsertPublishRecordAsync(new ServiceChannelPublishRecord await ServiceChannelRepository.InsertPublishRecordAsync(new ServiceChannelPublishRecord
{ {
ServiceChannelId = serviceChannelId, ServiceChannelId = serviceChannelId,
@ -347,7 +351,7 @@ public partial class ServiceChannelService
PublishUser = string.IsNullOrWhiteSpace(CurrentUser.UserName) ? CurrentUser.GetId<int>().ToString() : CurrentUser.UserName!, PublishUser = string.IsNullOrWhiteSpace(CurrentUser.UserName) ? CurrentUser.GetId<int>().ToString() : CurrentUser.UserName!,
PublishTime = DateTime.Now, PublishTime = DateTime.Now,
Description = description, Description = description,
Content = OmsDocHelper.SerializeSnapshotJson(snapshot) Content = content
}); });
} }