This commit is contained in:
suyl
2021-05-25 18:03:49 +08:00
parent e4e959a9f8
commit 4e6f7ae859

View File

@@ -1253,9 +1253,9 @@ func SendQywxPeopleCount(ctx *jxcontext.Context) (err error) {
for _, v := range mobiles {
store := &model.Store{}
sql := `
SELECT * FROM store WHERE (tel1 = ? OR tel2 = ?)
SELECT * FROM store WHERE (tel1 = ? OR tel2 = ?) AND deleted_at = ?
`
sqlParams := []interface{}{v, v}
sqlParams := []interface{}{v, v, utils.DefaultTimeValue}
dao.GetRow(db, &store, sql, sqlParams)
if store != nil {
if mobileExistMap[store.Tel1] != "" || mobileExistMap[store.Tel2] != "" {