- GetStoreListByMobile去除删除的门店

This commit is contained in:
gazebo
2019-07-30 15:37:41 +08:00
parent e7bad7dc25
commit 166fcc8b6b

View File

@@ -133,12 +133,14 @@ func GetStoreListByMobile(db *DaoDB, mobile string) (storeList []*model.Store, e
LEFT JOIN weixins t3 ON t3.parentid = t2.id
WHERE (t2.tel = ? OR t3.tel = ?)
) t1
WHERE t1.deleted_at = ?
ORDER BY t1.name`
sqlParams := []interface{}{
mobile,
mobile,
mobile,
mobile,
utils.DefaultTimeValue,
}
err = GetRows(db, &storeList, sql, sqlParams...)
}