From 4b189b378d142a028badf416078b18c722e043d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=86=9B?= <2357729423@qq.com>
Date: Thu, 21 Mar 2024 11:34:06 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8Fupsert=E8=BD=A8=E8=BF=B9?=
=?UTF-8?q?=E4=B9=9F=E5=8C=BA=E5=88=86isAdd?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Dtos/ProvideServices/BatchUpsertTrackInput.cs | 5 +++++
.../Services/ProvideServices/TrackService.cs | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/BatchUpsertTrackInput.cs b/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/BatchUpsertTrackInput.cs
index fa5d3880..1c90e3a9 100644
--- a/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/BatchUpsertTrackInput.cs
+++ b/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/BatchUpsertTrackInput.cs
@@ -4,6 +4,11 @@ namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
public class BatchUpsertTrackInput : OrderNosInfo
{
+ ///
+ /// true新增,false更新
+ ///
+ public bool IsAdd { get; set; }
+
///
/// 轨迹内容代码
///
diff --git a/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs b/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs
index b45d9313..3e03dc21 100644
--- a/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs
+++ b/src/SJZY.Track.Application/Services/ProvideServices/TrackService.cs
@@ -86,6 +86,7 @@ public partial class TrackService : ApplicationService, ITrackService
// 新增/更新轨迹
var @event = new TrackUpsertEvent
{
+ IsAdd = input.IsAdd,
TrackCode = input.TrackCode,
TrackPlace = input.TrackPlace,
TrackTime = input.TrackTime,