ProjectUserMapper.xml 1.1 KB

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.ProjectUserMapper">
  4. <select id="getPageList" parameterType="cn.cslg.pas.common.model.vo.ProjectUserVO" resultType="cn.cslg.pas.domain.ProjectUser">
  5. select a.id, a.uid as user_id, a.tid as project_id, a.addtime as create_time,
  6. a.remark, a.type, u.user as username, u.name
  7. from os_distribution_doing a
  8. left join os_distribution u on u.id = a.uid
  9. <where>
  10. <if test="params.name != '' and params.name != null">
  11. and u.name like concat('%', #{params.name}, '%')
  12. </if>
  13. <if test="params.username != '' and params.username != null">
  14. and u.user like concat('%', #{params.username}, '%')
  15. </if>
  16. <if test="params.type != null">
  17. and a.type = #{params.type}
  18. </if>
  19. and a.tid = #{params.projectId}
  20. </where>
  21. order by a.addtime desc
  22. </select>
  23. </mapper>