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
3c575ec5
Commit
3c575ec5
authored
Dec 23, 2020
by
zhangzhenbang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格口文件导入增加出生日期;
制证包解析增加出生日期约束;
parent
01f1902a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
25 deletions
+37
-25
ReadExcelApi.java
src/main/java/com/yxproject/start/api/ReadExcelApi.java
+16
-16
PersonPostEntity.java
...ain/java/com/yxproject/start/entity/PersonPostEntity.java
+12
-2
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+2
-1
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+2
-2
ReadExcel.java
src/main/java/com/yxproject/start/utils/ReadExcel.java
+5
-4
No files found.
src/main/java/com/yxproject/start/api/ReadExcelApi.java
View file @
3c575ec5
...
@@ -137,21 +137,22 @@ public class ReadExcelApi {
...
@@ -137,21 +137,22 @@ public class ReadExcelApi {
personPostEntity
.
setPlayState
((
String
)
list2
.
get
(
6
));
personPostEntity
.
setPlayState
((
String
)
list2
.
get
(
6
));
personPostEntity
.
setOrderState
((
String
)
list2
.
get
(
7
));
personPostEntity
.
setOrderState
((
String
)
list2
.
get
(
7
));
personPostEntity
.
setApplicantName
((
String
)
list2
.
get
(
8
));
personPostEntity
.
setApplicantName
((
String
)
list2
.
get
(
8
));
personPostEntity
.
setSenderName
((
String
)
list2
.
get
(
9
));
personPostEntity
.
setBirthDate
(
replaceDate
((
String
)
list2
.
get
(
9
)));
personPostEntity
.
setSenderPhone
((
String
)
list2
.
get
(
10
));
personPostEntity
.
setSenderName
((
String
)
list2
.
get
(
10
));
personPostEntity
.
setSenderAddress
((
String
)
list2
.
get
(
11
));
personPostEntity
.
setSenderPhone
((
String
)
list2
.
get
(
11
));
personPostEntity
.
setRecipientName
((
String
)
list2
.
get
(
12
));
personPostEntity
.
setSenderAddress
((
String
)
list2
.
get
(
12
));
personPostEntity
.
setRecipientPhone
((
String
)
list2
.
get
(
13
));
personPostEntity
.
setRecipientName
((
String
)
list2
.
get
(
13
));
personPostEntity
.
setRecipientAddress
((
String
)
list2
.
get
(
14
));
personPostEntity
.
setRecipientPhone
((
String
)
list2
.
get
(
14
));
personPostEntity
.
setRecipientAddress
((
String
)
list2
.
get
(
15
));
personPostEntity
.
setOrderBlankNumber
(
""
);
personPostEntity
.
setOrderBlankNumber
(
""
);
personPostEntity
.
setGetToProvince
((
String
)
list2
.
get
(
1
5
));
personPostEntity
.
setGetToProvince
((
String
)
list2
.
get
(
1
7
));
personPostEntity
.
setGetToCity
((
String
)
list2
.
get
(
1
6
));
personPostEntity
.
setGetToCity
((
String
)
list2
.
get
(
1
8
));
personPostEntity
.
setGetToCounty
((
String
)
list2
.
get
(
1
7
));
personPostEntity
.
setGetToCounty
((
String
)
list2
.
get
(
1
9
));
personPostEntity
.
setBusinessType
((
String
)
list2
.
get
(
18
));
personPostEntity
.
setBusinessType
((
String
)
list2
.
get
(
20
));
personPostEntity
.
setLatticeMouthInformation
((
String
)
list2
.
get
(
19
));
personPostEntity
.
setLatticeMouthInformation
((
String
)
list2
.
get
(
21
));
personPostEntity
.
setNatureOfTheInternal
((
String
)
list2
.
get
(
2
0
));
personPostEntity
.
setNatureOfTheInternal
((
String
)
list2
.
get
(
2
2
));
personPostEntity
.
setNatureOfTheInformation
((
String
)
list2
.
get
(
2
1
));
personPostEntity
.
setNatureOfTheInformation
((
String
)
list2
.
get
(
2
3
));
personPostEntity
.
setFirstWhite
(
list2
.
get
(
2
2
).
toString
().
substring
(
5
,
27
));
personPostEntity
.
setFirstWhite
(
list2
.
get
(
2
4
).
toString
().
substring
(
5
,
27
));
personPostEntity
.
setFileId
(
fileNameDicEntity
.
getFileId
());
personPostEntity
.
setFileId
(
fileNameDicEntity
.
getFileId
());
entityList
.
add
(
personPostEntity
);
entityList
.
add
(
personPostEntity
);
}
}
...
@@ -373,4 +374,4 @@ public class ReadExcelApi {
...
@@ -373,4 +374,4 @@ public class ReadExcelApi {
}
else
return
str
;
}
else
return
str
;
}
}
}
}
\ No newline at end of file
src/main/java/com/yxproject/start/entity/PersonPostEntity.java
View file @
3c575ec5
...
@@ -46,6 +46,7 @@ public class PersonPostEntity {
...
@@ -46,6 +46,7 @@ public class PersonPostEntity {
private
Time
formDeadline
;
private
Time
formDeadline
;
private
long
id
;
private
long
id
;
private
Long
state1
;
private
Long
state1
;
private
String
birthDate
;
@Basic
@Basic
@Column
(
name
=
"WAYBILL_NUMBER"
)
@Column
(
name
=
"WAYBILL_NUMBER"
)
...
@@ -430,6 +431,15 @@ public class PersonPostEntity {
...
@@ -430,6 +431,15 @@ public class PersonPostEntity {
this
.
formDeadline
=
formDeadline
;
this
.
formDeadline
=
formDeadline
;
}
}
@Basic
@Column
(
name
=
"BIRTH_DATE"
)
public
String
getBirthDate
()
{
return
birthDate
;
}
public
void
setBirthDate
(
String
birthDate
)
{
this
.
birthDate
=
birthDate
;
}
@Override
@Override
public
boolean
equals
(
Object
o
)
{
public
boolean
equals
(
Object
o
)
{
...
@@ -473,12 +483,12 @@ public class PersonPostEntity {
...
@@ -473,12 +483,12 @@ public class PersonPostEntity {
Objects
.
equals
(
printDate
,
that
.
printDate
)
&&
Objects
.
equals
(
printDate
,
that
.
printDate
)
&&
Objects
.
equals
(
formStartTime
,
that
.
formStartTime
)
&&
Objects
.
equals
(
formStartTime
,
that
.
formStartTime
)
&&
Objects
.
equals
(
id
,
that
.
id
)
&&
Objects
.
equals
(
id
,
that
.
id
)
&&
Objects
.
equals
(
birthDate
,
that
.
birthDate
)
&&
Objects
.
equals
(
formDeadline
,
that
.
formDeadline
);
Objects
.
equals
(
formDeadline
,
that
.
formDeadline
);
}
}
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
Objects
.
hash
(
waybillNumber
,
backWaybillNumber
,
id
,
state1
,
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
,
state1
,
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
,
birthDate
);
}
}
}
}
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
3c575ec5
...
@@ -203,7 +203,8 @@ public interface LogMapper {
...
@@ -203,7 +203,8 @@ public interface LogMapper {
"FROM PERSON_POST "
+
"FROM PERSON_POST "
+
"LEFT JOIN PREPRO_PERSON ON PERSON_POST.FIRST_WHITE = PREPRO_PERSON.JMSFZSLH \n"
+
"LEFT JOIN PREPRO_PERSON ON PERSON_POST.FIRST_WHITE = PREPRO_PERSON.JMSFZSLH \n"
+
"LEFT JOIN FILES ON FILES.ID = PREPRO_PERSON.FILE_ID \n"
+
"LEFT JOIN FILES ON FILES.ID = PREPRO_PERSON.FILE_ID \n"
+
"WHERE PERSON_POST.STATE1=3 "
+
"WHERE PERSON_POST.STATE1=3 \n"
+
"AND PERSON_POST.BIRTH_DATE = PREPRO_PERSON.CSRQ \n"
+
"and TO_CHAR(FILES.UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss')=#{uploadDate}"
)
"and TO_CHAR(FILES.UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss')=#{uploadDate}"
)
public
List
<
Map
<
String
,
Object
>>
selectPersonPostUnanalysis
(
@Param
(
"uploadDate"
)
String
uploadDate
);
public
List
<
Map
<
String
,
Object
>>
selectPersonPostUnanalysis
(
@Param
(
"uploadDate"
)
String
uploadDate
);
...
...
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
3c575ec5
...
@@ -15,9 +15,9 @@ import java.util.Map;
...
@@ -15,9 +15,9 @@ import java.util.Map;
@Mapper
@Mapper
public
interface
PersonPostMapper
{
public
interface
PersonPostMapper
{
@Insert
(
"insert into PERSON_POST "
+
@Insert
(
"insert into PERSON_POST "
+
"( WAYBILL_NUMBER,BACK_WAYBILL_NUMBER,ORDER_NUMBER,CREATE_DATE,OPENID,WC_PLAY_ORDER_NUMBER,PLAY_STATE,ORDER_STATE,APPLICANT_NAME,SENDER_NAME,SENDER_PHONE,SENDER_ADDRESS,RECIPIENT_NAME,RECIPIENT_PHONE,RECIPIENT_ADDRESS,ORDER_BLANK_NUMBER,GET_TO_PROVINCE,GET_TO_CITY,GET_TO_COUNTY,BUSINESS_TYPE,LATTICE_MOUTH_INFORMATION,NATURE_OF_THE_INTERNAL,NATURE_OF_THE_INFORMATION,FIRST_WHITE,FILE_ID,STATE1) "
+
"( WAYBILL_NUMBER,BACK_WAYBILL_NUMBER,ORDER_NUMBER,CREATE_DATE,OPENID,WC_PLAY_ORDER_NUMBER,PLAY_STATE,ORDER_STATE,APPLICANT_NAME,SENDER_NAME,SENDER_PHONE,SENDER_ADDRESS,RECIPIENT_NAME,RECIPIENT_PHONE,RECIPIENT_ADDRESS,ORDER_BLANK_NUMBER,GET_TO_PROVINCE,GET_TO_CITY,GET_TO_COUNTY,BUSINESS_TYPE,LATTICE_MOUTH_INFORMATION,NATURE_OF_THE_INTERNAL,NATURE_OF_THE_INFORMATION,FIRST_WHITE,FILE_ID,STATE1
,BIRTH_DATE
) "
+
"values "
+
"values "
+
"(#{waybillNumber},#{backWaybillNumber},#{orderNumber},#{createDate},#{openid},#{wcPlayOrderNumber},#{playState},#{orderState},#{applicantName},#{senderName},#{senderPhone},#{senderAddress},#{recipientName},#{recipientPhone},#{recipientAddress},#{orderBlankNumber},#{getToProvince},#{getToCity},#{getToCounty},#{businessType},#{latticeMouthInformation},#{natureOfTheInternal},#{natureOfTheInformation},#{firstWhite},#{fileId},3)"
)
"(#{waybillNumber},#{backWaybillNumber},#{orderNumber},#{createDate},#{openid},#{wcPlayOrderNumber},#{playState},#{orderState},#{applicantName},#{senderName},#{senderPhone},#{senderAddress},#{recipientName},#{recipientPhone},#{recipientAddress},#{orderBlankNumber},#{getToProvince},#{getToCity},#{getToCounty},#{businessType},#{latticeMouthInformation},#{natureOfTheInternal},#{natureOfTheInformation},#{firstWhite},#{fileId},3
,#{birthDate}
)"
)
@Options
(
useGeneratedKeys
=
true
,
keyProperty
=
"id"
,
keyColumn
=
"id"
)
@Options
(
useGeneratedKeys
=
true
,
keyProperty
=
"id"
,
keyColumn
=
"id"
)
public
boolean
savePersonPost
(
PersonPostEntity
personPostEntity
);
public
boolean
savePersonPost
(
PersonPostEntity
personPostEntity
);
...
...
src/main/java/com/yxproject/start/utils/ReadExcel.java
View file @
3c575ec5
...
@@ -56,20 +56,21 @@ public class ReadExcel {
...
@@ -56,20 +56,21 @@ public class ReadExcel {
String
columns22
=
sheet
.
getCell
(
22
,
i
).
getContents
();
String
columns22
=
sheet
.
getCell
(
22
,
i
).
getContents
();
String
columns23
=
sheet
.
getCell
(
23
,
i
).
getContents
();
String
columns23
=
sheet
.
getCell
(
23
,
i
).
getContents
();
String
columns24
=
sheet
.
getCell
(
24
,
i
).
getContents
();
String
columns24
=
sheet
.
getCell
(
24
,
i
).
getContents
();
String
columns25
=
sheet
.
getCell
(
25
,
i
).
getContents
();
if
(
columns0
.
equals
(
""
)&&
columns1
.
equals
(
""
)&&
columns2
.
equals
(
""
)&&
columns3
.
equals
(
""
)&&
if
(
columns0
.
equals
(
""
)&&
columns1
.
equals
(
""
)&&
columns2
.
equals
(
""
)&&
columns3
.
equals
(
""
)&&
columns4
.
equals
(
""
)&&
columns5
.
equals
(
""
)&&
columns6
.
equals
(
""
)&&
columns7
.
equals
(
""
)&&
columns4
.
equals
(
""
)&&
columns5
.
equals
(
""
)&&
columns6
.
equals
(
""
)&&
columns7
.
equals
(
""
)&&
columns8
.
equals
(
""
)&&
columns9
.
equals
(
""
)&&
columns10
.
equals
(
""
)&&
columns11
.
equals
(
""
)&&
columns12
.
equals
(
""
)&&
columns8
.
equals
(
""
)&&
columns9
.
equals
(
""
)&&
columns10
.
equals
(
""
)&&
columns11
.
equals
(
""
)&&
columns12
.
equals
(
""
)&&
columns13
.
equals
(
""
)&&
columns14
.
equals
(
""
)&&
columns15
.
equals
(
""
)&&
columns16
.
equals
(
""
)&&
columns17
.
equals
(
""
)&&
columns13
.
equals
(
""
)&&
columns14
.
equals
(
""
)&&
columns15
.
equals
(
""
)&&
columns16
.
equals
(
""
)&&
columns17
.
equals
(
""
)&&
columns18
.
equals
(
""
)&&
columns19
.
equals
(
""
)&&
columns20
.
equals
(
""
)&&
columns21
.
equals
(
""
)&&
columns22
.
equals
(
""
)&&
columns18
.
equals
(
""
)&&
columns19
.
equals
(
""
)&&
columns20
.
equals
(
""
)&&
columns21
.
equals
(
""
)&&
columns22
.
equals
(
""
)&&
columns23
.
equals
(
""
)&&
columns24
.
equals
(
""
)){
columns23
.
equals
(
""
)&&
columns24
.
equals
(
""
)
&&
columns25
.
equals
(
""
)
){
continue
;
continue
;
}
}
// sheet.getColumns()返回该页的总列数
// sheet.getColumns()返回该页的总列数
for
(
int
j
=
0
;
j
<
sheet
.
getColumns
();
j
++)
{
for
(
int
j
=
0
;
j
<
sheet
.
getColumns
();
j
++)
{
String
cellinfo
=
sheet
.
getCell
(
j
,
i
).
getContents
();
String
cellinfo
=
sheet
.
getCell
(
j
,
i
).
getContents
();
if
(
cellinfo
.
isEmpty
()){
//
if(cellinfo.isEmpty()){
continue
;
//
continue;
}
//
}
innerList
.
add
(
cellinfo
);
innerList
.
add
(
cellinfo
);
}
}
outerList
.
add
(
i
,
innerList
);
outerList
.
add
(
i
,
innerList
);
...
...
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