浏览代码

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

csx 3 年前
父节点
当前提交
a13c02da16
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 1
      models/his_models.go
  2. 0 1
      service/his_service.go

+ 1 - 1
models/his_models.go 查看文件

@@ -727,7 +727,7 @@ type HisOrderInfo struct {
727 727
 	OverPricPsnPay         float64                `gorm:"column:over_pric_psn_pay" json:"over_pric_psn_pay" form:"over_pric_psn_pay"`
728 728
 	AllowReimburse         float64                `gorm:"column:allow_reimburse" json:"allow_reimburse" form:"allow_reimburse"`
729 729
 	HisDoctorAdviceInfo    HisDoctorAdviceInfo    `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
730
-	HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
730
+	HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
731 731
 }
732 732
 
733 733
 func (HisOrderInfo) TableName() string {

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

@@ -894,7 +894,6 @@ func GetHisOrderInfoByNumber(order_number string) (order []*models.HisOrderInfo,
894 894
 	db := readDb.Model(&models.HisOrderInfo{}).Preload("HisDoctorAdviceInfo", func(db *gorm.DB) *gorm.DB {
895 895
 		return db.Preload("BaseDrugLib", "status = 1").Where("status = 1")
896 896
 	})
897
-
898 897
 	err = db.Where("order_number = ? AND status = 1 AND advice_id > 0", order_number).Find(&order).Error
899 898
 	return
900 899
 }