Commit 7258e874 authored by zhangzhenbang's avatar zhangzhenbang

单独实名认证

parent 3582c98d
...@@ -112,6 +112,10 @@ public class IdentityInfoController { ...@@ -112,6 +112,10 @@ public class IdentityInfoController {
@PostMapping("/identity/reservation/display") @PostMapping("/identity/reservation/display")
public List<ReservationsDisplayDTO> selectReservatinsByIdentityId(@RequestBody IdentityInformation info) { public List<ReservationsDisplayDTO> selectReservatinsByIdentityId(@RequestBody IdentityInformation info) {
if (identityInformationService.selectReservationByIdentityId(info).size()==0) {
return null;
}
return identityInformationService.selectReservatinsByIdentityId(info); return identityInformationService.selectReservatinsByIdentityId(info);
} }
......
...@@ -51,4 +51,8 @@ public interface IdentityInformationMapper { ...@@ -51,4 +51,8 @@ public interface IdentityInformationMapper {
@Update("update identity_information set name=#{name}, id_card_number=#{idCardNumber}," + @Update("update identity_information set name=#{name}, id_card_number=#{idCardNumber}," +
"face_image=#{faceImage},is_authed=#{isAuthed} where id = #{id}") "face_image=#{faceImage},is_authed=#{isAuthed} where id = #{id}")
int updateIdentityVerificationById(IdentityInformation info); int updateIdentityVerificationById(IdentityInformation info);
//待删除,战士用的
@Select("select * from reservation where identity_id=#{id}")
List<Reservation> selectReservationByIdentityId(IdentityInformation info);
} }
...@@ -2,6 +2,7 @@ package com.yingxin.beijingvehicleflow.service; ...@@ -2,6 +2,7 @@ package com.yingxin.beijingvehicleflow.service;
import com.yingxin.beijingvehicleflow.dto.ReservationsDisplayDTO; import com.yingxin.beijingvehicleflow.dto.ReservationsDisplayDTO;
import com.yingxin.beijingvehicleflow.entity.IdentityInformation; import com.yingxin.beijingvehicleflow.entity.IdentityInformation;
import com.yingxin.beijingvehicleflow.entity.Reservation;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import java.util.List; import java.util.List;
...@@ -43,4 +44,6 @@ public interface IdentityInformationService { ...@@ -43,4 +44,6 @@ public interface IdentityInformationService {
int updateIdentityVerificationById(IdentityInformation info); int updateIdentityVerificationById(IdentityInformation info);
List<Reservation> selectReservationByIdentityId(IdentityInformation info);
} }
...@@ -3,6 +3,7 @@ package com.yingxin.beijingvehicleflow.service.impl; ...@@ -3,6 +3,7 @@ package com.yingxin.beijingvehicleflow.service.impl;
import com.yingxin.beijingvehicleflow.constant.Const; import com.yingxin.beijingvehicleflow.constant.Const;
import com.yingxin.beijingvehicleflow.dto.ReservationsDisplayDTO; import com.yingxin.beijingvehicleflow.dto.ReservationsDisplayDTO;
import com.yingxin.beijingvehicleflow.entity.IdentityInformation; import com.yingxin.beijingvehicleflow.entity.IdentityInformation;
import com.yingxin.beijingvehicleflow.entity.Reservation;
import com.yingxin.beijingvehicleflow.mapper.IdentityInformationMapper; import com.yingxin.beijingvehicleflow.mapper.IdentityInformationMapper;
import com.yingxin.beijingvehicleflow.service.IdentityInformationService; import com.yingxin.beijingvehicleflow.service.IdentityInformationService;
import com.yingxin.beijingvehicleflow.util.PicUtils; import com.yingxin.beijingvehicleflow.util.PicUtils;
...@@ -123,4 +124,9 @@ public class IdentityInformationServiceImpl implements IdentityInformationServic ...@@ -123,4 +124,9 @@ public class IdentityInformationServiceImpl implements IdentityInformationServic
public int updateIdentityVerificationById(IdentityInformation info) { public int updateIdentityVerificationById(IdentityInformation info) {
return identityInformationMapper.updateIdentityVerificationById(info); return identityInformationMapper.updateIdentityVerificationById(info);
} }
@Override
public List<Reservation> selectReservationByIdentityId(IdentityInformation info) {
return identityInformationMapper.selectReservationByIdentityId(info);
}
} }
...@@ -32,7 +32,7 @@ restTemplate: ...@@ -32,7 +32,7 @@ restTemplate:
defaultMaxPerRoute: 10000 defaultMaxPerRoute: 10000
validateAfterInactivity: 30000 validateAfterInactivity: 30000
QR-code-validTime: 5 QR-code-validTime: 30
async-Config: async-Config:
MAX-POOL-SIZE: 50 MAX-POOL-SIZE: 50
......
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