Commit 7258e874 authored by zhangzhenbang's avatar zhangzhenbang

单独实名认证

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