28169 2 vuotta sitten
vanhempi
commit
024356b568

+ 1 - 1
service/pharmacy_service.go Näytä tiedosto

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
 		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 "+
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
 			"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
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
 		if err != nil {
715
 		if err != nil {

+ 1 - 1
service/print_data_service/schedule_dialysis/print_schedule_dialysis_service.go Näytä tiedosto

84
 	// 	Error
84
 	// 	Error
85
 
85
 
86
 	err := db.Table("sgj_user_admin_electronic_signature").
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
 		Select("creator as id, url as es_url").Scan(&staffs).Error
88
 		Select("creator as id, url as es_url").Scan(&staffs).Error
89
 
89
 
90
 	if err != nil {
90
 	if err != nil {

+ 1 - 1
service/stock_service.go Näytä tiedosto

3820
 
3820
 
3821
 func GetSearchGoodListSix(keywords string, orgid int64, storehouse_id int64) (good []*models.GoodInfo, err error) {
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
 	if len(keywords) > 0 {
3824
 	if len(keywords) > 0 {
3825
 		likekey := "%" + keywords + "%"
3825
 		likekey := "%" + keywords + "%"
3826
 		err = db.Where("(good_name Like ?)", likekey).Preload("StWarehousingInfo", func(db *gorm.DB) *gorm.DB {
3826
 		err = db.Where("(good_name Like ?)", likekey).Preload("StWarehousingInfo", func(db *gorm.DB) *gorm.DB {