jsk 电话加密

This commit is contained in:
skjia 2025-07-04 10:56:25 +08:00
parent c426c1dc8d
commit a7241e6352
2 changed files with 7 additions and 6 deletions

View File

@ -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) {

View File

@ -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">