瀏覽代碼

医嘱需求

XMLWAN 4 年之前
父節點
當前提交
8fe1f107a4
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      conf/app.conf
  2. 2 0
      controllers/new_mobile_api_controllers/new_dialysis_api_controller.go

+ 1 - 1
conf/app.conf 查看文件

@@ -1,5 +1,5 @@
1 1
 appname = 血透
2
-httpport = 9529
2
+httpport = 9531
3 3
 runmode = dev
4 4
 
5 5
 

+ 2 - 0
controllers/new_mobile_api_controllers/new_dialysis_api_controller.go 查看文件

@@ -2353,6 +2353,7 @@ func (this *NewDialysisApiController) UpdateGroup() {
2353 2353
 	name := this.GetString("name")
2354 2354
 	byName, _ := service.GetGroupByNameOne(name, orgid)
2355 2355
 	if byName.ID > 0 && byName.ID != id {
2356
+		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
2356 2357
 		return
2357 2358
 	}
2358 2359
 	group := models.DeviceGroup{Name: name}
@@ -2397,6 +2398,7 @@ func (this *NewDialysisApiController) UpdatedBed() {
2397 2398
 	BedName, _ := service.GetBedByNameOne(name, orgId)
2398 2399
 	fmt.Println("-----", BedName.ID)
2399 2400
 	if BedName.ID > 0 && BedName.ID != id {
2401
+		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
2400 2402
 		return
2401 2403
 	}
2402 2404
 	number := models.DeviceNumber{