- GetStoreListByMobile去除删除的门店
This commit is contained in:
@@ -133,12 +133,14 @@ func GetStoreListByMobile(db *DaoDB, mobile string) (storeList []*model.Store, e
|
|||||||
LEFT JOIN weixins t3 ON t3.parentid = t2.id
|
LEFT JOIN weixins t3 ON t3.parentid = t2.id
|
||||||
WHERE (t2.tel = ? OR t3.tel = ?)
|
WHERE (t2.tel = ? OR t3.tel = ?)
|
||||||
) t1
|
) t1
|
||||||
|
WHERE t1.deleted_at = ?
|
||||||
ORDER BY t1.name`
|
ORDER BY t1.name`
|
||||||
sqlParams := []interface{}{
|
sqlParams := []interface{}{
|
||||||
mobile,
|
mobile,
|
||||||
mobile,
|
mobile,
|
||||||
mobile,
|
mobile,
|
||||||
mobile,
|
mobile,
|
||||||
|
utils.DefaultTimeValue,
|
||||||
}
|
}
|
||||||
err = GetRows(db, &storeList, sql, sqlParams...)
|
err = GetRows(db, &storeList, sql, sqlParams...)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user