|
@@ -1780,6 +1780,8 @@ func (c *HisApiController) GetRegisterInfo() {
|
1780
|
1780
|
registration_fee, _ := c.GetFloat("registration_fee")
|
1781
|
1781
|
medical_expenses, _ := c.GetFloat("medical_expenses")
|
1782
|
1782
|
social_type, _ := c.GetInt64("social_type")
|
|
1783
|
+ med_type := c.GetString("social_type")
|
|
1784
|
+
|
1783
|
1785
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
1784
|
1786
|
|
1785
|
1787
|
timeLayout := "2006-01-02"
|
|
@@ -2011,7 +2013,10 @@ func (c *HisApiController) GetRegisterInfo() {
|
2011
|
2013
|
insutype = "310"
|
2012
|
2014
|
}
|
2013
|
2015
|
|
2014
|
|
- //insutype = "390"
|
|
2016
|
+ if len(insutypes) == 2 {
|
|
2017
|
+ insutype = med_type
|
|
2018
|
+ }
|
|
2019
|
+
|
2015
|
2020
|
var resThree ResultThree
|
2016
|
2021
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
2017
|
2022
|
api := "http://192.168.124.4:9532/" + "hbyb/2201?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + Certno + "&ipt_otp_no=" + ipt_otp_no +
|
|
@@ -2604,6 +2609,10 @@ func (c *HisApiController) GetUploadInfo() {
|
2604
|
2609
|
insutype = "310"
|
2605
|
2610
|
}
|
2606
|
2611
|
|
|
2612
|
+ if len(insutypes) == 2 {
|
|
2613
|
+ insutype = strconv.FormatInt(his.SocialType, 64)
|
|
2614
|
+ }
|
|
2615
|
+
|
2607
|
2616
|
//insutype = "390"
|
2608
|
2617
|
if his.IdCardType == 1 {
|
2609
|
2618
|
// cert_no = his.MedicalInsuranceNumber
|
|
@@ -2852,6 +2861,10 @@ func (c *HisApiController) GetUploadInfo() {
|
2852
|
2861
|
insutype = "310"
|
2853
|
2862
|
}
|
2854
|
2863
|
|
|
2864
|
+ if len(insutypes) == 2 {
|
|
2865
|
+ insutype = strconv.FormatInt(his.SocialType, 64)
|
|
2866
|
+ }
|
|
2867
|
+
|
2855
|
2868
|
//insutype = "390"
|
2856
|
2869
|
if his.IdCardType == 1 {
|
2857
|
2870
|
// cert_no = his.MedicalInsuranceNumber
|
|
@@ -3963,6 +3976,9 @@ func (c *HisApiController) GetPreUploadInfo() {
|
3963
|
3976
|
if len(insutypes) == 0 {
|
3964
|
3977
|
insutype = "310"
|
3965
|
3978
|
}
|
|
3979
|
+ if len(insutypes) == 2 {
|
|
3980
|
+ insutype = strconv.FormatInt(his.SocialType, 64)
|
|
3981
|
+ }
|
3966
|
3982
|
|
3967
|
3983
|
//insutype = "390"
|
3968
|
3984
|
if his.IdCardType == 1 {
|