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
de09552a
Commit
de09552a
authored
Jan 12, 2023
by
liuxinben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加机器刷身份证查询邮寄单信息详情和修改打印状态
parent
6ab9a989
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
286 additions
and
0 deletions
+286
-0
PersonPostApi.java
src/main/java/com/yxproject/start/api/PersonPostApi.java
+31
-0
PersonPostDto.java
src/main/java/com/yxproject/start/dto/PersonPostDto.java
+214
-0
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+11
-0
PersonPostService.java
...n/java/com/yxproject/start/service/PersonPostService.java
+5
-0
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+21
-0
README.md
src/main/resources/README.md
+4
-0
No files found.
src/main/java/com/yxproject/start/api/PersonPostApi.java
View file @
de09552a
package
com
.
yxproject
.
start
.
api
;
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.dto.PersonPostDto
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.service.PersonPostService
;
import
com.yxproject.start.service.PersonPostService
;
...
@@ -836,4 +837,34 @@ public class PersonPostApi {
...
@@ -836,4 +837,34 @@ public class PersonPostApi {
logger
.
error
(
"Exception 创建不合格订单异常"
,
e
);
logger
.
error
(
"Exception 创建不合格订单异常"
,
e
);
}
}
}
}
/**
* 刷身份证查询邮寄单信息详情(机器)
*/
@RequestMapping
(
"getPostInfoAtMachine"
)
public
List
<
PersonPostDto
>
getPostInfoAtMachine
(
@RequestBody
ReadCardDto
readCardDto
)
{
return
personPostService
.
getPostInfoAtMachine
(
readCardDto
);
}
/**
* 更改打印状态(机器)
*
* @param id
* @return
*/
@RequestMapping
(
"updatePrintDateAtMachine"
)
public
Map
<
String
,
Object
>
updatePrintDateAtMachine
(
@RequestParam
(
"id"
)
int
id
)
throws
ParseException
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
personPostService
.
updatePrintDateAtMachine
(
id
,
new
Date
())){
map
.
put
(
"code"
,
200
);
map
.
put
(
"msg"
,
"打印状态更新成功!"
);
return
map
;
}
else
{
map
.
put
(
"code"
,
201
);
map
.
put
(
"msg"
,
"打印状态更新失败!"
);
return
map
;
}
}
}
}
src/main/java/com/yxproject/start/dto/PersonPostDto.java
0 → 100644
View file @
de09552a
package
com
.
yxproject
.
start
.
dto
;
import
javax.persistence.Column
;
/**
* @author :lxb
* @ProjectName: YX_IDENT_beijing_auxiliary
* @Package: com.yxproject.start.dto
* @ClassName: PersonPostDto
* @date :Created in 2023/1/9 17:08
* @description:刷证查询邮寄信息
* @version: 1.0
*/
public
class
PersonPostDto
{
private
String
waybillNumber
;
private
String
backWaybillNumber
;
private
String
orderNumber
;
private
String
applicantName
;
private
String
senderName
;
private
String
senderPhone
;
private
String
senderAddress
;
private
String
recipientName
;
private
String
recipientPhone
;
private
String
recipientAddress
;
private
String
getToProvince
;
private
String
getToCity
;
private
String
getToCounty
;
private
String
businessType
;
private
String
latticeMouthInformation
;
private
String
natureOfTheInternal
;
private
String
natureOfTheInformation
;
private
long
id
;
private
Long
state
;
@Column
(
name
=
"WAYBILL_NUMBER"
)
public
String
getWaybillNumber
()
{
return
waybillNumber
;
}
public
void
setWaybillNumber
(
String
waybillNumber
)
{
this
.
waybillNumber
=
waybillNumber
;
}
@Column
(
name
=
"BACK_WAYBILL_NUMBER"
)
public
String
getBackWaybillNumber
()
{
return
backWaybillNumber
;
}
public
void
setBackWaybillNumber
(
String
backWaybillNumber
)
{
this
.
backWaybillNumber
=
backWaybillNumber
;
}
@Column
(
name
=
"ORDER_NUMBER"
)
public
String
getOrderNumber
()
{
return
orderNumber
;
}
public
void
setOrderNumber
(
String
orderNumber
)
{
this
.
orderNumber
=
orderNumber
;
}
@Column
(
name
=
"APPLICANT_NAME"
)
public
String
getApplicantName
()
{
return
applicantName
;
}
public
void
setApplicantName
(
String
applicantName
)
{
this
.
applicantName
=
applicantName
;
}
@Column
(
name
=
"SENDER_NAME"
)
public
String
getSenderName
()
{
return
senderName
;
}
public
void
setSenderName
(
String
senderName
)
{
this
.
senderName
=
senderName
;
}
@Column
(
name
=
"SENDER_PHONE"
)
public
String
getSenderPhone
()
{
return
senderPhone
;
}
public
void
setSenderPhone
(
String
senderPhone
)
{
this
.
senderPhone
=
senderPhone
;
}
@Column
(
name
=
"SENDER_ADDRESS"
)
public
String
getSenderAddress
()
{
return
senderAddress
;
}
public
void
setSenderAddress
(
String
senderAddress
)
{
this
.
senderAddress
=
senderAddress
;
}
@Column
(
name
=
"RECIPIENT_NAME"
)
public
String
getRecipientName
()
{
return
recipientName
;
}
public
void
setRecipientName
(
String
recipientName
)
{
this
.
recipientName
=
recipientName
;
}
@Column
(
name
=
"RECIPIENT_PHONE"
)
public
String
getRecipientPhone
()
{
return
recipientPhone
;
}
public
void
setRecipientPhone
(
String
recipientPhone
)
{
this
.
recipientPhone
=
recipientPhone
;
}
@Column
(
name
=
"RECIPIENT_ADDRESS"
)
public
String
getRecipientAddress
()
{
return
recipientAddress
;
}
public
void
setRecipientAddress
(
String
recipientAddress
)
{
this
.
recipientAddress
=
recipientAddress
;
}
@Column
(
name
=
"GET_TO_PROVINCE"
)
public
String
getGetToProvince
()
{
return
getToProvince
;
}
public
void
setGetToProvince
(
String
getToProvince
)
{
this
.
getToProvince
=
getToProvince
;
}
@Column
(
name
=
"GET_TO_CITY"
)
public
String
getGetToCity
()
{
return
getToCity
;
}
public
void
setGetToCity
(
String
getToCity
)
{
this
.
getToCity
=
getToCity
;
}
@Column
(
name
=
"GET_TO_COUNTY"
)
public
String
getGetToCounty
()
{
return
getToCounty
;
}
public
void
setGetToCounty
(
String
getToCounty
)
{
this
.
getToCounty
=
getToCounty
;
}
@Column
(
name
=
"BUSINESS_TYPE"
)
public
String
getBusinessType
()
{
return
businessType
;
}
public
void
setBusinessType
(
String
businessType
)
{
this
.
businessType
=
businessType
;
}
@Column
(
name
=
"LATTICE_MOUTH_INFORMATION"
)
public
String
getLatticeMouthInformation
()
{
return
latticeMouthInformation
;
}
public
void
setLatticeMouthInformation
(
String
latticeMouthInformation
)
{
this
.
latticeMouthInformation
=
latticeMouthInformation
;
}
@Column
(
name
=
"NATURE_OF_THE_INTERNAL"
)
public
String
getNatureOfTheInternal
()
{
return
natureOfTheInternal
;
}
public
void
setNatureOfTheInternal
(
String
natureOfTheInternal
)
{
this
.
natureOfTheInternal
=
natureOfTheInternal
;
}
@Column
(
name
=
"NATURE_OF_THE_INFORMATION"
)
public
String
getNatureOfTheInformation
()
{
return
natureOfTheInformation
;
}
public
void
setNatureOfTheInformation
(
String
natureOfTheInformation
)
{
this
.
natureOfTheInformation
=
natureOfTheInformation
;
}
@Column
(
name
=
"ID"
)
public
long
getId
()
{
return
id
;
}
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
@Column
(
name
=
"STATE"
)
public
Long
getState
()
{
return
state
;
}
public
void
setState
(
Long
state
)
{
this
.
state
=
state
;
}
}
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
de09552a
package
com
.
yxproject
.
start
.
mapper
;
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.dto.PersonPostDto
;
import
com.yxproject.start.entity.GATTrackEntity
;
import
com.yxproject.start.entity.GATTrackEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
org.apache.ibatis.annotations.*
;
import
org.apache.ibatis.annotations.*
;
...
@@ -235,4 +236,14 @@ public interface PersonPostMapper {
...
@@ -235,4 +236,14 @@ public interface PersonPostMapper {
"(#{NO},#{UPLOAD_NO},#{ID_CARD},#{ID_NO},#{NAME},#{UPLOAD_UNIT},#{DATA_HOME_UNIT},#{DATA_HOME_UNIT_NAME},#{APPLY_REASON},#{STATUS},#{ERROR_TYPE},#{UPLOAD_TIME},#{CARD_ACCEPT_TIME},#{PHONE},#{FILE_ID})"
)
"(#{NO},#{UPLOAD_NO},#{ID_CARD},#{ID_NO},#{NAME},#{UPLOAD_UNIT},#{DATA_HOME_UNIT},#{DATA_HOME_UNIT_NAME},#{APPLY_REASON},#{STATUS},#{ERROR_TYPE},#{UPLOAD_TIME},#{CARD_ACCEPT_TIME},#{PHONE},#{FILE_ID})"
)
public
boolean
saveGATtr
(
GATTrackEntity
gatTr
);
public
boolean
saveGATtr
(
GATTrackEntity
gatTr
);
@Select
(
"SELECT ID,WAYBILL_NUMBER,BACK_WAYBILL_NUMBER,ORDER_NUMBER,RECIPIENT_NAME,RECIPIENT_PHONE,"
+
"RECIPIENT_ADDRESS,APPLICANT_NAME,PRINT_DATE,SENDER_NAME,SENDER_PHONE,SENDER_ADDRESS,"
+
"GET_TO_PROVINCE,GET_TO_CITY,GET_TO_COUNTY,BUSINESS_TYPE,"
+
"LATTICE_MOUTH_INFORMATION,NATURE_OF_THE_INTERNAL,NATURE_OF_THE_INFORMATION,"
+
"STATE FROM PERSON_POST WHERE ID_CARD=#{idCard} AND BEGIN_USEFUL_LIFE=#{startDate} AND VALID_PERIOD_END=#{endDate} AND STATE1=0"
)
public
List
<
PersonPostDto
>
getPostInfoAtMachine
(
@Param
(
"idCard"
)
String
idCard
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
@Update
(
"update PERSON_POST SET PRINT_DATE=#{printDateTime}, STATUS = 0 where id=#{id}"
)
void
updatePrintDateAtMachine
(
@Param
(
"id"
)
int
id
,
@Param
(
"printDateTime"
)
Date
printDateTime
);
}
}
src/main/java/com/yxproject/start/service/PersonPostService.java
View file @
de09552a
package
com
.
yxproject
.
start
.
service
;
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.dto.PersonPostDto
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.entity.GATTrackEntity
;
import
com.yxproject.start.entity.GATTrackEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
...
@@ -65,4 +66,8 @@ public interface PersonPostService {
...
@@ -65,4 +66,8 @@ public interface PersonPostService {
public
List
<
Map
<
String
,
Object
>>
downLoadInvalidOrder
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
sqrxm
,
String
ddh
,
String
hasPrinted
,
String
gkxx
,
JSONArray
jsonArray
,
String
starDate
,
String
endDate
,
String
emailNo
,
String
printDate
,
String
notNull
);
public
List
<
Map
<
String
,
Object
>>
downLoadInvalidOrder
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
sqrxm
,
String
ddh
,
String
hasPrinted
,
String
gkxx
,
JSONArray
jsonArray
,
String
starDate
,
String
endDate
,
String
emailNo
,
String
printDate
,
String
notNull
);
public
boolean
saveGATTrack
(
List
<
GATTrackEntity
>
gatTR
);
public
boolean
saveGATTrack
(
List
<
GATTrackEntity
>
gatTR
);
public
List
<
PersonPostDto
>
getPostInfoAtMachine
(
ReadCardDto
readCardDto
);
public
boolean
updatePrintDateAtMachine
(
int
id
,
Date
printDateTime
);
}
}
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
de09552a
package
com
.
yxproject
.
start
.
service
.
impl
;
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.dto.PersonPostDto
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.dto.ReadCardDto
;
import
com.yxproject.start.entity.GATTrackEntity
;
import
com.yxproject.start.entity.GATTrackEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
import
com.yxproject.start.entity.PersonPostEntity
;
...
@@ -215,4 +216,24 @@ public class PersonPostServiceImpl implements PersonPostService {
...
@@ -215,4 +216,24 @@ public class PersonPostServiceImpl implements PersonPostService {
}
}
return
true
;
return
true
;
}
}
@Override
public
List
<
PersonPostDto
>
getPostInfoAtMachine
(
ReadCardDto
readCardDto
)
{
String
idCard
=
readCardDto
.
getIdCard
();
String
startDate
=
readCardDto
.
getStartDate
();
String
endDate
=
readCardDto
.
getEndDate
();
return
personPostMapper
.
getPostInfoAtMachine
(
idCard
,
startDate
,
endDate
);
}
@Override
public
boolean
updatePrintDateAtMachine
(
int
id
,
Date
printDateTime
)
{
try
{
personPostMapper
.
updatePrintDateAtMachine
(
id
,
printDateTime
);
}
catch
(
Exception
e
){
return
false
;
}
return
true
;
}
}
}
src/main/resources/README.md
View file @
de09552a
...
@@ -10,3 +10,6 @@
...
@@ -10,3 +10,6 @@
2023/01/11
2023/01/11
制证包解析过程中的格口信息与制证信息匹配中将STATE1=3改为STATE1=3或STATE1=0
制证包解析过程中的格口信息与制证信息匹配中将STATE1=3改为STATE1=3或STATE1=0
2023/01/12
添加机器刷身份证查询邮寄单信息详情和修改打印状态
\ No newline at end of file
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