陈少旭 1 month ago
parent
commit
10781ad539
3 changed files with 270 additions and 294 deletions
  1. 10 10
      controllers/sg/his_api_controller.go
  2. 179 228
      models/his_models.go
  3. 81 56
      service/gdyb_service.go

+ 10 - 10
controllers/sg/his_api_controller.go View File

26
 	"github.com/shopspring/decimal"
26
 	"github.com/shopspring/decimal"
27
 	"io"
27
 	"io"
28
 	"io/ioutil"
28
 	"io/ioutil"
29
-	//"math"
29
+
30
 	"math/rand"
30
 	"math/rand"
31
 	"net/http"
31
 	"net/http"
32
 	"net/url"
32
 	"net/url"
38
 	"syscall"
38
 	"syscall"
39
 	"time"
39
 	"time"
40
 	"unsafe"
40
 	"unsafe"
41
-	"github.com/go-ole/go-ole"
42
-
43
 )
41
 )
44
 
42
 
45
 type HisApiController struct {
43
 type HisApiController struct {
2265
 	}
2263
 	}
2266
 
2264
 
2267
 }
2265
 }
2266
+
2268
 //func (c *HisApiController) DeleteXSandBGTwo() {
2267
 //func (c *HisApiController) DeleteXSandBGTwo() {
2269
 //	patient_id, _ := c.GetInt64("patient_id")
2268
 //	patient_id, _ := c.GetInt64("patient_id")
2270
 //	admin_user_id, _ := c.GetInt64("admin_user_id")
2269
 //	admin_user_id, _ := c.GetInt64("admin_user_id")
4616
 	//id_arr := strings.Split(ids, ",")
4615
 	//id_arr := strings.Split(ids, ",")
4617
 	now := time.Now()
4616
 	now := time.Now()
4618
 	timestamp := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.Local).Unix()
4617
 	timestamp := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.Local).Unix()
4619
-	flows, _ := service.GetNewDrugFlowInforTen(timestamp,c.GetAdminUserInfo().CurrentOrgId)
4618
+	flows, _ := service.GetNewDrugFlowInforTen(timestamp, c.GetAdminUserInfo().CurrentOrgId)
4620
 	admin_user_id, _ := c.GetInt64("admin_user_id")
4619
 	admin_user_id, _ := c.GetInt64("admin_user_id")
4621
 	roles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
4620
 	roles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
4622
 	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
4621
 	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
