csx пре 4 година
родитељ
комит
4543216927
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      service/gdyb_service.go

+ 2 - 2
service/gdyb_service.go Прегледај датотеку

@@ -362,7 +362,7 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
362 362
 	for _, item := range hisPrescription {
363 363
 		if item.Type == 1 { //药品
364 364
 			for _, subItem := range item.HisDoctorAdviceInfo {
365
-				if len(subItem.MedListCodg) > 0 {
365
+				if len(subItem.BaseDrugLib.MedicalInsuranceNumber) > 0 {
366 366
 					//var randNum int
367 367
 					//randNum = rand.Intn(10000) + 1000
368 368
 					cus := &Custom{
@@ -382,7 +382,7 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
382 382
 			for _, subItem := range item.HisPrescriptionProject {
383 383
 				//var randNum int
384 384
 				//randNum = rand.Intn(10000) + 1000
385
-				if len(subItem.MedListCodg) > 0 {
385
+				if len(subItem.HisProject.MedicalCode) > 0 {
386 386
 
387 387
 					cus := &Custom{
388 388
 						DetItemFeeSumamt: fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count)),