Sfoglia il codice sorgente

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 anni fa
parent
commit
376e71526a
4 ha cambiato i file con 21 aggiunte e 19 eliminazioni
  1. 1 1
      conf/app.conf
  2. 3 4
      controllers/sg/his_api_controller.go
  3. 6 6
      main.go
  4. 11 8
      service/jsyb_service.go

+ 1 - 1
conf/app.conf Vedi File

45
 
45
 
46
 
46
 
47
 [prod]
47
 [prod]
48
-org_id = 10217
48
+org_id = 10188
49
 mobile_token_expiration_second = 86400
49
 mobile_token_expiration_second = 86400
50
 httpdomain = https://api.xt.kuyicloud.com
50
 httpdomain = https://api.xt.kuyicloud.com
51
 sso_domain = https://sso.kuyicloud.com
51
 sso_domain = https://sso.kuyicloud.com

+ 3 - 4
controllers/sg/his_api_controller.go Vedi File

112
 	}
112
 	}
113
 
113
 
114
 }
114
 }
115
-func (c *HisApiController) Check3101() {
116
-	patient_id, _ := c.GetInt64("patient_id")
117
-	his_patient_id, _ := c.GetInt64("his_patient_id")
118
-	admin_user_id, _ := c.GetInt64("admin_user_id")
115
+func (c *HisApiController) Check3101(patient_id int64, his_patient_id int64, admin_user_id int64) {
116
+
119
 	adminUser := c.GetAdminUserInfo()
117
 	adminUser := c.GetAdminUserInfo()
120
 	roles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
118
 	roles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
121
 	his, _ := service.GetNewHisPatientInfoFour(c.GetAdminUserInfo().CurrentOrgId, his_patient_id)
119
 	his, _ := service.GetNewHisPatientInfoFour(c.GetAdminUserInfo().CurrentOrgId, his_patient_id)
751
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
749
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
752
 		return
750
 		return
753
 	}
751
 	}
752
+
754
 	//手术操作集合
753
 	//手术操作集合
755
 
754
 
756
 	//手术操作集合
755
 	//手术操作集合

+ 6 - 6
main.go Vedi File

5
 	"fmt"
5
 	"fmt"
6
 	"gdyb/models"
6
 	"gdyb/models"
7
 	_ "gdyb/routers"
7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9
 	"github.com/astaxie/beego"
9
 	"github.com/astaxie/beego"
10
 	"github.com/qiniu/api.v7/auth/qbox"
10
 	"github.com/qiniu/api.v7/auth/qbox"
11
 	"github.com/qiniu/api.v7/storage"
11
 	"github.com/qiniu/api.v7/storage"
15
 )
15
 )
16
 
16
 
17
 func init() {
17
 func init() {
18
-	//service.ConnectDB()
19
-	//org_id, _ := beego.AppConfig.Int64("org_id")
20
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
21
-	//CreateLog(miConfig)
22
-	//UploadLog(miConfig)
18
+	service.ConnectDB()
19
+	org_id, _ := beego.AppConfig.Int64("org_id")
20
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
21
+	CreateLog(miConfig)
22
+	UploadLog(miConfig)
23
 	//UploadSettleList(org_id)
23
 	//UploadSettleList(org_id)
24
 }
24
 }
25
 func main() {
25
 func main() {

+ 11 - 8
service/jsyb_service.go Vedi File

300
 	inputData["dept_code"] = dept_code   // 科室编码
300
 	inputData["dept_code"] = dept_code   // 科室编码
301
 	inputData["dept_name"] = dept        // 科室名称
301
 	inputData["dept_name"] = dept        // 科室名称
302
 	inputData["caty"] = "A03.06"         // 科别
302
 	inputData["caty"] = "A03.06"         // 科别
303
+	inputData["expContent"] = ""         //
303
 
304
 
304
 	input["data"] = inputData
305
 	input["data"] = inputData
305
 	inputMessage["input"] = input //交易输入
306
 	inputMessage["input"] = input //交易输入
330
 	inputData["psn_no"] = psnNo          // 人员编号 (来自1101接口返回)
331
 	inputData["psn_no"] = psnNo          // 人员编号 (来自1101接口返回)
331
 	inputData["mdtrt_id"] = mdtrtId      // 就诊 ID(来自2201接口返回)
332
 	inputData["mdtrt_id"] = mdtrtId      // 就诊 ID(来自2201接口返回)
332
 	inputData["ipt_otp_no"] = ipt_otp_no // 住院/门诊号
333
 	inputData["ipt_otp_no"] = ipt_otp_no // 住院/门诊号
333
-	inputData["exp_content"] = ""        // 人员编号 (来自1101接口返回)
334
+	//inputData["exp_content"] = ""        // 人员编号 (来自1101接口返回)
335
+	inputData["expContent"] = "" //
334
 
336
 
335
 	input["data"] = inputData
337
 	input["data"] = inputData
336
 	inputMessage["input"] = input //交易输入
338
 	inputMessage["input"] = input //交易输入
390
 		diseinfo_sun["vali_flag"] = "1"              // 有效标志
392
 		diseinfo_sun["vali_flag"] = "1"              // 有效标志
391
 		diseinfo = append(diseinfo, diseinfo_sun)
393
 		diseinfo = append(diseinfo, diseinfo_sun)
392
 	}
394
 	}
