Commit 80a3dece authored by xiachenqi's avatar xiachenqi

修改手动打印标识(STATUS=1)

修改格口信息有异常时手动打印接口不返回格口信息字段
parent 9e39c8cf
...@@ -350,13 +350,18 @@ public class PersonPostApi { ...@@ -350,13 +350,18 @@ public class PersonPostApi {
public List<PersonPostEntity> findPersonalData(@RequestBody ReadCardDto readCardDto, HttpServletRequest requ) { public List<PersonPostEntity> findPersonalData(@RequestBody ReadCardDto readCardDto, HttpServletRequest requ) {
String remoteAddr = requ.getRemoteAddr(); String remoteAddr = requ.getRemoteAddr();
MDC.put("ip", remoteAddr); MDC.put("ip", remoteAddr);
List<PersonPostEntity> list = new ArrayList<PersonPostEntity>(); List<PersonPostEntity> list = new ArrayList<>();
try { try {
list = personPostService.getPostInfo(readCardDto); list = personPostService.getPostInfo(readCardDto);
} catch (Exception e) { } catch (Exception e) {
logger.error("身份证号:" + readCardDto.getIdCard() + "起始时间" + readCardDto.getStartDate() + "截止时间" + readCardDto.getEndDate()); logger.error("身份证号:" + readCardDto.getIdCard() + "起始时间" + readCardDto.getStartDate() + "截止时间" + readCardDto.getEndDate());
logger.error("Exception 刷身份证查询邮寄单信息详情异常", e); logger.error("Exception 刷身份证查询邮寄单信息详情异常", e);
} }
for (PersonPostEntity entity : list) {
if (entity.getLatticeMouthInformation().trim().equals("调用新一代接口批量获取四级分拣码失败")) {
entity.setLatticeMouthInformation("");
}
}
return list; return list;
} }
......
...@@ -121,7 +121,7 @@ public interface PersonPostMapper { ...@@ -121,7 +121,7 @@ public interface PersonPostMapper {
@Select("select * from PERSON_POST where id = #{id}") @Select("select * from PERSON_POST where id = #{id}")
public PersonPostEntity findPostInfoById(int id); public PersonPostEntity findPostInfoById(int id);
@Update("update PERSON_POST SET PRINT_DATE=#{printDateTime} where id=#{id}") @Update("update PERSON_POST SET PRINT_DATE=#{printDateTime}, STATUS = 1 where id=#{id}")
void updateIsPrint(@Param("id") int id, @Param("printDateTime") Date printDateTime); void updateIsPrint(@Param("id") int id, @Param("printDateTime") Date printDateTime);
@Delete("DELETE FROM PERSON_POST WHERE FILE_ID = #{fileId} and PRINT_DATE IS NULL") @Delete("DELETE FROM PERSON_POST WHERE FILE_ID = #{fileId} and PRINT_DATE IS NULL")
...@@ -255,4 +255,15 @@ public interface PersonPostMapper { ...@@ -255,4 +255,15 @@ public interface PersonPostMapper {
@Update("update PERSON_POST SET PRINT_DATE=#{printDateTime}, STATUS = 0 where id=#{id}") @Update("update PERSON_POST SET PRINT_DATE=#{printDateTime}, STATUS = 0 where id=#{id}")
void updatePrintDateAtMachine( @Param("id") int id, @Param("printDateTime") Date printDateTime ); void updatePrintDateAtMachine( @Param("id") int id, @Param("printDateTime") Date printDateTime );
@Select("SELECT * FROM PERSON_POST where TO_DATE(CREATE_DATE, 'yyyy-MM-dd HH24:mi:ss') between TO_DATE(#{start}, 'yyyy-MM-dd') and TO_DATE(#{end}, 'yyyy-MM-dd') and GK is null")
List<PersonPostEntity> findAllByCreateDate(@Param("start") String start,@Param("end") String end);
@Select("SELECT count(*) FROM PERSON_POST where TO_DATE(CREATE_DATE, 'yyyy-MM-dd HH24:mi:ss') between TO_DATE(#{start}, 'yyyy-MM-dd') and TO_DATE(#{end}, 'yyyy-MM-dd')")
Integer getAllCountByCreateDate(@Param("start") String start,@Param("end") String end);
@Select("SELECT ID FROM PERSON_POST where TO_DATE(CREATE_DATE, 'yyyy-MM-dd HH24:mi:ss') between TO_DATE(#{start}, 'yyyy-MM-dd') and TO_DATE(#{end}, 'yyyy-MM-dd')")
List<Integer> getIdByCreateDate(@Param("start") String start,@Param("end") String end);
@Update("UPDATE PERSON_POST SET GK = #{GK} where ID = #{id}")
boolean addGk( @Param("id") long id, @Param("GK") Long gk );
} }
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