记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
4b08a6af
Commit
4b08a6af
authored
Dec 09, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pv uv不查询省市县
parent
8564b404
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
DataUtils.java
...ain/java/com/liquidnet/service/kylin/utils/DataUtils.java
+6
-6
DataUtils.java
...ain/java/com/liquidnet/service/order/utils/DataUtils.java
+6
-6
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/DataUtils.java
View file @
4b08a6af
...
@@ -791,17 +791,17 @@ public class DataUtils {
...
@@ -791,17 +791,17 @@ public class DataUtils {
}
}
public
KylinIpAreaVo
getKylinIpAreaVo
(
String
ipAddress
)
{
public
KylinIpAreaVo
getKylinIpAreaVo
(
String
ipAddress
)
{
List
<
KylinIpAreaVo
>
data
=
mongoTemplate
.
find
(
Query
.
query
(
Criteria
.
where
(
"ipBeginLong"
).
lte
(
IPUtil
.
ipToLong
(
ipAddress
))
//
List<KylinIpAreaVo> data = mongoTemplate.find(Query.query(Criteria.where("ipBeginLong").lte(IPUtil.ipToLong(ipAddress))
.
and
(
"ipEndLong"
).
gte
(
IPUtil
.
ipToLong
(
ipAddress
))),
KylinIpAreaVo
.
class
,
KylinIpAreaVo
.
class
.
getSimpleName
());
//
.and("ipEndLong").gte(IPUtil.ipToLong(ipAddress))), KylinIpAreaVo.class, KylinIpAreaVo.class.getSimpleName());
if
(
data
==
null
||
data
.
size
()==
0
){
//
if(data==null || data.size()==0){
KylinIpAreaVo
data0
=
KylinIpAreaVo
.
getNew
();
KylinIpAreaVo
data0
=
KylinIpAreaVo
.
getNew
();
data0
.
setArea
(
"未知"
);
data0
.
setArea
(
"未知"
);
data0
.
setCity
(
"未知"
);
data0
.
setCity
(
"未知"
);
data0
.
setCounty
(
"未知"
);
data0
.
setCounty
(
"未知"
);
data0
.
setProvince
(
"未知"
);
data0
.
setProvince
(
"未知"
);
return
data0
;
return
data0
;
}
else
{
//
}else{
return
data
.
get
(
0
);
//
return data.get(0);
}
//
}
}
}
}
}
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/DataUtils.java
View file @
4b08a6af
...
@@ -256,18 +256,18 @@ public class DataUtils {
...
@@ -256,18 +256,18 @@ public class DataUtils {
}
}
public
KylinIpAreaVo
getKylinIpAreaVo
(
String
ipAddress
)
{
public
KylinIpAreaVo
getKylinIpAreaVo
(
String
ipAddress
)
{
List
<
KylinIpAreaVo
>
data
=
mongoTemplate
.
find
(
Query
.
query
(
Criteria
.
where
(
"ipBeginLong"
).
lte
(
IPUtil
.
ipToLong
(
ipAddress
))
//
List<KylinIpAreaVo> data = mongoTemplate.find(Query.query(Criteria.where("ipBeginLong").lte(IPUtil.ipToLong(ipAddress))
.
and
(
"ipEndLong"
).
gte
(
IPUtil
.
ipToLong
(
ipAddress
))),
KylinIpAreaVo
.
class
,
KylinIpAreaVo
.
class
.
getSimpleName
());
//
.and("ipEndLong").gte(IPUtil.ipToLong(ipAddress))), KylinIpAreaVo.class, KylinIpAreaVo.class.getSimpleName());
if
(
data
==
null
||
data
.
size
()==
0
){
//
if(data==null || data.size()==0){
KylinIpAreaVo
data0
=
KylinIpAreaVo
.
getNew
();
KylinIpAreaVo
data0
=
KylinIpAreaVo
.
getNew
();
data0
.
setArea
(
"未知"
);
data0
.
setArea
(
"未知"
);
data0
.
setCity
(
"未知"
);
data0
.
setCity
(
"未知"
);
data0
.
setCounty
(
"未知"
);
data0
.
setCounty
(
"未知"
);
data0
.
setProvince
(
"未知"
);
data0
.
setProvince
(
"未知"
);
return
data0
;
return
data0
;
}
else
{
//
}else{
return
data
.
get
(
0
);
//
return data.get(0);
}
//
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment