|
|
@@ -163,6 +163,19 @@ public class MongoStartup {
|
|
|
return mongodbIndexEntity;
|
|
|
}
|
|
|
|
|
|
+ public MongodbIndexEntity iotIotRunHaoSfdataCreateIndex() {
|
|
|
+ log.info("开始创建IotRunHaoSfdata索引");
|
|
|
+ List<String[]> indexNameList = new ArrayList<>();
|
|
|
+ indexNameList.add(new String[]{"devBid"});
|
|
|
+ indexNameList.add(new String[]{"devBid", "sfdataCreatedDate"});
|
|
|
+
|
|
|
+ MongodbIndexEntity mongodbIndexEntity = new MongodbIndexEntity();
|
|
|
+ mongodbIndexEntity.setIotBaseEntity(IotRunHaoSfdata.class);
|
|
|
+ mongodbIndexEntity.setIndexNameList(indexNameList);
|
|
|
+
|
|
|
+ return mongodbIndexEntity;
|
|
|
+ }
|
|
|
+
|
|
|
@PostConstruct
|
|
|
public void start() {
|
|
|
log.info("开始创建mongodb索引");
|