You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?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="com.gaotao.modules.projectinfo.dao.CaseTaskDao"> <select id="getCaseTaskList" resultType="java.util.Map"> select ct.id as taskId, pi.project_name as projectName, pi.project_status as projectStatus, pc.id as caseId,pc.type,sysn.name as sysName, pc.demander,pc.encapsulate,pc.function_menu as functionMenu, pc.entered_by as enteredBy,ct.entered_date as enteredDate, ct.status,sysu.user_display as ownerName, ct.plan_finish_date as planFinishDate, ct.close_date as closeDate,ct.remark,ct.task_desc as taskDesc from case_task ct LEFT JOIN project_info pi on pi.id=ct.project_id LEFT JOIN project_case pc on pc.id=ct.case_id LEFT JOIN sys_user sysu on sysu.user_id=ct.owner_id LEFT JOIN sys_name sysn on sysn.id=pc.sys_name_id <where> 1 = 1 <if test="param2.statusList != '' and param2.statusList.length>0 "> and ct.status in <foreach item="item" index="index" collection="param2.statusList" open="(" separator="," close=")"> #{item} </foreach> </if> <if test="param2.projectId != null and param2.projectId != '' "> and pc.project_id = #{param2.projectId} </if> <if test="param2.projectName != null and param2.projectName != '' "> and pi.project_name like '%'+#{param2.projectName}+'%' </if> <if test="param2.functionMenu != null and param2.functionMenu != '' "> and pc.function_menu like '%'+#{param2.functionMenu}+'%' </if> <if test="param2.encapsulate != null and param2.encapsulate != '' "> and pc.encapsulate like '%'+#{param2.encapsulate}+'%' </if> <if test="param2.sysNameId != null and param2.sysNameId != '' "> and pc.sys_name_id = #{param2.sysNameId} </if> <if test="param2.groupId != null and param2.groupId != '' "> and pc.group_id = #{param2.groupId} </if> <if test="param2.type != null and param2.type != '' "> and pc.type = #{param2.type} </if> <if test="param2.enteredBy != null and param2.enteredBy != '' "> and pc.entered_by = #{param2.enteredBy} </if> <if test="param2.demander != null and param2.demander != '' "> and pc.demander = #{param2.demander} </if> <if test="param2.startDate!= null"> AND ct.entered_date>= #{param2.startDate} </if> <if test="param2.endDate!= null"> AND #{param2.endDate} >=ct.entered_date </if> </where> </select></mapper>
|