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
aca3b659
Commit
aca3b659
authored
Mar 04, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上传EXCEL文件
parent
792d505b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
17 deletions
+11
-17
ReadExcelApi.java
src/main/java/com/yxproject/start/api/ReadExcelApi.java
+0
-8
PreproPersonMapper.java
...n/java/com/yxproject/start/mapper/PreproPersonMapper.java
+10
-8
PreproPersonServiceImpl.java
...yxproject/start/service/impl/PreproPersonServiceImpl.java
+1
-1
No files found.
src/main/java/com/yxproject/start/api/ReadExcelApi.java
View file @
aca3b659
...
...
@@ -22,13 +22,8 @@ import javax.servlet.http.HttpServletResponse;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.Produces
;
import
javax.ws.rs.core.MediaType
;
import
javax.xml.crypto.Data
;
import
java.io.File
;
import
java.io.IOException
;
import
java.sql.Time
;
import
java.sql.Timestamp
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
/**
...
...
@@ -51,10 +46,7 @@ public class ReadExcelApi {
@Produces
(
MediaType
.
APPLICATION_JSON
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
ReadPersonPost
(
HttpServletResponse
resp
,
HttpServletRequest
requ
)
{
System
.
out
.
println
(
"进入api"
);
YXJSONResponse
yxresp
=
new
YXJSONResponse
();
DateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
String
filename
=
""
;
DiskFileItemFactory
factory
=
new
DiskFileItemFactory
();
...
...
src/main/java/com/yxproject/start/mapper/PreproPersonMapper.java
View file @
aca3b659
...
...
@@ -28,14 +28,16 @@ public interface PreproPersonMapper {
"left join files on PREPRO_PERSON.FILE_ID = files.ID\n"
+
"left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID "
+
"where 1=1 "
+
" <when test='uploadNo!=null'> and PREPRO_PERSON.JMSFZSLH = #{uploadNo} </when>"
+
" <when test='IDCard!=null'> and GMSFHM = #{IDCard} </when> "
+
" <when test='oldFile!=null'> and files.SOURCE_FILE_NAME =#{oldFile} </when> "
+
" <when test='newFile!=null'> and NEW_FILES.NEW_FILE_NAME = #{newFile} </when> "
+
" <when test='SSXQDM!=null'> and PREPRO_PERSON.SSXQDM =#{SSXQDM} </when> "
+
" <when test='cardType!=null'> and PREPRO_PERSON.CARD_TYPE_ID =#{cardType} </when> "
+
" <when test='state!=null'> and PREPRO_PERSON.state = #{state} </when> "
+
" <when test='uploadDate!=null'> and files.CREAT_TIME = #{uploadDate} </when> "
)
" <where>"
+
" <if test='uploadNo != null'> and PREPRO_PERSON.JMSFZSLH = #{uploadNo} </if>"
+
" <if test='IDCard != null'> and GMSFHM = #{IDCard} </if> "
+
" <if test='oldFile != null'> and files.SOURCE_FILE_NAME =#{oldFile} </if> "
+
" <if test='newFile != null'> and NEW_FILES.NEW_FILE_NAME = #{newFile} </if> "
+
" <if test='SSXQDM != null'> and PREPRO_PERSON.SSXQDM =#{SSXQDM} </if> "
+
" <if test='cardType != null'> and PREPRO_PERSON.CARD_TYPE_ID =#{cardType} </if> "
+
" <if test='state != null'> and PREPRO_PERSON.state = #{state} </if> "
+
" <if test='uploadDate != null'> and files.CREAT_TIME = #{uploadDate} </if> "
+
" </where>"
)
public
List
<
PreproPersonEntity
>
selectPreproPerson
(
@Param
(
"uploadNo"
)
String
uploadNo
,
@Param
(
"IDCard"
)
String
IDCard
,
@Param
(
"oldFile"
)
String
oldFile
,
@Param
(
"newFile"
)
String
newFile
,
@Param
(
"SSXQDM"
)
String
SSXQDM
,
@Param
(
"cardType"
)
String
cardType
,
@Param
(
"state"
)
String
state
,
@Param
(
"uploadDate"
)
String
uploadDate
);
/*修改标记制证数据状态*/
...
...
src/main/java/com/yxproject/start/service/impl/PreproPersonServiceImpl.java
View file @
aca3b659
...
...
@@ -24,7 +24,7 @@ public class PreproPersonServiceImpl implements PreproPersonService {
}
@Override
public
List
<
PreproPersonEntity
>
selectPreproPerson
(
String
uploadNo
,
String
IDCard
,
String
oldFile
,
String
newFile
,
String
SSXQDM
,
String
cardType
,
String
state
,
String
uploadDate
)
{
List
<
PreproPersonEntity
>
preproPersonEntities
=
preproPersonMapper
.
selectPreproPerson
(
uploadNo
,
IDCard
,
oldFile
,
newFile
,
SSXQDM
,
cardType
,
state
,
uploadDate
);
List
<
PreproPersonEntity
>
preproPersonEntities
=
preproPersonMapper
.
selectPreproPerson
(
null
,
null
,
null
,
null
,
null
,
0
+
""
,
null
,
null
);
return
preproPersonEntities
;
}
}
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