WebLoginConfigMapper.xml 984 B

1234567891011121314151617181920212223
  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="cn.cslg.pas.mapper.WebLoginConfigMapper">
  4. <select id="getPageList" parameterType="cn.cslg.pas.common.vo.QueryConfigVO"
  5. resultType="cn.cslg.pas.common.vo.ConfigVO">
  6. select web_name as webName,web_address as webAddress ,login_account as loginAccount ,login_password as
  7. loginPassword,b.id as id
  8. ,a.id as webId
  9. from web_config a
  10. left join web_login_config b
  11. on a.id=b.web_id
  12. <where>
  13. b.tenant_id=#{params.tenantId}
  14. <if test="params.webId !=null">
  15. and a.id =#{params.webId}
  16. </if>
  17. <if test="params.loginAccount!=null and params.loginAccount!='' ">
  18. and b.login_account like concat('%',#{params.loginAccount}, '%')
  19. </if>
  20. </where>
  21. </select>
  22. </mapper>