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
ce55e450
Commit
ce55e450
authored
Feb 25, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xiugai
parent
46a955db
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
232 additions
and
1378 deletions
+232
-1378
BizApi.java
src/main/java/com/yxproject/start/api/BizApi.java
+0
-105
ExportExcelApi.java
src/main/java/com/yxproject/start/api/ExportExcelApi.java
+0
-36
PersonalDetailsApi.java
...main/java/com/yxproject/start/api/PersonalDetailsApi.java
+0
-11
ReadExcelApi.java
src/main/java/com/yxproject/start/api/ReadExcelApi.java
+0
-264
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+62
-0
SlhGajgDmEntity.java
...main/java/com/yxproject/start/entity/SlhGajgDmEntity.java
+0
-53
SysPermissionEntity.java
.../java/com/yxproject/start/entity/SysPermissionEntity.java
+0
-128
SysRoleEntity.java
src/main/java/com/yxproject/start/entity/SysRoleEntity.java
+0
-76
SysRolePermissionEntity.java
...a/com/yxproject/start/entity/SysRolePermissionEntity.java
+0
-53
SysUserRoleEntity.java
...in/java/com/yxproject/start/entity/SysUserRoleEntity.java
+0
-53
TaskListEntity.java
...a/com/yxproject/start/entity/TaskList/TaskListEntity.java
+49
-0
UserInfoEntity.java
src/main/java/com/yxproject/start/entity/UserInfoEntity.java
+0
-115
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+52
-0
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+17
-0
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+40
-0
ExportExcel.java
src/main/java/com/yxproject/start/utils/ExportExcel.java
+0
-484
test.java
src/main/java/com/yxproject/start/utils/test.java
+12
-0
No files found.
src/main/java/com/yxproject/start/api/BizApi.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.dto.CardsStatusAndCardsMsgDto
;
import
com.yxproject.start.dto.CardsStatusAndPostMsgDto
;
import
com.yxproject.start.entity.PersonPostAbnormalEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.entity.PersonalProgressStatusEntity
;
import
com.yxproject.start.service.PersonPostAbnormalService
;
import
com.yxproject.start.service.PersonPostService
;
import
com.yxproject.start.service.PersonalProgressStatusService
;
import
net.sf.json.JSONArray
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author Administrator
*/
@RestController
@RequestMapping
(
"api"
)
public
class
BizApi
{
@Autowired
private
PersonPostAbnormalService
personPostAbnormalService
;
@Autowired
private
PersonalProgressStatusService
personalProgressStatusService
;
@Autowired
private
PersonPostService
personPostService
;
/**
* 查询个人邮寄信息异常数据
* @param date
* @param police
* @return
*/
@RequestMapping
(
"getErrorPostMsg"
)
public
List
<
PersonPostAbnormalEntity
>
getErrorPostMsg
(
@RequestParam
(
"date"
)
String
date
,
@RequestParam
(
"police"
)
String
police
)
{
List
<
PersonPostAbnormalEntity
>
list
=
personPostAbnormalService
.
getPersonPostAbnormal
(
date
,
police
);
return
list
;
}
/**
* 查询对公邮寄包查询
* @param date
* @param police
* @return
*/
@RequestMapping
(
"getCardsPostMsg"
)
public
List
<
CardsStatusAndPostMsgDto
>
getCardsPostMsg
(
@RequestParam
(
"date"
)
String
date
,
@RequestParam
(
"police"
)
String
police
)
{
List
<
CardsStatusAndPostMsgDto
>
list
=
personalProgressStatusService
.
getStatusAndPostMsg
(
date
,
police
);
return
list
;
}
/**
* 通过运单号查询邮寄信息
* @param waybillNumber
* @return
*/
@RequestMapping
(
"getPostMsgByWaybillNo"
)
public
PersonPostEntity
getPostMsgByWaybillNo
(
@RequestParam
(
"waybillNumber"
)
String
waybillNumber
)
{
PersonPostEntity
personPostEntity
=
personPostService
.
getPersonPostMsg
(
waybillNumber
);
return
personPostEntity
;
}
/**
*查询个人证件信息和证件状态
* @param date
* @param police
* @return
*/
@RequestMapping
(
"getCardsStatusAndCardMsg"
)
public
List
<
CardsStatusAndCardsMsgDto
>
getCardsStatusAndCardMsg
(
@RequestParam
(
"date"
)
String
date
,
@RequestParam
(
"police"
)
String
police
)
{
List
<
CardsStatusAndCardsMsgDto
>
list
=
personalProgressStatusService
.
getStatusAndCardMsg
(
date
,
police
);
return
list
;
}
/**
* 签收(修改状态表中的状态)
* @param uploadNoList
* @return
*/
@RequestMapping
(
"setSignInDate"
)
public
Map
<
String
,
String
>
setSignInDate
(
@RequestBody
String
uploadNoList
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
uploadNoList
);
Boolean
flag
=
personalProgressStatusService
.
updateSignInDate
(
jsonArray
);
if
(
flag
){
map
.
put
(
"msg"
,
"修改成功"
);
}
else
{
map
.
put
(
"msg"
,
"修改失败"
);
}
return
map
;
}
}
src/main/java/com/yxproject/start/api/ExportExcelApi.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.PersonPostAbnormalEntity
;
import
com.yxproject.start.entity.RedoRegistrationEntity
;
import
com.yxproject.start.entity.TemporaryCertificateEntity
;
import
com.yxproject.start.utils.ExportExcel
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@RestController
@RequestMapping
(
"exportExcel"
)
public
class
ExportExcelApi
{
/**
* 导出临时证信息
*/
@RequestMapping
(
"ExportTemporaryCertificate"
)
public
boolean
ExportTemporaryCertificate
(){
PersonPostAbnormalEntity
temporaryCertificate
=
new
PersonPostAbnormalEntity
();
ExportExcel
obj
=
new
ExportExcel
();
obj
.
exportTemporaryCertificateExcel
((
List
<
TemporaryCertificateEntity
>)
temporaryCertificate
);
return
true
;
}
/**
* 导出重做证件信息
*/
@RequestMapping
(
"ExportRedoRegistration"
)
public
boolean
ExportRedoRegistration
(){
RedoRegistrationEntity
redoRegistration
=
new
RedoRegistrationEntity
();
ExportExcel
obj
=
new
ExportExcel
();
obj
.
exportRedoRegistrationExcel
((
List
<
RedoRegistrationEntity
>)
redoRegistration
);
return
true
;
}
}
src/main/java/com/yxproject/start/api/PersonalDetailsApi.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
api
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"person"
)
public
class
PersonalDetailsApi
{
}
src/main/java/com/yxproject/start/api/ReadExcelApi.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.*
;
import
com.yxproject.start.mapper.*
;
import
com.yxproject.start.service.*
;
import
com.yxproject.start.utils.ReadExcel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.sql.Time
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.io.File
;
/**
*
* 导入Excel文件
*
*/
@RestController
@RequestMapping
(
"ReadExcel"
)
public
class
ReadExcelApi
{
@Autowired
PersonalProgressStatusService
personalProgressStatusService
;
@Autowired
PersonPostAbnormalService
personPostAbnormalService
;
@Autowired
CardDetailedListService
cardDetailedListService
;
@Autowired
PersonPostService
personPostService
;
@Autowired
TemporaryCertificateService
temporaryCertificateService
;
@Autowired
RedoRegistrationService
redoRegistrationService
;
Boolean
result
=
null
;
/**
* 导入个人制证进度状态表
*/
@RequestMapping
(
"ReadPPS"
)
public
boolean
ReadPersonalProgressStatus
()
{
ReadExcel
obj
=
new
ReadExcel
();
PersonalProgressStatusEntity
personalProgressStatus
=
new
PersonalProgressStatusEntity
();
List
<
PersonalProgressStatusEntity
>
entityList
=
new
ArrayList
<
PersonalProgressStatusEntity
>();
File
file
=
new
File
(
"E:/北京制证项目/personal_progress_status.xls"
);
List
excelList
=
obj
.
readExcel
(
file
);
for
(
int
i
=
0
;
i
<
excelList
.
size
();
i
++)
{
List
list
=
(
List
)
excelList
.
get
(
i
);
//跳过空行和第一行
if
(
list
==
null
||
i
==
0
){
continue
;
}
System
.
out
.
println
(
"输出:"
+
list
);
personalProgressStatus
.
setUploadNo
((
String
)
list
.
get
(
0
));
personalProgressStatus
.
setProgressStatus
((
Long
)
list
.
get
(
1
));
personalProgressStatus
.
setNote
((
String
)
list
.
get
(
2
));
personalProgressStatus
.
setImportDate
((
String
)
list
.
get
(
3
));
personalProgressStatus
.
setCreateTaskDate
((
Time
)
list
.
get
(
4
));
personalProgressStatus
.
setDataCheckDate
((
Time
)
list
.
get
(
5
));
personalProgressStatus
.
setFilmPrintDate
((
Time
)
list
.
get
(
6
));
personalProgressStatus
.
setPositionDate
((
Time
)
list
.
get
(
7
));
personalProgressStatus
.
setSortDate
((
Time
)
list
.
get
(
8
));
personalProgressStatus
.
setQualityTestDate
((
Time
)
list
.
get
(
9
));
personalProgressStatus
.
setOutStorageDate
((
Time
)
list
.
get
(
10
));
personalProgressStatus
.
setHandOutDate
((
Time
)
list
.
get
(
11
));
personalProgressStatus
.
setSignInDate
((
Time
)
list
.
get
(
12
));
entityList
.
add
(
personalProgressStatus
);
// for (int j=0;j<list.size();j++){
// System.out.println();
// }
result
=
personalProgressStatusService
.
updatePersonalProgressStatus
(
entityList
);
}
return
result
;
}
/**
* 导入个人邮寄异常信息
*/
@RequestMapping
(
"ReadPPA"
)
public
boolean
ReadPersonPostAbnormal
(){
ReadExcel
obj
=
new
ReadExcel
();
PersonPostAbnormalEntity
personPostAbnormal
=
new
PersonPostAbnormalEntity
();
List
<
PersonPostAbnormalEntity
>
entityList
=
new
ArrayList
<
PersonPostAbnormalEntity
>();
File
file
=
new
File
(
"E:/北京制证项目/person_post_abnormal.xls"
);
List
excelList
=
obj
.
readExcel
(
file
);
for
(
int
i
=
0
;
i
<
excelList
.
size
();
i
++){
List
list
=
(
List
)
excelList
.
get
(
i
);
//跳过空行和第一行
if
(
list
==
null
||
i
==
0
){
continue
;
}
personPostAbnormal
.
setBackWaybillNumber
((
String
)
list
.
get
(
0
));
personPostAbnormal
.
setOrderNumber
((
String
)
list
.
get
(
1
));
personPostAbnormal
.
setCreateDate
((
Time
)
list
.
get
(
2
));
personPostAbnormal
.
setOpenid
((
String
)
list
.
get
(
3
));
personPostAbnormal
.
setWcPlayOrderNumber
((
String
)
list
.
get
(
4
));
personPostAbnormal
.
setPlayState
((
String
)
list
.
get
(
5
));
personPostAbnormal
.
setOrderState
((
String
)
list
.
get
(
6
));
personPostAbnormal
.
setApplicantName
((
String
)
list
.
get
(
7
));
personPostAbnormal
.
setSenderName
((
String
)
list
.
get
(
8
));
personPostAbnormal
.
setSenderPhone
((
String
)
list
.
get
(
9
));
personPostAbnormal
.
setSenderAddress
((
String
)
list
.
get
(
10
));
personPostAbnormal
.
setRecipientName
((
String
)
list
.
get
(
11
));
personPostAbnormal
.
setRecipientPhone
((
String
)
list
.
get
(
12
));
personPostAbnormal
.
setRecipientAddress
((
String
)
list
.
get
(
13
));
personPostAbnormal
.
setOrderBlankNumber
((
String
)
list
.
get
(
14
));
personPostAbnormal
.
setGetToProvince
((
String
)
list
.
get
(
15
));
personPostAbnormal
.
setGetToCity
((
String
)
list
.
get
(
16
));
personPostAbnormal
.
setGetToCounty
((
String
)
list
.
get
(
17
));
personPostAbnormal
.
setBusinessType
((
String
)
list
.
get
(
18
));
personPostAbnormal
.
setLatticeMouthInformation
((
String
)
list
.
get
(
19
));
personPostAbnormal
.
setNatureOfTheInternal
((
String
)
list
.
get
(
20
));
personPostAbnormal
.
setNatureOfTheInformation
((
String
)
list
.
get
(
21
));
personPostAbnormal
.
setFirstWhite
((
String
)
list
.
get
(
22
));
personPostAbnormal
.
setErrCode
((
String
)
list
.
get
(
23
));
entityList
.
add
(
personPostAbnormal
);
System
.
out
.
println
(
"111111111111111111"
+
entityList
.
get
(
0
));
}
result
=
personPostAbnormalService
.
updatePersonPostAbnormal
(
entityList
);
return
result
;
}
/**
* 导入身份证详单
*/
@RequestMapping
(
"ReadCDL"
)
public
boolean
ReadCardDetailList
(){
ReadExcel
obj
=
new
ReadExcel
();
CardDetailedListEntity
cardDetailedList
=
new
CardDetailedListEntity
();
List
<
CardDetailedListEntity
>
entityList
=
new
ArrayList
<
CardDetailedListEntity
>();
File
file
=
new
File
(
"E:/北京制证项目/Card_Detail_List.xls"
);
List
excelList
=
obj
.
readExcel
(
file
);
for
(
int
i
=
0
;
i
<
excelList
.
size
();
i
++){
List
list
=
(
List
)
excelList
.
get
(
i
);
//跳过空行和第一行
if
(
list
==
null
||
i
==
0
){
continue
;
}
cardDetailedList
.
setPolistListId
((
String
)
list
.
get
(
0
));
cardDetailedList
.
setUploadNo
((
String
)
list
.
get
(
1
));
cardDetailedList
.
setNote
((
String
)
list
.
get
(
2
));
cardDetailedList
.
setFileName
((
String
)
list
.
get
(
3
));
cardDetailedList
.
setPoliceCode
((
String
)
list
.
get
(
4
));
entityList
.
add
(
cardDetailedList
);
}
result
=
cardDetailedListService
.
updateCardDetailedList
(
entityList
);
return
result
;
}
/**
* 导入个人信息表
*/
@RequestMapping
(
"ReadPersonPost"
)
public
boolean
ReadPersonPost
(){
ReadExcel
obj
=
new
ReadExcel
();
PersonPostEntity
personPost
=
new
PersonPostEntity
();
List
<
PersonPostEntity
>
entityList
=
new
ArrayList
<
PersonPostEntity
>();
File
file
=
new
File
(
"E:/北京制证项目/Person_Post.xls"
);
List
excelList
=
obj
.
readExcel
(
file
);
for
(
int
i
=
0
;
i
<
excelList
.
size
();
i
++){
List
list
=
(
List
)
excelList
.
get
(
i
);
//跳过空行和第一行
if
(
list
==
null
||
i
==
0
){
continue
;
}
personPost
.
setBackWaybillNumber
((
String
)
list
.
get
(
0
));
personPost
.
setOrderNumber
((
String
)
list
.
get
(
1
));
personPost
.
setCreateDate
((
Time
)
list
.
get
(
2
));
personPost
.
setOpenid
((
String
)
list
.
get
(
3
));
personPost
.
setWcPlayOrderNumber
((
String
)
list
.
get
(
4
));
personPost
.
setPlayState
((
String
)
list
.
get
(
5
));
personPost
.
setOrderState
((
String
)
list
.
get
(
6
));
personPost
.
setApplicantName
((
String
)
list
.
get
(
7
));
personPost
.
setSenderName
((
String
)
list
.
get
(
8
));
personPost
.
setSenderPhone
((
String
)
list
.
get
(
9
));
personPost
.
setSenderAddress
((
String
)
list
.
get
(
10
));
personPost
.
setRecipientName
((
String
)
list
.
get
(
11
));
personPost
.
setRecipientPhone
((
String
)
list
.
get
(
12
));
personPost
.
setRecipientAddress
((
String
)
list
.
get
(
13
));
personPost
.
setOrderBlankNumber
((
String
)
list
.
get
(
14
));
personPost
.
setGetToProvince
((
String
)
list
.
get
(
15
));
personPost
.
setGetToCity
((
String
)
list
.
get
(
16
));
personPost
.
setGetToCounty
((
String
)
list
.
get
(
17
));
personPost
.
setBusinessType
((
String
)
list
.
get
(
18
));
personPost
.
setLatticeMouthInformation
((
String
)
list
.
get
(
19
));
personPost
.
setNatureOfTheInternal
((
String
)
list
.
get
(
20
));
personPost
.
setLatticeMouthInformation
((
String
)
list
.
get
(
21
));
personPost
.
setFirstWhite
((
String
)
list
.
get
(
22
));
entityList
.
add
(
personPost
);
}
result
=
personPostService
.
updatePersonPost
(
entityList
);
return
result
;
}
/**
* 导入临时证信息
*/
@RequestMapping
(
"ReadTemporaryCertificate"
)
public
boolean
ReadTemporaryCertificate
(){
ReadExcel
obj
=
new
ReadExcel
();
TemporaryCertificateEntity
temporaryCertificate
=
new
TemporaryCertificateEntity
();
List
<
TemporaryCertificateEntity
>
entityList
=
new
ArrayList
<
TemporaryCertificateEntity
>();
File
file
=
new
File
(
"E:/北京制证项目/Temporary_Certificate.xls"
);
List
excelList
=
obj
.
readExcel
(
file
);
for
(
int
i
=
0
;
i
<
excelList
.
size
();
i
++)
{
List
list
=
(
List
)
excelList
.
get
(
i
);
//跳过空行和第一行
if
(
list
==
null
||
i
==
0
){
continue
;
}
temporaryCertificate
.
setName
((
String
)
list
.
get
(
0
));
temporaryCertificate
.
setCardId
((
String
)
list
.
get
(
1
));
temporaryCertificate
.
setPhone
((
String
)
list
.
get
(
2
));
temporaryCertificate
.
setLastDurationOfStatus
((
String
)
list
.
get
(
3
));
temporaryCertificate
.
setReceiptDate
((
String
)
list
.
get
(
4
));
temporaryCertificate
.
setDateOfHandOverToTreat
((
String
)
list
.
get
(
5
));
temporaryCertificate
.
setBackWorkshopDate
((
String
)
list
.
get
(
6
));
temporaryCertificate
.
setDeliverToParty
((
String
)
list
.
get
(
7
));
temporaryCertificate
.
setNote
((
String
)
list
.
get
(
8
));
entityList
.
add
(
temporaryCertificate
);
}
result
=
temporaryCertificateService
.
updateTemporaryCertificate
(
entityList
);
return
result
;
}
/**
* 导入重做证件信息
*/
@RequestMapping
(
"ReadRedoRegistration"
)
public
boolean
ReadRedoRegistration
(){
ReadExcel
obj
=
new
ReadExcel
();
RedoRegistrationEntity
redoRegistration
=
new
RedoRegistrationEntity
();
List
<
RedoRegistrationEntity
>
entityList
=
new
ArrayList
<
RedoRegistrationEntity
>();
File
file
=
new
File
(
"E:/北京制证项目/Read_Redo_Registration.xls"
);
List
excelList
=
obj
.
readExcel
(
file
);
for
(
int
i
=
0
;
i
<
excelList
.
size
();
i
++)
{
List
list
=
(
List
)
excelList
.
get
(
i
);
//跳过空行和第一行
if
(
list
==
null
||
i
==
0
){
continue
;
}
redoRegistration
.
setRedoRegistrationId
((
String
)
list
.
get
(
0
));
redoRegistration
.
setSubmitDate
((
String
)
list
.
get
(
1
));
redoRegistration
.
setCountyCode
((
String
)
list
.
get
(
2
));
redoRegistration
.
setPoliceCode
((
String
)
list
.
get
(
3
));
redoRegistration
.
setName
((
String
)
list
.
get
(
4
));
redoRegistration
.
setCardId
((
String
)
list
.
get
(
5
));
redoRegistration
.
setRedoReason
((
String
)
list
.
get
(
6
));
redoRegistration
.
setCallDate
((
String
)
list
.
get
(
7
));
redoRegistration
.
setBackDate
((
String
)
list
.
get
(
8
));
redoRegistration
.
setNote
((
String
)
list
.
get
(
9
));
entityList
.
add
(
redoRegistration
);
}
result
=
redoRegistrationService
.
updateRedoRegistration
(
entityList
);
return
result
;
}
}
src/main/java/com/yxproject/start/api/TaskListApi.java
0 → 100644
View file @
ce55e450
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
com.yxproject.start.service.TaskListService
;
import
net.sf.json.JSONObject
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Map
;
/**
* @author Administrator
* 任务单流程接口
*
*/
@RestController
@RequestMapping
(
"TaskList"
)
public
class
TaskListApi
{
@Autowired
private
TaskListService
taskListService
;
TaskEntity
taskEntity
=
new
TaskEntity
();
@RequestMapping
(
"selectByCounty"
)
public
Map
<
Object
,
TaskListEntity
>
selectByCounty
(
@RequestBody
String
submitDate
){
Map
<
Object
,
TaskListEntity
>
resultMap
=
taskListService
.
selectByCounty
(
submitDate
);
JSONObject
resultJson
=
JSONObject
.
fromObject
(
resultMap
);
return
resultJson
;
}
@RequestMapping
(
"selectByGajg"
)
public
Map
<
Object
,
TaskListEntity
>
selectByGajg
(
@RequestBody
String
submitDate
){
Map
<
Object
,
TaskListEntity
>
resultMap
=
taskListService
.
selectByGajg
(
submitDate
);
JSONObject
resultJson
=
JSONObject
.
fromObject
(
resultMap
);
return
resultJson
;
}
@RequestMapping
(
"createTaskList"
)
public
boolean
createTaskList
(){
Boolean
success
=
taskListService
.
createTaskList
(
taskEntity
);
return
success
;
}
@RequestMapping
(
"updateState"
)
public
boolean
updateState
(
@RequestBody
String
taskId
){
Boolean
success
=
taskListService
.
updateState
(
taskId
);
return
success
;
}
}
src/main/java/com/yxproject/start/entity/SlhGajgDmEntity.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.Basic
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
@Entity
@Table
(
name
=
"SLH_GAJG_DM"
,
schema
=
"AUXILIARY"
,
catalog
=
""
)
public
class
SlhGajgDmEntity
{
private
String
gajgDm
;
private
String
slhGajgDm
;
@Basic
@Column
(
name
=
"GAJG_DM"
)
public
String
getGajgDm
()
{
return
gajgDm
;
}
public
void
setGajgDm
(
String
gajgDm
)
{
this
.
gajgDm
=
gajgDm
;
}
@Basic
@Column
(
name
=
"SLH_GAJG_DM"
)
public
String
getSlhGajgDm
()
{
return
slhGajgDm
;
}
public
void
setSlhGajgDm
(
String
slhGajgDm
)
{
this
.
slhGajgDm
=
slhGajgDm
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
SlhGajgDmEntity
that
=
(
SlhGajgDmEntity
)
o
;
if
(
gajgDm
!=
null
?
!
gajgDm
.
equals
(
that
.
gajgDm
)
:
that
.
gajgDm
!=
null
)
return
false
;
if
(
slhGajgDm
!=
null
?
!
slhGajgDm
.
equals
(
that
.
slhGajgDm
)
:
that
.
slhGajgDm
!=
null
)
return
false
;
return
true
;
}
@Override
public
int
hashCode
()
{
int
result
=
gajgDm
!=
null
?
gajgDm
.
hashCode
()
:
0
;
result
=
31
*
result
+
(
slhGajgDm
!=
null
?
slhGajgDm
.
hashCode
()
:
0
);
return
result
;
}
}
src/main/java/com/yxproject/start/entity/SysPermissionEntity.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.*
;
@Entity
@Table
(
name
=
"SYS_PERMISSION"
,
schema
=
"AUXILIARY"
,
catalog
=
""
)
public
class
SysPermissionEntity
{
private
int
id
;
private
Boolean
available
;
private
String
name
;
private
Long
parentId
;
private
String
parentIds
;
private
String
permission
;
private
String
resourceType
;
private
String
url
;
@Id
@Column
(
name
=
"ID"
)
public
int
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"AVAILABLE"
)
public
Boolean
getAvailable
()
{
return
available
;
}
public
void
setAvailable
(
Boolean
available
)
{
this
.
available
=
available
;
}
@Basic
@Column
(
name
=
"NAME"
)
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
@Basic
@Column
(
name
=
"PARENT_ID"
)
public
Long
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
Long
parentId
)
{
this
.
parentId
=
parentId
;
}
@Basic
@Column
(
name
=
"PARENT_IDS"
)
public
String
getParentIds
()
{
return
parentIds
;
}
public
void
setParentIds
(
String
parentIds
)
{
this
.
parentIds
=
parentIds
;
}
@Basic
@Column
(
name
=
"PERMISSION"
)
public
String
getPermission
()
{
return
permission
;
}
public
void
setPermission
(
String
permission
)
{
this
.
permission
=
permission
;
}
@Basic
@Column
(
name
=
"RESOURCE_TYPE"
)
public
String
getResourceType
()
{
return
resourceType
;
}
public
void
setResourceType
(
String
resourceType
)
{
this
.
resourceType
=
resourceType
;
}
@Basic
@Column
(
name
=
"URL"
)
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
SysPermissionEntity
that
=
(
SysPermissionEntity
)
o
;
if
(
id
!=
that
.
id
)
return
false
;
if
(
available
!=
null
?
!
available
.
equals
(
that
.
available
)
:
that
.
available
!=
null
)
return
false
;
if
(
name
!=
null
?
!
name
.
equals
(
that
.
name
)
:
that
.
name
!=
null
)
return
false
;
if
(
parentId
!=
null
?
!
parentId
.
equals
(
that
.
parentId
)
:
that
.
parentId
!=
null
)
return
false
;
if
(
parentIds
!=
null
?
!
parentIds
.
equals
(
that
.
parentIds
)
:
that
.
parentIds
!=
null
)
return
false
;
if
(
permission
!=
null
?
!
permission
.
equals
(
that
.
permission
)
:
that
.
permission
!=
null
)
return
false
;
if
(
resourceType
!=
null
?
!
resourceType
.
equals
(
that
.
resourceType
)
:
that
.
resourceType
!=
null
)
return
false
;
if
(
url
!=
null
?
!
url
.
equals
(
that
.
url
)
:
that
.
url
!=
null
)
return
false
;
return
true
;
}
@Override
public
int
hashCode
()
{
int
result
=
id
;
result
=
31
*
result
+
(
available
!=
null
?
available
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
name
!=
null
?
name
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
parentId
!=
null
?
parentId
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
parentIds
!=
null
?
parentIds
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
permission
!=
null
?
permission
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
resourceType
!=
null
?
resourceType
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
url
!=
null
?
url
.
hashCode
()
:
0
);
return
result
;
}
}
src/main/java/com/yxproject/start/entity/SysRoleEntity.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.*
;
@Entity
@Table
(
name
=
"SYS_ROLE"
,
schema
=
"AUXILIARY"
,
catalog
=
""
)
public
class
SysRoleEntity
{
private
int
id
;
private
Boolean
available
;
private
String
description
;
private
String
role
;
@Id
@Column
(
name
=
"ID"
)
public
int
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"AVAILABLE"
)
public
Boolean
getAvailable
()
{
return
available
;
}
public
void
setAvailable
(
Boolean
available
)
{
this
.
available
=
available
;
}
@Basic
@Column
(
name
=
"DESCRIPTION"
)
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
@Basic
@Column
(
name
=
"ROLE"
)
public
String
getRole
()
{
return
role
;
}
public
void
setRole
(
String
role
)
{
this
.
role
=
role
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
SysRoleEntity
that
=
(
SysRoleEntity
)
o
;
if
(
id
!=
that
.
id
)
return
false
;
if
(
available
!=
null
?
!
available
.
equals
(
that
.
available
)
:
that
.
available
!=
null
)
return
false
;
if
(
description
!=
null
?
!
description
.
equals
(
that
.
description
)
:
that
.
description
!=
null
)
return
false
;
if
(
role
!=
null
?
!
role
.
equals
(
that
.
role
)
:
that
.
role
!=
null
)
return
false
;
return
true
;
}
@Override
public
int
hashCode
()
{
int
result
=
id
;
result
=
31
*
result
+
(
available
!=
null
?
available
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
description
!=
null
?
description
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
role
!=
null
?
role
.
hashCode
()
:
0
);
return
result
;
}
}
src/main/java/com/yxproject/start/entity/SysRolePermissionEntity.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.Basic
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
@Entity
@Table
(
name
=
"SYS_ROLE_PERMISSION"
,
schema
=
"AUXILIARY"
,
catalog
=
""
)
public
class
SysRolePermissionEntity
{
private
int
roleId
;
private
int
permissionId
;
@Basic
@Column
(
name
=
"ROLE_ID"
)
public
int
getRoleId
()
{
return
roleId
;
}
public
void
setRoleId
(
int
roleId
)
{
this
.
roleId
=
roleId
;
}
@Basic
@Column
(
name
=
"PERMISSION_ID"
)
public
int
getPermissionId
()
{
return
permissionId
;
}
public
void
setPermissionId
(
int
permissionId
)
{
this
.
permissionId
=
permissionId
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
SysRolePermissionEntity
that
=
(
SysRolePermissionEntity
)
o
;
if
(
roleId
!=
that
.
roleId
)
return
false
;
if
(
permissionId
!=
that
.
permissionId
)
return
false
;
return
true
;
}
@Override
public
int
hashCode
()
{
int
result
=
roleId
;
result
=
31
*
result
+
permissionId
;
return
result
;
}
}
src/main/java/com/yxproject/start/entity/SysUserRoleEntity.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.Basic
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
@Entity
@Table
(
name
=
"SYS_USER_ROLE"
,
schema
=
"AUXILIARY"
,
catalog
=
""
)
public
class
SysUserRoleEntity
{
private
int
userId
;
private
int
roleId
;
@Basic
@Column
(
name
=
"USER_ID"
)
public
int
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
int
userId
)
{
this
.
userId
=
userId
;
}
@Basic
@Column
(
name
=
"ROLE_ID"
)
public
int
getRoleId
()
{
return
roleId
;
}
public
void
setRoleId
(
int
roleId
)
{
this
.
roleId
=
roleId
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
SysUserRoleEntity
that
=
(
SysUserRoleEntity
)
o
;
if
(
userId
!=
that
.
userId
)
return
false
;
if
(
roleId
!=
that
.
roleId
)
return
false
;
return
true
;
}
@Override
public
int
hashCode
()
{
int
result
=
userId
;
result
=
31
*
result
+
roleId
;
return
result
;
}
}
src/main/java/com/yxproject/start/entity/TaskList/TaskListEntity.java
0 → 100644
View file @
ce55e450
package
com
.
yxproject
.
start
.
entity
.
TaskList
;
public
class
TaskListEntity
{
private
String
countyName
;
private
String
gajgName
;
private
Integer
countyCount
;
private
Integer
gajgCount
;
private
String
groupNo
;
public
String
getGroupNo
()
{
return
groupNo
;
}
public
void
setGroupNo
(
String
groupNo
)
{
this
.
groupNo
=
groupNo
;
}
public
String
getCountyName
()
{
return
countyName
;
}
public
void
setCountyName
(
String
countyName
)
{
this
.
countyName
=
countyName
;
}
public
String
getGajgName
()
{
return
gajgName
;
}
public
void
setGajgName
(
String
gajgName
)
{
this
.
gajgName
=
gajgName
;
}
public
Integer
getCountyCount
()
{
return
countyCount
;
}
public
void
setCountyCount
(
Integer
countyCount
)
{
this
.
countyCount
=
countyCount
;
}
public
Integer
getGajgCount
()
{
return
gajgCount
;
}
public
void
setGajgCount
(
Integer
gajgCount
)
{
this
.
gajgCount
=
gajgCount
;
}
}
src/main/java/com/yxproject/start/entity/UserInfoEntity.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.*
;
@Entity
@Table
(
name
=
"USER_INFO"
,
schema
=
"AUXILIARY"
,
catalog
=
""
)
public
class
UserInfoEntity
{
private
int
id
;
private
String
name
;
private
String
password
;
private
String
salt
;
private
byte
state
;
private
String
username
;
private
String
workshop
;
@Id
@Column
(
name
=
"ID"
)
public
int
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"NAME"
)
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
@Basic
@Column
(
name
=
"PASSWORD"
)
public
String
getPassword
()
{
return
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
@Basic
@Column
(
name
=
"SALT"
)
public
String
getSalt
()
{
return
salt
;
}
public
void
setSalt
(
String
salt
)
{
this
.
salt
=
salt
;
}
@Basic
@Column
(
name
=
"STATE"
)
public
byte
getState
()
{
return
state
;
}
public
void
setState
(
byte
state
)
{
this
.
state
=
state
;
}
@Basic
@Column
(
name
=
"USERNAME"
)
public
String
getUsername
()
{
return
username
;
}
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
@Basic
@Column
(
name
=
"WORKSHOP"
)
public
String
getWorkshop
()
{
return
workshop
;
}
public
void
setWorkshop
(
String
workshop
)
{
this
.
workshop
=
workshop
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
UserInfoEntity
that
=
(
UserInfoEntity
)
o
;
if
(
id
!=
that
.
id
)
return
false
;
if
(
state
!=
that
.
state
)
return
false
;
if
(
name
!=
null
?
!
name
.
equals
(
that
.
name
)
:
that
.
name
!=
null
)
return
false
;
if
(
password
!=
null
?
!
password
.
equals
(
that
.
password
)
:
that
.
password
!=
null
)
return
false
;
if
(
salt
!=
null
?
!
salt
.
equals
(
that
.
salt
)
:
that
.
salt
!=
null
)
return
false
;
if
(
username
!=
null
?
!
username
.
equals
(
that
.
username
)
:
that
.
username
!=
null
)
return
false
;
if
(
workshop
!=
null
?
!
workshop
.
equals
(
that
.
workshop
)
:
that
.
workshop
!=
null
)
return
false
;
return
true
;
}
@Override
public
int
hashCode
()
{
int
result
=
id
;
result
=
31
*
result
+
(
name
!=
null
?
name
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
password
!=
null
?
password
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
salt
!=
null
?
salt
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
int
)
state
;
result
=
31
*
result
+
(
username
!=
null
?
username
.
hashCode
()
:
0
);
result
=
31
*
result
+
(
workshop
!=
null
?
workshop
.
hashCode
()
:
0
);
return
result
;
}
}
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
0 → 100644
View file @
ce55e450
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
/**
* @author Administrator
*/
@Mapper
public
interface
TaskListMapper
{
/**
* 按区县查询受理库
* @param
*/
@Select
(
"SELECT act.ACCEPT_NO, agt.deal_flag, gajg.gajg_mc, coun.COUNTYNAME\n"
+
" FROM ACC_CARD_T@ACCU_DBLINK act \n"
+
" LEFT JOIN ACC_GROUP_T@ACCU_DBLINK agt on substr(act.accept_no,0,8) = agt.group_no \n"
+
" LEFT JOIN AUXILIARY.COUNTY_DIC coun on substr(act.upload_no,0,6) = AUXILIARY.coun.county_code\n"
+
" WHERE agt.group_no not in (select AUXILIARY.GROUP_NO.group_no from AUXILIARY.GROUP_NO) and to_char(IMPORT_TIME,'yyyymmdd') = #{submitDate}"
)
public
Map
<
Object
,
TaskListEntity
>
selectByCounty
(
@Param
(
"submitDate"
)
String
submitDate
);
/**
* 按派出所查询受理库
*/
@Select
(
"SELECT act.ACCEPT_NO, agt.deal_flag, gajg.gajg_mc, coun.COUNTYNAME\n"
+
" FROM ACC_CARD_T@ACCU_DBLINK act \n"
+
" LEFT JOIN ACC_GROUP_T@ACCU_DBLINK agt on substr(act.accept_no,0,8) = agt.group_no \n"
+
" LEFT JOIN AUXILIARY.GAJG_MC gajg on substr(act.upload_no,0,9) = AUXILIARY.gajg.gajg_dm\n"
+
" WHERE agt.group_no not in (select AUXILIARY.GROUP_NO.group_no from AUXILIARY.GROUP_NO) and to_char(IMPORT_TIME,'yyyymmdd') = #{submitDate}"
)
public
Map
<
Object
,
TaskListEntity
>
selectByGajg
(
@Param
(
"submitDate"
)
String
submitDate
);
/**
* 生成任务单
*/
@Insert
(
"INSERT INTO TASK (CARD_TYPE,OLD_CARD_TYPE,COUNTY_CODE,TASK_STATE_ID)VALUES(1,1,#{countyCode}),0"
)
public
boolean
createTaskList
(
TaskEntity
taskEntity
);
/**
*下发任务单
*/
@Update
(
"UPDATE TASK SET TASK_STATE_ID=1 WHERE TASK_ID = #{taskId}"
)
public
boolean
updateState
(
@Param
(
"taskId"
)
String
taskId
);
}
src/main/java/com/yxproject/start/service/TaskListService.java
0 → 100644
View file @
ce55e450
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
java.util.Map
;
public
interface
TaskListService
{
public
Map
<
Object
,
TaskListEntity
>
selectByCounty
(
String
submitDate
);
public
Map
<
Object
,
TaskListEntity
>
selectByGajg
(
String
submitDate
);
public
boolean
createTaskList
(
TaskEntity
taskEntity
);
public
boolean
updateState
(
String
taskId
);
}
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
0 → 100644
View file @
ce55e450
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
com.yxproject.start.mapper.TaskListMapper
;
import
com.yxproject.start.service.TaskListService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
@Service
public
class
TaskListServiceImpl
implements
TaskListService
{
@Autowired
private
TaskListMapper
taskListMapper
;
@Override
public
Map
<
Object
,
TaskListEntity
>
selectByCounty
(
String
submitDate
)
{
Map
<
Object
,
TaskListEntity
>
resultMap
=
taskListMapper
.
selectByCounty
(
submitDate
);
return
resultMap
;
}
@Override
public
Map
<
Object
,
TaskListEntity
>
selectByGajg
(
String
submitDate
)
{
Map
<
Object
,
TaskListEntity
>
resultMap
=
taskListMapper
.
selectByCounty
(
submitDate
);
return
resultMap
;
}
@Override
public
boolean
createTaskList
(
TaskEntity
taskEntity
)
{
taskListMapper
.
createTaskList
(
taskEntity
);
return
true
;
}
@Override
public
boolean
updateState
(
String
taskId
)
{
taskListMapper
.
updateState
(
taskId
);
return
true
;
}
}
src/main/java/com/yxproject/start/utils/ExportExcel.java
deleted
100644 → 0
View file @
46a955db
package
com
.
yxproject
.
start
.
utils
;
import
com.yxproject.start.entity.PersonPostAbnormalEntity
;
import
com.yxproject.start.entity.PersonalProgressStatusEntity
;
import
com.yxproject.start.entity.RedoRegistrationEntity
;
import
com.yxproject.start.entity.TemporaryCertificateEntity
;
import
org.apache.poi.hssf.usermodel.*
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
static
java
.
lang
.
Integer
.
parseInt
;
import
static
java
.
lang
.
Integer
.
valueOf
;
/**
* @auther zhangyusheng
* 2019/2/12 15:44
*/
public
class
ExportExcel
{
/**
* 导出错误邮寄信息
* @param personPostAbnormalEntities
* @return
*/
public
static
String
exportPersonPostAbnormalExcel
(
List
<
PersonPostAbnormalEntity
>
personPostAbnormalEntities
){
//第一步创建workbook
HSSFWorkbook
wb
=
new
HSSFWorkbook
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
HSSFSheet
sheet
=
wb
.
createSheet
(
"邮寄信息错误信息表"
);
sheet
.
setColumnWidth
(
0
,
30
*
100
);
sheet
.
setColumnWidth
(
1
,
30
*
70
);
sheet
.
setColumnWidth
(
2
,
30
*
80
);
sheet
.
setColumnWidth
(
3
,
30
*
50
);
sheet
.
setColumnWidth
(
4
,
30
*
110
);
sheet
.
setColumnWidth
(
5
,
30
*
110
);
sheet
.
setColumnWidth
(
6
,
30
*
110
);
sheet
.
setColumnWidth
(
7
,
30
*
110
);
sheet
.
setColumnWidth
(
8
,
30
*
110
);
sheet
.
setColumnWidth
(
9
,
30
*
110
);
sheet
.
setColumnWidth
(
10
,
30
*
110
);
sheet
.
setColumnWidth
(
11
,
30
*
110
);
sheet
.
setColumnWidth
(
12
,
30
*
110
);
sheet
.
setColumnWidth
(
13
,
30
*
110
);
sheet
.
setColumnWidth
(
14
,
30
*
110
);
sheet
.
setColumnWidth
(
15
,
30
*
110
);
sheet
.
setColumnWidth
(
16
,
30
*
110
);
sheet
.
setColumnWidth
(
17
,
30
*
110
);
sheet
.
setColumnWidth
(
18
,
30
*
110
);
sheet
.
setColumnWidth
(
19
,
30
*
110
);
sheet
.
setColumnWidth
(
20
,
30
*
110
);
sheet
.
setColumnWidth
(
21
,
30
*
110
);
sheet
.
setColumnWidth
(
22
,
30
*
110
);
sheet
.
setColumnWidth
(
23
,
30
*
110
);
sheet
.
setColumnWidth
(
24
,
30
*
110
);
//第三步创建行row:添加表头0行
HSSFRow
row
=
sheet
.
createRow
(
0
);
HSSFCellStyle
style
=
wb
.
createCellStyle
();
//样式
style
.
setVerticalAlignment
(
HSSFCellStyle
.
ALIGN_LEFT
);
//设置垂直居中
style
.
setAlignment
(
HSSFCellStyle
.
ALIGN_LEFT
);
style
.
setWrapText
(
true
);
//设置自动换行
HSSFFont
font
=
wb
.
createFont
();
font
.
setFontHeightInPoints
((
short
)
12
);
style
.
setFont
(
font
);
row
=
sheet
.
createRow
(
0
);
//创建下标为0的单元格
row
.
setHeightInPoints
(
Short
.
parseShort
(
"20"
));
//设置行高
HSSFCell
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
"邮件号"
);
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
"反邮件号"
);
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
"订单号"
);
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
"订单生成时间"
);
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
"openid"
);
cell
=
row
.
createCell
(
5
);
//设定值
cell
.
setCellValue
(
"微信支付订单号"
);
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
"支付状态"
);
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
"订单状态"
);
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
"申请人姓名"
);
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
"寄件人姓名"
);
cell
=
row
.
createCell
(
10
);
//设定值
cell
.
setCellValue
(
"寄件人联系方式"
);
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
"寄件人地址"
);
cell
=
row
.
createCell
(
11
);
//设定值
cell
.
setCellValue
(
"收件人姓名"
);
cell
=
row
.
createCell
(
12
);
//设定值
cell
.
setCellValue
(
"收件人联系方式"
);
cell
=
row
.
createCell
(
13
);
//设定值
cell
.
setCellValue
(
"收件人地址"
);
cell
=
row
.
createCell
(
14
);
//设定值
cell
.
setCellValue
(
"配货单号"
);
cell
=
row
.
createCell
(
15
);
//设定值
cell
.
setCellValue
(
"到件省/直辖市"
);
cell
=
row
.
createCell
(
16
);
//设定值
cell
.
setCellValue
(
"到件城市"
);
cell
=
row
.
createCell
(
17
);
//设定值
cell
.
setCellValue
(
"到件县/区"
);
cell
=
row
.
createCell
(
18
);
//设定值
cell
.
setCellValue
(
"业务类型"
);
cell
=
row
.
createCell
(
19
);
//设定值
cell
.
setCellValue
(
"格口信息"
);
cell
=
row
.
createCell
(
20
);
//设定值
cell
.
setCellValue
(
"内件性质"
);
cell
=
row
.
createCell
(
21
);
//设定值
cell
.
setCellValue
(
"内件信息"
);
cell
=
row
.
createCell
(
22
);
//设定值
cell
.
setCellValue
(
"留白一"
);
cell
=
row
.
createCell
(
23
);
//设定值
cell
.
setCellValue
(
"错误代码"
);
cell
=
row
.
createCell
(
24
);
//设定值
cell
.
setCellValue
(
"检查日期"
);
for
(
int
i
=
0
;
i
<
personPostAbnormalEntities
.
size
();
i
++){
PersonPostAbnormalEntity
personPostAbnormalEntity
=
personPostAbnormalEntities
.
get
(
i
);
row
=
sheet
.
createRow
(
i
+
1
);
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getWaybillNumber
());
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getBackWaybillNumber
());
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getOrderNumber
());
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getCreateDate
());
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getOpenid
());
cell
=
row
.
createCell
(
5
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getWcPlayOrderNumber
());
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getPlayState
());
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getOrderState
());
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getApplicantName
());
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getSenderName
());
cell
=
row
.
createCell
(
10
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getSenderPhone
());
cell
=
row
.
createCell
(
11
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getRecipientName
());
cell
=
row
.
createCell
(
12
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getRecipientPhone
());
cell
=
row
.
createCell
(
13
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getRecipientAddress
());
cell
=
row
.
createCell
(
14
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getOrderBlankNumber
());
cell
=
row
.
createCell
(
15
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getGetToProvince
());
cell
=
row
.
createCell
(
16
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getGetToCity
());
cell
=
row
.
createCell
(
17
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getGetToCounty
());
cell
=
row
.
createCell
(
18
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getBusinessType
());
cell
=
row
.
createCell
(
19
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getLatticeMouthInformation
());
cell
=
row
.
createCell
(
20
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getNatureOfTheInternal
());
cell
=
row
.
createCell
(
21
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getNatureOfTheInformation
());
cell
=
row
.
createCell
(
22
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getFirstWhite
());
cell
=
row
.
createCell
(
23
);
//设定值
cell
.
setCellValue
(
personPostAbnormalEntity
.
getErrCode
());
// cell = row.createCell(24); //设定值
// cell.setCellValue(personPostAbnormalEntity.getCheck_Date());
}
//第六步将生成excel文件保存到指定路径下
FileOutputStream
fout
=
null
;
try
{
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout
=
new
FileOutputStream
(
"D:\\Excel\\"
+
simpleDateFormat
.
format
(
new
Date
())+
"邮寄错误信息表"
+
".xls"
);
wb
.
write
(
fout
);
fout
.
close
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
println
(
"Excel文件生成成功..."
+
new
Date
());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return
"D:\\Excel\\"
+
simpleDateFormat
.
format
(
new
Date
())
+
"邮寄错误信息表"
+
".xls"
;
}
/**
* 导出个人制证状态信息表
* @param personalProgressStatusEntities
* @return
*/
public
static
String
exportPersonalProgressStatusExcel
(
List
<
PersonalProgressStatusEntity
>
personalProgressStatusEntities
){
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
//第一步创建workbook
HSSFWorkbook
wb
=
new
HSSFWorkbook
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
HSSFSheet
sheet
=
wb
.
createSheet
(
"个人制证状态信息表"
);
sheet
.
setColumnWidth
(
0
,
30
*
110
);
sheet
.
setColumnWidth
(
1
,
30
*
110
);
sheet
.
setColumnWidth
(
2
,
30
*
110
);
sheet
.
setColumnWidth
(
3
,
30
*
110
);
sheet
.
setColumnWidth
(
4
,
30
*
110
);
sheet
.
setColumnWidth
(
5
,
30
*
110
);
sheet
.
setColumnWidth
(
6
,
30
*
110
);
sheet
.
setColumnWidth
(
7
,
30
*
110
);
sheet
.
setColumnWidth
(
8
,
30
*
110
);
sheet
.
setColumnWidth
(
9
,
30
*
110
);
sheet
.
setColumnWidth
(
10
,
30
*
110
);
sheet
.
setColumnWidth
(
11
,
30
*
110
);
sheet
.
setColumnWidth
(
12
,
30
*
110
);
//第三步创建行row:添加表头0行
HSSFRow
row
=
sheet
.
createRow
(
0
);
HSSFCellStyle
style
=
wb
.
createCellStyle
();
//样式
style
.
setVerticalAlignment
(
HSSFCellStyle
.
ALIGN_LEFT
);
//设置垂直居中
style
.
setAlignment
(
HSSFCellStyle
.
ALIGN_LEFT
);
style
.
setWrapText
(
true
);
//设置自动换行
HSSFFont
font
=
wb
.
createFont
();
font
.
setFontHeightInPoints
((
short
)
12
);
style
.
setFont
(
font
);
row
=
sheet
.
createRow
(
0
);
//创建下标为0的单元格
row
.
setHeightInPoints
(
Short
.
parseShort
(
"20"
));
//设置行高
HSSFCell
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
"上报受理编号"
);
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
"处理状态"
);
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
"备注"
);
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
"导入时间"
);
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
"生成任务单时间"
);
cell
=
row
.
createCell
(
5
);
//设定值
cell
.
setCellValue
(
"数据核验时间"
);
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
"膜打印时间"
);
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
"预订位时间"
);
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
"分拣时间"
);
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
"质检时间"
);
cell
=
row
.
createCell
(
10
);
//设定值
cell
.
setCellValue
(
"出库时间"
);
cell
=
row
.
createCell
(
11
);
//设定值
cell
.
setCellValue
(
"下发时间"
);
cell
=
row
.
createCell
(
12
);
//设定值
cell
.
setCellValue
(
"签收时间"
);
for
(
int
i
=
0
;
i
<
personalProgressStatusEntities
.
size
();
i
++){
PersonalProgressStatusEntity
personalProgressStatusEntity
=
personalProgressStatusEntities
.
get
(
i
);
row
=
sheet
.
createRow
(
i
+
1
);
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
personalProgressStatusEntity
.
getUploadNo
());
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
personalProgressStatusEntity
.
getProgressStatus
());
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
personalProgressStatusEntity
.
getNote
());
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getImportDate
()));
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getCreateTaskDate
()));
cell
=
row
.
createCell
(
5
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getDataCheckDate
()));
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getFilmPrintDate
()));
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getPositionDate
()));
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getSortDate
()));
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getQualityTestDate
()));
cell
=
row
.
createCell
(
10
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getOutStorageDate
()));
cell
=
row
.
createCell
(
11
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getHandOutDate
()));
cell
=
row
.
createCell
(
12
);
//设定值
cell
.
setCellValue
(
formatter
.
format
(
personalProgressStatusEntity
.
getSignInDate
()));
}
//第六步将生成excel文件保存到指定路径下
FileOutputStream
fout
=
null
;
try
{
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout
=
new
FileOutputStream
(
"D:\\Excel\\"
+
simpleDateFormat
.
format
(
new
Date
())+
"个人制证状态信息表"
+
".xls"
);
wb
.
write
(
fout
);
fout
.
close
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
println
(
"Excel文件生成成功..."
+
new
Date
());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return
"D:\\Excel\\"
+
simpleDateFormat
.
format
(
new
Date
())
+
"个人制证状态信息表"
+
".xls"
;
}
/**
* 导出临时证件信息表
* @param temporaryCertificateEntities
* @return
*/
public
static
String
exportTemporaryCertificateExcel
(
List
<
TemporaryCertificateEntity
>
temporaryCertificateEntities
){
//第一步创建workbook
HSSFWorkbook
wb
=
new
HSSFWorkbook
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
HSSFSheet
sheet
=
wb
.
createSheet
(
"临时证件信息表"
);
sheet
.
setColumnWidth
(
0
,
30
*
110
);
sheet
.
setColumnWidth
(
1
,
30
*
110
);
sheet
.
setColumnWidth
(
2
,
30
*
110
);
sheet
.
setColumnWidth
(
3
,
30
*
110
);
sheet
.
setColumnWidth
(
4
,
30
*
110
);
sheet
.
setColumnWidth
(
5
,
30
*
110
);
sheet
.
setColumnWidth
(
6
,
30
*
110
);
sheet
.
setColumnWidth
(
7
,
30
*
110
);
sheet
.
setColumnWidth
(
8
,
30
*
110
);
sheet
.
setColumnWidth
(
9
,
30
*
110
);
//第三步创建行row:添加表头0行
HSSFRow
row
=
sheet
.
createRow
(
0
);
HSSFCellStyle
style
=
wb
.
createCellStyle
();
//样式
style
.
setVerticalAlignment
(
HSSFCellStyle
.
ALIGN_LEFT
);
//设置垂直居中
style
.
setAlignment
(
HSSFCellStyle
.
ALIGN_LEFT
);
style
.
setWrapText
(
true
);
//设置自动换行
HSSFFont
font
=
wb
.
createFont
();
font
.
setFontHeightInPoints
((
short
)
12
);
style
.
setFont
(
font
);
row
=
sheet
.
createRow
(
0
);
//创建下标为0的单元格
row
.
setHeightInPoints
(
Short
.
parseShort
(
"20"
));
//设置行高
HSSFCell
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
"临时证件id"
);
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
"姓名"
);
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
"身份证号码"
);
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
"联系电话"
);
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
"上一个有效期"
);
cell
=
row
.
createCell
(
5
);
//设定值
cell
.
setCellValue
(
"收到日期"
);
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
"交待日期"
);
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
"返给车间日期"
);
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
"交给当事人日期"
);
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
"备注"
);
for
(
int
i
=
0
;
i
<
temporaryCertificateEntities
.
size
();
i
++){
TemporaryCertificateEntity
temporaryCertificateEntity
=
temporaryCertificateEntities
.
get
(
i
);
row
=
sheet
.
createRow
(
i
+
1
);
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getTemporaryCertificateId
());
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getName
());
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getCardId
());
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getPhone
());
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getLastDurationOfStatus
());
cell
=
row
.
createCell
(
5
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getReceiptDate
());
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getDateOfHandOverToTreat
());
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getBackWorkshopDate
());
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getDeliverToParty
());
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
temporaryCertificateEntity
.
getNote
());
}
//第六步将生成excel文件保存到指定路径下
FileOutputStream
fout
=
null
;
try
{
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout
=
new
FileOutputStream
(
"D:\\Excel\\"
+
simpleDateFormat
.
format
(
new
Date
())+
"临时证件信息表"
+
".xls"
);
wb
.
write
(
fout
);
fout
.
close
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
println
(
"Excel文件生成成功..."
+
new
Date
());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return
"D:\\Excel\\"
+
simpleDateFormat
.
format
(
new
Date
())
+
"临时证件信息表"
+
".xls"
;
}
/**
* 导出重做登记信息表
* @param redoRegistrationEntities
* @return
*/
public
static
String
exportRedoRegistrationExcel
(
List
<
RedoRegistrationEntity
>
redoRegistrationEntities
){
//第一步创建workbook
HSSFWorkbook
wb
=
new
HSSFWorkbook
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
HSSFSheet
sheet
=
wb
.
createSheet
(
"重做登记信息表"
);
sheet
.
setColumnWidth
(
0
,
30
*
110
);
sheet
.
setColumnWidth
(
1
,
30
*
110
);
sheet
.
setColumnWidth
(
2
,
30
*
110
);
sheet
.
setColumnWidth
(
3
,
30
*
110
);
sheet
.
setColumnWidth
(
4
,
30
*
110
);
sheet
.
setColumnWidth
(
5
,
30
*
110
);
sheet
.
setColumnWidth
(
6
,
30
*
110
);
sheet
.
setColumnWidth
(
7
,
30
*
110
);
sheet
.
setColumnWidth
(
8
,
30
*
110
);
sheet
.
setColumnWidth
(
9
,
30
*
110
);
//第三步创建行row:添加表头0行
HSSFRow
row
=
sheet
.
createRow
(
0
);
HSSFCellStyle
style
=
wb
.
createCellStyle
();
//样式
style
.
setVerticalAlignment
(
HSSFCellStyle
.
ALIGN_LEFT
);
//设置垂直居中
style
.
setAlignment
(
HSSFCellStyle
.
ALIGN_LEFT
);
style
.
setWrapText
(
true
);
//设置自动换行
HSSFFont
font
=
wb
.
createFont
();
font
.
setFontHeightInPoints
((
short
)
12
);
style
.
setFont
(
font
);
row
=
sheet
.
createRow
(
0
);
//创建下标为0的单元格
row
.
setHeightInPoints
(
Short
.
parseShort
(
"20"
));
//设置行高
HSSFCell
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
"重做登记表id"
);
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
"上传日期"
);
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
"区县代码"
);
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
"公安机关代码"
);
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
"姓名"
);
cell
=
row
.
createCell
(
5
);
//设定值
cell
.
setCellValue
(
"身份证号"
);
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
"重做原因"
);
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
"来电日期"
);
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
"返回日期"
);
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
"备注"
);
for
(
int
i
=
0
;
i
<
redoRegistrationEntities
.
size
();
i
++){
RedoRegistrationEntity
redoRegistrationEntity
=
redoRegistrationEntities
.
get
(
i
);
row
=
sheet
.
createRow
(
i
+
1
);
cell
=
row
.
createCell
(
0
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getRedoRegistrationId
());
cell
=
row
.
createCell
(
1
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getSubmitDate
());
cell
=
row
.
createCell
(
2
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getCountyCode
());
cell
=
row
.
createCell
(
3
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getPoliceCode
());
cell
=
row
.
createCell
(
4
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getName
());
cell
=
row
.
createCell
(
5
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getCardId
());
cell
=
row
.
createCell
(
6
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getRedoReason
());
cell
=
row
.
createCell
(
7
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getCallDate
());
cell
=
row
.
createCell
(
8
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getBackDate
());
cell
=
row
.
createCell
(
9
);
//设定值
cell
.
setCellValue
(
redoRegistrationEntity
.
getNote
());
}
//第六步将生成excel文件保存到指定路径下
FileOutputStream
fout
=
null
;
try
{
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout
=
new
FileOutputStream
(
"D:\\Excel\\"
+
simpleDateFormat
.
format
(
new
Date
())+
"重做登记信息表"
+
".xls"
);
wb
.
write
(
fout
);
fout
.
close
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
println
(
"Excel文件生成成功..."
+
new
Date
());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return
"D:\\Excel\\"
+
simpleDateFormat
.
format
(
new
Date
())
+
"重做登记信息表"
+
".xls"
;
}
}
src/main/java/com/yxproject/start/utils/test.java
0 → 100644
View file @
ce55e450
package
com
.
yxproject
.
start
.
utils
;
public
class
test
{
public
static
void
main
(
String
[]
args
){
String
ss
=
"1234567890"
;
char
s
=
2
;
Long
sss
=
Long
.
valueOf
(
s
);
System
.
out
.
println
(
ss
.
substring
(
0
,
6
));
System
.
out
.
println
(
ss
.
charAt
(
ss
.
length
()-
5
));
System
.
out
.
println
(
sss
);
}
}
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