소스 검색

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

test_user 1 년 전
부모
커밋
39834bcb5d

+ 1 - 1
controllers/dialysis_api_controller.go 파일 보기

@@ -3441,7 +3441,7 @@ func (c *DialysisApiController) GetDialysisOrder() {
3441 3441
 
3442 3442
 	//透析单
3443 3443
 	dialysisOrder, _ := service.MobileGetSchedualDialysisRecordTen(adminUserInfo.CurrentOrgId, patientInfo.ID, xttime)
3444
-	fmt.Println("dialysisOrder----------------", dialysisOrder)
3444
+
3445 3445
 	if dialysisOrder != nil {
3446 3446
 		if dialysisOrder.FinishNurse > 0 {
3447 3447
 			operatorIDs = append(operatorIDs, dialysisOrder.FinishNurse)

+ 5 - 0
controllers/his_api_controller.go 파일 보기

@@ -6845,6 +6845,11 @@ func (c *HisApiController) GetUploadInfo() {
6845 6845
 			SetlTime:              tm.Format("2006-01-02 15:04:05"),
6846 6846
 			Decimal:               decimal,
6847 6847
 			OthDesc:               oth_desc,
6848
+			CashPay:               cash_pay,
6849
+			WechatPay:             wechat_pay,
6850
+			AliPay:                ali_pay,
6851
+			JifenPay:              jifen_pay,
6852
+			BandCardPay:           band_card_pay,
6848 6853
 		}
6849 6854
 		err = service.CreateOrderTX(order, tx)
6850 6855
 		if err != nil {

+ 7 - 0
models/his_charge_models.go 파일 보기

@@ -172,6 +172,13 @@ type HisChargeSettleOrder struct {
172 172
 	SettleStartTime     int64   `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
173 173
 	SettleEndTime       int64   `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
174 174
 	IsPre               int64   `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
175
+
176
+	CashPay     string `gorm:"cash_pay" json:"cash_pay" form:"cash_pay"`
177
+	BandCardPay string `gorm:"band_card_pay" json:"band_card_pay" form:"band_card_pay"`
178
+	WechatPay   string `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
179
+	AliPay      string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
180
+	JifenPay    string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
181
+	OthDesc     string `gorm:"oth_desc" json:"oth_desc" form:"oth_desc"`
175 182
 }
176 183
 
177 184
 func (HisChargeSettleOrder) TableName() string {

+ 6 - 0
models/his_models.go 파일 보기

@@ -1044,6 +1044,12 @@ type HisOrder struct {
1044 1044
 	OthDesc               string  `gorm:"oth_desc" json:"oth_desc" form:"oth_desc"`
1045 1045
 	PayWays               string  `gorm:"pay_ways" json:"pay_ways" form:"pay_ways"`
1046 1046
 
1047
+	CashPay     string `gorm:"cash_pay" json:"cash_pay" form:"cash_pay"`
1048
+	BandCardPay string `gorm:"band_card_pay" json:"band_card_pay" form:"band_card_pay"`
1049
+	WechatPay   string `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
1050
+	AliPay      string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
1051
+	JifenPay    string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
1052
+
1047 1053
 	FaPiaoCode   string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
1048 1054
 	FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
1049 1055
 

+ 1 - 1
service/dialysis_service.go 파일 보기

@@ -872,7 +872,7 @@ func GetAdminUserES(orgID int64, appID int64, ids []int64) (es []*models.AdminUs
872 872
 //}
873 873
 
874 874
 func GetAdminUserEsOne(orgid int64) (admin []*models.UserAdminRoles, err error) {
875
-	db := readUserDb.Table("sgj_user_admin_role as x").Where("x.status =1")
875
+	db := readUserDb.Table("sgj_user_admin_role as x")
876 876
 	table := readUserDb.Table("sgj_user_admin_electronic_signature as s")
877 877
 	fmt.Println("table", table)
878 878
 	err = db.Select("x.id,x.admin_user_id,x.user_name,x.org_id,s.creator,s.url,s.hash").Joins("left join sgj_user_admin_electronic_signature as s on s.creator = x.admin_user_id").Where("x.org_id = ?", orgid).Scan(&admin).Error

+ 1 - 1
service/pharmacy_service.go 파일 보기

@@ -709,7 +709,7 @@ func DispensingMedicine(orgid, patient_id, stime, etime, creater int64) (err err
709 709
 	}
710 710
 
711 711
 	//针对大丰响水
712
-	if orgid != 10217 && orgid != 10188 && orgid != 9671 && orgid != 10164 {
712
+	if orgid != 10217 && orgid != 10188 && orgid != 9671 && orgid != 10164 && orgid != 10387 {
713 713
 		err = tx.Raw("select id from xt_doctor_advice where status = 1 and (advice_type = 2 or advice_type = 3) and advice_date >= ? and advice_date <= ? and "+
714 714
 			"user_org_id = ? and patient_id = ? and is_medicine = 0 and drug_id in (select id from xt_base_drug where org_id = ? and is_pharmacy = 1)", stime, etime, orgid, patient_id, orgid).Scan(&xids).Error
715 715
 		if err != nil {

+ 1 - 1
service/print_data_service/schedule_dialysis/print_schedule_dialysis_service.go 파일 보기

@@ -84,7 +84,7 @@ func GetMedicalStaffs(orgID int64, appID int64) ([]*MedicalStaffVM, error) {
84 84
 	// 	Error
85 85
 
86 86
 	err := db.Table("sgj_user_admin_electronic_signature").
87
-		Where("org_id=? and app_id=? and status=1", orgID, appID).
87
+		Where("org_id=? and app_id=?", orgID, appID).
88 88
 		Select("creator as id, url as es_url").Scan(&staffs).Error
89 89
 
90 90
 	if err != nil {

+ 1 - 1
service/stock_service.go 파일 보기

@@ -3820,7 +3820,7 @@ func GetSearchGoodList(keywords string, orgid int64) (good []*models.GoodInfo, e
3820 3820
 
3821 3821
 func GetSearchGoodListSix(keywords string, orgid int64, storehouse_id int64) (good []*models.GoodInfo, err error) {
3822 3822
 
3823
-	db := XTReadDB().Model(&good).Where("org_id =? and status = 1 and good_status <> '停用'", orgid)
3823
+	db := XTReadDB().Model(&good).Where("org_id =? and status = 1  AND find_in_set('停用',good_status) = 0", orgid)
3824 3824
 	if len(keywords) > 0 {
3825 3825
 		likekey := "%" + keywords + "%"
3826 3826
 		err = db.Where("(good_name Like ?)", likekey).Preload("StWarehousingInfo", func(db *gorm.DB) *gorm.DB {