Commit 8f94831d authored by shiyu's avatar shiyu

店铺白名单2

parent b55c7a19
...@@ -18,6 +18,7 @@ public class ShopWhiteListDaoImpl implements ShopWhiteListDao { ...@@ -18,6 +18,7 @@ public class ShopWhiteListDaoImpl implements ShopWhiteListDao {
ShopWhiteListExample example = new ShopWhiteListExample(); ShopWhiteListExample example = new ShopWhiteListExample();
ShopWhiteListExample.Criteria criteria = example.createCriteria(); ShopWhiteListExample.Criteria criteria = example.createCriteria();
criteria.andUserIdEqualTo(userId); criteria.andUserIdEqualTo(userId);
criteria.andIsValidEqualTo(true);
return shopWhiteListMapper.countByExample(example) > 0; return shopWhiteListMapper.countByExample(example) > 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment