Browse Source

提交代码

陈少旭 4 weeks ago
parent
commit
39e62d7abf

+ 7 - 0
controllers/his_api_controller.go View File

259
 	case "jifen_pay":
259
 	case "jifen_pay":
260
 		order.JifenPay = desc
260
 		order.JifenPay = desc
261
 
261
 
262
+		break
263
+	case "card_desc":
264
+		order.CardDesc = desc
265
+
262
 		break
266
 		break
263
 	case "band_card_pay":
267
 	case "band_card_pay":
264
 		order.BandCardPay = desc
268
 		order.BandCardPay = desc
10282
 	wechat_pay := c.GetString("wechat_pay")
10286
 	wechat_pay := c.GetString("wechat_pay")
10283
 	ali_pay := c.GetString("ali_pay")
10287
 	ali_pay := c.GetString("ali_pay")
10284
 	jifen_pay := c.GetString("jifen_pay")
10288
 	jifen_pay := c.GetString("jifen_pay")
10289
+	card_desc := c.GetString("card_desc")
10290
+
10285
 	band_card_pay := c.GetString("band_card_pay")
10291
 	band_card_pay := c.GetString("band_card_pay")
10286
 
10292
 
10287
 	dec_way := c.GetString("dec_way") //是否使用押金支付bool类型
10293
 	dec_way := c.GetString("dec_way") //是否使用押金支付bool类型
10591
 			JifenPay:              jifen_pay,
10597
 			JifenPay:              jifen_pay,
10592
 			BandCardPay:           band_card_pay,
10598
 			BandCardPay:           band_card_pay,
10593
 			Creator:               adminUser.AdminUser.Id,
10599
 			Creator:               adminUser.AdminUser.Id,
10600
+			CardDesc:              card_desc,
10594
 		}
10601
 		}
10595
 		err = service.CreateOrderTX(order, tx)
10602
 		err = service.CreateOrderTX(order, tx)
10596
 		if err != nil {
10603
 		if err != nil {

+ 4 - 0
models/his_charge_models.go View File

133
 	IsMedicineInsurance int64                 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
133
 	IsMedicineInsurance int64                 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
134
 	HisChargeOrderInfo  []*HisChargeOrderInfo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
134
 	HisChargeOrderInfo  []*HisChargeOrderInfo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
135
 	Patients            Patients              `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId" json:"patient"`
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
 func (HisChargeOrder) TableName() string {
139
 func (HisChargeOrder) TableName() string {
209
 	IsUploadSuccess   int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
210
 	IsUploadSuccess   int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
210
 
211
 
211
 	SickName string `gorm:"sick_name" json:"sick_name" form:"sick_name"`
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
 	//OrderHisPatient OrderHisPatient `gorm:"ForeignKey:Number;AssociationForeignKey:MdtrtId" json:"his"`
215
 	//OrderHisPatient OrderHisPatient `gorm:"ForeignKey:Number;AssociationForeignKey:MdtrtId" json:"his"`
214
 }
216
 }
328
 	MdtrtId               string                   `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
330
 	MdtrtId               string                   `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
329
 	PatientId             int64                    `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
331
 	PatientId             int64                    `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
330
 	HisChargeOrderInfoTwo []*HisChargeOrderInfoTwo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
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
 func (HisChargeOrderTwo) TableName() string {
336
 func (HisChargeOrderTwo) TableName() string {
414
 	PsnCashPay          float64                     `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
417
 	PsnCashPay          float64                     `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
415
 	IsMedicineInsurance int64                       `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
418
 	IsMedicineInsurance int64                       `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
416
 	HisChargeOrderInfo  []*NewHisChargeOrderInfoTwo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
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
 func (NewHisChargeOrder) TableName() string {
423
 func (NewHisChargeOrder) TableName() string {

+ 7 - 4
models/his_models.go View File

534
 	IsPre           int64  `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
534
 	IsPre           int64  `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
535
 	Diagnosis       string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
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
 func (TempHisOrder) TableName() string {
543
 func (TempHisOrder) TableName() string {
1092
 	Patients               Patients               `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
1093
 	Patients               Patients               `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
1093
 	HisPatient             HisPatient             `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_patient"`
1094
 	HisPatient             HisPatient             `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_patient"`
1094
 	HisHospitalCheckRecord HisHospitalCheckRecord `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_hospital_patient"`
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
 	HisFundSettleListResult HisFundSettleListResult `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"result"`
1098
 	HisFundSettleListResult HisFundSettleListResult `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"result"`
1098
 	IsPre                   int64                   `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
1099
 	IsPre                   int64                   `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
1102
 	IsUploadOrderInfo       int64                   `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
1103
 	IsUploadOrderInfo       int64                   `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
1103
 	IsUploadSuccess         int64                   `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
1104
 	IsUploadSuccess         int64                   `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
1104
 	SickName                string                  `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
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
 func (HisOrder) TableName() string {
1109
 func (HisOrder) TableName() string {
1255
 	WechatPay             string   `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
1257
 	WechatPay             string   `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
1256
 	AliPay                string   `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
1258
 	AliPay                string   `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
1257
 	JifenPay              string   `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
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
 	FaPiaoCode            string   `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
1261
 	FaPiaoCode            string   `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
1259
 	FaPiaoNumber          string   `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
1262
 	FaPiaoNumber          string   `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
1260
 	SettleType            int64    `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
1263
 	SettleType            int64    `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`

+ 1 - 0
models/his_summary_models.go View File

379
 	Decimal                 float64   `gorm:"column:decimal" json:"decimal" form:"decimal"`
379
 	Decimal                 float64   `gorm:"column:decimal" json:"decimal" form:"decimal"`
380
 	OthDesc                 string    `gorm:"oth_desc" json:"oth_desc" form:"oth_desc"`
380
 	OthDesc                 string    `gorm:"oth_desc" json:"oth_desc" form:"oth_desc"`
381
 	PayWays                 string    `gorm:"pay_ways" json:"pay_ways" form:"pay_ways"`
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
 func (GatherHisOrder) TableName() string {
385
 func (GatherHisOrder) TableName() string {

+ 1 - 0
service/his_service.go View File

101
 	FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
101
 	FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
102
 	IsPre        int64  `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
102
 	IsPre        int64  `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
103
 	Diagnosis    string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
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
 func (VMHisOrder) TableName() string {
107
 func (VMHisOrder) TableName() string {