郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?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>