csx 4 gadus atpakaļ
vecāks
revīzija
cf99ef16c2

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 602 - 537
controllers/sz/sz_his_api_controller.go


+ 3 - 0
routers/router.go Parādīt failu

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

+ 3 - 3
service/gdyb_service.go Parādīt failu

1200
 	input := make(map[string]interface{})
1200
 	input := make(map[string]interface{})
1201
 	inputData := make(map[string]interface{})
1201
 	inputData := make(map[string]interface{})
1202
 	inputMessage["infno"] = "5203" // 交易编码
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
 	input["data"] = inputData
1206
 	input["data"] = inputData
1207
 	inputMessage["input"] = input //交易输入
1207
 	inputMessage["input"] = input //交易输入
1208
 	bytesData, err := json.Marshal(inputMessage)
1208
 	bytesData, err := json.Marshal(inputMessage)

+ 5 - 0
service/his_service.go Parādīt failu

685
 	return
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
 func UpdataOrderStatusTwo(number string, user_org_id int64) (err error) {
693
 func UpdataOrderStatusTwo(number string, user_org_id int64) (err error) {
689
 	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
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
 	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
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