Browse Source

医保对接

csx 2 years ago
parent
commit
8b8a4baa53
1 changed files with 4 additions and 4 deletions
  1. 4 4
      controllers/his_api_controller.go

+ 4 - 4
controllers/his_api_controller.go View File

1001
 				if id > 0 {
1001
 				if id > 0 {
1002
 					new_prescription, err := service.GetPrescriptionById(id, adminInfo.CurrentOrgId)
1002
 					new_prescription, err := service.GetPrescriptionById(id, adminInfo.CurrentOrgId)
1003
 					if err != nil {
1003
 					if err != nil {
1004
-						if new_prescription.OrderStatus == 2 || new_prescription.OrderStatus == 4 {
1004
+						if new_prescription.OrderStatus == 4 {
1005
 							isCharge = true
1005
 							isCharge = true
1006
 						}
1006
 						}
1007
 					}
1007
 					}
2371
 	}
2371
 	}
2372
 
2372
 
2373
 	for _, item := range new_prescriptions {
2373
 	for _, item := range new_prescriptions {
2374
-		if item.OrderStatus == 2 || item.OrderStatus == 4 {
2374
+		if item.OrderStatus == 4 {
2375
 			isCharge = true
2375
 			isCharge = true
2376
 		}
2376
 		}
2377
 	}
2377
 	}
2647
 		}
2647
 		}
2648
 	}
2648
 	}
2649
 	for _, item := range new_prescriptions {
2649
 	for _, item := range new_prescriptions {
2650
-		if item.OrderStatus == 2 || item.OrderStatus == 4 {
2650
+		if item.OrderStatus == 4 {
2651
 			isCharge = true
2651
 			isCharge = true
2652
 		}
2652
 		}
2653
 	}
2653
 	}
2742
 		}
2742
 		}
2743
 	}
2743
 	}
2744
 	for _, item := range new_prescriptions {
2744
 	for _, item := range new_prescriptions {
2745
-		if item.OrderStatus == 2 || item.OrderStatus == 4 {
2745
+		if item.OrderStatus == 4 {
2746
 			isCharge = true
2746
 			isCharge = true
2747
 		}
2747
 		}
2748
 	}
2748
 	}