csx 4 年之前
父節點
當前提交
cf99ef16c2
共有 4 個文件被更改,包括 613 次插入540 次删除
  1. 602 537
      controllers/sz/sz_his_api_controller.go
  2. 3 0
      routers/router.go
  3. 3 3
      service/gdyb_service.go
  4. 5 0
      service/his_service.go

文件差異過大導致無法顯示
+ 602 - 537
controllers/sz/sz_his_api_controller.go


+ 3 - 0
routers/router.go 查看文件

@@ -2,6 +2,9 @@ package routers
2 2
 
3 3
 import (
4 4
 	"gdyb/controllers/sg"
5
+	//"gdyb/controllers/sg"
6
+	//"gdyb/controllers/sz"
7
+
5 8
 	//"gdyb/controllers/sz"
6 9
 	//"gdyb/controllers/sz"
7 10
 	//admin_api "XT_New/controllers/admin_api_controllers"

+ 3 - 3
service/gdyb_service.go 查看文件

@@ -1200,9 +1200,9 @@ func Gdyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
1200 1200
 	input := make(map[string]interface{})
1201 1201
 	inputData := make(map[string]interface{})
1202 1202
 	inputMessage["infno"] = "5203" // 交易编码
1203
-	inputData["psn_no"] = "44020000001104246641"
1204
-	inputData["setl_id"] = "3029927"
1205
-	inputData["mdtrt_id"] = "3966681"
1203
+	inputData["psn_no"] = businessParams.PsnNo
1204
+	inputData["setl_id"] = businessParams.SetlId
1205
+	inputData["mdtrt_id"] = businessParams.MdtrtId
1206 1206
 	input["data"] = inputData
1207 1207
 	inputMessage["input"] = input //交易输入
1208 1208
 	bytesData, err := json.Marshal(inputMessage)

+ 5 - 0
service/his_service.go 查看文件

@@ -685,6 +685,11 @@ func UpDateOrder(order models.HisOrder) (err error) {
685 685
 	return
686 686
 }
687 687
 
688
+func UpDateOrderTwo(order *models.HisOrder) (err error) {
689
+	err = writeDb.Save(&order).Error
690
+	return
691
+}
692
+
688 693
 func UpdataOrderStatusTwo(number string, user_org_id int64) (err error) {
689 694
 	err = writeDb.Model(&models.HisPrescription{}).Where("status = 1 AND batch_number = ? AND user_org_id = ?", number, user_org_id).Updates(map[string]interface{}{"order_status": 2, "mtime": time.Now().Unix()}).Error
690 695
 	err = writeDb.Model(&models.HisPrescriptionInfo{}).Where("status = 1 AND batch_number = ? AND user_org_id = ?", number, user_org_id).Updates(map[string]interface{}{"prescription_status": 3, "mtime": time.Now().Unix()}).Error