393
-	inputData["exp_content"] = "" // 人员编号 (来自1101接口返回)
395
+	//inputData["exp_content"] = "" // 人员编号 (来自1101接口返回)
396
+	inputData["expContent"] = "" //
394
 
397
 
395
 	input["diseinfo"] = diseinfo
398
 	input["diseinfo"] = diseinfo
396
 	input["mdtrtinfo"] = inputData
399
 	input["mdtrtinfo"] = inputData
641
 		feedetailInfo["matn_fee_flag"] = ""    // 生育费用标志
644
 		feedetailInfo["matn_fee_flag"] = ""    // 生育费用标志
642
 		subfeedetailInfo["tcmherb_prov_code"] = item.ProvinceDrugMedListCodg
645
 		subfeedetailInfo["tcmherb_prov_code"] = item.ProvinceDrugMedListCodg
643
 		subfeedetailInfo["mcs_prov_code"] = item.ProvinceGoodMedListCodg
646
 		subfeedetailInfo["mcs_prov_code"] = item.ProvinceGoodMedListCodg
644
-		feedetailInfo["exp_content"] = subfeedetailInfo
647
+		feedetailInfo["expContent"] = subfeedetailInfo
645
 		feedetail = append(feedetail, feedetailInfo)
648
 		feedetail = append(feedetail, feedetailInfo)
646
 	}
649
 	}
647
 
650
 
677
 	inputData["mdtrt_id"] = mdtrtId  // 就诊 ID(来自2201接口返回)
680
 	inputData["mdtrt_id"] = mdtrtId  // 就诊 ID(来自2201接口返回)
678
 	inputData["chrg_bchno"] = "0000" // 收费批次号(来自2204生成的)
681
 	inputData["chrg_bchno"] = "0000" // 收费批次号(来自2204生成的)
679
 
682
 
680
-	inputData["psn_no"] = psnNo   // 人员编号 (来自1101接口返回)
681
-	inputData["exp_content"] = "" // 人员编号 (来自1101接口返回)
683
+	inputData["psn_no"] = psnNo  // 人员编号 (来自1101接口返回)
684
+	inputData["expContent"] = "" // 人员编号 (来自1101接口返回)
682
 
685
 
683
 	input["data"] = inputData
686
 	input["data"] = inputData
684
 	inputMessage["input"] = input //交易输入
687
 	inputMessage["input"] = input //交易输入
743
 	inputData["acct_used_flag"] = "0"   // 个人账户使用标志 0否 1是
746
 	inputData["acct_used_flag"] = "0"   // 个人账户使用标志 0否 1是
744
 	inputData["insutype"] = insutype    // 险种类型
747
 	inputData["insutype"] = insutype    // 险种类型
745
 	inputData["invono"] = ""            // 发票号
748
 	inputData["invono"] = ""            // 发票号
746
-	inputData["exp_content"] = ""       // 人员编号 (来自1101接口返回)
749
+	inputData["expContent"] = ""        // 人员编号 (来自1101接口返回)
747
 
750
 
748
 	input["data"] = inputData
751
 	input["data"] = inputData
749
 	inputMessage["input"] = input //交易输入
752
 	inputMessage["input"] = input //交易输入
817
 	inputData["overlmt_selfpay"] = overlmt_selfpay     //
820
 	inputData["overlmt_selfpay"] = overlmt_selfpay     //
818
 	inputData["preselfpay_amt"] = preselfpay_amt       //
821
 	inputData["preselfpay_amt"] = preselfpay_amt       //
819
 	inputData["inscp_scp_amt"] = inscp_scp_amt         //
822
 	inputData["inscp_scp_amt"] = inscp_scp_amt         //
820
-	inputData["exp_content"] = ""                      // 人员编号 (来自1101接口返回)
823
+	inputData["expContent"] = ""                       // 人员编号 (来自1101接口返回)
821
 
824
 
822
 	input["data"] = inputData
825
 	input["data"] = inputData
823
 	inputMessage["input"] = input //交易输入
826
 	inputMessage["input"] = input //交易输入
908
 	inputData["psn_no"] = psnNo     // 人员编号 (来自1101接口返回)
911
 	inputData["psn_no"] = psnNo     // 人员编号 (来自1101接口返回)
909
 	inputData["mdtrt_id"] = mdtrtId // 就诊 ID(来自2201接口返回)
912
 	inputData["mdtrt_id"] = mdtrtId // 就诊 ID(来自2201接口返回)
910
 	inputData["setl_id"] = setlId   // 结算 ID
913
 	inputData["setl_id"] = setlId   // 结算 ID
911
-	inputData["exp_content"] = ""   // 人员编号 (来自1101接口返回)
914
+	inputData["expContent"] = ""    // 人员编号 (来自1101接口返回)
912
 
915
 
913
 	input["data"] = inputData
916
 	input["data"] = inputData
914
 	inputMessage["input"] = input //交易输入
917
 	inputMessage["input"] = input //交易输入