4624
 	for _, item := range flows {
4623
 	for _, item := range flows {
4625
 		var res3 ResultSix
4624
 		var res3 ResultSix
4626
 		if item.ConsumableType == 3 { //3为自动出库 7为自动退库
4625
 		if item.ConsumableType == 3 { //3为自动出库 7为自动退库
4627
-			if item.HisDoctorAdviceInfo.PrescriptionId == 0{
4626
+			if item.HisDoctorAdviceInfo.PrescriptionId == 0 {
4628
 				continue
4627
 				continue
4629
 			}
4628
 			}
4630
-			if item.HisDoctorAdviceInfo.PrescriptionId == 0{
4629
+			if item.HisDoctorAdviceInfo.PrescriptionId == 0 {
4631
 				continue
4630
 				continue
4632
 			}
4631
 			}
4633
 			prescription := service.GetHisPrescriptionByID(item.HisDoctorAdviceInfo.PrescriptionId)
4632
 			prescription := service.GetHisPrescriptionByID(item.HisDoctorAdviceInfo.PrescriptionId)
5065
 	struct3502.FixmedinsCode = miConfig.Code
5064
 	struct3502.FixmedinsCode = miConfig.Code
5066
 	struct3502.Code = miConfig.Code
5065
 	struct3502.Code = miConfig.Code
5067
 
5066
 
5067
+	struct3502.DrugTracCodg = drug.HisDoctorAdviceInfo.DrugCode
5068
+
5068
 	struct3502.Opter = role.UserName
5069
 	struct3502.Opter = role.UserName
5069
 	struct3502.RxFlag = "1"
5070
 	struct3502.RxFlag = "1"
5070
 	struct3502.InvChgTime = time.Now().Format("2006-01-02")
5071
 	struct3502.InvChgTime = time.Now().Format("2006-01-02")
5095
 		result1, result2 := service.Gzyb3502(struct3502, struct3502.SecretKey)
5096
 		result1, result2 := service.Gzyb3502(struct3502, struct3502.SecretKey)
5096
 		return result1, result2
5097
 		return result1, result2
5097
 
5098
 
5098
-	}else if strings.HasPrefix(miConfig.MdtrtareaAdmvs[0:3], "440")  {
5099
+	} else if strings.HasPrefix(miConfig.MdtrtareaAdmvs[0:3], "440") {
5099
 		result1, result2 := service.Gdyb3502(struct3502, struct3502.SecretKey)
5100
 		result1, result2 := service.Gdyb3502(struct3502, struct3502.SecretKey)
5100
 		return result1, result2
5101
 		return result1, result2
5101
 	} else {
5102
 	} else {
5183
 	struct3505.PsnNo = order.PsnNo
5184
 	struct3505.PsnNo = order.PsnNo
5184
 	struct3505.PsnName = order.PsnName
5185
 	struct3505.PsnName = order.PsnName
5185
 
5186
 
5186
-
5187
 	struct3505.Url = miConfig.Url
5187
 	struct3505.Url = miConfig.Url
5188
 	struct3505.AppId = miConfig.Cainfo
5188
 	struct3505.AppId = miConfig.Cainfo
5189
 	struct3505.AppSecret = miConfig.AppSecret
5189
 	struct3505.AppSecret = miConfig.AppSecret
5206
 	struct3505.MdtrtareaAdmvs = miConfig.MdtrtareaAdmvs
5206
 	struct3505.MdtrtareaAdmvs = miConfig.MdtrtareaAdmvs
5207
 	struct3505.InsuplcAdmdvs = miConfig.InsuplcAdmdvs
5207
 	struct3505.InsuplcAdmdvs = miConfig.InsuplcAdmdvs
5208
 
5208
 
5209
-	struct3505.DrugTracCodg = drug.DrugCode
5209
+	struct3505.DrugTracCodg = drug.HisDoctorAdviceInfo.DrugCode
5210
 
5210
 
5211
 	if miConfig.MdtrtareaAdmvs == "350500" {
5211
 	if miConfig.MdtrtareaAdmvs == "350500" {
5212
 		result1, result2, _ := service.FJyb3505(struct3505)
5212
 		result1, result2, _ := service.FJyb3505(struct3505)
5214
 	} else if miConfig.MdtrtareaAdmvs == "440100" {
5214
 	} else if miConfig.MdtrtareaAdmvs == "440100" {
5215
 		result1, result2 := service.Gzyb3505(struct3505, struct3505.SecretKey)
5215
 		result1, result2 := service.Gzyb3505(struct3505, struct3505.SecretKey)
5216
 		return result1, result2
5216
 		return result1, result2
5217
-	}else if strings.HasPrefix(miConfig.MdtrtareaAdmvs[0:3], "440")  {
5217
+	} else if strings.HasPrefix(miConfig.MdtrtareaAdmvs[0:3], "440") {
5218
 		result1, result2 := service.Gdyb3505(struct3505, struct3505.SecretKey)
5218
 		result1, result2 := service.Gdyb3505(struct3505, struct3505.SecretKey)
5219
 		return result1, result2
5219
 		return result1, result2
5220
 	} else {
5220
 	} else {

+ 179 - 228
models/his_models.go View File

40
 	DeliveryWay               string  `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
40
 	DeliveryWay               string  `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
41
 	NumberDays                string  `gorm:"column:number_days" json:"number_days" form:"number_days"`
41
 	NumberDays                string  `gorm:"column:number_days" json:"number_days" form:"number_days"`
42
 	Total                     string  `gorm:"column:total" json:"total" form:"total"`
42
 	Total                     string  `gorm:"column:total" json:"total" form:"total"`
43
-	Vaf14             string    `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
44
-
43
+	Vaf14                     string  `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
45
 }
44
 }
46
 
45
 
47
 func (XtHisProject) TableName() string {
46
 func (XtHisProject) TableName() string {
62
 	CreatedTime int64   `gorm:"column:created_time" json:"created_time" form:"created_time"`
61
 	CreatedTime int64   `gorm:"column:created_time" json:"created_time" form:"created_time"`
63
 	UpdatedTime int64   `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
62
 	UpdatedTime int64   `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
64
 	ProjectId   string  `gorm:"column:project_id" json:"project_id" form:"project_id"`
63
 	ProjectId   string  `gorm:"column:project_id" json:"project_id" form:"project_id"`
65
-	Bbx01	string  `gorm:"column:bbx01" json:"bbx01" form:"bbx01"`
64
+	Bbx01       string  `gorm:"column:bbx01" json:"bbx01" form:"bbx01"`
66
 }
65
 }
67
 
66
 
68
 func (XtHisProjectTeam) TableName() string {
67
 func (XtHisProjectTeam) TableName() string {
235
 	FeedetlSn             string  `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
234
 	FeedetlSn             string  `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
236
 	Day                   int64   `gorm:"column:day" json:"day" form:"day"`
235
 	Day                   int64   `gorm:"column:day" json:"day" form:"day"`
237
 	HospApprFlag          int64   `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
236
 	HospApprFlag          int64   `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
238
-	DrugWayCount               string  `gorm:"column:drug_way_count" json:"drug_way_count" form:"drug_way_count"`
239
-
240
-	NewGroupno               string   `gorm:"column:-" json:"new_groupno" form:"new_groupno"`
241
-	Newfn               string   `gorm:"column:-" json:"newfn" form:"newfn"`
237
+	DrugWayCount          string  `gorm:"column:drug_way_count" json:"drug_way_count" form:"drug_way_count"`
238
+	DrugCode              string  `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
242
 
239
 
240
+	NewGroupno string `gorm:"column:-" json:"new_groupno" form:"new_groupno"`
241
+	Newfn      string `gorm:"column:-" json:"newfn" form:"newfn"`
243
 
242
 
244
 	BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
243
 	BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
245
 }
244
 }
314
 	DoctorId           int64           `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
313
 	DoctorId           int64           `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
315
 	XtHisDepartment    XtHisDepartment `gorm:"ForeignKey:ID;AssociationForeignKey:Departments" json:"department"`
314
 	XtHisDepartment    XtHisDepartment `gorm:"ForeignKey:ID;AssociationForeignKey:Departments" json:"department"`
316
 	SickType           int64           `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
315
 	SickType           int64           `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
317
-
318
-
319
-
320
 }
316
 }
321
 
317
 
322
 func (HisPrescriptionInfo) TableName() string {
318
 func (HisPrescriptionInfo) TableName() string {
324
 }
320
 }
325
 
321
 
326
 type HisPrescription struct {
322
 type HisPrescription struct {
327
-	ID                     int64                     `gorm:"column:id" json:"id" form:"id"`
328
-	UserOrgId              int64                     `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
329
-	RecordDate             int64                     `gorm:"column:record_date" json:"record_date" form:"record_date"`
330
-	PatientId              int64                     `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
331
-	HisPatientId           int64                     `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
332
-	Status                 int64                     `gorm:"column:status" json:"status" form:"status"`
333
-	Ctime                  int64                     `gorm:"column:ctime" json:"ctime" form:"ctime"`
334
-	Mtime                  int64                     `gorm:"column:mtime" json:"mtime" form:"mtime"`
335
-	Number                 string                    `gorm:"column:number" json:"number" form:"number"`
336
-	Type                   int64                     `gorm:"column:type" json:"type" form:"type"`
337
-	Doctor                 string                    `gorm:"column:doctor" json:"doctor" form:"doctor"`
338
-	Creator                int64                     `gorm:"column:creator" json:"creator" form:"creator"`
339
-	Modifier               int64                     `gorm:"column:modifier" json:"modifier" form:"modifier"`
340
-	OrderStatus            int64                     `gorm:"column:order_status" json:"order_status" form:"order_status"`
341
-	PreTime                int64                     `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
342
-	BatchNumber            string                    `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
343
-	PrescriptionNumber     string                    `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
344
-	Patients               Patients                  `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
345
-	HisPatient             VMHisPatient              `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
323
+	ID                     int64                    `gorm:"column:id" json:"id" form:"id"`
324
+	UserOrgId              int64                    `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
325
+	RecordDate             int64                    `gorm:"column:record_date" json:"record_date" form:"record_date"`
326
+	PatientId              int64                    `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
327
+	HisPatientId           int64                    `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
328
+	Status                 int64                    `gorm:"column:status" json:"status" form:"status"`
329
+	Ctime                  int64                    `gorm:"column:ctime" json:"ctime" form:"ctime"`
330
+	Mtime                  int64                    `gorm:"column:mtime" json:"mtime" form:"mtime"`
331
+	Number                 string                   `gorm:"column:number" json:"number" form:"number"`
332
+	Type                   int64                    `gorm:"column:type" json:"type" form:"type"`
333
+	Doctor                 string                   `gorm:"column:doctor" json:"doctor" form:"doctor"`
334
+	Creator                int64                    `gorm:"column:creator" json:"creator" form:"creator"`
335
+	Modifier               int64                    `gorm:"column:modifier" json:"modifier" form:"modifier"`
336
+	OrderStatus            int64                    `gorm:"column:order_status" json:"order_status" form:"order_status"`
337
+	PreTime                int64                    `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
338
+	BatchNumber            string                   `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
339
+	PrescriptionNumber     string                   `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
340
+	Patients               Patients                 `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
341
+	HisPatient             VMHisPatient             `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
346
 	HisDoctorAdviceInfo    []HisDoctorAdviceInfo    `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
342
 	HisDoctorAdviceInfo    []HisDoctorAdviceInfo    `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
347
 	HisPrescriptionProject []HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
343
 	HisPrescriptionProject []HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
348
 	HisAdditionalCharge    []HisAdditionalCharge    `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
344
 	HisAdditionalCharge    []HisAdditionalCharge    `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
349
-	VMHisPrescriptionInfo  HisPrescriptionInfo       `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,RecordDate" json:"info"`
350
-	MedType                string                    `gorm:"column:med_type" json:"med_type" form:"med_type"`
351
-	Cbm01                string                    `gorm:"column:cbm01" json:"cbm01" form:"cbm01"`
352
-	Cbm07                string                    `gorm:"column:cbm07" json:"cbm07" form:"cbm07"`
353
-
354
-
355
-
345
+	VMHisPrescriptionInfo  HisPrescriptionInfo      `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,RecordDate" json:"info"`
346
+	MedType                string                   `gorm:"column:med_type" json:"med_type" form:"med_type"`
347
+	Cbm01                  string                   `gorm:"column:cbm01" json:"cbm01" form:"cbm01"`
348
+	Cbm07                  string                   `gorm:"column:cbm07" json:"cbm07" form:"cbm07"`
356
 }
349
 }
357
 
350
 
358
 func (HisPrescription) TableName() string {
351
 func (HisPrescription) TableName() string {
388
 	Status                    int64   `gorm:"column:status" json:"status" form:"status"`
381
 	Status                    int64   `gorm:"column:status" json:"status" form:"status"`
389
 	CreatedTime               int64   `gorm:"column:created_time" json:"created_time" form:"created_time"`
382
 	CreatedTime               int64   `gorm:"column:created_time" json:"created_time" form:"created_time"`
390
 	UpdatedTime               int64   `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
383
 	UpdatedTime               int64   `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
391
-	ZuobiaoId             string    `gorm:"column:zuobiao_id" json:"zuobiao_id" form:"zuobiao_id"`
392
-	Bck01b	 string    `gorm:"column:bck01b" json:"bck01b" form:"bck01b"`
393
-	Bby01             string    `gorm:"column:bby01" json:"bby01" form:"bby01"`
394
-	Vaf14             string    `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
395
-
396
-
384
+	ZuobiaoId                 string  `gorm:"column:zuobiao_id" json:"zuobiao_id" form:"zuobiao_id"`
385
+	Bck01b                    string  `gorm:"column:bck01b" json:"bck01b" form:"bck01b"`
386
+	Bby01                     string  `gorm:"column:bby01" json:"bby01" form:"bby01"`
387
+	Vaf14                     string  `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
397
 }
388
 }
398
 
389
 
399
 func (HisProject) TableName() string {
390
 func (HisProject) TableName() string {
515
 }
506
 }
516
 
507
 
517
 type HisPrescriptionProject struct {
508
 type HisPrescriptionProject struct {
518
-	ID                 int64            `gorm:"column:id" json:"id" form:"id"`
519
-	ProjectId          int64            `gorm:"column:project_id" json:"project_id" form:"project_id"`
520
-	Price              float64          `gorm:"column:price" json:"price" form:"price"`
521
-	UserOrgId          int64            `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
522
-	Status             int64            `gorm:"column:status" json:"status" form:"status"`
523
-	Ctime              int64            `gorm:"column:ctime" json:"ctime" form:"ctime"`
524
-	Mtime              int64            `gorm:"column:mtime" json:"mtime" form:"mtime"`
525
-	PatientId          int64            `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
526
-	HisPatientId       int64            `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
527
-	RecordDate         int64            `gorm:"column:record_date" json:"record_date" form:"record_date"`
528
-	PrescriptionId     int64            `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
529
-	Count              string           `gorm:"column:count" json:"count" form:"count"`
530
-	FeedetlSn          string           `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
531
-	MedListCodg        string           `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
532
-	SingleDose         string           `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
533
-	DeliveryWay        string           `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
534
-	ExecutionFrequency string           `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
535
-	Day                string           `gorm:"column:day" json:"day" form:"day"`
536
-	StartTime                int64           `gorm:"column:start_time" json:"start_time" form:"start_time"`
537
-
538
-
539
-	HisProject         HisProject       `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
540
-	GoodInfo           GoodInfo         `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
541
-	Type               int64            `gorm:"column:type" json:"type" form:"type"`
542
-	Remark             string           `gorm:"column:remark" json:"remark" form:"remark"`
543
-	Unit               string           `gorm:"column:unit" json:"unit" form:"unit"`
544
-	TeamId             int64            `gorm:"column:team_id" json:"team_id" form:"team_id"`
545
-	XtHisProjectTeam   XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
546
-	IsCheckTeam        int64            `gorm:"-" json:"is_check_team" form:"is_check_team"`
547
-	ExecutionTime      int64            `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
509
+	ID                 int64   `gorm:"column:id" json:"id" form:"id"`
510
+	ProjectId          int64   `gorm:"column:project_id" json:"project_id" form:"project_id"`
511
+	Price              float64 `gorm:"column:price" json:"price" form:"price"`
512
+	UserOrgId          int64   `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
513
+	Status             int64   `gorm:"column:status" json:"status" form:"status"`
514
+	Ctime              int64   `gorm:"column:ctime" json:"ctime" form:"ctime"`
515
+	Mtime              int64   `gorm:"column:mtime" json:"mtime" form:"mtime"`
516
+	PatientId          int64   `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
517
+	HisPatientId       int64   `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
518
+	RecordDate         int64   `gorm:"column:record_date" json:"record_date" form:"record_date"`
519
+	PrescriptionId     int64   `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
520
+	Count              string  `gorm:"column:count" json:"count" form:"count"`
521
+	FeedetlSn          string  `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
522
+	MedListCodg        string  `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
523
+	SingleDose         string  `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
524
+	DeliveryWay        string  `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
525
+	ExecutionFrequency string  `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
526
+	Day                string  `gorm:"column:day" json:"day" form:"day"`
527
+	StartTime          int64   `gorm:"column:start_time" json:"start_time" form:"start_time"`
528
+
529
+	HisProject       HisProject       `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
530
+	GoodInfo         GoodInfo         `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
531
+	Type             int64            `gorm:"column:type" json:"type" form:"type"`
532
+	Remark           string           `gorm:"column:remark" json:"remark" form:"remark"`
533
+	Unit             string           `gorm:"column:unit" json:"unit" form:"unit"`
534
+	TeamId           int64            `gorm:"column:team_id" json:"team_id" form:"team_id"`
535
+	XtHisProjectTeam XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
536
+	IsCheckTeam      int64            `gorm:"-" json:"is_check_team" form:"is_check_team"`
537
+	ExecutionTime    int64            `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
548
 }
538
 }
549
 
539
 
550
 func (HisPrescriptionProject) TableName() string {
540
 func (HisPrescriptionProject) TableName() string {
750
 	AliPay       string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
740
 	AliPay       string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
751
 	JifenPay     string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
741
 	JifenPay     string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
752
 
742
 
753
-	IsUploadDiagnose  int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
754
-	IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
755
-	IsUploadSuccess   int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
756
-	SickName   string `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
743
+	IsUploadDiagnose  int64  `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
744
+	IsUploadOrderInfo int64  `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
745
+	IsUploadSuccess   int64  `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
746
+	SickName          string `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
757
 
747
 
758
-	FaPiaoSn     string `gorm:"column:fa_piao_sn" json:"fa_piao_sn" form:"fa_piao_sn"`
748
+	FaPiaoSn string `gorm:"column:fa_piao_sn" json:"fa_piao_sn" form:"fa_piao_sn"`
759
 }
749
 }
760
 
750
 
761
 func (HisOrder) TableName() string {
751
 func (HisOrder) TableName() string {
909
 	MdtrtareaAdmvs string `gorm:"column:mdtrtarea_admvs" json:"mdtrtarea_admvs" form:"mdtrtarea_admvs"`
899
 	MdtrtareaAdmvs string `gorm:"column:mdtrtarea_admvs" json:"mdtrtarea_admvs" form:"mdtrtarea_admvs"`
910
 	InsuplcAdmdvs  string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
900
 	InsuplcAdmdvs  string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
911
 	SecretKey      string `gorm:"column:secret_key" json:"secret_key" form:"secret_key"`
901
 	SecretKey      string `gorm:"column:secret_key" json:"secret_key" form:"secret_key"`
912
-Url            string `gorm:"column:url" json:"url" form:"url"`
902
+	Url            string `gorm:"column:url" json:"url" form:"url"`
913
 	AccessKey      string `gorm:"column:access_key" json:"access_key" form:"access_key"`
903
 	AccessKey      string `gorm:"column:access_key" json:"access_key" form:"access_key"`
914
 	Cainfo         string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
904
 	Cainfo         string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
915
 	AppSecret      string `gorm:"column:app_secret" json:"app_secret" form:"app_secret"`
905
 	AppSecret      string `gorm:"column:app_secret" json:"app_secret" form:"app_secret"`
1081
 	MdtrtId          string
1071
 	MdtrtId          string
1082
 	SetlId           string
1072
 	SetlId           string
1083
 	StasType         string
1073
 	StasType         string
1084
-
1085
 }
1074
 }
1086
 
1075
 
1087
 type BusinessParamsTwo struct {
1076
 type BusinessParamsTwo struct {
1102
 	SetlId           string
1091
 	SetlId           string
1103
 }
1092
 }
1104
 
1093
 
1105
-
1106
 type BusinessParams5262 struct {
1094
 type BusinessParams5262 struct {
1107
-	RefdSetlFlag         string
1108
-	QBegntime         	 string
1109
-	QEndtime      		 string
1110
-	MedType   			 string
1111
-	PageNum     		 string
1112
-	PageSize      		 string
1113
-	Certno     			 string
1114
-	Psnno    			 string
1115
-
1095
+	RefdSetlFlag string
1096
+	QBegntime    string
1097
+	QEndtime     string
1098
+	MedType      string
1099
+	PageNum      string
1100
+	PageSize     string
1101
+	Certno       string
1102
+	Psnno        string
1116
 }
1103
 }
1117
 
1104
 
1118
-
1119
 type Custom struct {
1105
 type Custom struct {
1120
 	DetItemFeeSumamt string
1106
 	DetItemFeeSumamt string
1121
 	Cut              string
1107
 	Cut              string
1229
 	SpecailProject              int64   `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
1215
 	SpecailProject              int64   `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
1230
 	SocialSecurityDirectoryCode string  `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
1216
 	SocialSecurityDirectoryCode string  `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
1231
 	RecordDate                  int64   `gorm:"column:record_date" json:"record_date" form:"record_date"`
1217
 	RecordDate                  int64   `gorm:"column:record_date" json:"record_date" form:"record_date"`
1232
-	Vaf14             string    `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
1233
-
1218
+	Vaf14                       string  `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
1234
 }
1219
 }
1235
 
1220
 
1236
 func (MyHisProject) TableName() string {
1221
 func (MyHisProject) TableName() string {
1399
 	RecordDate    int64   `gorm:"column:record_date" json:"record_date" form:"record_date"`
1384
 	RecordDate    int64   `gorm:"column:record_date" json:"record_date" form:"record_date"`
1400
 	InsuplcAdmdvs string  `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
1385
 	InsuplcAdmdvs string  `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
1401
 	IdCardType    int64   `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
1386
 	IdCardType    int64   `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
1402
-	AuthInfo    string   `gorm:"column:auth_info" json:"auth_info" form:"auth_info"`
1403
-
1404
-
1405
-
1387
+	AuthInfo      string  `gorm:"column:auth_info" json:"auth_info" form:"auth_info"`
1406
 }
1388
 }
1407
 
1389
 
1408
 func (HisPsn) TableName() string {
1390
 func (HisPsn) TableName() string {
1491
 	HospApprFlag          int64        `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
1473
 	HospApprFlag          int64        `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
1492
 	BaseDrugLib           BaseDrugLib  `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
1474
 	BaseDrugLib           BaseDrugLib  `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
1493
 	HisOrderInfo          HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"order_info"`
1475
 	HisOrderInfo          HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"order_info"`
1494
-	DrugWayCount               string  `gorm:"column:drug_way_count" json:"drug_way_count" form:"drug_way_count"`
1495
-
1476
+	DrugWayCount          string       `gorm:"column:drug_way_count" json:"drug_way_count" form:"drug_way_count"`
1496
 }
1477
 }
1497
 
1478
 
1498
 func (HisDoctorAdviceInfoTen) TableName() string {
1479
 func (HisDoctorAdviceInfoTen) TableName() string {
1606
 	IsPre               int64   `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
1587
 	IsPre               int64   `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
1607
 	PayWays             string  `gorm:"column:pay_ways" json:"pay_way" form:"pay_ways"`
1588
 	PayWays             string  `gorm:"column:pay_ways" json:"pay_way" form:"pay_ways"`
1608
 	OthDesc             string  `gorm:"column:oth_desc" json:"oth_desc" form:"oth_desc"`
1589
 	OthDesc             string  `gorm:"column:oth_desc" json:"oth_desc" form:"oth_desc"`
1609
-	SickName   string `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
1590
+	SickName            string  `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
1610
 
1591
 
1611
 	IsUploadDiagnose  int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
1592
 	IsUploadDiagnose  int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
1612
 	IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
1593
 	IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
1719
 	ProjectId        int64
1700
 	ProjectId        int64
1720
 	ItemId           string
1701
 	ItemId           string
1721
 	StartTime        string
1702
 	StartTime        string
1722
-	Content string
1723
-	Bby01             string
1724
-
1703
+	Content          string
1704
+	Bby01            string
1725
 }
1705
 }
1726
 
1706
 
1727
 type ChargeList struct {
1707
 type ChargeList struct {
1728
-	Bby01 			string
1729
-	Vaj25              string
1730
-	Bbx01              string
1731
-	Vaf21              string
1732
-	Vaf22              string
1733
-	Vaf42              string
1734
-
1735
-
1708
+	Bby01 string
1709
+	Vaj25 string
1710
+	Bbx01 string
1711
+	Vaf21 string
1712
+	Vaf22 string
1713
+	Vaf42 string
1736
 }
1714
 }
1737
 
1715
 
1738
-
1739
 type ChargeListtwo struct {
1716
 type ChargeListtwo struct {
1740
-	Bby01 			int64  `json:"bby01"`
1741
-	Vaj25              float64 `json:"vaj25"`
1742
-
1717
+	Bby01 int64   `json:"bby01"`
1718
+	Vaj25 float64 `json:"vaj25"`
1743
 }
1719
 }
1744
 type UploadInfo struct {
1720
 type UploadInfo struct {
1745
-	Bce02a   string `json:"bce02a"`
1746
-	Acf01   int64 `json:"acf01"`
1747
-	Bce01   string `json:"bce01"`
1748
-	Bck01   string `json:"bck01"`
1721
+	Bce02a        string           `json:"bce02a"`
1722
+	Acf01         int64            `json:"acf01"`
1723
+	Bce01         string           `json:"bce01"`
1724
+	Bck01         string           `json:"bck01"`
1749
 	ChargeListtwo []*ChargeListtwo `json:"chargeList"`
1725
 	ChargeListtwo []*ChargeListtwo `json:"chargeList"`
1750
-	Bce01a   string `json:"bce01a"`
1726
+	Bce01a        string           `json:"bce01a"`
1751
 
1727
 
1752
-	Bck01c   string `json:"bck01c"`
1753
-	Bck01a   string `json:"bck01a"`
1728
+	Bck01c string `json:"bck01c"`
1729
+	Bck01a string `json:"bck01a"`
1754
 
1730
 
1755
 	Diag     []*Diag
1731
 	Diag     []*Diag
1756
 	Fasong   string `json:"fasong"`
1732
 	Fasong   string `json:"fasong"`
1757
 	PresInfo []*PresInfo
1733
 	PresInfo []*PresInfo
1758
-	Vaa01    int64 `json:"bby01"`
1759
-	Vaa07    int64 `json:"vaa07"`
1734
+	Vaa01    int64  `json:"bby01"`
1735
+	Vaa07    int64  `json:"vaa07"`
1760
 	Vaa05    string `json:"vaa05"`
1736
 	Vaa05    string `json:"vaa05"`
1761
-
1762
-
1763
 }
1737
 }
1764
 
1738
 
1765
 type Diag struct {
1739
 type Diag struct {
1909
 	WechatPay    string `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
1883
 	WechatPay    string `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
1910
 	AliPay       string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
1884
 	AliPay       string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
1911
 	JifenPay     string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
1885
 	JifenPay     string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
1912
-	SickName   string `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
1886
+	SickName     string `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
1913
 
1887
 
1914
 	IsUploadDiagnose  int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
1888
 	IsUploadDiagnose  int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
1915
 	IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
1889
 	IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
1920
 	return "his_order"
1894
 	return "his_order"
1921
 }
1895
 }
1922
 
1896
 
1923
-
1924
 type Root2 struct {
1897
 type Root2 struct {
1925
-	XMLName    xml.Name   `xml:"Root"`
1926
-	TradeInfo  TradeInfo  `xml:"tradeinfo"`
1927
-
1928
-	VAF1       VAF10       `xml:"VAF1"`
1898
+	XMLName   xml.Name  `xml:"Root"`
1899
+	TradeInfo TradeInfo `xml:"tradeinfo"`
1929
 
1900
 
1901
+	VAF1 VAF10 `xml:"VAF1"`
1930
 }
1902
 }
1931
 
1903
 
1932
-
1933
 type Root struct {
1904
 type Root struct {
1934
-	XMLName    xml.Name   `xml:"Root"`
1935
-	TradeInfo  TradeInfo  `xml:"tradeinfo"`
1936
-	CBM1       CBM1       `xml:"CBM1"`
1937
-	VAF1       VAF1       `xml:"VAF1"`
1938
-	VAO1       VAO1       `xml:"VAO1"`
1939
-	VBQ1       VBQ1       `xml:"VBQ1"`
1905
+	XMLName   xml.Name  `xml:"Root"`
1906
+	TradeInfo TradeInfo `xml:"tradeinfo"`
1907
+	CBM1      CBM1      `xml:"CBM1"`
1908
+	VAF1      VAF1      `xml:"VAF1"`
1909
+	VAO1      VAO1      `xml:"VAO1"`
1910
+	VBQ1      VBQ1      `xml:"VBQ1"`
1940
 }
1911
 }
1941
 
1912
 
1942
 type TradeInfo struct {
1913
 type TradeInfo struct {
1979
 	BCK01B string `xml:"BCK01B,attr"`
1950
 	BCK01B string `xml:"BCK01B,attr"`
1980
 	BCK01C string `xml:"BCK01C,attr"`
1951
 	BCK01C string `xml:"BCK01C,attr"`
1981
 	CBM19  string `xml:"CBM19,attr"`
1952
 	CBM19  string `xml:"CBM19,attr"`
1982
-
1983
 }
1953
 }
1984
 type IEtwo struct {
1954
 type IEtwo struct {
1985
-	CBMID  string `xml:"CBMID,attr"`
1986
-	VAF04  string `xml:"VAF04,attr"`
1987
-	VAA01  string `xml:"VAA01,attr"`
1988
-	VAF06  string `xml:"VAF06,attr"`
1989
-	BCK01A string `xml:"BCK01A,attr"`
1990
-	ROWNR  string `xml:"ROWNR,attr"`
1991
-	VAF10  string `xml:"VAF10,attr"`
1992
-	VAF11  string `xml:"VAF11,attr"`
1993
-	BDA01  string `xml:"BDA01,attr"`
1994
-	BBX01  string `xml:"BBX01,attr"`
1995
-	VAF14  string `xml:"VAF14,attr"`
1996
-	VAF15  string `xml:"VAF15,attr"`
1997
-	BBY01  string `xml:"BBY01,attr"`
1998
-	VAF17  string `xml:"VAF17,attr"`
1999
-	VAF18  string `xml:"VAF18,attr"`
2000
-	VAF19  string `xml:"VAF19,attr"`
2001
-	VAF20  string `xml:"VAF20,attr"`
2002
-	VAF21  string `xml:"VAF21,attr"`
2003
-	VAF22  string `xml:"VAF22,attr"`
2004
-	Crypt  string `xml:"Crypt,attr"`
2005
-	VAF23  string `xml:"VAF23,attr"`
2006
-	BCK01B string `xml:"BCK01B,attr"`
2007
-	VAF26  string `xml:"VAF26,attr"`
2008
-	VAF27  string `xml:"VAF27,attr"`
2009
-	VAF28  string `xml:"VAF28,attr"`
2010
-	VAF29  string `xml:"VAF29,attr"`
2011
-	VAF30  string `xml:"VAF30,attr"`
2012
-	VAF31  string `xml:"VAF31,attr"`
2013
-	VAF32  string `xml:"VAF32,attr"`
2014
-	VAF33  string `xml:"VAF33,attr"`
2015
-	VAF34  string `xml:"VAF34,attr"`
2016
-	VAF35  string `xml:"VAF35,attr"`
2017
-	VAF36  string `xml:"VAF36,attr"`
2018
-	VAF37  string `xml:"VAF37,attr"`
2019
-	BCE02A  string `xml:"BCE02A,attr"`
2020
-	BCE03A  string `xml:"BCE03A,attr"`
2021
-	BCE03B  string `xml:"BCE03B,attr"`
2022
-	VAF53  string `xml:"VAF53,attr"`
2023
-	VAF55  string `xml:"VAF55,attr"`
2024
-	BCK01D  string `xml:"BCK01D,attr"`
2025
-	VAF58  string `xml:"VAF58,attr"`
2026
-	VAF59  string `xml:"VAF59,attr"`
2027
-	VAF60  string `xml:"VAF60,attr"`
2028
-	VAF61  string `xml:"VAF61,attr"`
2029
-	VAF62  string `xml:"VAF62,attr"`
2030
-	LSign  string `xml:"lSign,attr"`
2031
-	BDA01A  string `xml:"BDA01A,attr"`
2032
-	LRoute  string `xml:"lRoute,attr"`
2033
-	BCE01A  string `xml:"BCE01A,attr"`
2034
-	BCE01B  string `xml:"BCE01B,attr"`
2035
-	VAF01B  string `xml:"VAF01B,attr"`
2036
-	VCO01  string `xml:"VCO01,attr"`
2037
-	BCE01H  string `xml:"BCE01H,attr"`
2038
-	BCE03H  string `xml:"BCE03H,attr"`
2039
-	BIW02  string `xml:"BIW02,attr"`
2040
-	RCurrent  string `xml:"rCurrent,attr"`
2041
-	FCheck  string `xml:"FCheck,attr"`
2042
-	UnameA  string `xml:"UnameA,attr"`
2043
-	VEH02  string `xml:"VEH02,attr"`
2044
-	BCK01C  string `xml:"BCK01C,attr"`
2045
-	VAF07  string `xml:"VAF07,attr"`
2046
-
2047
-
2048
-
2049
-
2050
-
2051
-
1955
+	CBMID    string `xml:"CBMID,attr"`
1956
+	VAF04    string `xml:"VAF04,attr"`
1957
+	VAA01    string `xml:"VAA01,attr"`
1958
+	VAF06    string `xml:"VAF06,attr"`
1959
+	BCK01A   string `xml:"BCK01A,attr"`
1960
+	ROWNR    string `xml:"ROWNR,attr"`
1961
+	VAF10    string `xml:"VAF10,attr"`
1962
+	VAF11    string `xml:"VAF11,attr"`
1963
+	BDA01    string `xml:"BDA01,attr"`
1964
+	BBX01    string `xml:"BBX01,attr"`
1965
+	VAF14    string `xml:"VAF14,attr"`
1966
+	VAF15    string `xml:"VAF15,attr"`
1967
+	BBY01    string `xml:"BBY01,attr"`
1968
+	VAF17    string `xml:"VAF17,attr"`
1969
+	VAF18    string `xml:"VAF18,attr"`
1970
+	VAF19    string `xml:"VAF19,attr"`
1971
+	VAF20    string `xml:"VAF20,attr"`
1972
+	VAF21    string `xml:"VAF21,attr"`
1973
+	VAF22    string `xml:"VAF22,attr"`
1974
+	Crypt    string `xml:"Crypt,attr"`
1975
+	VAF23    string `xml:"VAF23,attr"`
1976
+	BCK01B   string `xml:"BCK01B,attr"`
1977
+	VAF26    string `xml:"VAF26,attr"`
1978
+	VAF27    string `xml:"VAF27,attr"`
1979
+	VAF28    string `xml:"VAF28,attr"`
1980
+	VAF29    string `xml:"VAF29,attr"`
1981
+	VAF30    string `xml:"VAF30,attr"`
1982
+	VAF31    string `xml:"VAF31,attr"`
1983
+	VAF32    string `xml:"VAF32,attr"`
1984
+	VAF33    string `xml:"VAF33,attr"`
1985
+	VAF34    string `xml:"VAF34,attr"`
1986
+	VAF35    string `xml:"VAF35,attr"`
1987
+	VAF36    string `xml:"VAF36,attr"`
1988
+	VAF37    string `xml:"VAF37,attr"`
1989
+	BCE02A   string `xml:"BCE02A,attr"`
1990
+	BCE03A   string `xml:"BCE03A,attr"`
1991
+	BCE03B   string `xml:"BCE03B,attr"`
1992
+	VAF53    string `xml:"VAF53,attr"`
1993
+	VAF55    string `xml:"VAF55,attr"`
1994
+	BCK01D   string `xml:"BCK01D,attr"`
1995
+	VAF58    string `xml:"VAF58,attr"`
1996
+	VAF59    string `xml:"VAF59,attr"`
1997
+	VAF60    string `xml:"VAF60,attr"`
1998
+	VAF61    string `xml:"VAF61,attr"`
1999
+	VAF62    string `xml:"VAF62,attr"`
2000
+	LSign    string `xml:"lSign,attr"`
2001
+	BDA01A   string `xml:"BDA01A,attr"`
2002
+	LRoute   string `xml:"lRoute,attr"`
2003
+	BCE01A   string `xml:"BCE01A,attr"`
2004
+	BCE01B   string `xml:"BCE01B,attr"`
2005
+	VAF01B   string `xml:"VAF01B,attr"`
2006
+	VCO01    string `xml:"VCO01,attr"`
2007
+	BCE01H   string `xml:"BCE01H,attr"`
2008
+	BCE03H   string `xml:"BCE03H,attr"`
2009
+	BIW02    string `xml:"BIW02,attr"`
2010
+	RCurrent string `xml:"rCurrent,attr"`
2011
+	FCheck   string `xml:"FCheck,attr"`
2012
+	UnameA   string `xml:"UnameA,attr"`
2013
+	VEH02    string `xml:"VEH02,attr"`
2014
+	BCK01C   string `xml:"BCK01C,attr"`
2015
+	VAF07    string `xml:"VAF07,attr"`
2052
 }
2016
 }
2053
 type IEthree struct {
2017
 type IEthree struct {
2054
-	CBMID  string `xml:"CBMID,attr"`
2055
-	VAA01  string `xml:"VAA01,attr"`
2056
-	VAA07  string `xml:"VAA07,attr"`
2057
-	ACF01  string `xml:"ACF01,attr"`
2018
+	CBMID string `xml:"CBMID,attr"`
2019
+	VAA01 string `xml:"VAA01,attr"`
2020
+	VAA07 string `xml:"VAA07,attr"`
2021
+	ACF01 string `xml:"ACF01,attr"`
2058
 
2022
 
2059
 	VAO06  string `xml:"VAO06,attr"`
2023
 	VAO06  string `xml:"VAO06,attr"`
2060
 	VAO07  string `xml:"VAO07,attr"`
2024
 	VAO07  string `xml:"VAO07,attr"`
2061
 	VAO10  string `xml:"VAO10,attr"`
2025
 	VAO10  string `xml:"VAO10,attr"`
2062
 	VAO11  string `xml:"VAO11,attr"`
2026
 	VAO11  string `xml:"VAO11,attr"`
2063
-	BAK01A  string `xml:"BAK01A,attr"`
2027
+	BAK01A string `xml:"BAK01A,attr"`
2064
 	CAM01  string `xml:"CAM01,attr"`
2028
 	CAM01  string `xml:"CAM01,attr"`
2065
 	VAO15  string `xml:"VAO15,attr"`
2029
 	VAO15  string `xml:"VAO15,attr"`
2066
 	VAO18  string `xml:"VAO18,attr"`
2030
 	VAO18  string `xml:"VAO18,attr"`
2067
 	VAO22  string `xml:"VAO22,attr"`
2031
 	VAO22  string `xml:"VAO22,attr"`
2068
 	IAA01  string `xml:"IAA01,attr"`
2032
 	IAA01  string `xml:"IAA01,attr"`
2069
 	IAD03  string `xml:"IAD03,attr"`
2033
 	IAD03  string `xml:"IAD03,attr"`
2070
-	BAK01B  string `xml:"BAK01B,attr"`
2034
+	BAK01B string `xml:"BAK01B,attr"`
2071
 	VAO26  string `xml:"VAO26,attr"`
2035
 	VAO26  string `xml:"VAO26,attr"`
2072
 	IAD04  string `xml:"IAD04,attr"`
2036
 	IAD04  string `xml:"IAD04,attr"`
2073
 	IAD01  string `xml:"IAD01,attr"`
2037
 	IAD01  string `xml:"IAD01,attr"`
2074
 	VAO25  string `xml:"VAO25,attr"`
2038
 	VAO25  string `xml:"VAO25,attr"`
2075
 	VAO35  string `xml:"VAO35,attr"`
2039
 	VAO35  string `xml:"VAO35,attr"`
2076
-
2077
-
2078
 }
2040
 }
2079
 type IEfour struct {
2041
 type IEfour struct {
2080
 	VBQ01  string `xml:"VBQ01,attr"`
2042
 	VBQ01  string `xml:"VBQ01,attr"`
2085
 	VBQ07  string `xml:"VBQ07,attr"`
2047
 	VBQ07  string `xml:"VBQ07,attr"`
2086
 	BCK01A string `xml:"BCK01A,attr"`
2048
 	BCK01A string `xml:"BCK01A,attr"`
2087
 	BCK01B string `xml:"BCK01B,attr"`
2049
 	BCK01B string `xml:"BCK01B,attr"`
2088
-	BCE03A  string `xml:"BCE03A,attr"`
2089
-	BCE01A  string `xml:"BCE01A,attr"`
2050
+	BCE03A string `xml:"BCE03A,attr"`
2051
+	BCE01A string `xml:"BCE01A,attr"`
2090
 	VBQ27  string `xml:"VBQ27,attr"`
2052
 	VBQ27  string `xml:"VBQ27,attr"`
2091
 	VBQ28  string `xml:"VBQ28,attr"`
2053
 	VBQ28  string `xml:"VBQ28,attr"`
2092
 	VBQ29  string `xml:"VBQ29,attr"`
2054
 	VBQ29  string `xml:"VBQ29,attr"`
2093
 	VBQ30  string `xml:"VBQ30,attr"`
2055
 	VBQ30  string `xml:"VBQ30,attr"`
2094
-
2095
-
2096
 }
2056
 }
2097
 type IEfive struct {
2057
 type IEfive struct {
2098
-	VAF01  string `xml:"VAF01,attr"`
2099
-
2058
+	VAF01 string `xml:"VAF01,attr"`
2100
 }
2059
 }
2101
 
2060
 
2102
-
2103
 func main() {
2061
 func main() {
2104
 	data := `YOUR_XML_CONTENT_HERE`
2062
 	data := `YOUR_XML_CONTENT_HERE`
2105
 
2063
 
2112
 
2070
 
2113
 	fmt.Printf("%+v\n", root)
2071
 	fmt.Printf("%+v\n", root)
2114
 }
2072
 }
2115
-
2116
-
2117
-
2118
-
2119
-
2120
-
2121
-

+ 81 - 56
service/gdyb_service.go View File

6944
 	inputMessage := SetGdInputMessage(timestamp, struct3501.OrgName, struct3501.Opter, struct3501.FixmedinsHilistId, struct3501.InsuplcAdmdvs, struct3501.MdtrtareaAdmvs, struct3501.Cainfo)
6944
 	inputMessage := SetGdInputMessage(timestamp, struct3501.OrgName, struct3501.Opter, struct3501.FixmedinsHilistId, struct3501.InsuplcAdmdvs, struct3501.MdtrtareaAdmvs, struct3501.Cainfo)
6945
 	input := make(map[string]interface{})
6945
 	input := make(map[string]interface{})
6946
 	inputData := make(map[string]interface{})
6946
 	inputData := make(map[string]interface{})
6947
-	inputMessage["infno"] = "3501"                                  // 交易编码
6948
-	inputData["med_list_codg"] = struct3501.MedListCodg             // 定点医药机构目录编号
6949
-	inputData["fixmedins_hilist_id"] = struct3501.FixmedinsHilistId // 定点医药机构目录编号
6950
-	inputData["fixmedins_hilist_name"] = struct3501.FixmedinsHilistName         // 定点医药机构目录名称
6951
-	inputData["rx_flag"] = struct3501.RxFlag                        //
6952
-	inputData["invdate"] = struct3501.Invdate                       // 人员编号 (来自1101接口返回)
6953
-	inputData["inv_cnt"] = struct3501.InvCnt                        // 人员编号 (来自1101接口返回)
6954
-	inputData["manu_lotnum"] = struct3501.ManuLotnum                // 人员编号 (来自1101接口返回)
6955
-	inputData["fixmedins_bchno"] = struct3501.FixmedinsBchno        // 人员编号 (来自1101接口返回)
6956
-	inputData["manu_date"] = struct3501.ManuDate                    // 人员编号 (来自1101接口返回)
6957
-	inputData["expy_end"] = struct3501.ExpyEnd                      // 人员编号 (来自1101接口返回)
6958
-	inputData["memo"] = ""                                          // 人员编号 (来自1101接口返回)
6947
+	inputMessage["infno"] = "3501"                                      // 交易编码
6948
+	inputData["med_list_codg"] = struct3501.MedListCodg                 // 定点医药机构目录编号
6949
+	inputData["fixmedins_hilist_id"] = struct3501.FixmedinsHilistId     // 定点医药机构目录编号
6950
+	inputData["fixmedins_hilist_name"] = struct3501.FixmedinsHilistName // 定点医药机构目录名称
6951
+	inputData["rx_flag"] = struct3501.RxFlag                            //
6952
+	inputData["invdate"] = struct3501.Invdate                           // 人员编号 (来自1101接口返回)
6953
+	inputData["inv_cnt"] = struct3501.InvCnt                            // 人员编号 (来自1101接口返回)
6954
+	inputData["manu_lotnum"] = struct3501.ManuLotnum                    // 人员编号 (来自1101接口返回)
6955
+	inputData["fixmedins_bchno"] = struct3501.FixmedinsBchno            // 人员编号 (来自1101接口返回)
6956
+	inputData["manu_date"] = struct3501.ManuDate                        // 人员编号 (来自1101接口返回)
6957
+	inputData["expy_end"] = struct3501.ExpyEnd                          // 人员编号 (来自1101接口返回)
6958
+	inputData["memo"] = ""                                              // 人员编号 (来自1101接口返回)
6959
 	feedetail := make([]map[string]interface{}, 0)
6959
 	feedetail := make([]map[string]interface{}, 0)
6960
 	druginputData := make(map[string]interface{})
6960
 	druginputData := make(map[string]interface{})
6961
 	druginputData["drug_trac_codg"] = struct3501.DrugTracCodg
6961
 	druginputData["drug_trac_codg"] = struct3501.DrugTracCodg
6962
-	feedetail = append(feedetail,druginputData)
6962
+	feedetail = append(feedetail, druginputData)
6963
 	inputData["drugtracinfo"] = feedetail
6963
 	inputData["drugtracinfo"] = feedetail
6964
 	input["invinfo"] = inputData
6964
 	input["invinfo"] = inputData
6965
 	inputMessage["input"] = input //交易输入
6965
 	inputMessage["input"] = input //交易输入
7017
 	inputData["med_list_codg"] = struct3502.MedListCodg // 定点医药机构目录编号
7017
 	inputData["med_list_codg"] = struct3502.MedListCodg // 定点医药机构目录编号
7018
 	inputData["inv_chg_type"] = struct3502.InvChgType   // 定点医药机构目录编号
7018
 	inputData["inv_chg_type"] = struct3502.InvChgType   // 定点医药机构目录编号
7019
 
7019
 
7020
-	inputData["fixmedins_hilist_id"] = struct3502.FixmedinsCode // 定点医药机构目录编号
7021
-	inputData["fixmedins_hilist_name"] = struct3502.FixmedinsHilistName     // 定点医药机构目录名称
7022
-	inputData["fixmedins_bchno"] = struct3502.FixmedinsBchno    // 人员编号 (来自1101接口返回)
7023
-	inputData["pric"] = struct3502.Pric                         // 人员编号 (来自1101接口返回)
7024
-	inputData["cnt"] = struct3502.Cnt                           // 人员编号 (来自1101接口返回)
7025
-	inputData["rx_flag"] = struct3502.RxFlag                    //
7020
+	inputData["fixmedins_hilist_id"] = struct3502.FixmedinsCode         // 定点医药机构目录编号
7021
+	inputData["fixmedins_hilist_name"] = struct3502.FixmedinsHilistName // 定点医药机构目录名称
7022
+	inputData["fixmedins_bchno"] = struct3502.FixmedinsBchno            // 人员编号 (来自1101接口返回)
7023
+	inputData["pric"] = struct3502.Pric                                 // 人员编号 (来自1101接口返回)
7024
+	inputData["cnt"] = struct3502.Cnt                                   // 人员编号 (来自1101接口返回)
7025
+	inputData["rx_flag"] = struct3502.RxFlag                            //
7026
 
7026
 
7027
 	inputData["inv_chg_time"] = struct3502.InvChgTime // 人员编号 (来自1101接口返回)
7027
 	inputData["inv_chg_time"] = struct3502.InvChgTime // 人员编号 (来自1101接口返回)
7028
 	inputData["inv_chg_opter_name"] = ""              // 人员编号 (来自1101接口返回)
7028
 	inputData["inv_chg_opter_name"] = ""              // 人员编号 (来自1101接口返回)
7030
 	inputData["trdn_flag"] = ""                       // 人员编号 (来自1101接口返回)
7030
 	inputData["trdn_flag"] = ""                       // 人员编号 (来自1101接口返回)
7031
 
7031
 
7032
 	input["invinfo"] = inputData
7032
 	input["invinfo"] = inputData
7033
+	//feedetail := make([]map[string]interface{}, 0)
7034
+	//druginputData := make(map[string]interface{})
7035
+	//druginputData["drug_trac_codg"] = struct3502.DrugTracCodg
7036
+	//feedetail = append(feedetail, druginputData)
7037
+	//inputData["drugtracinfo"] = feedetail
7033
 	feedetail := make([]map[string]interface{}, 0)
7038
 	feedetail := make([]map[string]interface{}, 0)
7034
-	druginputData := make(map[string]interface{})
7035
-	druginputData["drug_trac_codg"] = struct3502.DrugTracCodg
7036
-	feedetail = append(feedetail,druginputData)
7039
+	codes := strings.Split(struct3502.DrugTracCodg, ",")
7040
+	for _, item := range codes {
7041
+		druginputData := make(map[string]interface{})
7042
+		druginputData["drug_trac_codg"] = item
7043
+		feedetail = append(feedetail, druginputData)
7044
+	}
7037
 	inputData["drugtracinfo"] = feedetail
7045
 	inputData["drugtracinfo"] = feedetail
7038
 	input["invinfo"] = inputData
7046
 	input["invinfo"] = inputData
7039
 	inputMessage["input"] = input //交易输入
7047
 	inputMessage["input"] = input //交易输入
7040
 
7048
 
7041
-
7042
 	bytesData, err := json.Marshal(inputMessage)
7049
 	bytesData, err := json.Marshal(inputMessage)
7043
 	fmt.Println(string(bytesData))
7050
 	fmt.Println(string(bytesData))
7044
 	if err != nil {
7051
 	if err != nil {
7118
 	input["purcinfo"] = feedetailInfo
7125
 	input["purcinfo"] = feedetailInfo
7119
 	inputMessage["input"] = input //交易输入
7126
 	inputMessage["input"] = input //交易输入
7120
 
7127
 
7121
-
7122
 	bytesData, err := json.Marshal(inputMessage)
7128
 	bytesData, err := json.Marshal(inputMessage)
7123
 	fmt.Println(string(bytesData))
7129
 	fmt.Println(string(bytesData))
7124
 	if err != nil {
7130
 	if err != nil {
7239
 	inputMessage := SetGdInputMessage(timestamp, struct3505.OrgName, struct3505.Opter, struct3505.FixmedinsHilistId, struct3505.InsuplcAdmdvs, struct3505.MdtrtareaAdmvs, struct3505.Cainfo)
7245
 	inputMessage := SetGdInputMessage(timestamp, struct3505.OrgName, struct3505.Opter, struct3505.FixmedinsHilistId, struct3505.InsuplcAdmdvs, struct3505.MdtrtareaAdmvs, struct3505.Cainfo)
7240
 	input := make(map[string]interface{})
7246
 	input := make(map[string]interface{})
7241
 	inputData := make(map[string]interface{})
7247
 	inputData := make(map[string]interface{})
7242
-	inputMessage["infno"] = "3505"                                  // 交易编码
7243
-	inputData["med_list_codg"] = struct3505.MedListCodg             // 定点医药机构目录编号
7244
-	inputData["fixmedins_hilist_id"] = struct3505.FixmedinsHilistId // 定点医药机构目录编号
7245
-	inputData["fixmedins_hilist_name"] = struct3505.FixmedinsHilistName         // 定点医药机构目录名称
7246
-	inputData["fixmedins_bchno"] = struct3505.FixmedinsBchno        // 人员编号 (来自1101接口返回)
7248
+	inputMessage["infno"] = "3505"                                      // 交易编码
7249
+	inputData["med_list_codg"] = struct3505.MedListCodg                 // 定点医药机构目录编号
7250
+	inputData["fixmedins_hilist_id"] = struct3505.FixmedinsHilistId     // 定点医药机构目录编号
7251
+	inputData["fixmedins_hilist_name"] = struct3505.FixmedinsHilistName // 定点医药机构目录名称
7252
+	inputData["fixmedins_bchno"] = struct3505.FixmedinsBchno            // 人员编号 (来自1101接口返回)
7247
 
7253
 
7248
 	inputData["prsc_dr_cert_type"] = struct3505.PrscDrCertType // 人员编号 (来自1101接口返回)
7254
 	inputData["prsc_dr_cert_type"] = struct3505.PrscDrCertType // 人员编号 (来自1101接口返回)
7249
 	inputData["prsc_dr_certno"] = struct3505.PrscDrCertno      // 人员编号 (来自1101接口返回)
7255
 	inputData["prsc_dr_certno"] = struct3505.PrscDrCertno      // 人员编号 (来自1101接口返回)
7285
 	//input["selinfo"] = inputData
7291
 	//input["selinfo"] = inputData
7286
 	feedetail := make([]map[string]interface{}, 0)
7292
 	feedetail := make([]map[string]interface{}, 0)
7287
 
7293
 
7288
-	codes := strings.Split(struct3505.DrugTracCodg,",")
7289
-	for _,item := range codes{
7294
+	codes := strings.Split(struct3505.DrugTracCodg, ",")
7295
+	for _, item := range codes {
7290
 		druginputData := make(map[string]interface{})
7296
 		druginputData := make(map[string]interface{})
7291
 		druginputData["drug_trac_codg"] = item
7297
 		druginputData["drug_trac_codg"] = item
7292
-		feedetail = append(feedetail,druginputData)
7298
+		feedetail = append(feedetail, druginputData)
7293
 	}
7299
 	}
7294
 	inputData["drugtracinfo"] = feedetail
7300
 	inputData["drugtracinfo"] = feedetail
7295
 	input["selinfo"] = inputData
7301
 	input["selinfo"] = inputData
7296
 	inputMessage["input"] = input //交易输入
7302
 	inputMessage["input"] = input //交易输入
7297
 
7303
 
7298
-
7299
 	bytesData, err := json.Marshal(inputMessage)
7304
 	bytesData, err := json.Marshal(inputMessage)
7300
 	fmt.Println(string(bytesData))
7305
 	fmt.Println(string(bytesData))
7301
 	if err != nil {
7306
 	if err != nil {
7345
 	inputMessage := SetGdInputMessage(timestamp, struct3506.OrgName, struct3506.Opter, struct3506.FixmedinsCode, struct3506.InsuplcAdmdvs, struct3506.MdtrtareaAdmvs, struct3506.Cainfo)
7350
 	inputMessage := SetGdInputMessage(timestamp, struct3506.OrgName, struct3506.Opter, struct3506.FixmedinsCode, struct3506.InsuplcAdmdvs, struct3506.MdtrtareaAdmvs, struct3506.Cainfo)
7346
 	input := make(map[string]interface{})
7351
 	input := make(map[string]interface{})
7347
 	inputData := make(map[string]interface{})
7352
 	inputData := make(map[string]interface{})
7348
-	inputMessage["infno"] = "3506"                                  // 交易编码
7349
-	inputData["med_list_codg"] = struct3506.MedListCodg             // 定点医药机构目录编号
7350
-	inputData["fixmedins_hilist_id"] = struct3506.FixmedinsHilistId // 定点医药机构目录编号
7351
-	inputData["fixmedins_hilist_name"] = struct3506.FixmedinsHilistName         // 定点医药机构目录名称
7352
-	inputData["fixmedins_bchno"] = struct3506.FixmedinsBchno        // 人员编号 (来自1101接口返回)
7353
+	inputMessage["infno"] = "3506"                                      // 交易编码
7354
+	inputData["med_list_codg"] = struct3506.MedListCodg                 // 定点医药机构目录编号
7355
+	inputData["fixmedins_hilist_id"] = struct3506.FixmedinsHilistId     // 定点医药机构目录编号
7356
+	inputData["fixmedins_hilist_name"] = struct3506.FixmedinsHilistName // 定点医药机构目录名称
7357
+	inputData["fixmedins_bchno"] = struct3506.FixmedinsBchno            // 人员编号 (来自1101接口返回)
7353
 
7358
 
7354
 	inputData["setl_id"] = struct3506.SetlId                       // 人员编号 (来自1101接口返回)
7359
 	inputData["setl_id"] = struct3506.SetlId                       // 人员编号 (来自1101接口返回)
7355
 	inputData["psn_no"] = struct3506.PsnNo                         // 人员编号 (来自1101接口返回)
7360
 	inputData["psn_no"] = struct3506.PsnNo                         // 人员编号 (来自1101接口返回)
7368
 	inputData["memo"] = ""                                         // 人员编号 (来自1101接口返回)
7373
 	inputData["memo"] = ""                                         // 人员编号 (来自1101接口返回)
7369
 	inputData["medins_prod_sel_no"] = ""                           // 人员编号 (来自1101接口返回)
7374
 	inputData["medins_prod_sel_no"] = ""                           // 人员编号 (来自1101接口返回)
7370
 
7375
 
7371
-
7372
 	input["selinfo"] = inputData
7376
 	input["selinfo"] = inputData
7373
 	inputMessage["input"] = input //交易输入
7377
 	inputMessage["input"] = input //交易输入
7374
 
7378
 
8477
 	inputData["med_list_codg"] = struct3502.MedListCodg // 定点医药机构目录编号
8481
 	inputData["med_list_codg"] = struct3502.MedListCodg // 定点医药机构目录编号
8478
 	inputData["inv_chg_type"] = struct3502.InvChgType   // 定点医药机构目录编号
8482
 	inputData["inv_chg_type"] = struct3502.InvChgType   // 定点医药机构目录编号
8479
 
8483
 
8480
-	inputData["fixmedins_hilist_id"] = struct3502.FixmedinsHilistId // 定点医药机构目录编号
8481
-	inputData["fixmedins_hilist_name"] = struct3502.FixmedinsHilistName     // 定点医药机构目录名称
8482
-	inputData["fixmedins_bchno"] = struct3502.FixmedinsBchno    // 人员编号 (来自1101接口返回)
8483
-	inputData["pric"] = struct3502.Pric                         // 人员编号 (来自1101接口返回)
8484
-	inputData["cnt"] = struct3502.Cnt                           // 人员编号 (来自1101接口返回)
8485
-	inputData["rx_flag"] = struct3502.RxFlag                    //
8484
+	inputData["fixmedins_hilist_id"] = struct3502.FixmedinsHilistId     // 定点医药机构目录编号
8485
+	inputData["fixmedins_hilist_name"] = struct3502.FixmedinsHilistName // 定点医药机构目录名称
8486
+	inputData["fixmedins_bchno"] = struct3502.FixmedinsBchno            // 人员编号 (来自1101接口返回)
8487
+	inputData["pric"] = struct3502.Pric                                 // 人员编号 (来自1101接口返回)
8488
+	inputData["cnt"] = struct3502.Cnt                                   // 人员编号 (来自1101接口返回)
8489
+	inputData["rx_flag"] = struct3502.RxFlag                            //
8486
 
8490
 
8487
 	inputData["inv_chg_time"] = struct3502.InvChgTime // 人员编号 (来自1101接口返回)
8491
 	inputData["inv_chg_time"] = struct3502.InvChgTime // 人员编号 (来自1101接口返回)
8488
 	inputData["inv_chg_opter_name"] = ""              // 人员编号 (来自1101接口返回)
8492
 	inputData["inv_chg_opter_name"] = ""              // 人员编号 (来自1101接口返回)
8489
 	inputData["memo"] = struct3502.Memo               // 人员编号 (来自1101接口返回)
8493
 	inputData["memo"] = struct3502.Memo               // 人员编号 (来自1101接口返回)
8490
 	inputData["trdn_flag"] = ""                       // 人员编号 (来自1101接口返回)
8494
 	inputData["trdn_flag"] = ""                       // 人员编号 (来自1101接口返回)
8491
 
8495
 
8496
+	feedetail := make([]map[string]interface{}, 0)
8497
+	codes := strings.Split(struct3502.DrugTracCodg, ",")
8498
+	for _, item := range codes {
8499
+		druginputData := make(map[string]interface{})
8500
+		druginputData["drug_trac_codg"] = item
8501
+		feedetail = append(feedetail, druginputData)
8502
+	}
8503
+	inputData["drugtracinfo"] = feedetail
8504
+
8492
 	input["invinfo"] = inputData
8505
 	input["invinfo"] = inputData
8493
 	inputMessage["input"] = input //交易输入
8506
 	inputMessage["input"] = input //交易输入
8494
 
8507
 
8697
 
8710
 
8698
 	input := make(map[string]interface{})
8711
 	input := make(map[string]interface{})
8699
 	inputData := make(map[string]interface{})
8712
 	inputData := make(map[string]interface{})
8700
-	inputMessage["infno"] = "3505"                                  // 交易编码
8701
-	inputData["med_list_codg"] = struct3505.MedListCodg             // 定点医药机构目录编号
8702
-	inputData["fixmedins_hilist_id"] = struct3505.FixmedinsHilistId // 定点医药机构目录编号
8703
-	inputData["fixmedins_hilist_name"] = struct3505.FixmedinsHilistName         // 定点医药机构目录名称
8704
-	inputData["fixmedins_bchno"] = struct3505.FixmedinsBchno        // 人员编号 (来自1101接口返回)
8713
+	inputMessage["infno"] = "3505"                                      // 交易编码
8714
+	inputData["med_list_codg"] = struct3505.MedListCodg                 // 定点医药机构目录编号
8715
+	inputData["fixmedins_hilist_id"] = struct3505.FixmedinsHilistId     // 定点医药机构目录编号
8716
+	inputData["fixmedins_hilist_name"] = struct3505.FixmedinsHilistName // 定点医药机构目录名称
8717
+	inputData["fixmedins_bchno"] = struct3505.FixmedinsBchno            // 人员编号 (来自1101接口返回)
8705
 
8718
 
8706
 	inputData["prsc_dr_cert_type"] = struct3505.PrscDrCertType // 人员编号 (来自1101接口返回)
8719
 	inputData["prsc_dr_cert_type"] = struct3505.PrscDrCertType // 人员编号 (来自1101接口返回)
8707
 	inputData["prsc_dr_certno"] = struct3505.PrscDrCertno      // 人员编号 (来自1101接口返回)
8720
 	inputData["prsc_dr_certno"] = struct3505.PrscDrCertno      // 人员编号 (来自1101接口返回)
8729
 	inputData["rxno"] = struct3505.Rxno                   // 人员编号 (来自1101接口返回)
8742
 	inputData["rxno"] = struct3505.Rxno                   // 人员编号 (来自1101接口返回)
8730
 	inputData["rx_circ_flag"] = struct3505.RxCircFlag     // 人员编号 (来自1101接口返回)
8743
 	inputData["rx_circ_flag"] = struct3505.RxCircFlag     // 人员编号 (来自1101接口返回)
8731
 
8744
 
8732
-	inputData["rtal_docno"] = struct3505.RtalDocno // 人员编号 (来自1101接口返回)
8733
-	inputData["stoout_no"] = struct3505.StooutNo   // 人员编号 (来自1101接口返回)
8734
-	inputData["MDTRT_SETL_TYPE"] = struct3505.MdtrtSetlType                          // 人员编号 (来自1101接口返回)
8745
+	inputData["rtal_docno"] = struct3505.RtalDocno          // 人员编号 (来自1101接口返回)
8746
+	inputData["stoout_no"] = struct3505.StooutNo            // 人员编号 (来自1101接口返回)
8747
+	inputData["MDTRT_SETL_TYPE"] = struct3505.MdtrtSetlType // 人员编号 (来自1101接口返回)
8735
 
8748
 
8736
-	inputData["bchno"] = struct3505.Bchno                          // 人员编号 (来自1101接口返回)
8737
-	inputData["drug_trac_codg"] = struct3505.DrugTracCodg          // 人员编号 (来自1101接口返回)
8749
+	inputData["bchno"] = struct3505.Bchno // 人员编号 (来自1101接口返回)
8750
+	//inputData["drug_trac_codg"] = struct3505.DrugTracCodg          // 人员编号 (来自1101接口返回)
8738
 	inputData["drug_prod_barc"] = struct3505.DrugProdBarc          // 人员编号 (来自1101接口返回)
8751
 	inputData["drug_prod_barc"] = struct3505.DrugProdBarc          // 人员编号 (来自1101接口返回)
8739
 	inputData["shelf_posi"] = struct3505.ShelfPosi                 // 人员编号 (来自1101接口返回)
8752
 	inputData["shelf_posi"] = struct3505.ShelfPosi                 // 人员编号 (来自1101接口返回)
8740
 	inputData["sel_retn_cnt"] = struct3505.SelRetnCnt              // 人员编号 (来自1101接口返回)
8753
 	inputData["sel_retn_cnt"] = struct3505.SelRetnCnt              // 人员编号 (来自1101接口返回)
8741
 	inputData["sel_retn_time"] = struct3505.SelRetnTime            // 人员编号 (来自1101接口返回)
8754
 	inputData["sel_retn_time"] = struct3505.SelRetnTime            // 人员编号 (来自1101接口返回)
8742
 	inputData["sel_retn_opter_name"] = struct3505.SelRetnOpterName // 人员编号 (来自1101接口返回)
8755
 	inputData["sel_retn_opter_name"] = struct3505.SelRetnOpterName // 人员编号 (来自1101接口返回)
8743
 	inputData["memo"] = struct3505.Memo                            // 人员编号 (来自1101接口返回)
8756
 	inputData["memo"] = struct3505.Memo                            // 人员编号 (来自1101接口返回)
8757
+
8758
+	feedetail := make([]map[string]interface{}, 0)
8759
+
8760
+	codes := strings.Split(struct3505.DrugTracCodg, ",")
8761
+	for _, item := range codes {
8762
+		druginputData := make(map[string]interface{})
8763
+		druginputData["drug_trac_codg"] = item
8764
+		feedetail = append(feedetail, druginputData)
8765
+	}
8766
+	inputData["drugtracinfo"] = feedetail
8767
+	input["selinfo"] = inputData
8768
+	inputMessage["input"] = input //交易输入
8769
+
8744
 	input["selinfo"] = inputData
8770
 	input["selinfo"] = inputData
8745
 	inputMessage["input"] = input //交易输入
8771
 	inputMessage["input"] = input //交易输入
8746
 
8772
 
8755
 	//gdyb_url := ""
8781
 	//gdyb_url := ""
8756
 	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
8782
 	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
8757
 
8783
 
8758
-
8759
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1101"
8784
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1101"
8760
 	//url := "" + "3505"
8785
 	//url := "" + "3505"
8761
 	url := "http://hosp-gz.gd.hsip.gov.cn/ebus/gdyb_api/prd/hsa/hgs/" + "3505"
8786
 	url := "http://hosp-gz.gd.hsip.gov.cn/ebus/gdyb_api/prd/hsa/hgs/" + "3505"