Browse Source

提交代码

陈少旭 9 months ago
parent
commit
94fc6c2346
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/mobile_api_controllers/dialysis_api_controller.go

+ 1 - 1
controllers/mobile_api_controllers/dialysis_api_controller.go View File

@@ -8989,7 +8989,7 @@ func RemoveRepeatedCheckRecod(arr []*models.HisPrescriptionProject) (newArr []*m
8989 8989
 	for i := 0; i < len(arr); i++ {
8990 8990
 		repeat := false
8991 8991
 		for j := i + 1; j < len(arr); j++ {
8992
-			if arr[i].TeamId == arr[j].TeamId {
8992
+			if arr[i].TeamId == arr[j].TeamId && arr[i].PrescriptionId == arr[j].PrescriptionId {
8993 8993
 				repeat = true
8994 8994
 				break
8995 8995
 			}