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
015848fc
Commit
015848fc
authored
Mar 07, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改导入EXCEL个人邮寄信息API
parent
ff130340
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
80 additions
and
17 deletions
+80
-17
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+23
-7
FilesEntity.java
src/main/java/com/yxproject/start/entity/FilesEntity.java
+24
-2
PersonPostEntity.java
...ain/java/com/yxproject/start/entity/PersonPostEntity.java
+13
-2
FilesMapper.java
src/main/java/com/yxproject/start/mapper/FilesMapper.java
+2
-2
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+2
-0
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+14
-1
IDCardFactory.java
src/main/java/com/yxproject/start/utils/IDCardFactory.java
+2
-3
No files found.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
015848fc
...
...
@@ -13,6 +13,7 @@ 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
sun.net.idn.StringPrep
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.transaction.Transactional
;
...
...
@@ -101,15 +102,30 @@ public class TaskListApi {
}
/**
* 查询任务单详情
* (辅助库)
* @param process 工序
* @param date 查询时间
* @param resp
* @return
*/
@RequestMapping
(
"queryByCountyAtAuxiliary"
)
public
List
<
Object
>
queryByCountyAtAuxiliary
(
@RequestParam
(
"process"
)
String
process
,
HttpServletResponse
resp
){
List
<
Object
>
objects
=
taskListService
.
selectByCountyAtAuxiliary
(
process
);
return
objects
;
}
/**
* 生成任务单
*
* @param date 查询时间
* @param name 提交人姓名
* @param groupList 组号列表
* @param countyList 区县列表 {typeCode:1,countyCode:'123456'}
* @param resp
* date 查询时间
* name 提交人姓名
* groupList 组号列表
* countyList 区县列表 {typeCode:1,countyCode:'123456'}
* @return
*/
@RequestMapping
(
"createTask"
)
...
...
@@ -123,14 +139,14 @@ public class TaskListApi {
JSONArray
jsonGroup
=
jsonObject
.
getJSONArray
(
"groupList"
);
List
<
Map
<
String
,
Object
>>
countyList
=(
List
<
Map
<
String
,
Object
>>)
jsonCounty
;
List
<
String
>
groupList
=(
List
<
String
>)
jsonGroup
;
//正常生成区县任务单
for
(
Map
<
String
,
Object
>
map
:
countyList
){
String
typeCode
=
map
.
get
(
"typeCode"
).
toString
();
String
countyCode
=
map
.
get
(
"countyCode"
).
toString
();
List
<
Object
>
objects
=
taskListService
.
selectGroupAtACCU
(
date
,
typeCode
,
countyCode
);
//todo 保存任务单数据
boolean
b
=
taskListService
.
saveTask
(
objects
,
name
);
}
//生成某几个组的区县任务单
if
(
groupList
.
size
()>
0
){
//查询组号详情
String
groupNo
=
"("
;
...
...
src/main/java/com/yxproject/start/entity/FilesEntity.java
View file @
015848fc
...
...
@@ -15,6 +15,8 @@ public class FilesEntity {
private
String
createTime
;
private
String
sourceFileName
;
private
Date
newTime
;
private
long
id
;
private
Date
upload_date
;
@Basic
@Column
(
name
=
"VERSION_CODE"
)
...
...
@@ -66,7 +68,7 @@ public class FilesEntity {
this
.
createTime
=
createTime
;
}
@
Id
@
Basic
@Column
(
name
=
"SOURCE_FILE_NAME"
)
public
String
getSourceFileName
()
{
return
sourceFileName
;
...
...
@@ -85,6 +87,24 @@ public class FilesEntity {
public
void
setNewTime
(
Date
newTime
)
{
this
.
newTime
=
newTime
;
}
@Id
@Column
(
name
=
"ID"
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"UPLOAD_DATE"
)
public
Date
getUpload_date
()
{
return
upload_date
;
}
public
void
setUpload_date
(
Date
upload_date
)
{
this
.
upload_date
=
upload_date
;
}
@Override
public
boolean
equals
(
Object
o
)
{
...
...
@@ -97,11 +117,13 @@ public class FilesEntity {
Objects
.
equals
(
recordNumber
,
that
.
recordNumber
)
&&
Objects
.
equals
(
createTime
,
that
.
createTime
)
&&
Objects
.
equals
(
sourceFileName
,
that
.
sourceFileName
)
&&
Objects
.
equals
(
id
,
that
.
id
)
&&
Objects
.
equals
(
upload_date
,
that
.
upload_date
)
&&
Objects
.
equals
(
newTime
,
that
.
newTime
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
versionCode
,
dwdm
,
dwmc
,
recordNumber
,
createTime
,
sourceFileName
,
newTime
);
return
Objects
.
hash
(
versionCode
,
dwdm
,
dwmc
,
upload_date
,
id
,
recordNumber
,
createTime
,
sourceFileName
,
newTime
);
}
}
src/main/java/com/yxproject/start/entity/PersonPostEntity.java
View file @
015848fc
...
...
@@ -43,8 +43,9 @@ public class PersonPostEntity {
private
Time
printDate
;
private
Time
formStartTime
;
private
Time
formDeadline
;
private
long
id
;
@
Id
@
Basic
@Column
(
name
=
"WAYBILL_NUMBER"
)
public
String
getWaybillNumber
()
{
return
waybillNumber
;
...
...
@@ -273,6 +274,15 @@ public class PersonPostEntity {
public
void
setNatureOfTheInformation
(
String
natureOfTheInformation
)
{
this
.
natureOfTheInformation
=
natureOfTheInformation
;
}
@Id
@Column
(
name
=
"ID"
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
@Basic
@Column
(
name
=
"FIRST_WHITE"
)
...
...
@@ -444,11 +454,12 @@ public class PersonPostEntity {
Objects
.
equals
(
analysisDate
,
that
.
analysisDate
)
&&
Objects
.
equals
(
printDate
,
that
.
printDate
)
&&
Objects
.
equals
(
formStartTime
,
that
.
formStartTime
)
&&
Objects
.
equals
(
id
,
that
.
id
)
&&
Objects
.
equals
(
formDeadline
,
that
.
formDeadline
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
waybillNumber
,
backWaybillNumber
,
orderNumber
,
createDate
,
openid
,
wcPlayOrderNumber
,
playState
,
orderState
,
applicantName
,
senderName
,
senderPhone
,
senderAddress
,
recipientName
,
recipientPhone
,
recipientAddress
,
orderBlankNumber
,
getToProvince
,
getToCity
,
getToCounty
,
businessType
,
latticeMouthInformation
,
natureOfTheInternal
,
natureOfTheInformation
,
firstWhite
,
idCard
,
acceptTheMatter
,
beginUsefulLife
,
validPeriodEnd
,
note
,
state
,
uploadDate
,
fileId
,
analysisDate
,
printDate
,
formStartTime
,
formDeadline
);
return
Objects
.
hash
(
waybillNumber
,
backWaybillNumber
,
id
,
orderNumber
,
createDate
,
openid
,
wcPlayOrderNumber
,
playState
,
orderState
,
applicantName
,
senderName
,
senderPhone
,
senderAddress
,
recipientName
,
recipientPhone
,
recipientAddress
,
orderBlankNumber
,
getToProvince
,
getToCity
,
getToCounty
,
businessType
,
latticeMouthInformation
,
natureOfTheInternal
,
natureOfTheInformation
,
firstWhite
,
idCard
,
acceptTheMatter
,
beginUsefulLife
,
validPeriodEnd
,
note
,
state
,
uploadDate
,
fileId
,
analysisDate
,
printDate
,
formStartTime
,
formDeadline
);
}
}
src/main/java/com/yxproject/start/mapper/FilesMapper.java
View file @
015848fc
...
...
@@ -9,8 +9,8 @@ import java.util.List;
@Mapper
public
interface
FilesMapper
{
@Insert
(
"INSERT INTO FILES (VERSION_CODE,DWDM,DWMC,RECORD_NUMBER,CREATE_TIME,SOURCE_FILE_NAME)"
+
"VALUES(#{versionCode},#{dwdm},#{dwmc},#{recordNumber},#{createTime},#{sourceFileName})"
)
@Insert
(
"INSERT INTO FILES (VERSION_CODE,DWDM,DWMC,RECORD_NUMBER,CREATE_TIME,SOURCE_FILE_NAME
,UPLOAD_DATE
)"
+
"VALUES(#{versionCode},#{dwdm},#{dwmc},#{recordNumber},#{createTime},#{sourceFileName}
,#{upload_date}
)"
)
@Options
(
useGeneratedKeys
=
true
,
keyProperty
=
"id"
,
keyColumn
=
"id"
)
public
long
insertFiles
(
FilesEntity
filesEntity
);
...
...
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
015848fc
...
...
@@ -22,6 +22,8 @@ public interface TaskListService {
public
List
<
Object
>
selectByCountyAtACCU
(
String
date
);
public
List
<
Object
>
selectByCountyAtAuxiliary
(
String
process
);
public
List
<
Object
>
selectGroupAtACCU
(
String
date
,
String
typeCode
,
String
countyCode
);
public
List
<
Object
>
selectGroupAtACCU
(
String
groupNo
);
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
015848fc
...
...
@@ -68,7 +68,7 @@ public class TaskListServiceImpl implements TaskListService {
List
list
=
new
ArrayList
();
Map
<
String
,
Object
>
typeMap
=
new
LinkedHashMap
<>();
for
(
Map
o
:
maps
){
//
TODO
组合JSON
// 组合JSON
if
(
typeMap
!=
null
&
typeMap
.
containsKey
(
o
.
get
(
"CARD_TYPE"
)+
""
)){
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
o
.
get
(
"CARD_TYPE"
));
mapList
.
add
(
o
);
...
...
@@ -149,6 +149,19 @@ public class TaskListServiceImpl implements TaskListService {
return
list
;
}
/**
* 查询任务单详情
* 辅助库
* @param process 查询工序
* @return
*/
@Override
public
List
<
Object
>
selectByCountyAtAuxiliary
(
String
process
)
{
// taskListMapper
return
null
;
}
/**
* 查询组号信息
* 受理库
...
...
src/main/java/com/yxproject/start/utils/IDCardFactory.java
View file @
015848fc
...
...
@@ -40,8 +40,8 @@ public class IDCardFactory {
filesEntity
.
setDwmc
(
DWMC
);
Date
date
=
new
Date
();
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddhhmmss"
);
filesEntity
.
setCreateTime
(
simpleDateFormat
.
format
(
date
));
filesEntity
.
setCreateTime
(
packagehead
.
element
(
"SCSJ"
).
getTextTrim
(
));
filesEntity
.
setUpload_date
(
new
Date
());
List
<
Element
>
recordlist
=
records
.
elements
(
"RECORD"
);
for
(
Element
e
:
recordlist
)
{
PreproPersonEntity
preproPersonEntity
=
new
PreproPersonEntity
();
...
...
@@ -69,7 +69,6 @@ public class IDCardFactory {
preproPersonEntity
.
setSjrLxdh
(
e
.
element
(
"SJR_LXDH"
).
getStringValue
());
preproPersonEntity
.
setSjrYzbm
(
e
.
element
(
"SJR_YZBM"
).
getStringValue
());
preproPersonEntity
.
setSjrTxdz
(
e
.
element
(
"SJR_TXDZ"
).
getStringValue
());
// preproPersonEntity.setFileId();
preproPersonEntityList
.
add
(
preproPersonEntity
);
System
.
out
.
println
(
preproPersonEntity
.
getJmsfzslh
()+
"--------------"
);
}
...
...
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