|
@@ -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{
|