123456789101112131415161718192021222324252627282930313233 |
- <?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.TaskMapper">
- <select id="getPageList" parameterType="cn.cslg.pas.common.model.vo.TaskVO" resultType="cn.cslg.pas.domain.Task">
- select a.id, a.type, a.uid as create_by, a.ctime as start_time, a.tid as project_id,
- a.mfields as field_num, a.mun as total, a.endtime as end_time, a.status, a.filename as file_name,
- a.filesize as file_size, a.downexcel as url, b.name as create_name, c.name as project_name, a.old_name
- from os_task a
- left join os_distribution b on a.uid = b.id
- left join os_thematic c on c.id = a.tid
- <where>
- <if test="params.createName != '' and params.createName != null">
- and b.name like concat('%', #{params.createName}, '%')
- </if>
- <if test="params.status != null">
- and a.status = #{params.status}
- </if>
- <if test="params.type != null">
- and a.type = #{params.type}
- </if>
- <if test="params.projectId != null">
- and a.tid = #{params.projectId}
- </if>
- <if test="params.productId != null">
- and a.product_id = #{params.productId}
- </if>
- <if test="params.projectName != '' and params.projectName != null">
- and c.name like concat('%', #{params.projectName}, '%')
- </if>
- </where>
- order by a.ctime ${params.order}
- </select>
- </mapper>
|