JyUserPlatformMapper.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.fdkankan.manage.mapper.IJyUserPlatformMapper">
  4. <select id="pageList" resultType="com.fdkankan.manage.vo.request.JyUserPlatformVo">
  5. select up.id,up.ry_id,up.ry_no,up.id_card,up.ry_nick_name as name ,up.phone,up.platform_id,up.status,up.create_time from jy_user up
  6. where up.rec_status = 'A'
  7. <if test="param.name != null and param.name !=''">
  8. and up.ry_nick_name like concat ('%',#{param.name},'%')
  9. </if>
  10. <if test="param.phone != null and param.phone !=''">
  11. and up.phone like concat ('%',#{param.phone},'%')
  12. </if>
  13. <if test="param.idCard != null and param.idCard !=''">
  14. and up.id_card like concat ('%',#{param.idCard},'%')
  15. </if>
  16. <if test="param.ryNo != null and param.ryNo !=''">
  17. and up.ry_no like concat ('%',#{param.ryNo},'%')
  18. </if>
  19. <if test="param.platformId != null ">
  20. and up.platform_id = #{param.platformId}
  21. </if>
  22. order by up.id desc
  23. </select>
  24. <select id="queryByKey" resultType="com.fdkankan.manage.vo.JyUserPlatform">
  25. select id,id_card,ry_nick_name as name ,phone,platform_id,status,create_time from jy_user where rec_status = 'A' and status = 1
  26. <if test="queryKey != null and queryKey !=''">
  27. and ( ry_nick_name = #{queryKey} or phone = #{queryKey} or id_card = #{queryKey} )
  28. </if>
  29. </select>
  30. </mapper>