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
31447328
Commit
31447328
authored
Mar 01, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改删除个人邮寄信息
parent
d8ca0dbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+4
-4
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+9
-1
No files found.
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
31447328
package
com
.
yxproject
.
start
.
mapper
;
import
com.sun.xml.internal.bind.v2.TODO
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
org.apache.ibatis.annotations.*
;
import
java.util.List
;
...
...
@@ -32,10 +32,10 @@ public interface PersonPostMapper {
" <when test='orderNumber!=null'> and PERSON_POST.ORDER_NUMBER=#{orderNumber} </when>"
+
" <when test='state!=null'> and PERSON_POST.STATE=#{state} </when>"
+
" <when test='latticeMouthInformation!=null'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </when>"
+
" <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY
=#{getToCounty}
</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}"
)
public
List
<
PersonPostEntity
>
findAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
,
@Param
(
"firstIndex"
)
String
firstIndex
,
@Param
(
"pageSize"
)
String
pageSize
);
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"
)
String
firstIndex
,
@Param
(
"pageSize"
)
String
pageSize
);
@Delete
(
"DELETE PERSON_POST "
+
"WHERE 1=1"
+
...
...
@@ -43,7 +43,7 @@ public interface PersonPostMapper {
" <when test='orderNumber!=null'> and PERSON_POST.ORDER_NUMBER=#{orderNumber} </when>"
+
" <when test='state!=null'> and PERSON_POST.STATE=#{state} </when>"
+
" <when test='latticeMouthInformation!=null'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} </when>"
+
" <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY
=#{getToCounty}
</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>"
)
public
boolean
deleteAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
);
...
...
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
31447328
...
...
@@ -43,7 +43,15 @@ public class PersonPostServiceImpl implements PersonPostService {
@Override
public
List
<
PersonPostEntity
>
findPersonalData
(
String
applicantName
,
String
orderNumber
,
String
state
,
String
latticeMouthInformation
,
List
<
String
>
getToCounty
,
String
uploadDate
,
String
firstIndex
,
String
pageSize
){
List
<
PersonPostEntity
>
list
=
personPostMapper
.
findAllPersonalData
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
getToCounty
,
uploadDate
,
firstIndex
,
pageSize
);
String
str
=
null
;
for
(
int
i
=
0
;
i
<
getToCounty
.
size
();
i
++){
if
(
i
==
getToCounty
.
size
()-
1
){
str
+=
"'"
+
getToCounty
.
get
(
i
);
}
else
{
str
+=
"'"
+
getToCounty
.
get
(
i
)+
","
;
}
}
List
<
PersonPostEntity
>
list
=
personPostMapper
.
findAllPersonalData
(
applicantName
,
orderNumber
,
state
,
latticeMouthInformation
,
str
,
uploadDate
,
firstIndex
,
pageSize
);
return
list
;
}
...
...
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