赫艾后端
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.
 
 
 
 
 
 

88 lines
3.6 KiB

<?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.heai.modules.taskmanage.dao.TaskListDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.heai.modules.taskmanage.entity.TaskListEntity" id="taskListMap">
<result property="id" column="id"/>
<result property="project" column="project"/>
<result property="customer" column="customer"/>
<result property="taskInitiator" column="task_initiator"/>
<result property="taskDescription" column="task_description"/>
<result property="department" column="department"/>
<result property="requiredCompletionDate" column="required_completion_date"/>
<result property="status" column="status"/>
<result property="finalStatus" column="final_status"/>
<result property="taskStartDate" column="task_start_date"/>
<result property="createdDate" column="created_date"/>
<result property="createdBy" column="created_by"/>
<result property="updatedDate" column="updated_date"/>
<result property="updatedBy" column="updated_by"/>
</resultMap>
<select id="queryList" resultType="com.heai.modules.taskmanage.entity.TaskListEntity">
select
id
,project
,customer
,task_initiator
,task_description
,department
,required_completion_date
,status
,final_status
,task_start_date
,created_date
,created_by
,updated_date
,updated_by
,task_header
,responsible_person,AllowCloseByHand,OrderRef1,OrderRef2,
OrderRef3,OrderRefType,OrderRef4,taskType,oldSpec,newSpec
from task_list
<where>
site = #{site}
<if test="department != null and department != ''">
and department like #{department}
</if>
<if test="customer != null and customer != ''">
and customer like #{customer}
</if>
<if test="status != null and status != ''">
and status = #{status}
</if>
<if test="project != null and project != ''">
and project = #{project}
</if>
<if test="responsiblePerson != null and responsiblePerson != ''">
and responsible_person like #{responsiblePerson}
</if>
<if test="startDate !=null ">
and task_start_date <![CDATA[ >= ]]> #{startDate}
</if>
<if test="endDate !=null ">
and task_start_date <![CDATA[ <= ]]> #{endDate}
</if>
<if test="taskType != null and taskType != ''">
and taskType like #{taskType}
</if>
<if test="oldSpec != null and oldSpec != ''">
and oldSpec like #{oldSpec}
</if>
<if test="newSpec != null and newSpec != ''">
and newSpec like #{newSpec}
</if>
<if test="finishStartDate != null ">
and required_completion_date <![CDATA[ >= ]]> #{finishStartDate}
</if>
<if test="finishEndDate != null ">
and required_completion_date <![CDATA[ <= ]]>#{finishEndDate}
</if>
</where>
order by active_date,created_date
</select>
<select id="getTaskTypeList" resultType="TaskTypeList">
select id,taskType,[order] from taskTypeList order by [order]
</select>
</mapper>