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.ProjectCaseDao"> <select id="getCaseList" resultType="java.util.Map"> select pi.id as projectId, pi.project_name as projectName, pi.project_status as projectStatus, sysn.name as sysName,cg.name as groupName, pc.id as caseId,pc.type, pc.demander,pc.encapsulate,pc.function_menu as functionMenu, pc.entered_by as enteredBy,pc.entered_date as enteredDate, pc.status,pc.xj_owner as xjOwner,pc.inner_status as innerStatus, pc.plan_finish_date as planFinishDate,pc.inner_plan_finish_date as innerPlanFinishDate, pc.upgrade_date as upgradeDate, pc.close_date as closeDate,pc.remark,pc.xjshow from project_case pc LEFT JOIN project_info pi on pi.id=pc.project_id LEFT JOIN sys_name sysn on sysn.id=pc.sys_name_id LEFT JOIN cus_group cg on cg.id=pc.group_id <where> 1 = 1 <if test="param2.statusList != '' and param2.statusList.length>0 "> and pc.status in <foreach item="item" index="index" collection="param2.statusList" open="(" separator="," close=")"> #{item} </foreach> </if> <if test="param2.innerStatusList != '' and param2.innerStatusList.length>0 "> and pc.inner_status in <foreach item="item" index="index" collection="param2.innerStatusList" open="(" separator="," close=")"> #{item} </foreach> </if> <if test="param2.linkedCustomerId != null and param2.linkedCustomerId != '' "> and pc.customer_id=#{param2.linkedCustomerId} </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 pc.entered_date>= #{param2.startDate} </if> <if test = "param2.endDate!= null"> AND #{param2.endDate} >=pc.entered_date </if> <if test="param2.manageAudit == '待审核'"> and pc.xjshow = 'N' </if> <if test="param2.xjshow != null and param2.xjshow != ''"> and pc.xjshow = #{param2.xjshow} </if> </where> </select></mapper>
|