jsk 手机查询

This commit is contained in:
skjia 2025-06-25 13:43:51 +08:00
parent 26732eaa12
commit 7552b16382
3 changed files with 4 additions and 2 deletions

View File

@ -175,5 +175,5 @@ public class HealthPersonInfo extends BaseEntity {
private String doctorAdvices; private String doctorAdvices;
private String placeIds; private String placeIds;
private String deptIds; private String deptIds;
private String encryptedSearchValue;
} }

View File

@ -50,6 +50,8 @@ public class HealthPersonInfoServiceImpl implements IHealthPersonInfoService {
*/ */
@Override @Override
public List<HealthPersonInfo> selectHealthPersonInfoList(HealthPersonInfo healthPersonInfo) { public List<HealthPersonInfo> selectHealthPersonInfoList(HealthPersonInfo healthPersonInfo) {
String encryptedSearchValue = SM4EncryptUtils.sm4Encrypt(healthPersonInfo.getArticleTitle());
healthPersonInfo.setEncryptedSearchValue(encryptedSearchValue);
List<HealthPersonInfo> list=healthPersonInfoMapper.selectHealthPersonInfoList(healthPersonInfo); List<HealthPersonInfo> list=healthPersonInfoMapper.selectHealthPersonInfoList(healthPersonInfo);
if(CollUtil.isNotEmpty(list)) { if(CollUtil.isNotEmpty(list)) {
for(HealthPersonInfo vo : list) { for(HealthPersonInfo vo : list) {

View File

@ -74,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join health_person_body_record d on a.user_id = d.user_id and d.if_latest = 1 left join health_person_body_record d on a.user_id = d.user_id and d.if_latest = 1
where 1 = 1 where 1 = 1
<if test="articleTitle != null and articleTitle != ''"> <if test="articleTitle != null and articleTitle != ''">
and(a.nick_name like concat('%', #{articleTitle}, '%') or a.phonenumber like concat('%', #{articleTitle}, '%') or b.doctor_num like concat('%', #{articleTitle}, '%')) and(a.nick_name like concat('%', #{articleTitle}, '%') or a.phonenumber like concat('%', #{encryptedSearchValue}, '%') or b.doctor_num like concat('%', #{articleTitle}, '%'))
</if> </if>
<if test="chronicIds != null and chronicIds != ''"> <if test="chronicIds != null and chronicIds != ''">
and c.chronic_id in (${chronicIds}) and c.chronic_id in (${chronicIds})