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
ab263dd8
Commit
ab263dd8
authored
Jun 19, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加绿包运单信息的上传、查询、删除
parent
03b72d27
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
489 additions
and
0 deletions
+489
-0
GreenPackageInformationApi.java
...a/com/yxproject/start/api/GreenPackageInformationApi.java
+69
-0
ReadExcelApi.java
src/main/java/com/yxproject/start/api/ReadExcelApi.java
+121
-0
GreenPackageInformationEntity.java
...yxproject/start/entity/GreenPackageInformationEntity.java
+84
-0
GreenPackageInformationFileEntity.java
...oject/start/entity/GreenPackageInformationFileEntity.java
+74
-0
GreenPackageInformationFileMapper.java
...oject/start/mapper/GreenPackageInformationFileMapper.java
+28
-0
GreenPackageInformationMapper.java
...yxproject/start/mapper/GreenPackageInformationMapper.java
+23
-0
GreenPackageInformationService.java
...project/start/service/GreenPackageInformationService.java
+20
-0
GreenPackageInformationServiceImpl.java
...tart/service/impl/GreenPackageInformationServiceImpl.java
+55
-0
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+15
-0
No files found.
src/main/java/com/yxproject/start/api/GreenPackageInformationApi.java
0 → 100644
View file @
ab263dd8
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.GreenPackageInformationFileEntity
;
import
com.yxproject.start.service.GreenPackageInformationService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* @auther zhangyusheng
* 2019/6/19 11:07
*/
@RestController
@RequestMapping
(
"GreenPackageInformationApi"
)
public
class
GreenPackageInformationApi
{
@Autowired
GreenPackageInformationService
greenPackageInformationService
;
/**
* 查询提交的绿包信息表
* @param startDate 起始时间
* @param endDate 截至时间
* @param name 查询人姓名
* @return
*/
@RequestMapping
(
"queryGreenPackageInformationFile"
)
public
List
<
GreenPackageInformationFileEntity
>
queryGreenPackageInformationFileEntity
(
@RequestParam
(
"startDate"
)
String
startDate
,
@RequestParam
(
"endDate"
)
String
endDate
,
@RequestParam
(
"name"
)
String
name
){
List
<
GreenPackageInformationFileEntity
>
greenPackageInformationFileEntities
=
greenPackageInformationService
.
selectGreenPackageInformationFileEntity
(
replaceDate
(
startDate
),
replaceDate
(
endDate
),
replaceNullString
(
name
));
return
greenPackageInformationFileEntities
;
}
/**
* 删除提交的绿包信息表
* @param id 流水号
* @return
*/
@RequestMapping
(
"deleteGreenPackageInformationFile"
)
public
boolean
deleteGreenPackageInformationFileEntity
(
@RequestParam
(
"id"
)
String
id
){
boolean
b
=
greenPackageInformationService
.
deleteGreenPackageInformationFileEntity
(
id
);
return
b
;
}
/**
* 字符串去除空格
*
* @param str 原始字符串
* @return 返回新的字符串
*/
private
String
replaceNullString
(
String
str
)
{
if
(
str
==
""
)
{
return
null
;
}
else
return
str
;
}
/**
* 去除字符串中中线
*
* @param str
* @return
*/
private
String
replaceDate
(
String
str
)
{
return
str
.
replace
(
"-"
,
""
).
replace
(
" "
,
""
).
replace
(
":"
,
""
);
}
}
src/main/java/com/yxproject/start/api/ReadExcelApi.java
View file @
ab263dd8
package
com
.
yxproject
.
start
.
api
;
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.FileNameDicEntity
;
import
com.yxproject.start.entity.FileNameDicEntity
;
import
com.yxproject.start.entity.GreenPackageInformationEntity
;
import
com.yxproject.start.entity.GreenPackageInformationFileEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.service.FileNameDicService
;
import
com.yxproject.start.service.FileNameDicService
;
import
com.yxproject.start.service.GreenPackageInformationService
;
import
com.yxproject.start.service.PersonPostService
;
import
com.yxproject.start.service.PersonPostService
;
import
com.yxproject.start.utils.ReadExcel
;
import
com.yxproject.start.utils.ReadExcel
;
import
com.yxproject.start.utils.YXJSONResponse
;
import
com.yxproject.start.utils.YXJSONResponse
;
...
@@ -39,9 +42,13 @@ public class ReadExcelApi {
...
@@ -39,9 +42,13 @@ public class ReadExcelApi {
@Autowired
@Autowired
PersonPostService
personPostService
;
PersonPostService
personPostService
;
@Autowired
@Autowired
FileNameDicService
fileNameDicService
;
FileNameDicService
fileNameDicService
;
@Autowired
GreenPackageInformationService
greenPackageInformationService
;
Logger
logger
=
Logger
.
getLogger
(
ReadExcelApi
.
class
);
Logger
logger
=
Logger
.
getLogger
(
ReadExcelApi
.
class
);
/**
/**
...
@@ -239,6 +246,120 @@ public class ReadExcelApi {
...
@@ -239,6 +246,120 @@ public class ReadExcelApi {
return
map
;
return
map
;
}
}
/**
* 导入普证绿包快递单号信息表
* @param issueDate 订单发出日期
* @param resp
* @param requ
* @return
*/
@RequestMapping
(
"ReadGreenPackageInformation"
)
@Consumes
(
MediaType
.
MULTIPART_FORM_DATA
)
@Produces
(
MediaType
.
APPLICATION_JSON
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Map
<
String
,
Object
>
ReadGreenPackageInformation
(
@RequestParam
(
"issueDate"
)
String
issueDate
,
@RequestParam
(
"name"
)
String
name
,
HttpServletResponse
resp
,
HttpServletRequest
requ
)
{
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
YXJSONResponse
yxresp
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
String
filename
=
""
;
DiskFileItemFactory
factory
=
new
DiskFileItemFactory
();
// 设置缓冲区的大小为100KB,如果不指定,那么缓冲区的大小默认是10KB
factory
.
setSizeThreshold
(
1024
*
100
);
ServletFileUpload
upload
=
new
ServletFileUpload
(
factory
);
upload
.
setHeaderEncoding
(
"UTF-8"
);
// 设置上传单个文件的大小的最大值,目前是设置为1024*1024*10字节,也就是10MB
upload
.
setFileSizeMax
(
1024
*
1024
*
10
);
// 设置上传文件总量的最大值,最大值=同时上传的多个文件的大小的最大值的和,目前设置为4000MB
upload
.
setSizeMax
(
1024
*
1024
*
4000
);
// 将普通属性存入map中,之后调用
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
List
<
FileItem
>
list
=
null
;
try
{
//将当前上下文初始化给 CommonsMutipartResolver (多部分解析器)
CommonsMultipartResolver
multipartResolver
=
new
CommonsMultipartResolver
(
requ
.
getServletContext
());
// 判断是否是多数据段提交格式
if
(
multipartResolver
.
isMultipart
(
requ
))
{
MultipartHttpServletRequest
multiRequest
=
(
MultipartHttpServletRequest
)
requ
;
Iterator
<
String
>
iter
=
multiRequest
.
getFileNames
();
while
(
iter
.
hasNext
())
{
List
<
MultipartFile
>
fileRows
=
multiRequest
.
getFiles
(
iter
.
next
().
toString
());
for
(
MultipartFile
item
:
fileRows
){
try
{
// 如果fileitem中封装的是普通输入项的数据
// 如果fileitem中封装的是上传文件
// 得到上传的文件名称
filename
=
item
.
getOriginalFilename
();
try
{
// 如果fileitem中封装的是普通输入项的数据
// 如果fileitem中封装的是上传文件
// 得到上传的文件名称
filename
=
item
.
getOriginalFilename
();
File
file
=
null
;
try
{
file
=
File
.
createTempFile
(
"prefix"
,
"_"
+
item
.
getOriginalFilename
());
item
.
transferTo
(
file
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
logger
.
error
(
""
,
e
);
}
ReadExcel
readExcel
=
new
ReadExcel
();
List
list1
=
readExcel
.
readExcel
(
file
);
GreenPackageInformationFileEntity
greenPackageInformationFileEntity
=
new
GreenPackageInformationFileEntity
();
greenPackageInformationFileEntity
.
setFileName
(
filename
);
greenPackageInformationFileEntity
.
setImportName
(
name
);
long
greenPackageInformationFileId
=
greenPackageInformationService
.
saveGreenPackageInformationFile
(
greenPackageInformationFileEntity
);
int
success
=
0
;
int
failed
=
0
;
//导入绿包信息表
for
(
int
i
=
1
;
i
<
list1
.
size
();
i
++)
{
List
o
=
(
List
)
list1
.
get
(
i
);
//判断导入信息是否有误
GreenPackageInformationEntity
greenPackageInformationEntity
=
new
GreenPackageInformationEntity
();
greenPackageInformationEntity
.
setPoliceName
(
o
.
get
(
1
).
toString
());
greenPackageInformationEntity
.
setWaybillNumber
(
o
.
get
(
0
).
toString
());
greenPackageInformationEntity
.
setReceiptDate
(
replaceDate
(
issueDate
));
greenPackageInformationEntity
.
setFileId
(
greenPackageInformationFileId
);
boolean
b
=
greenPackageInformationService
.
saveGreenPackageInformation
(
greenPackageInformationEntity
);
if
(
b
){
success
++;
}
else
{
failed
++;
}
}
map
.
put
(
"success"
,
success
);
map
.
put
(
"failed"
,
failed
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
""
,
e
);
yxresp
.
outPutError
(
"Exception"
,
"上传文件时发生错误,非法XML文件:"
+
filename
);
continue
;
}
finally
{
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
""
,
e
);
yxresp
.
outPutError
(
"FileUploadException"
,
"文件上载发生异常:"
+
e
.
getMessage
());
}
finally
{
return
map
;
}
}
}
}
}
catch
(
Exception
e
){
logger
.
error
(
"Exception 导入个人邮寄信息表异常"
,
e
);
}
finally
{
}
return
map
;
}
private
String
replaceDate
(
String
str
){
private
String
replaceDate
(
String
str
){
return
str
.
replace
(
"-"
,
""
);
return
str
.
replace
(
"-"
,
""
);
}
}
...
...
src/main/java/com/yxproject/start/entity/GreenPackageInformationEntity.java
0 → 100644
View file @
ab263dd8
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.*
;
import
java.util.Objects
;
/**
* @auther zhangyusheng
* 2019/6/18 14:45
*/
@Entity
@Table
(
name
=
"GREEN_PACKAGE_INFORMATION"
,
schema
=
"YINGXIN"
,
catalog
=
""
)
public
class
GreenPackageInformationEntity
{
private
long
id
;
private
String
waybillNumber
;
private
String
policeName
;
private
String
receiptDate
;
private
long
fileId
;
@Id
@Column
(
name
=
"ID"
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"WAYBILL_NUMBER"
)
public
String
getWaybillNumber
()
{
return
waybillNumber
;
}
public
void
setWaybillNumber
(
String
waybillNumber
)
{
this
.
waybillNumber
=
waybillNumber
;
}
@Basic
@Column
(
name
=
"POLICE_NAME"
)
public
String
getPoliceName
()
{
return
policeName
;
}
public
void
setPoliceName
(
String
policeName
)
{
this
.
policeName
=
policeName
;
}
@Basic
@Column
(
name
=
"RECEIPT_DATE"
)
public
String
getReceiptDate
()
{
return
receiptDate
;
}
public
void
setReceiptDate
(
String
receiptDate
)
{
this
.
receiptDate
=
receiptDate
;
}
@Basic
@Column
(
name
=
"FILE_ID"
)
public
long
getFileId
()
{
return
fileId
;
}
public
void
setFileId
(
long
fileId
)
{
this
.
fileId
=
fileId
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
GreenPackageInformationEntity
that
=
(
GreenPackageInformationEntity
)
o
;
return
id
==
that
.
id
&&
Objects
.
equals
(
waybillNumber
,
that
.
waybillNumber
)
&&
Objects
.
equals
(
policeName
,
that
.
policeName
)
&&
Objects
.
equals
(
fileId
,
that
.
fileId
)
&&
Objects
.
equals
(
receiptDate
,
that
.
receiptDate
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
waybillNumber
,
policeName
,
fileId
,
receiptDate
);
}
}
src/main/java/com/yxproject/start/entity/GreenPackageInformationFileEntity.java
0 → 100644
View file @
ab263dd8
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.*
;
import
java.util.Date
;
import
java.util.Objects
;
/**
* @auther zhangyusheng
* 2019/6/19 11:02
*/
@Entity
@Table
(
name
=
"GREEN_PACKAGE_INFORMATION_FILE"
,
schema
=
"YINGXIN"
,
catalog
=
""
)
public
class
GreenPackageInformationFileEntity
{
private
long
id
;
private
String
fileName
;
private
Date
importDate
;
private
String
importName
;
@Id
@Column
(
name
=
"ID"
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"FILE_NAME"
)
public
String
getFileName
()
{
return
fileName
;
}
public
void
setFileName
(
String
fileName
)
{
this
.
fileName
=
fileName
;
}
@Basic
@Column
(
name
=
"IMPORT_DATE"
)
public
Date
getImportDate
()
{
return
importDate
;
}
public
void
setImportDate
(
Date
importDate
)
{
this
.
importDate
=
importDate
;
}
@Basic
@Column
(
name
=
"IMPORT_NAME"
)
public
String
getImportName
()
{
return
importName
;
}
public
void
setImportName
(
String
importName
)
{
this
.
importName
=
importName
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
GreenPackageInformationFileEntity
that
=
(
GreenPackageInformationFileEntity
)
o
;
return
id
==
that
.
id
&&
Objects
.
equals
(
fileName
,
that
.
fileName
)
&&
Objects
.
equals
(
importDate
,
that
.
importDate
)
&&
Objects
.
equals
(
importName
,
that
.
importName
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
fileName
,
importDate
,
importName
);
}
}
src/main/java/com/yxproject/start/mapper/GreenPackageInformationFileMapper.java
0 → 100644
View file @
ab263dd8
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.GreenPackageInformationFileEntity
;
import
org.apache.ibatis.annotations.*
;
import
java.util.List
;
/**
* @auther zhangyusheng
* 2019/6/19 10:40
*/
@Mapper
public
interface
GreenPackageInformationFileMapper
{
@Insert
(
"insert into GREEN_PACKAGE_INFORMATION_FILE (FILE_NAME,IMPORT_DATE,IMPORT_NAME) values (#{fileName},sysdate,#{importName})"
)
@Options
(
useGeneratedKeys
=
true
,
keyProperty
=
"id"
,
keyColumn
=
"ID"
)
public
boolean
saveGreenPackageInformationFile
(
GreenPackageInformationFileEntity
greenPackageInformationFileEntity
);
@Select
(
"<script> select * from GREEN_PACKAGE_INFORMATION_FILE "
+
"where to_char(IMPORT_DATE,'yyyyMMdd') between #{startDate} and #{endDate} "
+
"<if test = 'name != null'> "
+
" and IMPORT_NAME = #{name} "
+
" </if>"
+
"</script>"
)
public
List
<
GreenPackageInformationFileEntity
>
selectGreenPackageInformationFileEntity
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"name"
)
String
name
);
@Delete
(
"DELETE from GREEN_PACKAGE_INFORMATION_FILE WHERE id = #{id}"
)
public
boolean
deleteGreenPackageInformationFileEntity
(
@Param
(
"id"
)
long
id
);
}
src/main/java/com/yxproject/start/mapper/GreenPackageInformationMapper.java
0 → 100644
View file @
ab263dd8
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.GreenPackageInformationEntity
;
import
org.apache.ibatis.annotations.*
;
import
java.util.List
;
import
java.util.Map
;
/**
* @auther zhangyusheng
* 2019/6/18 14:47
*/
@Mapper
public
interface
GreenPackageInformationMapper
{
@Select
(
"select * from GAJG_DM where GAJG_MC like #{policeName}"
)
public
List
<
Map
<
String
,
Object
>>
selectPolice
(
@Param
(
"policeName"
)
String
policeName
);
@Insert
(
"insert into GREEN_PACKAGE_INFORMATION (WAYBILL_NUMBER,POLICE_NAME,RECEIPT_DATE,file_id) VALUES(#{waybillNumber},#{policeName},#{receiptDate},#{fileId})"
)
public
boolean
saveGreenPackageInformation
(
GreenPackageInformationEntity
greenPackageInformationEntity
);
@Delete
(
"delete from GREEN_PACKAGE_INFORMATION where file_id = #{fileId}"
)
public
boolean
deleteGreenPackageInformationByFileId
(
@Param
(
"fileId"
)
long
fileId
);
}
src/main/java/com/yxproject/start/service/GreenPackageInformationService.java
0 → 100644
View file @
ab263dd8
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.entity.GreenPackageInformationEntity
;
import
com.yxproject.start.entity.GreenPackageInformationFileEntity
;
import
java.util.List
;
/**
* @auther zhangyusheng
* 2019/6/18 14:48
*/
public
interface
GreenPackageInformationService
{
public
boolean
saveGreenPackageInformation
(
GreenPackageInformationEntity
greenPackageInformationEntity
);
public
long
saveGreenPackageInformationFile
(
GreenPackageInformationFileEntity
greenPackageInformationFileEntity
);
public
List
<
GreenPackageInformationFileEntity
>
selectGreenPackageInformationFileEntity
(
String
startDate
,
String
endDate
,
String
name
);
public
boolean
deleteGreenPackageInformationFileEntity
(
String
id
);
}
src/main/java/com/yxproject/start/service/impl/GreenPackageInformationServiceImpl.java
0 → 100644
View file @
ab263dd8
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.GreenPackageInformationEntity
;
import
com.yxproject.start.entity.GreenPackageInformationFileEntity
;
import
com.yxproject.start.mapper.GreenPackageInformationFileMapper
;
import
com.yxproject.start.mapper.GreenPackageInformationMapper
;
import
com.yxproject.start.service.GreenPackageInformationService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
/**
* @auther zhangyusheng
* 2019/6/18 14:49
*/
@Service
public
class
GreenPackageInformationServiceImpl
implements
GreenPackageInformationService
{
@Autowired
private
GreenPackageInformationMapper
greenPackageInformationMapper
;
@Autowired
private
GreenPackageInformationFileMapper
greenPackageInformationFileMapper
;
@Override
public
boolean
saveGreenPackageInformation
(
GreenPackageInformationEntity
greenPackageInformationEntity
)
{
List
<
Map
<
String
,
Object
>>
list
=
greenPackageInformationMapper
.
selectPolice
(
"'%"
+
greenPackageInformationEntity
.
getPoliceName
()
+
"%'"
);
if
(
list
.
size
()>
0
){
return
greenPackageInformationMapper
.
saveGreenPackageInformation
(
greenPackageInformationEntity
);
}
else
{
return
false
;
}
}
@Override
public
long
saveGreenPackageInformationFile
(
GreenPackageInformationFileEntity
greenPackageInformationFileEntity
)
{
boolean
b
=
greenPackageInformationFileMapper
.
saveGreenPackageInformationFile
(
greenPackageInformationFileEntity
);
return
greenPackageInformationFileEntity
.
getId
();
}
@Override
public
List
<
GreenPackageInformationFileEntity
>
selectGreenPackageInformationFileEntity
(
String
startDate
,
String
endDate
,
String
name
)
{
List
<
GreenPackageInformationFileEntity
>
greenPackageInformationFileEntities
=
greenPackageInformationFileMapper
.
selectGreenPackageInformationFileEntity
(
startDate
,
endDate
,
name
);
return
greenPackageInformationFileEntities
;
}
@Override
public
boolean
deleteGreenPackageInformationFileEntity
(
String
id
)
{
greenPackageInformationMapper
.
deleteGreenPackageInformationByFileId
(
Long
.
valueOf
(
id
));
greenPackageInformationFileMapper
.
deleteGreenPackageInformationFileEntity
(
Long
.
valueOf
(
id
));
return
true
;
}
}
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
ab263dd8
...
@@ -1249,9 +1249,11 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1249,9 +1249,11 @@ public class TaskListServiceImpl implements TaskListService {
String
countyName
=
null
;
String
countyName
=
null
;
String
countyCode
=
null
;
String
countyCode
=
null
;
Object
submitDate
=
null
;
Object
submitDate
=
null
;
Object
lastDate
=
null
;
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
lastDate
=
countyMap
.
get
(
"LAST_DATE"
);
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
...
@@ -1292,6 +1294,7 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1292,6 +1294,7 @@ public class TaskListServiceImpl implements TaskListService {
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"lastDate"
,
lastDate
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
...
@@ -1356,9 +1359,11 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1356,9 +1359,11 @@ public class TaskListServiceImpl implements TaskListService {
String
countyName
=
null
;
String
countyName
=
null
;
String
countyCode
=
null
;
String
countyCode
=
null
;
Object
submitDate
=
null
;
Object
submitDate
=
null
;
Object
lastDate
=
null
;
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
lastDate
=
countyMap
.
get
(
"LAST_DATE"
);
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
...
@@ -1402,6 +1407,7 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1402,6 +1407,7 @@ public class TaskListServiceImpl implements TaskListService {
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"lastDate"
,
lastDate
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"eWriteCount"
,
eWriteCount
);
countyMapGroup
.
put
(
"eWriteCount"
,
eWriteCount
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
...
@@ -1468,10 +1474,12 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1468,10 +1474,12 @@ public class TaskListServiceImpl implements TaskListService {
String
countyName
=
null
;
String
countyName
=
null
;
String
countyCode
=
null
;
String
countyCode
=
null
;
Object
submitDate
=
null
;
Object
submitDate
=
null
;
Object
lastDate
=
null
;
String
workGroup
=
null
;
String
workGroup
=
null
;
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
lastDate
=
countyMap
.
get
(
"LAST_DATE"
);
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
...
@@ -1515,6 +1523,7 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1515,6 +1523,7 @@ public class TaskListServiceImpl implements TaskListService {
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"lastDate"
,
lastDate
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"downloadCount"
,
DOWNLOAD_COUNT
);
countyMapGroup
.
put
(
"downloadCount"
,
DOWNLOAD_COUNT
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
...
@@ -1579,10 +1588,12 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1579,10 +1588,12 @@ public class TaskListServiceImpl implements TaskListService {
String
countyName
=
null
;
String
countyName
=
null
;
String
countyCode
=
null
;
String
countyCode
=
null
;
Object
submitDate
=
null
;
Object
submitDate
=
null
;
Object
lastDate
=
null
;
String
workGroup
=
null
;
String
workGroup
=
null
;
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
lastDate
=
countyMap
.
get
(
"LAST_DATE"
);
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
...
@@ -1620,6 +1631,7 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1620,6 +1631,7 @@ public class TaskListServiceImpl implements TaskListService {
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"lastDate"
,
lastDate
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
...
@@ -1682,10 +1694,12 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1682,10 +1694,12 @@ public class TaskListServiceImpl implements TaskListService {
String
countyName
=
null
;
String
countyName
=
null
;
String
countyCode
=
null
;
String
countyCode
=
null
;
Object
submitDate
=
null
;
Object
submitDate
=
null
;
Object
lastDate
=
null
;
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
List
<
Map
<
String
,
Object
>>
countyMapList
=
mapList
.
get
(
taskId
);
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
for
(
Map
<
String
,
Object
>
countyMap
:
countyMapList
)
{
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
submitDate
=
countyMap
.
get
(
"SUBMIT_DATE"
);
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
countyCode
=
countyMap
.
get
(
"COUNTY_CODE"
)
+
""
;
lastDate
=
countyMap
.
get
(
"LAST_DATE"
);
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
countyName
=
countyMap
.
get
(
"COUNTYNAME"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
typeName
=
countyMap
.
get
(
"CARD_TYPE_ID"
)
+
""
;
typeSum
+=
Integer
.
valueOf
(
countyMap
.
get
(
"VALID_COUNT"
)
+
""
);
typeSum
+=
Integer
.
valueOf
(
countyMap
.
get
(
"VALID_COUNT"
)
+
""
);
...
@@ -1722,6 +1736,7 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -1722,6 +1736,7 @@ public class TaskListServiceImpl implements TaskListService {
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"taskId"
,
taskId
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"groupList"
,
countyMapList
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"saveDate"
,
submitDate
);
countyMapGroup
.
put
(
"lastDate"
,
lastDate
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyName"
,
countyName
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyValidCount"
,
validCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
countyMapGroup
.
put
(
"countyInvalidCount"
,
invalidCount
);
...
...
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