Commit ddd4bc70 authored by shiyu's avatar shiyu

过滤国外钱币

parent d5a06276
...@@ -10,12 +10,15 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -10,12 +10,15 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.Arrays;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@Repository @Repository
public class ItemManagerImpl implements ItemManager { public class ItemManagerImpl implements ItemManager {
private final static List<Integer> CHINESE_SOURCE_LIST = Arrays.asList(1, 2, 3, 7, 8, 10, 11);
@Autowired @Autowired
ItemMapper itemMapper; ItemMapper itemMapper;
...@@ -28,6 +31,7 @@ public class ItemManagerImpl implements ItemManager { ...@@ -28,6 +31,7 @@ public class ItemManagerImpl implements ItemManager {
} }
criteria.andIsDeletedEqualTo(false); criteria.andIsDeletedEqualTo(false);
criteria.andIsSettedEqualTo(0); criteria.andIsSettedEqualTo(0);
criteria.andSourceIn(CHINESE_SOURCE_LIST);
return itemMapper.selectOneByExampleWithBLOBs(example); return itemMapper.selectOneByExampleWithBLOBs(example);
} }
......
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