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.
 
 
 
 
 

48 lines
2.0 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.epmet.dao.ProjectSubProcessDao">
<resultMap type="com.epmet.entity.ProjectSubProcessEntity" id="projectSubProcessMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="projectId" column="PROJECT_ID"/>
<result property="processId" column="PROCESS_ID"/>
<result property="staffId" column="STAFF_ID"/>
<result property="platformId" column="PLATFORM_ID"/>
<result property="platformName" column="PLATFORM_NAME"/>
<result property="taskId" column="TASK_ID"/>
<result property="result" column="RESULT"/>
<result property="externalStatus" column="EXTERNAL_STATUS"/>
<result property="externalStatusDesc" column="EXTERNAL_STATUS_DESC"/>
<result property="internalStatus" column="INTERNAL_STATUS"/>
<result property="handleDate" column="HANDLE_DATE"/>
<result property="handleUserName" column="HANDLE_USER_NAME"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<!-- 查询最新记录 -->
<select id="selectSubProcess" resultType="com.epmet.dto.ProjectSubProcessDTO">
SELECT
*
FROM
project_sub_process
WHERE
DEL_FLAG = '0'
AND (
<foreach collection="projectStaffIds" item="id" separator=" or ">
PROJECT_STAFF_ID = #{id}
</foreach>
)
ORDER BY CREATED_TIME DESC
LIMIT 1
</select>
</mapper>