feiyu02
2024-05-31 da431c25dfe5122e4ed70372da36ede3e4eaec4a
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
<?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.flightfeather.uav.domain.mapper.AssessmentMapper">
  <resultMap id="BaseResultMap" type="com.flightfeather.uav.domain.entity.Assessment">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="ID" jdbcType="INTEGER" property="id" />
    <result column="CI_GUID" jdbcType="VARCHAR" property="ciGuid" />
    <result column="AS_Risk" jdbcType="VARCHAR" property="asRisk" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
    -->
    ID, CI_GUID, AS_Risk
  </sql>
 
  <resultMap id="AssessmentVo" type="com.flightfeather.uav.lightshare.bean.AssessmentVo">
    <result column="CI_GUID" jdbcType="VARCHAR" property="ciGuid" />
    <result column="CI_Name" jdbcType="VARCHAR" property="ciName" />
    <result column="CI_Longitude" jdbcType="DECIMAL" property="ciLng" />
    <result column="CI_Latitude" jdbcType="DECIMAL" property="ciLat" />
    <result column="ciIndex" jdbcType="VARCHAR" property="ciIndex" />
    <result column="CI_Address" jdbcType="VARCHAR" property="ciAddress" />
    <result column="AS_Risk" jdbcType="VARCHAR" property="risk" />
  </resultMap>
  <select id="getAssessment" resultMap="AssessmentVo">
    SELECT
      b.CI_GUID,
      b.CI_Name,
      b.CI_Longitude,
      b.CI_Latitude,
      b.CI_Extension1 as ciIndex,
      b.CI_Address,
      a.AS_Risk
    FROM
    co_assessment AS a
    LEFT JOIN ea_companyinfo AS b ON a.CI_GUID = b.CI_GUID
  </select>
</mapper>