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
c64b2198
Commit
c64b2198
authored
Mar 03, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试接口更新
parent
14ace7f2
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
71 additions
and
17 deletions
+71
-17
ReadXmlApi.java
src/main/java/com/yxproject/start/api/ReadXmlApi.java
+2
-2
PackageInformationApi.java
...om/yxproject/start/api/fakeApi/PackageInformationApi.java
+0
-1
SelectExcelApi.java
.../java/com/yxproject/start/api/fakeApi/SelectExcelApi.java
+0
-2
SortingGroupListApi.java
.../com/yxproject/start/api/fakeApi/SortingGroupListApi.java
+2
-2
TaskListFakeApi.java
...java/com/yxproject/start/api/fakeApi/TaskListFakeApi.java
+5
-6
CountDataEntity.java
...main/java/com/yxproject/start/entity/CountDataEntity.java
+51
-0
Analysis.java
src/main/java/com/yxproject/start/mapper/Analysis.java
+0
-4
FilesMapper.java
src/main/java/com/yxproject/start/mapper/FilesMapper.java
+9
-0
GroupNoMapper.java
src/main/java/com/yxproject/start/mapper/GroupNoMapper.java
+2
-0
No files found.
src/main/java/com/yxproject/start/api/ReadXmlApi.java
View file @
c64b2198
...
...
@@ -70,7 +70,7 @@ public class ReadXmlApi {
//将当前上下文初始化给 CommonsMutipartResolver (多部分解析器)
CommonsMultipartResolver
multipartResolver
=
new
CommonsMultipartResolver
(
requ
.
getSession
().
getServletContext
());
// 判断是否是多数据段提交格式
// 判断是否是多数据段提交格式
if
(
multipartResolver
.
isMultipart
(
requ
))
{
MultipartHttpServletRequest
multiRequest
=
(
MultipartHttpServletRequest
)
requ
;
Iterator
<
String
>
iter
=
multiRequest
.
getFileNames
();
...
...
@@ -79,7 +79,7 @@ public class ReadXmlApi {
try
{
// 如果fileitem中封装的是普通输入项的数据
// 如果fileitem中封装的是上传文件
// 得到上传的文件名称
,
// 得到上传的文件名称
filename
=
item
.
getName
();
if
(
filename
==
null
||
filename
.
trim
().
equals
(
""
))
{
continue
;
...
...
src/main/java/com/yxproject/start/api/fakeApi/PackageInformationApi.java
View file @
c64b2198
...
...
@@ -88,7 +88,6 @@ public class PackageInformationApi {
jsonStr7
.
put
(
"cardType "
,
"普通证"
);
list
.
add
(
jsonStr7
);
map
.
put
(
"commonCardCount"
,
2300
);
map
.
put
(
"postCardCount"
,
1200
);
map
.
put
(
"forbiddenCount"
,
2
);
...
...
src/main/java/com/yxproject/start/api/fakeApi/SelectExcelApi.java
View file @
c64b2198
...
...
@@ -117,8 +117,6 @@ public class SelectExcelApi {
countyList
.
add
(
jsonStr10
);
countyList
.
add
(
jsonStr11
);
return
countyList
.
toString
();
}
...
...
src/main/java/com/yxproject/start/api/fakeApi/SortingGroupListApi.java
View file @
c64b2198
...
...
@@ -18,7 +18,7 @@ public class SortingGroupListApi {
* @return
*/
@RequestMapping
(
"sortingGroupList"
)
public
String
sortingGroupList
(
@Param
(
"readXMLDate"
)
String
readXMLDate
,
@Param
(
"state"
)
String
state
){
public
List
<
JSONObject
>
sortingGroupList
(
@Param
(
"readXMLDate"
)
String
readXMLDate
,
@Param
(
"state"
)
String
state
){
List
<
JSONObject
>
countyList
=
new
ArrayList
<>();
JSONObject
jsonStr1
=
new
JSONObject
();
...
...
@@ -69,7 +69,7 @@ public class SortingGroupListApi {
jsonStr6
.
put
(
"postCardCount"
,
13000
);
countyList
.
add
(
jsonStr6
);
return
countyList
.
toString
()
;
return
countyList
;
}
}
src/main/java/com/yxproject/start/api/fakeApi/TaskListFakeApi.java
View file @
c64b2198
...
...
@@ -4,7 +4,6 @@ import net.sf.json.JSONObject;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -19,9 +18,9 @@ public class TaskListFakeApi {
* @return
*/
@RequestMapping
(
"selectByDate"
)
public
String
selectByDate
(
@Param
(
"date"
)
String
date
){
public
List
<
Map
>
selectByDate
(
@Param
(
"date"
)
String
date
){
List
<
String
>
result
=
new
ArrayList
<>();
List
<
Map
>
result
=
new
ArrayList
<>();
Map
<
String
,
Object
>
map1
=
new
HashMap
<>();
Map
<
String
,
Object
>
map2
=
new
HashMap
<>();
...
...
@@ -91,11 +90,11 @@ public class TaskListFakeApi {
map2
.
put
(
"list"
,
list2
);
result
.
add
(
map1
.
toString
()
);
result
.
add
(
map2
.
toString
()
);
result
.
add
(
map1
);
result
.
add
(
map2
);
return
result
.
toString
()
;
return
result
;
}
}
src/main/java/com/yxproject/start/entity/CountDataEntity.java
0 → 100644
View file @
c64b2198
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.Entity
;
public
class
CountDataEntity
{
private
String
uploadDate
;
private
Integer
packageCount
;
private
Integer
cardCount
;
private
Integer
commonCardCount
;
private
Integer
postCardCount
;
public
String
getUploadDate
()
{
return
uploadDate
;
}
public
void
setUploadDate
(
String
uploadDate
)
{
this
.
uploadDate
=
uploadDate
;
}
public
Integer
getPackageCount
()
{
return
packageCount
;
}
public
void
setPackageCount
(
Integer
packageCount
)
{
this
.
packageCount
=
packageCount
;
}
public
Integer
getCardCount
()
{
return
cardCount
;
}
public
void
setCardCount
(
Integer
cardCount
)
{
this
.
cardCount
=
cardCount
;
}
public
Integer
getCommonCardCount
()
{
return
commonCardCount
;
}
public
void
setCommonCardCount
(
Integer
commonCardCount
)
{
this
.
commonCardCount
=
commonCardCount
;
}
public
Integer
getPostCardCount
()
{
return
postCardCount
;
}
public
void
setPostCardCount
(
Integer
postCardCount
)
{
this
.
postCardCount
=
postCardCount
;
}
}
src/main/java/com/yxproject/start/mapper/Analysis.java
deleted
100644 → 0
View file @
14ace7f2
package
com
.
yxproject
.
start
.
mapper
;
public
interface
Analysis
{
}
src/main/java/com/yxproject/start/mapper/FilesMapper.java
View file @
c64b2198
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.CountDataEntity
;
import
com.yxproject.start.entity.FilesEntity
;
import
org.apache.ibatis.annotations.Insert
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
@Mapper
public
interface
FilesMapper
{
...
...
@@ -10,4 +14,9 @@ public interface FilesMapper {
@Insert
(
"INSERT INTO FILES (VERSION_CODE,DWDM,DWMC,RECORD_NUMBER,CREAT_TIME,SOURCE_FILE_NAME)"
+
"VALUES(#{versionCode},#{dwdm},#{dwmc},#{recordNumber},#{creatTime},#{sourceFileName})"
)
public
boolean
insertFiles
(
FilesEntity
filesEntity
);
@Select
(
""
)
public
List
<
CountDataEntity
>
selectFilesCount
();
}
src/main/java/com/yxproject/start/mapper/GroupNoMapper.java
View file @
c64b2198
package
com
.
yxproject
.
start
.
mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
@Mapper
public
interface
GroupNoMapper
{
/**
...
...
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