28169 hace 1 año
padre
commit
3e98749541
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      conf/app.conf
  2. 2 2
      service/patient_service.go

+ 1 - 1
conf/app.conf Ver fichero

@@ -1,6 +1,6 @@
1 1
 appname = 血透
2 2
 httpport = 9531
3
-runmode = prod
3
+runmode = dev
4 4
 #dev/prod
5 5
 
6 6
 #

+ 2 - 2
service/patient_service.go Ver fichero

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