Browse Source

医嘱需求

XMLWAN 4 years ago
parent
commit
8fe1f107a4

+ 1 - 1
conf/app.conf View File

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 View File

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{