<?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.gk.hotwork.Mapper.TaskReviewMapper" >
|
<resultMap id="BaseResultMap" type="com.gk.hotwork.Domain.TaskReview" >
|
<!-- -->
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="task_id" property="taskId" jdbcType="BIGINT" />
|
<result column="taskcode" property="taskcode" jdbcType="VARCHAR" />
|
<result column="reviewer" property="reviewer" jdbcType="VARCHAR" />
|
<result column="reviewat" property="reviewat" jdbcType="TIMESTAMP" />
|
<result column="isagree" property="isagree" jdbcType="TINYINT" />
|
<result column="opinion" property="opinion" jdbcType="VARCHAR" />
|
<result column="level" property="level" jdbcType="VARCHAR" />
|
<result column="scenepic" property="scenepic" jdbcType="VARCHAR" />
|
<result column="autograph" property="autograph" jdbcType="VARCHAR" />
|
<result column="longitude" property="longitude" jdbcType="VARCHAR" />
|
<result column="latitude" property="latitude" jdbcType="VARCHAR" />
|
<result column="createdat" property="createdat" jdbcType="TIMESTAMP" />
|
<result column="createdby" property="createdby" jdbcType="VARCHAR" />
|
<result column="flag" property="flag" jdbcType="TINYINT" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
<!-- -->
|
id,task_id, taskcode, reviewer, reviewat, isagree, opinion, level, scenepic, autograph, longitude,
|
latitude, createdat, createdby, flag
|
</sql>
|
|
<resultMap id="location_map" type="com.gk.hotwork.Domain.Vo.specTask.TaskLocation">
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="task_id" property="taskId" jdbcType="BIGINT"/>
|
<result column="taskcode" property="code" jdbcType="VARCHAR" />
|
<result column="longitude" property="lon" jdbcType="VARCHAR" />
|
<result column="latitude" property="lat" jdbcType="VARCHAR" />
|
</resultMap>
|
|
<select id="getTaskLocationListByTaskCodes" resultMap="location_map">
|
select id,task_id,longitude,latitude from taskreview where
|
task_id in
|
<foreach collection="taskIdList" item="id" separator="," open="(" close=")">
|
#{id}
|
</foreach>
|
and level = "申请人作业申请"
|
</select>
|
|
</mapper>
|