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
ededa357
Commit
ededa357
authored
Mar 05, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上传时间格式
parent
ab61c05e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
ReadExcelApi.java
src/main/java/com/yxproject/start/api/ReadExcelApi.java
+7
-2
ReadXmlApi.java
src/main/java/com/yxproject/start/api/ReadXmlApi.java
+5
-1
No files found.
src/main/java/com/yxproject/start/api/ReadExcelApi.java
View file @
ededa357
...
@@ -100,8 +100,8 @@ public class ReadExcelApi {
...
@@ -100,8 +100,8 @@ public class ReadExcelApi {
FileNameDicEntity
fileNameDicEntity
=
new
FileNameDicEntity
();
FileNameDicEntity
fileNameDicEntity
=
new
FileNameDicEntity
();
fileNameDicEntity
.
setFileName
(
filename
);
fileNameDicEntity
.
setFileName
(
filename
);
fileNameDicEntity
.
setUploadDate
(
new
Date
());
fileNameDicEntity
.
setUploadDate
(
new
Date
());
fileNameDicEntity
.
setFormStartTime
(
startDate
);
fileNameDicEntity
.
setFormStartTime
(
replaceDate
(
startDate
)
);
fileNameDicEntity
.
setFormDeadline
(
endDate
);
fileNameDicEntity
.
setFormDeadline
(
replaceDate
(
endDate
)
);
long
l
=
fileNameDicService
.
saveFileNameDic
(
fileNameDicEntity
);
long
l
=
fileNameDicService
.
saveFileNameDic
(
fileNameDicEntity
);
//保存个人邮寄信息
//保存个人邮寄信息
List
<
PersonPostEntity
>
entityList
=
new
ArrayList
<>();
List
<
PersonPostEntity
>
entityList
=
new
ArrayList
<>();
...
@@ -182,4 +182,8 @@ public class ReadExcelApi {
...
@@ -182,4 +182,8 @@ public class ReadExcelApi {
return
yxjsonResponse
.
toJSONString
();
return
yxjsonResponse
.
toJSONString
();
}
}
private
String
replaceDate
(
String
str
){
return
str
.
replace
(
"-"
,
""
);
}
}
}
\ No newline at end of file
src/main/java/com/yxproject/start/api/ReadXmlApi.java
View file @
ededa357
...
@@ -133,11 +133,15 @@ public class ReadXmlApi {
...
@@ -133,11 +133,15 @@ public class ReadXmlApi {
*/
*/
@RequestMapping
(
"queryPersonXMLCount"
)
@RequestMapping
(
"queryPersonXMLCount"
)
public
String
queryPersonXMLCount
(
@RequestParam
(
"importDate"
)
String
importDate
,
@RequestParam
(
"state"
)
String
state
,
HttpServletResponse
resp
)
{
public
String
queryPersonXMLCount
(
@RequestParam
(
"importDate"
)
String
importDate
,
@RequestParam
(
"state"
)
String
state
,
HttpServletResponse
resp
)
{
List
<
CountDataEntity
>
countDataEntities
=
importXmlService
.
queryPersonXmlCount
(
importDate
,
Long
.
valueOf
(
state
));
List
<
CountDataEntity
>
countDataEntities
=
importXmlService
.
queryPersonXmlCount
(
replaceDate
(
importDate
)
,
Long
.
valueOf
(
state
));
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
yxjsonResponse
.
outPutSuccess
(
countDataEntities
);
yxjsonResponse
.
outPutSuccess
(
countDataEntities
);
return
yxjsonResponse
.
toJSONString
();
return
yxjsonResponse
.
toJSONString
();
}
}
private
String
replaceDate
(
String
str
){
return
str
.
replace
(
"-"
,
""
);
}
}
}
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