Browse Source

历史排班

28169 1 year ago
parent
commit
106678ea0c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/stock_service.go

+ 1 - 1
service/stock_service.go View File

@@ -3788,7 +3788,7 @@ func GetSearchDrugList(keywords string, orgid int64) (drug []*models.BaseDrugLib
3788 3788
 
3789 3789
 func GetSearchDrugListSix(keywords string, orgid int64, storehouse_id int64) (drug []*models.BaseDrugLib, err error) {
3790 3790
 
3791
-	db := XTReadDB().Model(&drug).Where("org_id=? and status=1  and drug_status<>'停用'", orgid)
3791
+	db := XTReadDB().Model(&drug).Where("org_id=? and status=1  AND find_in_set('停用',x.drug_status) = 0'", orgid)
3792 3792
 	if len(keywords) > 0 {
3793 3793
 		likekey := "%" + keywords + "%"
3794 3794
 		err = db.Where("(drug_name LIKE ?)", likekey).Preload("DrugWarehouseInfo", func(db *gorm.DB) *gorm.DB {