Browse Source

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

csx 1 year ago
parent
commit
376e71526a
4 changed files with 21 additions and 19 deletions
  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 View File

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

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

@@ -112,10 +112,8 @@ func (c *HisApiController) Get9001() {
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 117
 	adminUser := c.GetAdminUserInfo()
120 118
 	roles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
121 119
 	his, _ := service.GetNewHisPatientInfoFour(c.GetAdminUserInfo().CurrentOrgId, his_patient_id)
@@ -751,6 +749,7 @@ func (c *HisApiController) Check3102() {
751 749
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
752 750
 		return
753 751
 	}
752
+
754 753
 	//手术操作集合
755 754
 
756 755
 	//手术操作集合

+ 6 - 6
main.go View File

@@ -5,7 +5,7 @@ import (
5 5
 	"fmt"
6 6
 	"gdyb/models"
7 7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9 9
 	"github.com/astaxie/beego"
10 10
 	"github.com/qiniu/api.v7/auth/qbox"
11 11
 	"github.com/qiniu/api.v7/storage"
@@ -15,11 +15,11 @@ import (
15 15
 )
16 16
 
17 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 23
 	//UploadSettleList(org_id)
24 24
 }
25 25
 func main() {

+ 11 - 8
service/jsyb_service.go View File

@@ -300,6 +300,7 @@ func Jsyb2201(psnNo string, insutype string, certNo string, org_name string, ope
300 300
 	inputData["dept_code"] = dept_code   // 科室编码
301 301
 	inputData["dept_name"] = dept        // 科室名称
302 302
 	inputData["caty"] = "A03.06"         // 科别
303
+	inputData["expContent"] = ""         //
303 304
 
304 305
 	input["data"] = inputData
305 306
 	inputMessage["input"] = input //交易输入
@@ -330,7 +331,8 @@ func Jsyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
330 331
 	inputData["psn_no"] = psnNo          // 人员编号 (来自1101接口返回)
331 332
 	inputData["mdtrt_id"] = mdtrtId      // 就诊 ID(来自2201接口返回)
332 333
 	inputData["ipt_otp_no"] = ipt_otp_no // 住院/门诊号
333
-	inputData["exp_content"] = ""        // 人员编号 (来自1101接口返回)
334
+	//inputData["exp_content"] = ""        // 人员编号 (来自1101接口返回)
335
+	inputData["expContent"] = "" //
334 336
 
335 337
 	input["data"] = inputData
336 338
 	inputMessage["input"] = input //交易输入
@@ -390,7 +392,8 @@ func Jsyb2203(psnNo string, mdtrtId string, doctor string, department string, or
390 392
 		diseinfo_sun["vali_flag"] = "1"              // 有效标志
391 393
 		diseinfo = append(diseinfo, diseinfo_sun)
392 394
 	}
393
-	inputData["exp_content"] = "" // 人员编号 (来自1101接口返回)
395
+	//inputData["exp_content"] = "" // 人员编号 (来自1101接口返回)
396
+	inputData["expContent"] = "" //
394 397
 
395 398
 	input["diseinfo"] = diseinfo
396 399
 	input["mdtrtinfo"] = inputData
@@ -641,7 +644,7 @@ func Jsyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
641 644
 		feedetailInfo["matn_fee_flag"] = ""    // 生育费用标志
642 645
 		subfeedetailInfo["tcmherb_prov_code"] = item.ProvinceDrugMedListCodg
643 646
 		subfeedetailInfo["mcs_prov_code"] = item.ProvinceGoodMedListCodg
644
-		feedetailInfo["exp_content"] = subfeedetailInfo
647
+		feedetailInfo["expContent"] = subfeedetailInfo
645 648
 		feedetail = append(feedetail, feedetailInfo)
646 649
 	}
647 650
 
@@ -677,8 +680,8 @@ func Jsyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
677 680
 	inputData["mdtrt_id"] = mdtrtId  // 就诊 ID(来自2201接口返回)
678 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 686
 	input["data"] = inputData
684 687
 	inputMessage["input"] = input //交易输入
@@ -743,7 +746,7 @@ func Jsyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
743 746
 	inputData["acct_used_flag"] = "0"   // 个人账户使用标志 0否 1是
744 747
 	inputData["insutype"] = insutype    // 险种类型
745 748
 	inputData["invono"] = ""            // 发票号
746
-	inputData["exp_content"] = ""       // 人员编号 (来自1101接口返回)
749
+	inputData["expContent"] = ""        // 人员编号 (来自1101接口返回)
747 750
 
748 751
 	input["data"] = inputData
749 752
 	inputMessage["input"] = input //交易输入
@@ -817,7 +820,7 @@ func Jsyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
817 820
 	inputData["overlmt_selfpay"] = overlmt_selfpay     //
818 821
 	inputData["preselfpay_amt"] = preselfpay_amt       //
819 822
 	inputData["inscp_scp_amt"] = inscp_scp_amt         //
820
-	inputData["exp_content"] = ""                      // 人员编号 (来自1101接口返回)
823
+	inputData["expContent"] = ""                       // 人员编号 (来自1101接口返回)
821 824
 
822 825
 	input["data"] = inputData
823 826
 	inputMessage["input"] = input //交易输入
@@ -908,7 +911,7 @@ func Jsyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
908 911
 	inputData["psn_no"] = psnNo     // 人员编号 (来自1101接口返回)
909 912
 	inputData["mdtrt_id"] = mdtrtId // 就诊 ID(来自2201接口返回)
910 913
 	inputData["setl_id"] = setlId   // 结算 ID
911
-	inputData["exp_content"] = ""   // 人员编号 (来自1101接口返回)
914
+	inputData["expContent"] = ""    // 人员编号 (来自1101接口返回)
912 915
 
913 916
 	input["data"] = inputData
914 917
 	inputMessage["input"] = input //交易输入