|
@@ -3187,7 +3187,7 @@ func UpdateValsualVleft(patient_id int64, user_org_id int64) error {
|
3187
|
3187
|
|
3188
|
3188
|
func UpdateValusalMapArr(patient_id int64, user_org_id int64) error {
|
3189
|
3189
|
|
3190
|
|
- err := XTWriteDB().Where("patient_id =? and user_org_id =? and status=1", patient_id, user_org_id).Updates(map[string]interface{}{"status": 0}).Error
|
|
3190
|
+ err := XTWriteDB().Model(&models.XtDeviceValusalMapArr{}).Where("patient_id =? and user_org_id =? and status=1", patient_id, user_org_id).Updates(map[string]interface{}{"status": 0}).Error
|
3191
|
3191
|
return err
|
3192
|
3192
|
}
|
3193
|
3193
|
|
|
@@ -3199,7 +3199,7 @@ func CreateDeviceValusalMapArr(vrr models.XtDeviceValusalMapArr) error {
|
3199
|
3199
|
|
3200
|
3200
|
func UpdateDeviceValusalMapVrr(patient_id int64, user_org_id int64) error {
|
3201
|
3201
|
|
3202
|
|
- err := XTWriteDB().Where("patient_id = ? and user_org_id =? and status=1", patient_id, user_org_id).Updates(map[string]interface{}{"status": 0}).Error
|
|
3202
|
+ err := XTWriteDB().Model(&models.XtDeviceValusalMapVrr{}).Where("patient_id = ? and user_org_id =? and status=1", patient_id, user_org_id).Updates(map[string]interface{}{"status": 0}).Error
|
3203
|
3203
|
return err
|
3204
|
3204
|
}
|
3205
|
3205
|
|