cloud-server-account/src/main/resources/mapper/TAppUserMapper.xml
@@ -82,4 +82,15 @@ </foreach> </where> </select> <select id="queryAPPUserByNameAndPhone" resultType="com.dsh.account.entity.TAppUser"> select * from t_app_user t1 <where> <if test="query.userName!=null and query.userName!= ''"> AND t1.name LIKE concat('%',#{query.userName},'%') </if> <if test="query.phone!=null and query.phone!= ''"> AND t1.phone LIKE concat('%',#{query.phone},'%') </if> </where> </select> </mapper>