记得上下班打卡 | git大法好,push需谨慎

Commit 2ed6f9b9 authored by anjiabin's avatar anjiabin

提交bi相关数据结构

parent 062631e3
......@@ -14,6 +14,8 @@ db.createCollection("KylinTicketPartnerVo");
db.createCollection("KylinTicketTimesPartnerVo");
db.createCollection("PerformanceMemberAuditParam");
db.createCollection("AdminUpushVo");
db.createCollection("KylinIpAreaVo");
#创建索引
db.KylinCheckUserPerformanceVo.createIndex({checkUserId:"hashed"});
......@@ -37,6 +39,7 @@ db.KylinTicketTimesPartnerVo.createIndex({performancesId:"hashed"});
db.KylinTicketTimesPartnerVo.createIndex({ticketTimesId:"hashed"});
db.PerformanceMemberAuditParam.createIndex({performancesId:"hashed"});
db.AdminUpushVo.createIndex({upushId:"hashed"});
db.KylinIpAreaVo.createIndex({mid:"hashed"});
#创建分片
sh.enableSharding("prod_ln_scene");
......@@ -54,4 +57,5 @@ sh.shardCollection("prod_ln_scene.KylinTicketPartnerVo",{"ticketsId":"hashed"});
sh.shardCollection("prod_ln_scene.KylinTicketTimesPartnerVo",{"ticketTimesId":"hashed"});
sh.shardCollection("prod_ln_scene.PerformanceMemberAuditParam",{"performancesId":"hashed"});
sh.shardCollection("prod_ln_scene.AdminUpushVo",{"upushId":"hashed"});
sh.shardCollection("prod_ln_scene.KylinIpAreaVo",{"mid":"hashed"});
package com.liquidnet.service.kylin;
import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.kylin.dto.vo.mongo.KylinIpAreaVo;
import com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo;
import com.liquidnet.service.kylin.utils.DataUtils;
import lombok.extern.slf4j.Slf4j;
......@@ -36,4 +38,11 @@ public class TestDataUtil {
log.info("title:{}",vo.getTitle());
}
}
@Test
public void getIpAreaByIp(){
// KylinIpAreaVo kylinIpAreaVo = dataUtils.getKylinIpAreaVo("1.58.222.0");
KylinIpAreaVo kylinIpAreaVo = dataUtils.getKylinIpAreaVo("1.58.227.0");
System.out.println(JsonUtils.toJson(kylinIpAreaVo));
}
}
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