Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
Details
Activity
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
雷紫添
xzxt-api-report
Commits
d405cb23
Commit
d405cb23
authored
Jul 08, 2022
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询加入时间范围
parent
de33f9b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
3 deletions
+42
-3
src/main/java/com/founder/service/impl/GjServiceImpl.java
+42
-3
No files found.
src/main/java/com/founder/service/impl/GjServiceImpl.java
View file @
d405cb23
...
...
@@ -95,7 +95,12 @@ public class GjServiceImpl implements GjService {
"FROM people_trail01 where _type= "
+
"'jdc' and "
+
"HPHM = '"
+
xyrParam
.
getCphm
()
+
"' "
;
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getKssj
()))
{
sql
+=
"AND JLRKSJ > '"
+
StrToEsDate
(
xyrParam
.
getKssj
())
+
"' "
;
}
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getJssj
()))
{
sql
+=
"AND JLRKSJ < '"
+
StrToEsDate
(
xyrParam
.
getJssj
())
+
"' "
;
}
sql
+=
" limit "
+
xyrParam
.
getPage
()
+
","
+
xyrParam
.
getLimit
()
+
" "
+
"order by JLRKSJ desc"
;
Map
<
String
,
Object
>
map
=
EsUtils
.
newQueryEs
(
request
,
sql
);
...
...
@@ -154,6 +159,12 @@ public class GjServiceImpl implements GjService {
"people_trail01 where _type= "
+
"'mhjcgall' and "
+
"ZJHM = '"
+
xyrParam
.
getZjhm
()
+
"' "
;
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getKssj
()))
{
sql
+=
"AND KSSJ > '"
+
StrToEsDate
(
xyrParam
.
getKssj
())
+
"' "
;
}
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getJssj
()))
{
sql
+=
"AND KSSJ < '"
+
StrToEsDate
(
xyrParam
.
getJssj
())
+
"' "
;
}
sql
+=
" limit "
+
xyrParam
.
getPage
()
+
","
+
xyrParam
.
getLimit
()
+
" "
+
"order by KSSJ desc"
;
Map
<
String
,
Object
>
map
=
EsUtils
.
newQueryEs
(
request
,
sql
);
...
...
@@ -211,6 +222,12 @@ public class GjServiceImpl implements GjService {
"people_trail01 where GJLX= 'hc'"
+
" and "
+
"ZJHM = '"
+
xyrParam
.
getZjhm
()
+
"' "
;
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getKssj
()))
{
sql
+=
"AND KSSJ > '"
+
StrToEsDate
(
xyrParam
.
getKssj
())
+
"' "
;
}
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getJssj
()))
{
sql
+=
"AND KSSJ < '"
+
StrToEsDate
(
xyrParam
.
getJssj
())
+
"' "
;
}
sql
+=
" limit "
+
xyrParam
.
getPage
()
+
","
+
xyrParam
.
getLimit
()
+
" "
+
"order by KSSJ desc"
;
Map
<
String
,
Object
>
map
=
EsUtils
.
newQueryEs
(
request
,
sql
);
...
...
@@ -271,7 +288,12 @@ public class GjServiceImpl implements GjService {
"people_trail01 where (_type= 'lg' or GJLX='lg' )"
+
" and "
+
"ZJHM = '"
+
xyrParam
.
getZjhm
()
+
"' "
;
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getKssj
()))
{
sql
+=
"AND KSSJ > '"
+
StrToEsDate
(
xyrParam
.
getKssj
())
+
"' "
;
}
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getJssj
()))
{
sql
+=
"AND KSSJ < '"
+
StrToEsDate
(
xyrParam
.
getJssj
())
+
"' "
;
}
sql
+=
" limit "
+
xyrParam
.
getPage
()
+
","
+
xyrParam
.
getLimit
()
+
" "
+
"order by KSSJ desc"
;
Map
<
String
,
Object
>
map
=
EsUtils
.
newQueryEs
(
request
,
sql
);
...
...
@@ -475,7 +497,12 @@ public class GjServiceImpl implements GjService {
"FROM "
+
"people_trail01 where _type= 'jdc' and "
+
"ZJHM = '"
+
xyrParam
.
getZjhm
()
+
"' "
;
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getKssj
()))
{
sql
+=
"AND JLRKSJ > '"
+
StrToEsDate
(
xyrParam
.
getKssj
())
+
"' "
;
}
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getJssj
()))
{
sql
+=
"AND JLRKSJ < '"
+
StrToEsDate
(
xyrParam
.
getJssj
())
+
"' "
;
}
sql
+=
" limit "
+
xyrParam
.
getPage
()
+
","
+
xyrParam
.
getLimit
()
+
" "
+
"order by JLRKSJ desc"
;
Map
<
String
,
Object
>
map
=
EsUtils
.
newQueryEs
(
request
,
sql
);
...
...
@@ -839,6 +866,12 @@ public class GjServiceImpl implements GjService {
"people_type01 where _type= "
+
"'bs_sqjw_czfw' and"
+
" ZJHM = '"
+
xyrParam
.
getZjhm
()
+
"' "
;
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getKssj
()))
{
sql
+=
"AND DJSJ > '"
+
StrToEsDate
(
xyrParam
.
getKssj
())
+
"' "
;
}
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getJssj
()))
{
sql
+=
"AND DJSJ < '"
+
StrToEsDate
(
xyrParam
.
getJssj
())
+
"' "
;
}
sql
+=
" limit "
+
xyrParam
.
getPage
()
+
","
+
xyrParam
.
getLimit
()
+
" "
+
"order by DJSJ desc"
;
Map
<
String
,
Object
>
map
=
EsUtils
.
newQueryEs
(
request
,
sql
);
...
...
@@ -1060,6 +1093,12 @@ public class GjServiceImpl implements GjService {
}
sql
+=
" )"
;
}
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getKssj
()))
{
sql
+=
"AND KSSJ > '"
+
StrToEsDate
(
xyrParam
.
getKssj
())
+
"' "
;
}
if
(
StringUtils
.
isNotBlank
(
xyrParam
.
getJssj
()))
{
sql
+=
"AND KSSJ < '"
+
StrToEsDate
(
xyrParam
.
getJssj
())
+
"' "
;
}
sql
+=
" limit "
+
xyrParam
.
getPage
()
+
","
+
xyrParam
.
getLimit
()
+
" "
+
"order by KSSJ desc"
;
System
.
out
.
println
(
"sql:"
+
sql
);
...
...
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