Blame view

cloud/haikangface/src/main/resources/xiaoanmapper/usermapper.xml 1.36 KB
9962583e   陶汉栋   no message
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" >
b7125c31   徐泉   智能校卫:海康、大华人脸机代码提交
3
<mapper namespace="com.sincere.haikangface.xiananDao.SendRecordDao">
9962583e   陶汉栋   no message
4

b7125c31   徐泉   智能校卫:海康、大华人脸机代码提交
5
6
7
8
    <resultMap id="resultMap" type="com.sincere.haikangface.bean.xiaoan.CheckIn">
        <result column="arr" property="out" jdbcType="VARCHAR" />
        <result column="iscuccess" property="isSuccess" jdbcType="INTEGER" />
    </resultMap>
9962583e   陶汉栋   no message
9

b7125c31   徐泉   智能校卫:海康、大华人脸机代码提交
10
11
12
13
14
15
    <insert id="checkIn" parameterType="com.sincere.haikangface.bean.xiaoan.CheckIn" statementType="CALLABLE">
        {call AttendanceService(
           #{deviceId,mode=IN},#{cardNo,mode=IN},#{funNo,mode=IN},#{flag,mode=IN},#{checkTime,mode=IN},
           #{out,mode=OUT,jdbcType=VARCHAR,resultMap=resultMap},#{isSuccess,mode=OUT,jdbcType=INTEGER,resultMap=resultMap}
        )}
    </insert>
2f519872   徐泉   修改提交
16
17
18
19
20
21
22
23
24
25
26
27
28

    <select id="getSendRecordList" resultType="com.sincere.haikangface.bean.SendRecordBean">
        select * from Face_SendRecord where schoolId = #{schoolId} and status =2
        <if test="status != null">
            and status = #{status}
        </if>
        <if test="deviceList != null and deviceList.size() >0">
            and deviceID in
            <foreach item="item" collection="deviceList" separator="," open="(" close=")" index="">
                #{item}
            </foreach>
        </if>
    </select>
9962583e   陶汉栋   no message
29
</mapper>