diff --git a/business/netspider/netspider.go b/business/netspider/netspider.go index 5a661aa1c..9994ca6aa 100644 --- a/business/netspider/netspider.go +++ b/business/netspider/netspider.go @@ -149,7 +149,7 @@ func GetAndStoreCitiesShops(ctx *jxcontext.Context, vendorIDs []int, cityCodeLis ORDER BY t1.id DESC LIMIT 1` var lastShop *model.PageShop - if dao.GetRow(db, &lastShop, sql) != nil { + if dao.GetRow(db, &lastShop, sql) == nil { index := -1 for k, v := range cityCodeList { if v == lastShop.CityCode {