|
@@ -408,7 +408,7 @@ type Custom struct {
|
408
|
408
|
|
409
|
409
|
|
410
|
410
|
|
411
|
|
-
|
|
411
|
+
|
412
|
412
|
|
413
|
413
|
|
414
|
414
|
|
|
@@ -417,7 +417,7 @@ type Custom struct {
|
417
|
417
|
|
418
|
418
|
|
419
|
419
|
|
420
|
|
-
|
|
420
|
+
|
421
|
421
|
|
422
|
422
|
|
423
|
423
|
|
|
@@ -2655,8 +2655,12 @@ func (c *SZHisApiController) GetDrugList() {
|
2655
|
2655
|
|
2656
|
2656
|
adminUserInfo := c.GetAdminUserInfo()
|
2657
|
2657
|
orgId := adminUserInfo.CurrentOrgId
|
2658
|
|
- fmt.Println(orgId)
|
|
2658
|
+ admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
2659
|
+ roles, _ := service.GetAdminUserInfoByID(orgId, admin_user_id)
|
|
2660
|
+ fmt.Println("222222222222", roles)
|
|
2661
|
+ fmt.Println("rolessssssss", roles.UserName)
|
2659
|
2662
|
ids := c.GetString("ids")
|
|
2663
|
+
|
2660
|
2664
|
stringarr := strings.Split(ids, ",")
|
2661
|
2665
|
idss := make([]int64, 0)
|
2662
|
2666
|
for _, item := range stringarr {
|
|
@@ -2682,7 +2686,7 @@ func (c *SZHisApiController) GetDrugList() {
|
2682
|
2686
|
var doctor_name string
|
2683
|
2687
|
var doctor_code string
|
2684
|
2688
|
|
2685
|
|
- doctor_name = "黄亦轩"
|
|
2689
|
+ doctor_name = roles.UserName
|
2686
|
2690
|
doctor_code = "1001"
|
2687
|
2691
|
|
2688
|
2692
|
var isSuccess bool = true
|
|
@@ -2748,6 +2752,8 @@ func (c *SZHisApiController) GetTreatmentProject() {
|
2748
|
2752
|
ids := c.GetString("ids")
|
2749
|
2753
|
stringarr := strings.Split(ids, ",")
|
2750
|
2754
|
idss := make([]int64, 0)
|
|
2755
|
+ admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
2756
|
+ roles, _ := service.GetAdminUserInfoByID(orgId, admin_user_id)
|
2751
|
2757
|
for _, item := range stringarr {
|
2752
|
2758
|
itemsss, _ := strconv.ParseInt(item, 10, 64)
|
2753
|
2759
|
id := int64(itemsss)
|
|
@@ -2761,7 +2767,7 @@ func (c *SZHisApiController) GetTreatmentProject() {
|
2761
|
2767
|
miConfig, _ := service.FindMedicalInsuranceInfo(orgId)
|
2762
|
2768
|
var doctor_name string
|
2763
|
2769
|
var doctor_code string
|
2764
|
|
- doctor_name = "黄亦轩"
|
|
2770
|
+ doctor_name = roles.UserName
|
2765
|
2771
|
doctor_code = "1001"
|
2766
|
2772
|
var isSuccess bool = true
|
2767
|
2773
|
for _, item := range list {
|
|
@@ -2816,6 +2822,8 @@ func (c *SZHisApiController) GetRevocation() {
|
2816
|
2822
|
adminUserInfo := c.GetAdminUserInfo()
|
2817
|
2823
|
orgId := adminUserInfo.CurrentOrgId
|
2818
|
2824
|
id, _ := c.GetInt64("id")
|
|
2825
|
+ admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
2826
|
+ roles, _ := service.GetAdminUserInfoByID(orgId, admin_user_id)
|
2819
|
2827
|
|
2820
|
2828
|
is_mark, _ := c.GetInt64("is_mark")
|
2821
|
2829
|
type_id, _ := c.GetInt64("type_id")
|
|
@@ -2830,7 +2838,7 @@ func (c *SZHisApiController) GetRevocation() {
|
2830
|
2838
|
var doctor_name string
|
2831
|
2839
|
var doctor_code string
|
2832
|
2840
|
|
2833
|
|
- doctor_name = "黄亦轩"
|
|
2841
|
+ doctor_name = roles.UserName
|
2834
|
2842
|
doctor_code = "1001"
|
2835
|
2843
|
|
2836
|
2844
|
var pagesize int = 50
|
|
@@ -2935,7 +2943,7 @@ func (c *SZHisApiController) GetRevocation() {
|
2935
|
2943
|
var doctor_name string
|
2936
|
2944
|
var doctor_code string
|
2937
|
2945
|
|
2938
|
|
- doctor_name = "黄亦轩"
|
|
2946
|
+ doctor_name = roles.UserName
|
2939
|
2947
|
doctor_code = "1001"
|
2940
|
2948
|
|
2941
|
2949
|
var isSuccess bool = true
|
|
@@ -3000,7 +3008,7 @@ func (c *SZHisApiController) GetRevocation() {
|
3000
|
3008
|
var doctor_name string
|
3001
|
3009
|
var doctor_code string
|
3002
|
3010
|
|
3003
|
|
- doctor_name = "黄亦轩"
|
|
3011
|
+ doctor_name = roles.UserName
|
3004
|
3012
|
doctor_code = "1001"
|
3005
|
3013
|
|
3006
|
3014
|
var pagesize int = 50
|
|
@@ -3071,7 +3079,7 @@ func (c *SZHisApiController) GetRevocation() {
|
3071
|
3079
|
fmt.Println("is_marke", is_mark)
|
3072
|
3080
|
|
3073
|
3081
|
if is_mark == 0 {
|
3074
|
|
- fmt.Println("进来饿了吗32222222")
|
|
3082
|
+
|
3075
|
3083
|
adminUserInfo := c.GetAdminUserInfo()
|
3076
|
3084
|
orgId := adminUserInfo.CurrentOrgId
|
3077
|
3085
|
|
|
@@ -3081,7 +3089,7 @@ func (c *SZHisApiController) GetRevocation() {
|
3081
|
3089
|
miConfig, _ := service.FindMedicalInsuranceInfo(orgId)
|
3082
|
3090
|
var doctor_name string
|
3083
|
3091
|
var doctor_code string
|
3084
|
|
- doctor_name = "黄亦轩"
|
|
3092
|
+ doctor_name = roles.UserName
|
3085
|
3093
|
doctor_code = "1001"
|
3086
|
3094
|
var isSuccess bool = true
|
3087
|
3095
|
for _, item := range list {
|
|
@@ -3143,7 +3151,7 @@ func (c *SZHisApiController) GetRevocation() {
|
3143
|
3151
|
var doctor_name string
|
3144
|
3152
|
var doctor_code string
|
3145
|
3153
|
|
3146
|
|
- doctor_name = "黄亦轩"
|
|
3154
|
+ doctor_name = roles.UserName
|
3147
|
3155
|
doctor_code = "1001"
|
3148
|
3156
|
|
3149
|
3157
|
var pagesize int = 50
|
|
@@ -3224,7 +3232,7 @@ func (c *SZHisApiController) GetRevocation() {
|
3224
|
3232
|
var doctor_name string
|
3225
|
3233
|
var doctor_code string
|
3226
|
3234
|
|
3227
|
|
- doctor_name = "黄亦轩"
|
|
3235
|
+ doctor_name = roles.UserName
|
3228
|
3236
|
doctor_code = "1001"
|
3229
|
3237
|
|
3230
|
3238
|
var isSuccess bool = true
|
|
@@ -3286,6 +3294,8 @@ func (c *SZHisApiController) GetDoctorList() {
|
3286
|
3294
|
fmt.Println("or3gi", orgid)
|
3287
|
3295
|
ids := c.GetString("ids")
|
3288
|
3296
|
fmt.Println("ids2222222222", ids)
|
|
3297
|
+ admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
3298
|
+ roles, _ := service.GetAdminUserInfoByID(orgid, admin_user_id)
|
3289
|
3299
|
stringarr := strings.Split(ids, ",")
|
3290
|
3300
|
idss := make([]int64, 0)
|
3291
|
3301
|
for _, item := range stringarr {
|
|
@@ -3312,7 +3322,7 @@ func (c *SZHisApiController) GetDoctorList() {
|
3312
|
3322
|
var doctor_name string
|
3313
|
3323
|
var doctor_code string
|
3314
|
3324
|
|
3315
|
|
- doctor_name = "黄亦轩"
|
|
3325
|
+ doctor_name = roles.UserName
|
3316
|
3326
|
doctor_code = "1001"
|
3317
|
3327
|
|
3318
|
3328
|
var isSuccess bool = true
|
|
@@ -3380,7 +3390,7 @@ func (c *SZHisApiController) GetDoctorList() {
|
3380
|
3390
|
}
|
3381
|
3391
|
if res.Transreturncode == "00000000" {
|
3382
|
3392
|
|
3383
|
|
- _, err := service.UpdateAdminUserRoleById(item.AdminUserId)
|
|
3393
|
+ _, err := service.UpdateAdminUserRoleById(item.AdminUserId, orgid)
|
3384
|
3394
|
fmt.Println("err2222", err)
|
3385
|
3395
|
} else {
|
3386
|
3396
|
isSuccess = false
|
|
@@ -3405,7 +3415,8 @@ func (c *SZHisApiController) GetMedicalList() {
|
3405
|
3415
|
id, _ := c.GetInt64("id")
|
3406
|
3416
|
fmt.Println("id22222222", id)
|
3407
|
3417
|
is_mark, _ := c.GetInt64("is_mark")
|
3408
|
|
-
|
|
3418
|
+ admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
3419
|
+ roles, _ := service.GetAdminUserInfoByID(orgId, admin_user_id)
|
3409
|
3420
|
|
3410
|
3421
|
if is_mark == 0 {
|
3411
|
3422
|
list, _ := service.GetDoctorListByDetail(orgId, id)
|
|
@@ -3424,56 +3435,54 @@ func (c *SZHisApiController) GetMedicalList() {
|
3424
|
3435
|
var doctor_name string
|
3425
|
3436
|
var doctor_code string
|
3426
|
3437
|
|
3427
|
|
- doctor_name = "黄亦轩"
|
|
3438
|
+ doctor_name = roles.UserName
|
3428
|
3439
|
doctor_code = "1001"
|
3429
|
3440
|
|
3430
|
3441
|
var isSuccess bool = true
|
3431
|
3442
|
|
3432
|
3443
|
for _, item := range list {
|
3433
|
3444
|
fmt.Println("医护类别", item.Mobile)
|
3434
|
|
- sex := strconv.FormatInt(item.Sex, 10)
|
3435
|
|
- card_type := strconv.FormatInt(item.CardType, 10)
|
3436
|
|
- is_active := strconv.FormatInt(item.IsActive, 10)
|
3437
|
3445
|
|
3438
|
3446
|
detail := &models.DocDetail{
|
3439
|
|
- UserName: item.UserName,
|
3440
|
|
- RoleId: item.Name,
|
3441
|
|
- Sex: sex,
|
3442
|
|
- CardType: card_type,
|
3443
|
|
- IdCard: item.IdCard,
|
3444
|
|
- Phone: item.Mobile,
|
3445
|
|
- WorkMajorName: item.WorkMajorName,
|
3446
|
|
- Nation: item.Nation,
|
3447
|
|
- BirthDay: 20201022,
|
3448
|
|
- WorkTime: 12,
|
3449
|
|
- Education: strconv.FormatInt(item.Education, 10),
|
3450
|
|
- StudyMajorName: item.StudyMajorName,
|
3451
|
|
- CertificateCode: "",
|
3452
|
|
- MedicalCode: item.MedicalCode,
|
3453
|
|
- MedicalRangeCode: strconv.FormatInt(item.MedicalRangeCode, 10),
|
3454
|
|
- MedicalLevel: strconv.FormatInt(item.MedicalLevel, 10),
|
3455
|
|
- TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
3456
|
|
- DoctorNumber: item.DoctorNumber,
|
3457
|
|
- Licensing: strconv.FormatInt(item.Licensing, 10),
|
3458
|
|
- DoctorServiceStatus: "",
|
3459
|
|
- MonitoringLevel: "",
|
3460
|
|
- DrugPsychotropicSubstances: "",
|
3461
|
|
- HealthCareCode: "",
|
3462
|
|
- PlanningTechnicalServiceCode: "",
|
3463
|
|
- PharmacistType: "",
|
3464
|
|
- PharmacistPracticeCategory: "",
|
3465
|
|
- PharmacistsLicensing: "",
|
3466
|
|
- PharmacistRegistrationNumber: item.PharmacistRegistrationNumber,
|
3467
|
|
- OfficeCode: "",
|
3468
|
|
- JobNumber: item.JobNumber,
|
3469
|
|
- PostName: "",
|
3470
|
|
- TechnicalJobLevelCode: "",
|
3471
|
|
- IsActive: is_active,
|
3472
|
|
- PrescriptionQualificationIdentification: item.PharmacistRegistrationNumber,
|
3473
|
|
- IdentificationOutpatients: "",
|
3474
|
|
- OutpatientIllnessCategory: item.OutpatientIllnessCategory,
|
3475
|
|
- StartTime: 20201012,
|
3476
|
|
-
|
|
3447
|
+ UserName: item.UserName,
|
|
3448
|
+ RoleId: item.Name,
|
|
3449
|
+ Sex: strconv.FormatInt(item.Sex, 10),
|
|
3450
|
+ CardType: strconv.FormatInt(item.CardType, 10),
|
|
3451
|
+ IdCard: item.IdCard,
|
|
3452
|
+ Phone: item.Mobile,
|
|
3453
|
+ WorkMajorName: item.WorkMajorName,
|
|
3454
|
+ Nation: item.Nation,
|
|
3455
|
+ BirthDay: 20201022,
|
|
3456
|
+ WorkTime: 20201022,
|
|
3457
|
+ Education: strconv.FormatInt(item.Education, 10),
|
|
3458
|
+ StudyMajorName: item.StudyMajorName,
|
|
3459
|
+ CertificateCode: item.MedicalCode,
|
|
3460
|
+ MedicalCode: item.DoctorCode,
|
|
3461
|
+ MedicalRangeCode: strconv.FormatInt(item.DoctorRangeCode, 10),
|
|
3462
|
+ MedicalLevel: strconv.FormatInt(item.DoctorLevel, 10),
|
|
3463
|
+ TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
|
3464
|
+ DoctorNumber: item.DoctorNumber,
|
|
3465
|
+ Licensing: strconv.FormatInt(item.Licensing, 10),
|
|
3466
|
+ DoctorServiceStatus: "",
|
|
3467
|
+ MonitoringLevel: "",
|
|
3468
|
+ DrugPsychotropicSubstances: "",
|
|
3469
|
+ HealthCareCode: "",
|
|
3470
|
+ PlanningTechnicalServiceCode: "",
|
|
3471
|
+ PharmacistType: "",
|
|
3472
|
+ PharmacistPracticeCategory: "",
|
|
3473
|
+ PharmacistsLicensing: "",
|
|
3474
|
+ PharmacistRegistrationNumber: "",
|
|
3475
|
+ OfficeCode: "",
|
|
3476
|
+ JobNumber: item.JobNumber,
|
|
3477
|
+ PostName: "",
|
|
3478
|
+ TechnicalJobLevelCode: "",
|
|
3479
|
+ IsActive: strconv.FormatInt(item.IsActive, 10),
|
|
3480
|
+ PrescriptionQualificationIdentification: strconv.FormatInt(item.PrescriptionQualificationIdentification, 10),
|
|
3481
|
+ IdentificationOutpatients: strconv.FormatInt(item.IdentificationOutpatients, 10),
|
|
3482
|
+ OutpatientIllnessCategory: item.OutpatientIllnessCategory,
|
|
3483
|
+ StartTime: 20201010,
|
|
3484
|
+ StaffCode: "",
|
|
3485
|
+ EndTime: 0,
|
3477
|
3486
|
}
|
3478
|
3487
|
result := service.SzybYS001(doctor_name, doctor_code, miConfig.Code, detail)
|
3479
|
3488
|
fmt.Println("reuslt9999999999999999", result)
|
|
@@ -3494,7 +3503,7 @@ func (c *SZHisApiController) GetMedicalList() {
|
3494
|
3503
|
}
|
3495
|
3504
|
if res.Transreturncode == "00000000" {
|
3496
|
3505
|
|
3497
|
|
- service.UpdateAdminUserRoleById(item.ID)
|
|
3506
|
+ service.UpdateAdminUserRoleById(item.ID, orgId)
|
3498
|
3507
|
|
3499
|
3508
|
} else {
|
3500
|
3509
|
isSuccess = false
|
|
@@ -3535,45 +3544,45 @@ func (c *SZHisApiController) GetMedicalList() {
|
3535
|
3544
|
for _, item := range list {
|
3536
|
3545
|
fmt.Println("医护类别", item.Name)
|
3537
|
3546
|
detail := &models.DocDetail{
|
3538
|
|
- StaffCode: "H27224269",
|
3539
|
|
- UserName: item.UserName,
|
3540
|
|
- RoleId: item.Name,
|
3541
|
|
- Sex: "1",
|
3542
|
|
- CardType: "01",
|
3543
|
|
- IdCard: "430526199408156511",
|
3544
|
|
- Phone: "13318464642",
|
3545
|
|
- WorkMajorName: "医生",
|
3546
|
|
- Nation: "01",
|
3547
|
|
- BirthDay: 20201022,
|
3548
|
|
- WorkTime: 20201022,
|
3549
|
|
- Education: "21",
|
3550
|
|
- StudyMajorName: "医生",
|
3551
|
|
- CertificateCode: "y2222222",
|
3552
|
|
- MedicalCode: "y2222222",
|
3553
|
|
- MedicalRangeCode: "101",
|
3554
|
|
- MedicalLevel: "1",
|
3555
|
|
- TypeJob: "1",
|
3556
|
|
- DoctorNumber: "22222",
|
3557
|
|
- Licensing: "1",
|
3558
|
|
- DoctorServiceStatus: "1",
|
3559
|
|
- MonitoringLevel: "1",
|
3560
|
|
- DrugPsychotropicSubstances: "1",
|
3561
|
|
- HealthCareCode: "1001",
|
3562
|
|
- PlanningTechnicalServiceCode: "1002",
|
3563
|
|
- PharmacistType: "1",
|
3564
|
|
- PharmacistPracticeCategory: "1",
|
3565
|
|
- PharmacistsLicensing: "1",
|
3566
|
|
- PharmacistRegistrationNumber: "000200",
|
3567
|
|
- OfficeCode: "9933",
|
3568
|
|
- JobNumber: "82021344",
|
3569
|
|
- PostName: "主任",
|
3570
|
|
- TechnicalJobLevelCode: "231",
|
3571
|
|
- IsActive: "1",
|
3572
|
|
- PrescriptionQualificationIdentification: "1",
|
3573
|
|
- IdentificationOutpatients: "1",
|
3574
|
|
- OutpatientIllnessCategory: "血友病",
|
3575
|
|
- StartTime: 20210311,
|
3576
|
|
-
|
|
3547
|
+ UserName: item.UserName,
|
|
3548
|
+ RoleId: item.Name,
|
|
3549
|
+ Sex: strconv.FormatInt(item.Sex, 10),
|
|
3550
|
+ CardType: strconv.FormatInt(item.CardType, 10),
|
|
3551
|
+ IdCard: item.IdCard,
|
|
3552
|
+ Phone: item.Mobile,
|
|
3553
|
+ WorkMajorName: item.WorkMajorName,
|
|
3554
|
+ Nation: item.Nation,
|
|
3555
|
+ BirthDay: 20201022,
|
|
3556
|
+ WorkTime: 20201022,
|
|
3557
|
+ Education: strconv.FormatInt(item.Education, 10),
|
|
3558
|
+ StudyMajorName: item.StudyMajorName,
|
|
3559
|
+ CertificateCode: item.MedicalCode,
|
|
3560
|
+ MedicalCode: item.DoctorCode,
|
|
3561
|
+ MedicalRangeCode: strconv.FormatInt(item.DoctorRangeCode, 10),
|
|
3562
|
+ MedicalLevel: strconv.FormatInt(item.DoctorLevel, 10),
|
|
3563
|
+ TypeJob: strconv.FormatInt(item.DoctorTypeJob, 10),
|
|
3564
|
+ DoctorNumber: item.DoctorNumber,
|
|
3565
|
+ Licensing: strconv.FormatInt(item.Licensing, 10),
|
|
3566
|
+ DoctorServiceStatus: "",
|
|
3567
|
+ MonitoringLevel: "",
|
|
3568
|
+ DrugPsychotropicSubstances: "",
|
|
3569
|
+ HealthCareCode: "",
|
|
3570
|
+ PlanningTechnicalServiceCode: "",
|
|
3571
|
+ PharmacistType: "",
|
|
3572
|
+ PharmacistPracticeCategory: "",
|
|
3573
|
+ PharmacistsLicensing: "",
|
|
3574
|
+ PharmacistRegistrationNumber: "",
|
|
3575
|
+ OfficeCode: "",
|
|
3576
|
+ JobNumber: item.JobNumber,
|
|
3577
|
+ PostName: "",
|
|
3578
|
+ TechnicalJobLevelCode: "",
|
|
3579
|
+ IsActive: strconv.FormatInt(item.IsActive, 10),
|
|
3580
|
+ PrescriptionQualificationIdentification: strconv.FormatInt(item.PrescriptionQualificationIdentification, 10),
|
|
3581
|
+ IdentificationOutpatients: strconv.FormatInt(item.IdentificationOutpatients, 10),
|
|
3582
|
+ OutpatientIllnessCategory: item.OutpatientIllnessCategory,
|
|
3583
|
+ StartTime: 20201010,
|
|
3584
|
+ StaffCode: "",
|
|
3585
|
+ EndTime: 0,
|
3577
|
3586
|
}
|
3578
|
3587
|
result := service.SzybYS002(doctor_name, doctor_code, miConfig.Code, detail)
|
3579
|
3588
|
fmt.Println("reuslt9999999999999999", result)
|
|
@@ -3594,7 +3603,7 @@ func (c *SZHisApiController) GetMedicalList() {
|
3594
|
3603
|
}
|
3595
|
3604
|
if res.Transreturncode == "00000000" {
|
3596
|
3605
|
|
3597
|
|
- service.UpdateAdminUserRoleById(item.ID)
|
|
3606
|
+ service.UpdateAdminUserRoleById(item.ID, orgId)
|
3598
|
3607
|
} else {
|
3599
|
3608
|
isSuccess = false
|
3600
|
3609
|
|
|
@@ -3741,6 +3750,8 @@ func (c *SZHisApiController) GetGoodsList() {
|
3741
|
3750
|
|
3742
|
3751
|
ids := c.GetString("ids")
|
3743
|
3752
|
fmt.Println("ids2222222222", ids)
|
|
3753
|
+ admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
3754
|
+ roles, _ := service.GetAdminUserInfoByID(orgId, admin_user_id)
|
3744
|
3755
|
stringarr := strings.Split(ids, ",")
|
3745
|
3756
|
idss := make([]int64, 0)
|
3746
|
3757
|
for _, item := range stringarr {
|
|
@@ -3756,7 +3767,7 @@ func (c *SZHisApiController) GetGoodsList() {
|
3756
|
3767
|
var doctor_name string
|
3757
|
3768
|
var doctor_code string
|
3758
|
3769
|
|
3759
|
|
- doctor_name = "黄亦轩"
|
|
3770
|
+ doctor_name = roles.UserName
|
3760
|
3771
|
doctor_code = "1001"
|
3761
|
3772
|
|
3762
|
3773
|
var isSuccess bool = true
|