Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
1d34b23c
Commit
1d34b23c
authored
Mar 10, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b0320bbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
PersonPostApi.java
src/main/java/com/yxproject/start/api/PersonPostApi.java
+3
-3
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+1
-2
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+2
-2
No files found.
src/main/java/com/yxproject/start/api/PersonPostApi.java
View file @
1d34b23c
...
...
@@ -3,6 +3,7 @@ package com.yxproject.start.api;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.service.PersonPostService
;
import
net.sf.json.JSONArray
;
import
net.sf.json.JSONObject
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -74,12 +75,11 @@ public class PersonPostApi {
String
orderNumber
=
jsonObject
.
getString
(
"orderNumber"
);
String
state
=
jsonObject
.
getString
(
"state"
);
String
latticeMouthInformation
=
jsonObject
.
getString
(
"latticeMouthInformation"
);
List
<
String
>
getToCounty
=
new
ArrayList
<>();
getToCounty
.
add
(
jsonObject
.
getString
(
"getToCounty"
));
JSONArray
jsonArray
=(
JSONArray
)
jsonObject
.
get
(
"getToCounty"
);
String
uploadDate
=
jsonObject
.
getString
(
"uploadDate"
);
String
firstIndex
=
jsonObject
.
getString
(
"firstIndex"
);
String
pageSize
=
jsonObject
.
getString
(
"pageSize"
);
List
<
PersonPostEntity
>
list
=
personPostService
.
findPersonalData
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
getToCount
y
,
uploadDate
,
firstIndex
,
pageSize
);
List
<
PersonPostEntity
>
list
=
personPostService
.
findPersonalData
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
jsonArra
y
,
uploadDate
,
firstIndex
,
pageSize
);
return
list
;
}
...
...
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
1d34b23c
...
...
@@ -42,11 +42,10 @@ public interface PersonPostMapper {
" <when test='latticeMouthInformation!=null'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </when>"
+
" <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY in ( #{getToCounty} ) </when>"
+
" <when test='uploadDate!=null'> and FILE_NAME_DIC.UPLOAD_DATE=#{uploadDate} </when>"
+
// "PERSON_POST limit #{firstIndex},#{pageSize}"
") "
+
"A"
+
")"
+
"WHERE RN BETWEEN #{
firstIndex} AND #{pageSize
}"
+
"WHERE RN BETWEEN #{
pageSize} AND #{firstIndex
}"
+
"</script>"
)
public
List
<
PersonPostEntity
>
findAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
@Param
(
"getToCounty"
)
String
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
,
@Param
(
"firstIndex"
)
long
firstIndex
,
@Param
(
"pageSize"
)
long
pageSize
);
...
...
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
1d34b23c
...
...
@@ -57,9 +57,9 @@ public class PersonPostServiceImpl implements PersonPostService {
long
pageSizeLong
=
Long
.
valueOf
(
pageSize
);
for
(
int
i
=
0
;
i
<
getToCounty
.
size
();
i
++){
if
(
i
==
getToCounty
.
size
()-
1
){
str
+=
"'"
+
getToCounty
.
get
(
i
);
str
+=
"'"
+
getToCounty
.
get
(
i
)
+
"'"
;
}
else
{
str
+=
"'"
+
getToCounty
.
get
(
i
)+
","
;
str
+=
"'"
+
getToCounty
.
get
(
i
)+
"
'
,"
;
}
}
List
<
PersonPostEntity
>
list
=
personPostMapper
.
findAllPersonalData
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
str
,
uploadDate
,
firstIndexLong
*
pageSizeLong
,(
firstIndexLong
-
1
)
*
pageSizeLong
+
1
);
...
...
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