| 3bc07178  陶汉栋
 
no message | 1
2
3
4 | <?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.sincere.smartSearch.mapper.AttendaceMapper">
 | 
| e92e5a92  陶汉栋
 
增加网关负载 | 5 |     <resultMap id="BaseResultMap" type="com.sincere.common.dto.smartCampus.SZ_AttendanceDto">
 | 
| 3bc07178  陶汉栋
 
no message | 6
7
8
9
10
11
12
13
14 | 
        <id column="clint_id" property="clint_id"/>
        <result column="name" property="name"/>
        <result column="clint_type" property="clint_type"/>
        <result column="intime" property="intime"/>
        <result column="school_id" property="school_id"/>
        <result column="isConnection" property="isConnection"/>
        <result column="state" property="state"/>
        <result column="IsKaoqin" property="IsKaoqin"/>
 | 
| 79abf011  陈杰
 
博冠人脸机 | 15 |         <result column="OutOrIn" property="outOrIn"/>
 | 
| 3bc07178  陶汉栋
 
no message | 16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 |     </resultMap>
    <select id="selectDevice" resultMap="BaseResultMap">
        select * from SZ_Attendance where clint_id = #{client_id}
    </select>
    <select id="getAttensWithIsKaoqin" resultMap="BaseResultMap">
        select * from SZ_Attendance where IsKaoqin = #{IsKaoqin}
    </select>
 | 
| 17788a11  陈杰
 
中控指纹机 | 31
32
33
34
35
36
37
38
39
40
41 |     <insert id="insertAttendance" parameterType="com.sincere.common.dto.smartCampus.SZ_AttendanceDto">
        insert into SZ_Attendance(clint_id , clint_type , ip , port , intime ,school_id , state)
        values (#{clint_id},#{clint_type},#{ip} , #{port},#{intime},#{school_id},#{state})
    </insert>
    <update id="updateAttendance" parameterType="java.lang.String">
        update SZ_Attendance set lastlogin_time = GETDATE() , isConnection = 1 where clint_id = #{clint_id}
    </update>
    <select id="selectRoomAttendance" parameterType="java.lang.Integer" resultType="java.lang.String">
 | 
| 59207196  徐泉
 
中控指纹机,考勤看板代码提交 | 42 |         select KaoQinAttendance from XA_PlaceAttendance where PlaceId = #{placeId} and (len(KanBanAttendance)>0 and KanBanAttendance is not null )
 | 
| 17788a11  陈杰
 
中控指纹机 | 43
44 |     </select>
 | 
| 7a375a4f  陈杰
 
智能校卫 告警服务 | 45 |     <select id="selectCloudAttendance" resultType="java.lang.Integer">
 | 
| e92e5a92  陶汉栋
 
增加网关负载 | 46
47 |         select DISTINCT school_id from SZ_Attendance where school_id != -1 and ( clint_type = 18 or clint_type = 22 or
        clint_id like '253%' )
 | 
| 7a375a4f  陈杰
 
智能校卫 告警服务 | 48
49
50 |     </select>
    <select id="selectCloudAttendanceBySchoolId" parameterType="java.lang.Integer" resultMap="BaseResultMap">
 | 
| e92e5a92  陶汉栋
 
增加网关负载 | 51
52 |         select * from SZ_Attendance where school_id = #{schoolId} and ( clint_type = 18 or clint_type = 22 or clint_id
        like '253%' )
 | 
| 7a375a4f  陈杰
 
智能校卫 告警服务 | 53 |     </select>
 | 
| 59207196  徐泉
 
中控指纹机,考勤看板代码提交 | 54
55
56
57 | 
    <select id="selectPlaceAttendance" parameterType="java.lang.String" resultType="java.lang.String">
        select Top(1) PlaceId from XA_PlaceAttendance where KaoQinAttendance = #{deviceId}
    </select>
 | 
| 3bc07178  陶汉栋
 
no message | 58 | </mapper>
 |