Blame view

cloud/search_smartCampus/src/main/resources/mapper/DeviceMapper.xml 1019 Bytes
5efb4092   陈杰   微耕服务 嵌入分布式
1
2
<?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" >
e92e5a92   陶汉栋   增加网关负载
3
<mapper namespace="com.sincere.smartSearch.mapper.DeviceMapper" >
5efb4092   陈杰   微耕服务 嵌入分布式
4

e92e5a92   陶汉栋   增加网关负载
5
6
7
  <update id="updateLinkTime" parameterType="com.sincere.smartSearch.model.DeviceLink">
        update AC_DeviceLink set LastTime =#{lastTime}  where DeviceNo = #{deviceNo}
  </update>
5efb4092   陈杰   微耕服务 嵌入分布式
8

e92e5a92   陶汉栋   增加网关负载
9
10
11
12
  <insert id="insertLink" parameterType="com.sincere.smartSearch.model.DeviceLink">
    insert into AC_DeviceLink(DeviceNo,LastTime,IsRelation)
    values (#{deviceNo},#{lastTime},0)
  </insert>
5efb4092   陈杰   微耕服务 嵌入分布式
13

e92e5a92   陶汉栋   增加网关负载
14
15
16
17
  <select id="selectOutOrderId" parameterType="com.sincere.smartSearch.model.DeviceOrder" resultType="java.lang.String">
    select OutsideOrderID from AC_DeviceOrder where Type = #{type} and InsideOrderID = #{insideOrderId}
  </select>

7a375a4f   陈杰   智能校卫 告警服务
18
  <select id="selectByDeviceNo" parameterType="java.lang.String" resultType="java.util.Date">
e92e5a92   陶汉栋   增加网关负载
19
20
21
    select LastTime from AC_DeviceLink where DeviceNo = #{deviceNo}
  </select>
</mapper>
5efb4092   陈杰   微耕服务 嵌入分布式