1234567891011121314151617181920212223 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="cn.cslg.pas.mapper.ProjectUserMapper">
- <select id="getPageList" parameterType="cn.cslg.pas.common.model.vo.ProjectUserVO" resultType="cn.cslg.pas.domain.ProjectUser">
- select a.id, a.uid as user_id, a.tid as project_id, a.addtime as create_time,
- a.remark, a.type, u.user as username, u.name
- from os_distribution_doing a
- left join os_distribution u on u.id = a.uid
- <where>
- <if test="params.name != '' and params.name != null">
- and u.name like concat('%', #{params.name}, '%')
- </if>
- <if test="params.username != '' and params.username != null">
- and u.user like concat('%', #{params.username}, '%')
- </if>
- <if test="params.type != null">
- and a.type = #{params.type}
- </if>
- and a.tid = #{params.projectId}
- </where>
- order by a.addtime desc
- </select>
- </mapper>
|