feiyu02
2024-04-25 0392c333ed3d987cb2ab3dac4e1a972cff405f21
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
46
<?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="cn.flightfeather.supervision.domain.ds1.mapper.MonitorobjectversionMapper" >
  <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds1.entity.Monitorobjectversion" >
    <!--
      WARNING - @mbg.generated
    -->
    <id column="MOV_ID" property="movId" jdbcType="VARCHAR" />
    <result column="T_ID" property="tId" jdbcType="VARCHAR" />
    <result column="S_GUID" property="sGuid" jdbcType="VARCHAR" />
    <result column="MOV_SenseName" property="sensename" jdbcType="VARCHAR" />
    <result column="MOV_TaskTypeID" property="tasktypeid" jdbcType="TINYINT" />
    <result column="MOV_TaskType" property="tasktype" jdbcType="VARCHAR" />
    <result column="MOV_MonitorNum" property="monitornum" jdbcType="INTEGER" />
    <result column="MOV_Suitable" property="suitable" jdbcType="BIT" />
    <result column="MOV_DisplayID" property="displayid" jdbcType="INTEGER" />
    <result column="MOV_Year" property="year" jdbcType="INTEGER" />
    <result column="MOV_Month" property="month" jdbcType="INTEGER" />
    <result column="MOV_Day" property="day" jdbcType="INTEGER" />
    <result column="MOV_ISCP" property="iscp" jdbcType="BIT" />
    <result column="MOV_CustomPeriod" property="customperiod" jdbcType="VARCHAR" />
    <result column="MOV_Extension1" property="extension1" jdbcType="VARCHAR" />
    <result column="MOV_Extension2" property="extension2" jdbcType="VARCHAR" />
    <result column="MOV_Extension3" property="extension3" jdbcType="VARCHAR" />
    <result column="MOV_Remark" property="remark" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbg.generated
    -->
    MOV_ID, T_ID, S_GUID, MOV_SenseName, MOV_TaskTypeID, MOV_TaskType, MOV_MonitorNum,
    MOV_Suitable, MOV_DisplayID, MOV_Year, MOV_Month, MOV_Day, MOV_ISCP, MOV_CustomPeriod,
    MOV_Extension1, MOV_Extension2, MOV_Extension3, MOV_Remark
  </sql>
 
  <select id="findMonitorListByScene" resultMap="BaseResultMap">
    select
      a.*
    from sm_t_monitorobjectversion as a
    left join sm_t_scense as b on a.S_GUID = b.S_GUID
    where T_ID = #{taskId}
    <if test="sceneTypeId != null">
      and b.S_TypeID = #{sceneTypeId}
    </if>
  </select>
</mapper>