Commit 35a6bc82 authored by zhangzhenbang's avatar zhangzhenbang

单独实名认证

parent 0a0c8235
......@@ -36,8 +36,8 @@ public interface IdentityInformationMapper {
* @param identityInformation 包含除了wechatPhone,wechatOpenid的所有信息
* @return
*/
@Update("update identity_information set name=#{name},id_card_number=#{idCardNumber}," +
"phone_number=#{phoneNumber},face_image=#{faceImage},toBeijing_date=#{toBeijingDate}" +
@Update("update identity_information set " +
"phone_number=#{phoneNumber},toBeijing_date=#{toBeijingDate}" +
" where id =#{id}")
int updateIdentityInfo(IdentityInformation identityInformation);
......
......@@ -47,9 +47,6 @@ public class IdentityInformationServiceImpl implements IdentityInformationServic
@Override
public boolean isUpdateIdentityInfoSucc(IdentityInformation identityInformation) {
identityInformation.setFaceImage(
PicUtils.compressImage(identityInformation.getFaceImage(),
Const.FACE_IMG_SIZE));
return identityInformationMapper.updateIdentityInfo(identityInformation) == 1;
}
......
......@@ -42,12 +42,6 @@ public class ReservationServiceImpl implements ReservationService {
@Transactional(rollbackFor = Exception.class)
public Response insertIdentityInfoAndReservation(ReservationInfoDTO info) throws Exception{
String idCardNumber = info.getIdentityInformation().getIdCardNumber();
if (!IdCardUtil.isValidatedAllIdcard(idCardNumber)) {
return Response.fail("ERROR-ID-NUMBER", "身份证格式有误,请重新输入。");
}
if (identityService.isUpdateIdentityInfoSucc(info.getIdentityInformation()) &&
isInsertReservationSucc(info.getReservation())) {
return Response.succ();
......
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