Commit 364f3977 authored by liuxinben's avatar liuxinben

按受理号检查个人邮寄信息

parent b021ff25
...@@ -94,7 +94,6 @@ public class PersonPostApi { ...@@ -94,7 +94,6 @@ public class PersonPostApi {
return true; return true;
} }
/** /**
* 按条件查询个人邮寄信息 * 按条件查询个人邮寄信息
* *
...@@ -285,6 +284,37 @@ public class PersonPostApi { ...@@ -285,6 +284,37 @@ public class PersonPostApi {
return flag; 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;
}
/** /**
* 去除字符串中中线 * 去除字符串中中线
......
...@@ -45,6 +45,7 @@ public class PersonPostEntity { ...@@ -45,6 +45,7 @@ public class PersonPostEntity {
private Time formStartTime; private Time formStartTime;
private Time formDeadline; private Time formDeadline;
private long id; private long id;
private Long state1;
@Basic @Basic
@Column(name = "WAYBILL_NUMBER") @Column(name = "WAYBILL_NUMBER")
...@@ -359,6 +360,16 @@ public class PersonPostEntity { ...@@ -359,6 +360,16 @@ public class PersonPostEntity {
this.state = state; this.state = state;
} }
@Basic
@Column(name = "STATE1")
public Long getState1() {
return state1;
}
public void setState1(Long state1) {
this.state1 = state1;
}
@Basic @Basic
@Column(name = "UPLOAD_DATE") @Column(name = "UPLOAD_DATE")
public Time getUploadDate() { public Time getUploadDate() {
...@@ -455,6 +466,7 @@ public class PersonPostEntity { ...@@ -455,6 +466,7 @@ public class PersonPostEntity {
Objects.equals(validPeriodEnd, that.validPeriodEnd) && Objects.equals(validPeriodEnd, that.validPeriodEnd) &&
Objects.equals(note, that.note) && Objects.equals(note, that.note) &&
Objects.equals(state, that.state) && Objects.equals(state, that.state) &&
Objects.equals(state1, that.state1) &&
Objects.equals(uploadDate, that.uploadDate) && Objects.equals(uploadDate, that.uploadDate) &&
Objects.equals(fileId, that.fileId) && Objects.equals(fileId, that.fileId) &&
Objects.equals(analysisDate, that.analysisDate) && Objects.equals(analysisDate, that.analysisDate) &&
...@@ -467,6 +479,6 @@ public class PersonPostEntity { ...@@ -467,6 +479,6 @@ public class PersonPostEntity {
@Override @Override
public int hashCode() { 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);
} }
} }
...@@ -133,4 +133,8 @@ public interface PersonPostMapper { ...@@ -133,4 +133,8 @@ public interface PersonPostMapper {
"</script>") "</script>")
public List <PersonPostEntity> findAllPersonalDataNoPage( @Param("sqrxm") String sqrxm, @Param("ddh") String ddh, @Param("hasPrinted") String hasPrinted, 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 ); @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);
} }
...@@ -48,4 +48,6 @@ public interface PersonPostService { ...@@ -48,4 +48,6 @@ public interface PersonPostService {
public boolean addNote(@Param("id")String id,@Param("note")String note); public boolean addNote(@Param("id")String id,@Param("note")String note);
public List<PersonPostEntity> checkPersonalPost(String uploadNo);
} }
...@@ -145,6 +145,11 @@ public class PersonPostServiceImpl implements PersonPostService { ...@@ -145,6 +145,11 @@ public class PersonPostServiceImpl implements PersonPostService {
return true; return true;
} }
@Override
public List<PersonPostEntity> checkPersonalPost(String uploadNo) {
return personPostMapper.checkPersonalPost(uploadNo);
}
// /** // /**
// * 查询个人邮寄信息 // * 查询个人邮寄信息
// * @param fileName 文件名 // * @param fileName 文件名
......
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