From 67f3795ea8eff9856ed2d91b01a63adf05ab9dbc Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 08 一月 2024 14:38:40 +0800
Subject: [PATCH] 省市初始化数据

---
 api/v1/priorityLevel.go |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/api/v1/priorityLevel.go b/api/v1/priorityLevel.go
index 18ddfd4..8017e32 100644
--- a/api/v1/priorityLevel.go
+++ b/api/v1/priorityLevel.go
@@ -71,6 +71,10 @@
 	if !ok {
 		return
 	}
+    if params.Id == 0 {
+        ctx.Fail(ecode.ParamsErr)
+    }
+    params.PriorityLevel.Id = params.Id
 
 	errCode := service.NewPriorityLevelService().UpdatePriorityLevel(&params.PriorityLevel)
 	if errCode != ecode.OK {

--
Gitblit v1.8.0