From f02ff6a60fa1f50fb7bcc2f9db91310d01394606 Mon Sep 17 00:00:00 2001 From: Janie <109517022+Janie06@users.noreply.github.com> Date: Fri, 3 Mar 2023 18:35:39 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20Upload=20Remittance=20API=20[WHY]=20?= =?UTF-8?q?=E9=96=8B=E7=99=BC=20ShowEasy=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上傳水單完成後。調整欄位 BookingOnline - PaymentStatus、PaymentDate Payment - PaymentStatus、ModifyDate --- EuroTran/EasyBL.WEBAPP/ShowEasy/BookingOnlineService.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/BookingOnlineService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/BookingOnlineService.cs index 57245dd..17b24ad 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/BookingOnlineService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/BookingOnlineService.cs @@ -189,12 +189,12 @@ namespace EasyBL.WEBAPP.SYS var sUploadTime = db.Updateable() //更新付款時間 + 付款狀態 - .UpdateColumns(x => new SETB_SAL_Payment { PaymentDate = DateTime.Now }) + .UpdateColumns(x => new SETB_SAL_Payment { PaymentDate = DateTime.Now, PaymentStatus = "Y" }) .Where(x => x.BookingID == BookingID) .ExecuteCommand(); var sBookingStatus = db.Updateable() //更新訂單狀態 - .UpdateColumns(x => new SETB_SAL_BookingOnline { PaymentStatus = "02" }) + .UpdateColumns(x => new SETB_SAL_BookingOnline { PaymentStatus = "02", ModifyDate = DateTime.Now }) .Where(x => x.BookingID == BookingID) .ExecuteCommand(); @@ -202,9 +202,6 @@ namespace EasyBL.WEBAPP.SYS .Where(x => x.BookingID == BookingID) .Single(); - sUser.PaymentStatus = "01"; - db.Insertable(sUser).ExecuteCommand(); - var sFilePath = db.Queryable() //從file表中取圖 .Where(x => x.ParentID == sUser.Remittance) .Single();