jsk 电话加密
This commit is contained in:
parent
c426c1dc8d
commit
a7241e6352
|
|
@ -53,12 +53,12 @@ public class HealthPersonInfoServiceImpl implements IHealthPersonInfoService {
|
|||
String encryptedSearchValue = SM4EncryptUtils.sm4Encrypt(healthPersonInfo.getArticleTitle());
|
||||
healthPersonInfo.setEncryptedSearchValue(encryptedSearchValue);
|
||||
List<HealthPersonInfo> list=healthPersonInfoMapper.selectHealthPersonInfoList(healthPersonInfo);
|
||||
if(CollUtil.isNotEmpty(list)) {
|
||||
for(HealthPersonInfo vo : list) {
|
||||
vo.setMobile(SM4EncryptUtils.sm4Decrypt(vo.getMobile()));
|
||||
vo.setMobile(maskPhoneNumber(vo.getMobile()));
|
||||
}
|
||||
}
|
||||
// if(CollUtil.isNotEmpty(list)) {
|
||||
// for(HealthPersonInfo vo : list) {
|
||||
// vo.setMobile(SM4EncryptUtils.sm4Decrypt(vo.getMobile()));
|
||||
// vo.setMobile(maskPhoneNumber(vo.getMobile()));
|
||||
// }
|
||||
// }
|
||||
return list;
|
||||
}
|
||||
public static String maskPhoneNumber(String phoneNumber) {
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="enterImgUrl != null and enterImgUrl != ''"> and kseer.enter_img_url = #{enterImgUrl}</if>
|
||||
<if test="startDate != null "> and substring(kseer.enter_time,1,10) >= #{startDate} and #{endDate}>= substring(kseer.enter_time,1,10)</if>
|
||||
</where>
|
||||
order by kseer.enter_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectKitchenStaffEnterExitRecordByCheckId" parameterType="Long" resultMap="KitchenStaffEnterExitRecordResult">
|
||||
|
|
|
|||
Loading…
Reference in New Issue