|
|
|
<?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.PatrolRoutineWorkDao">
|
|
|
|
|
|
|
|
<resultMap type="com.epmet.entity.PatrolRoutineWorkEntity" id="patrolRoutineWorkMap">
|
|
|
|
<result property="id" column="ID"/>
|
|
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
|
|
|
<result property="gridId" column="GRID_ID"/>
|
|
|
|
<result property="pids" column="PIDS"/>
|
|
|
|
<result property="userId" column="USER_ID"/>
|
|
|
|
<result property="title" column="TITLE"/>
|
|
|
|
<result property="happenTime" column="HAPPEN_TIME"/>
|
|
|
|
<result property="isNormal" column="IS_NORMAL"/>
|
|
|
|
<result property="workContent" column="WORK_CONTENT"/>
|
|
|
|
<result property="longitude" column="LONGITUDE"/>
|
|
|
|
<result property="latitude" column="LATITUDE"/>
|
|
|
|
<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="selectList" resultType="com.epmet.dto.result.PatrolRoutineWorkResult">
|
|
|
|
SELECT
|
|
|
|
id, customer_id, grid_id, pids, user_id, title, happen_time, is_normal, work_content,
|
|
|
|
is_key_people_locate, key_people_status, address, longitude, latitude, del_flag,
|
|
|
|
revision, created_by, created_time, updated_by, updated_time
|
|
|
|
FROM epmet_user.patrol_routine_work
|
|
|
|
WHERE CUSTOMER_ID = #{customerId}
|
|
|
|
<if test="id != null and id != ''">
|
|
|
|
AND ID = #{id}
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|