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
364f3977
Commit
364f3977
authored
Dec 18, 2020
by
liuxinben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按受理号检查个人邮寄信息
parent
b021ff25
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
2 deletions
+55
-2
PersonPostApi.java
src/main/java/com/yxproject/start/api/PersonPostApi.java
+31
-1
PersonPostEntity.java
...ain/java/com/yxproject/start/entity/PersonPostEntity.java
+13
-1
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+4
-0
PersonPostService.java
...n/java/com/yxproject/start/service/PersonPostService.java
+2
-0
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+5
-0
No files found.
src/main/java/com/yxproject/start/api/PersonPostApi.java
View file @
364f3977
...
...
@@ -94,7 +94,6 @@ public class PersonPostApi {
return
true
;
}
/**
* 按条件查询个人邮寄信息
*
...
...
@@ -285,6 +284,37 @@ public class PersonPostApi {
return
flag
;
}
/**
* 按受理号检查个人邮寄信息
*
* @param jsonStr
* @return
*/
@RequestMapping
(
"checkPersonalPost"
)
@Transactional
public
List
<
PersonPostEntity
>
checkPersonalPost
(
@RequestBody
String
jsonStr
,
HttpServletRequest
requ
)
{
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonStr
);
List
<
PersonPostEntity
>
list
=
new
ArrayList
<>();
try
{
String
uploadNo
=
""
;
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
String
no
=
jsonArray
.
get
(
i
).
toString
();
if
(
i
!=
jsonArray
.
size
()-
1
){
uploadNo
+=
"'"
+
no
+
"',"
;
}
else
{
uploadNo
+=
"'"
+
no
+
"'"
;
}
}
list
=
personPostService
.
checkPersonalPost
(
uploadNo
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"上传受理号:"
+
jsonArray
);
logger
.
error
(
"Exception 按受理号检查个人邮寄信息"
,
e
);
}
return
list
;
}
/**
* 去除字符串中中线
...
...
src/main/java/com/yxproject/start/entity/PersonPostEntity.java
View file @
364f3977
...
...
@@ -45,6 +45,7 @@ public class PersonPostEntity {
private
Time
formStartTime
;
private
Time
formDeadline
;
private
long
id
;
private
Long
state1
;
@Basic
@Column
(
name
=
"WAYBILL_NUMBER"
)
...
...
@@ -359,6 +360,16 @@ public class PersonPostEntity {
this
.
state
=
state
;
}
@Basic
@Column
(
name
=
"STATE1"
)
public
Long
getState1
()
{
return
state1
;
}
public
void
setState1
(
Long
state1
)
{
this
.
state1
=
state1
;
}
@Basic
@Column
(
name
=
"UPLOAD_DATE"
)
public
Time
getUploadDate
()
{
...
...
@@ -455,6 +466,7 @@ public class PersonPostEntity {
Objects
.
equals
(
validPeriodEnd
,
that
.
validPeriodEnd
)
&&
Objects
.
equals
(
note
,
that
.
note
)
&&
Objects
.
equals
(
state
,
that
.
state
)
&&
Objects
.
equals
(
state1
,
that
.
state1
)
&&
Objects
.
equals
(
uploadDate
,
that
.
uploadDate
)
&&
Objects
.
equals
(
fileId
,
that
.
fileId
)
&&
Objects
.
equals
(
analysisDate
,
that
.
analysisDate
)
&&
...
...
@@ -467,6 +479,6 @@ public class PersonPostEntity {
@Override
public
int
hashCode
()
{
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
);
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
);
}
}
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
364f3977
...
...
@@ -133,4 +133,8 @@ public interface PersonPostMapper {
"</script>"
)
public
List
<
PersonPostEntity
>
findAllPersonalDataNoPage
(
@Param
(
"sqrxm"
)
String
sqrxm
,
@Param
(
"ddh"
)
String
ddh
,
@Param
(
"hasPrinted"
)
String
hasPrinted
,
@Param
(
"gkxx"
)
String
gkxx
,
@Param
(
"str"
)
String
str
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"emailNo"
)
String
emailNo
);
@Select
(
"SELECT * FROM PERSON_POST WHERE STATE1 = 3 AND FIRST_WHITE IN (${uploadNo}) "
)
public
List
<
PersonPostEntity
>
checkPersonalPost
(
@Param
(
"uploadNo"
)
String
uploadNo
);
}
src/main/java/com/yxproject/start/service/PersonPostService.java
View file @
364f3977
...
...
@@ -48,4 +48,6 @@ public interface PersonPostService {
public
boolean
addNote
(
@Param
(
"id"
)
String
id
,
@Param
(
"note"
)
String
note
);
public
List
<
PersonPostEntity
>
checkPersonalPost
(
String
uploadNo
);
}
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
364f3977
...
...
@@ -145,6 +145,11 @@ public class PersonPostServiceImpl implements PersonPostService {
return
true
;
}
@Override
public
List
<
PersonPostEntity
>
checkPersonalPost
(
String
uploadNo
)
{
return
personPostMapper
.
checkPersonalPost
(
uploadNo
);
}
// /**
// * 查询个人邮寄信息
// * @param fileName 文件名
...
...
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