Browse Source

历史排班

28169 1 year ago
parent
commit
024356b568

+ 1 - 1
service/pharmacy_service.go View File

@@ -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 View File

@@ -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 View File

@@ -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 {