1234567891011121314151617181920212223242526272829 |
- <?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.ProjectFieldMapper">
- <select id="getPageList" parameterType="cn.cslg.pas.common.model.vo.ProjectFieldVO" resultType="cn.cslg.pas.domain.ProjectField">
- select a.id, a.name, a.ptype, a.type, a.status, a.remark, a.cid as create_by,
- a.createtime as create_time, c.name as create_name, d.id as project_id, d.name as project_name
- from os_patent_field a
- left join os_distribution c on c.id = a.cid
- left join os_thematic d on d.id = a.project_id
- <where>
- <if test="params.name != '' and params.name != null">
- and a.name like concat('%', #{params.name}, '%')
- </if>
- <if test="params.type != null">
- and a.type = #{params.type}
- </if>
- <if test="params.status != null">
- and a.status = #{params.status}
- </if>
- <if test="params.projectId != null">
- and a.project_id = #{params.projectId}
- </if>
- <if test="params.tenantId">
- and d.tenantId=#{params.tenantId}
- </if>
- </where>
- order by a.createtime ${params.order}
- </select>
- </mapper>
|