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