| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.crypto.BadPaddingException; |
| | | import javax.crypto.IllegalBlockSizeException; |
| | | import javax.crypto.NoSuchPaddingException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.security.InvalidKeyException; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | return R.fail("当前老人已存在"); |
| | | } |
| | | |
| | | String encryptedIdCard =authUserAddAppDTO.getIdCard(); |
| | | try { |
| | | encryptedIdCard = AESUtil.encrypt128(authUserAddAppDTO.getIdCard(), aesKey); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | ComEldersAuthElderlyDO authElderlyDO = comEldersAuthElderlyMapper.selectOne(new QueryWrapper<ComEldersAuthElderlyDO>().lambda() |
| | | .eq(ComEldersAuthElderlyDO::getIdCard,authUserAddAppDTO.getIdCard())); |
| | | .eq(ComEldersAuthElderlyDO::getIdCard, encryptedIdCard)); |
| | | if(authElderlyDO == null){ |
| | | return R.fail("未在系统找到相符的高龄老人!请检查信息是否正确,或联系社区工作人员"); |
| | | } |