浏览代码

医嘱需求

XMLWAN 5 年前
父节点
当前提交
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
 appname = 血透
1
 appname = 血透
2
-httpport = 9529
2
+httpport = 9531
3
 runmode = dev
3
 runmode = dev
4
 
4
 
5
 
5
 

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

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