Commit de09552a authored by liuxinben's avatar liuxinben

添加机器刷身份证查询邮寄单信息详情和修改打印状态

parent 6ab9a989
package com.yxproject.start.api;
import com.yxproject.start.dto.PersonPostDto;
import com.yxproject.start.dto.ReadCardDto;
import com.yxproject.start.entity.PersonPostEntity;
import com.yxproject.start.service.PersonPostService;
......@@ -836,4 +837,34 @@ public class PersonPostApi {
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;
}
}
}
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;
}
}
package com.yxproject.start.mapper;
import com.yxproject.start.dto.PersonPostDto;
import com.yxproject.start.entity.GATTrackEntity;
import com.yxproject.start.entity.PersonPostEntity;
import org.apache.ibatis.annotations.*;
......@@ -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})")
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 );
}
package com.yxproject.start.service;
import com.yxproject.start.dto.PersonPostDto;
import com.yxproject.start.dto.ReadCardDto;
import com.yxproject.start.entity.GATTrackEntity;
import com.yxproject.start.entity.PersonPostEntity;
......@@ -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 boolean saveGATTrack(List<GATTrackEntity> gatTR);
public List<PersonPostDto> getPostInfoAtMachine(ReadCardDto readCardDto);
public boolean updatePrintDateAtMachine(int id, Date printDateTime);
}
package com.yxproject.start.service.impl;
import com.yxproject.start.dto.PersonPostDto;
import com.yxproject.start.dto.ReadCardDto;
import com.yxproject.start.entity.GATTrackEntity;
import com.yxproject.start.entity.PersonPostEntity;
......@@ -215,4 +216,24 @@ public class PersonPostServiceImpl implements PersonPostService {
}
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;
}
}
......@@ -9,4 +9,7 @@
将大部分控制台打印改为日志打印
2023/01/11
制证包解析过程中的格口信息与制证信息匹配中将STATE1=3改为STATE1=3或STATE1=0
\ No newline at end of file
制证包解析过程中的格口信息与制证信息匹配中将STATE1=3改为STATE1=3或STATE1=0
2023/01/12
添加机器刷身份证查询邮寄单信息详情和修改打印状态
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment