Merge branch 'FSHJOB1.2' into 'master'

add

See merge request !14
This commit is contained in:
虞继恩
2018-03-02 13:39:42 +08:00
@@ -61,7 +61,7 @@ public class DistrictInfoJob implements SimpleJob{
DBCollection collection = seaweedMongoTemplate.getCollection("seaweed");
DBCursor cursor = collection.find(new BasicDBObject("cat", "district").append("status", 0),
new BasicDBObject("city", 1).append("region", 1).append("name", 1)).addOption(Bytes.QUERYOPTION_NOTIMEOUT);
final Semaphore semaphore = new Semaphore(5);
final Semaphore semaphore = new Semaphore(10);
while (cursor.hasNext()) {
final DBObject data = cursor.next();
try {