Browse Source

11月8日库存管理

XMLWAN 3 years ago
parent
commit
004e2ae3f4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      controllers/doctors_api_controller.go

+ 3 - 3
controllers/doctors_api_controller.go View File

@@ -299,7 +299,7 @@ func (c *DoctorsApiController) UpdatedDryWeightData() {
299 299
 			DryWeight:      dry_weight,
300 300
 			AssessmentDate: dayTime.Unix(),
301 301
 		}
302
-		if orgid != 10016 || orgid != 9882 {
302
+		if orgid != 10016 && orgid != 9882 && orgid != 9671 {
303 303
 			errors := service.UpdateDialysisPrescription(patientid, orgid, dryweight, prescription)
304 304
 			fmt.Println(errors)
305 305
 		}
@@ -353,7 +353,6 @@ func (c *DoctorsApiController) UpdatedDryWeightData() {
353 353
 	nowTime := time.Now()
354 354
 	nowDay := nowTime.Format("2006-01-02")
355 355
 	dayTime, _ := time.ParseInLocation("2006-01-02 15:04:05", nowDay+" 00:00:00", loc)
356
-	fmt.Println("是错2323223322323232323", dayTime.Unix())
357 356
 	redis := service.RedisClient()
358 357
 
359 358
 	keyTwo := strconv.FormatInt(orgid, 10) + ":" + strconv.FormatInt(patientid, 10) + ":last_dry_weight"
@@ -363,7 +362,8 @@ func (c *DoctorsApiController) UpdatedDryWeightData() {
363 362
 		DryWeight:      dry_weight,
364 363
 		AssessmentDate: dayTime.Unix(),
365 364
 	}
366
-	if orgid != 10016 || orgid != 9882 {
365
+	if orgid != 10016 && orgid != 9882 && orgid != 9671 {
366
+
367 367
 		errors := service.UpdateDialysisPrescription(patientid, orgid, dryweight, prescription)
368 368
 		fmt.Println(errors)
369 369
 	}