Browse Source

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

28169 4 weeks ago
parent
commit
05f091794f

+ 7 - 0
controllers/his_api_controller.go View File

@@ -259,6 +259,10 @@ func (c *HisApiController) ChangeOrderDesc() {
259 259
 	case "jifen_pay":
260 260
 		order.JifenPay = desc
261 261
 
262
+		break
263
+	case "card_desc":
264
+		order.CardDesc = desc
265
+
262 266
 		break
263 267
 	case "band_card_pay":
264 268
 		order.BandCardPay = desc
@@ -10323,6 +10327,8 @@ func (c *HisApiController) GetUploadInfo() {
10323 10327
 	wechat_pay := c.GetString("wechat_pay")
10324 10328
 	ali_pay := c.GetString("ali_pay")
10325 10329
 	jifen_pay := c.GetString("jifen_pay")
10330
+	card_desc := c.GetString("card_desc")
10331
+
10326 10332
 	band_card_pay := c.GetString("band_card_pay")
10327 10333
 
10328 10334
 	dec_way := c.GetString("dec_way") //是否使用押金支付bool类型
@@ -10632,6 +10638,7 @@ func (c *HisApiController) GetUploadInfo() {
10632 10638
 			JifenPay:              jifen_pay,
10633 10639
 			BandCardPay:           band_card_pay,
10634 10640
 			Creator:               adminUser.AdminUser.Id,
10641
+			CardDesc:              card_desc,
10635 10642
 		}
10636 10643
 		err = service.CreateOrderTX(order, tx)
10637 10644
 		if err != nil {

+ 4 - 0
models/his_charge_models.go View File

@@ -133,6 +133,7 @@ type HisChargeOrder struct {
133 133
 	IsMedicineInsurance int64                 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
134 134
 	HisChargeOrderInfo  []*HisChargeOrderInfo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
135 135
 	Patients            Patients              `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId" json:"patient"`
136
+	CardDesc            string                `gorm:"card_desc" json:"card_desc" form:"card_desc"`
136 137
 }
137 138
 
138 139
 func (HisChargeOrder) TableName() string {
@@ -209,6 +210,7 @@ type HisChargeSettleOrder struct {
209 210
 	IsUploadSuccess   int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
210 211
 
211 212
 	SickName string `gorm:"sick_name" json:"sick_name" form:"sick_name"`
213
+	CardDesc string `gorm:"card_desc" json:"card_desc" form:"card_desc"`
212 214
 
213 215
 	//OrderHisPatient OrderHisPatient `gorm:"ForeignKey:Number;AssociationForeignKey:MdtrtId" json:"his"`
214 216
 }
@@ -328,6 +330,7 @@ type HisChargeOrderTwo struct {
328 330
 	MdtrtId               string                   `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
329 331
 	PatientId             int64                    `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
330 332
 	HisChargeOrderInfoTwo []*HisChargeOrderInfoTwo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
333
+	CardDesc              string                   `gorm:"card_desc" json:"card_desc" form:"card_desc"`
331 334
 }
332 335
 
333 336
 func (HisChargeOrderTwo) TableName() string {
@@ -414,6 +417,7 @@ type NewHisChargeOrder struct {
414 417
 	PsnCashPay          float64                     `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
415 418
 	IsMedicineInsurance int64                       `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
416 419
 	HisChargeOrderInfo  []*NewHisChargeOrderInfoTwo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
420
+	CardDesc            string                      `gorm:"card_desc" json:"card_desc" form:"card_desc"`
417 421
 }
418 422
 
419 423
 func (NewHisChargeOrder) TableName() string {

+ 7 - 4
models/his_models.go View File

@@ -534,9 +534,10 @@ type TempHisOrder struct {
534 534
 	IsPre           int64  `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
535 535
 	Diagnosis       string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
536 536
 
537
-	IsUploadDiagnose  int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
538
-	IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
539
-	IsUploadSuccess   int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
537
+	IsUploadDiagnose  int64  `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
538
+	IsUploadOrderInfo int64  `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
539
+	IsUploadSuccess   int64  `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
540
+	CardDesc          string `gorm:"card_desc" json:"card_desc" form:"card_desc"`
540 541
 }
541 542
 
542 543
 func (TempHisOrder) TableName() string {
@@ -1092,7 +1093,7 @@ type HisOrder struct {
1092 1093
 	Patients               Patients               `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
1093 1094
 	HisPatient             HisPatient             `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_patient"`
1094 1095
 	HisHospitalCheckRecord HisHospitalCheckRecord `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_hospital_patient"`
1095
-	HisPrescriptionInfo    HisPrescriptionInfo    `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"p_info"`
1096
+	HisPrescriptionInfo    HisPrescriptionInfo    `gorm:"ForeignKey:HisPatientId;AssociationForeignKey:HisPatientId" json:"p_info"`
1096 1097
 
1097 1098
 	HisFundSettleListResult HisFundSettleListResult `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"result"`
1098 1099
 	IsPre                   int64                   `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
@@ -1102,6 +1103,7 @@ type HisOrder struct {
1102 1103
 	IsUploadOrderInfo       int64                   `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
1103 1104
 	IsUploadSuccess         int64                   `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
1104 1105
 	SickName                string                  `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
1106
+	CardDesc                string                  `gorm:"card_desc" json:"card_desc" form:"card_desc"`
1105 1107
 }
1106 1108
 
1107 1109
 func (HisOrder) TableName() string {
@@ -1255,6 +1257,7 @@ type HisOrderOther struct {
1255 1257
 	WechatPay             string   `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
1256 1258
 	AliPay                string   `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
1257 1259
 	JifenPay              string   `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
1260
+	CardDesc              string   `gorm:"card_desc" json:"card_desc" form:"card_desc"`
1258 1261
 	FaPiaoCode            string   `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
1259 1262
 	FaPiaoNumber          string   `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
1260 1263
 	SettleType            int64    `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`

+ 1 - 0
models/his_summary_models.go View File

@@ -379,6 +379,7 @@ type GatherHisOrder struct {
379 379
 	Decimal                 float64   `gorm:"column:decimal" json:"decimal" form:"decimal"`
380 380
 	OthDesc                 string    `gorm:"oth_desc" json:"oth_desc" form:"oth_desc"`
381 381
 	PayWays                 string    `gorm:"pay_ways" json:"pay_ways" form:"pay_ways"`
382
+	CardDesc                string    `gorm:"card_desc" json:"card_desc" form:"card_desc"`
382 383
 }
383 384
 
384 385
 func (GatherHisOrder) TableName() string {

+ 1 - 0
service/his_service.go View File

@@ -101,6 +101,7 @@ type VMHisOrder struct {
101 101
 	FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
102 102
 	IsPre        int64  `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
103 103
 	Diagnosis    string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
104
+	CardDesc     string `gorm:"card_desc" json:"card_desc" form:"card_desc"`
104 105
 }
105 106
 
106 107
 func (VMHisOrder) TableName() string {