From 40fa6f86f5f7ac35206d6b953f4e5e82b2145ce9 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 11 八月 2023 14:23:52 +0800 Subject: [PATCH] 新增、修改销售明细时更改价税合计,应收金额,未开票金额 --- api/v1/timeSpent.go | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/api/v1/timeSpent.go b/api/v1/timeSpent.go index 0960310..c22f776 100644 --- a/api/v1/timeSpent.go +++ b/api/v1/timeSpent.go @@ -71,6 +71,10 @@ if !ok { return } + if params.Id == 0 { + ctx.Fail(ecode.ParamsErr) + } + params.TimeSpent.Id = params.Id errCode := service.NewTimeSpentService().UpdateTimeSpent(¶ms.TimeSpent) if errCode != ecode.OK { -- Gitblit v1.8.0