Blame view

cloud/haikangface/src/main/resources/mapper/usermapper.xml 2.8 KB
9962583e   陶汉栋   no message
1
2
3
4
5
<?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.haikangface.dao.UserDao">

    <!--<select id="getStudentNum" resultType="String" parameterType="String">-->
e92e5a92   陶汉栋   增加网关负载
6
7
8
9
    <!--select student_num-->
    <!--from SZ_V_School_Student-->
    <!--where school_id = #{school_id}-->
    <!--and studentcode = #{studentcode}-->
9962583e   陶汉栋   no message
10
11
    <!--</select>-->

acd712a6   陶汉栋   增加网关负载
12
13
14
15
16
17
18
19
20
    <select id="getStudentWiSidAndSex" resultType="java.lang.String">

        select student_num from SZ_V_School_Student where school_id = #{schoolId} and sex in
        <foreach collection="sexs" item="sex" index="index" open="(" separator="," close=")">
            #{sex}
        </foreach>

    </select>

b8a3cdaf   徐泉   智能校卫一阶段代码提交
21
22
23
24
25
26
27
28
    <select id="getStudentCard" resultType="java.lang.String">
        select distinct student_num from SZ_V_School_Student where school_id = #{schoolId} and student_type = #{studentType}
        and sex in
        <foreach item="item" collection="sex" separator="," open="(" close=")" index="">
            #{item}
        </foreach>
    </select>

acd712a6   陶汉栋   增加网关负载
29
    <select id="getDeviceRoomRelation" resultType="java.lang.String">
3009e2ac   陶汉栋   权限模板增加
30
        select clint_id from SZ_DeviceRoomRelation where clint_id = #{clint_id} and state = 1;
acd712a6   陶汉栋   增加网关负载
31
32
    </select>

191a8018   陶汉栋   无感考勤
33
34
35
36
37
    <insert id="insertBaiduFaceRecorder" parameterType="com.sincere.haikangface.bean.BaiduFaceRecorder">

        insert into BaiduFaceRecorder values (#{name},#{userId},#{score},#{time},#{uploadImgUrl},#{userImgUrl})

    </insert>
b8a3cdaf   徐泉   智能校卫一阶段代码提交
38
39
40
41
42
43
44
45
46
47
48
49

    <insert id="insertAuthRecord" parameterType="com.sincere.haikangface.bean.face.DeviceAuthRecord">
        insert into AC_DeviceAuthRecord
        (ShiDuan ,StudentType, SchoolId , Sno,StartTime , EndTime , State , WeekDays ,Sex,GrantState,AuthType,aType)
         values
        (#{shiduan},#{studentType}, #{schoolId}, #{sno}, #{startTime}, #{endTime}, 1, #{weekDays}, #{sex}, #{grantState},#{authType},#{aType})
    </insert>

    <select id="getAuthRecord" resultType="com.sincere.haikangface.bean.face.DeviceAuthRecord" parameterType="java.lang.Integer">
        select * from AC_DeviceAuthRecord where id = #{id}
    </select>

2cbbb164   徐泉   智能校卫:海康、大华人脸机代码提交
50
51
52
53
54
55
56
57
    <update id="deleteAuthRecord">
        update AC_DeviceAuthRecord set State = 0 where id = #{id}
    </update>

    <update id="updateAuthRecord">
        update AC_DeviceAuthRecord set GrantState = #{grantState} where id = #{id}
    </update>

b8a3cdaf   徐泉   智能校卫一阶段代码提交
58
59
60
61
62
63
64
65
    <select id="getStudentCByUserId" resultType="com.sincere.haikangface.bean.StudentBean" parameterType="java.lang.String">
        select Top(1) * from SZ_V_School_Student where user_id = #{userId}
    </select>

    <select id="getTeacherByUserId" resultType="com.sincere.haikangface.bean.StudentBean" parameterType="java.lang.String">
        select Top(1) * from SZ_V_School_Teacher where user_id = #{userId}
    </select>
</mapper>
86dc0d39   徐泉   智能校卫:海康、大华人脸机代码提交

f1e0c386   徐泉   修改提交

86dc0d39   徐泉   智能校卫:海康、大华人脸机代码提交

2cbbb164   徐泉   智能校卫:海康、大华人脸机代码提交

6184590c   徐泉   海康大华接口提交

2f519872   徐泉   修改提交

6184590c   徐泉   海康大华接口提交

86dc0d39   徐泉   智能校卫:海康、大华人脸机代码提交

86dc0d39   徐泉   智能校卫:海康、大华人脸机代码提交

2cbbb164   徐泉   智能校卫:海康、大华人脸机代码提交

f1e0c386   徐泉   修改提交

ad296f75   徐泉   智能校卫:海康、大华人脸机代码提交

8b94a56a   徐泉   修改提交

2cbbb164   徐泉   智能校卫:海康、大华人脸机代码提交

2cbbb164   徐泉   智能校卫:海康、大华人脸机代码提交

ad296f75   徐泉   智能校卫:海康、大华人脸机代码提交

ad296f75   徐泉   智能校卫:海康、大华人脸机代码提交

2f519872   徐泉   修改提交

ad296f75   徐泉   智能校卫:海康、大华人脸机代码提交

2cbbb164   徐泉   智能校卫:海康、大华人脸机代码提交

8b94a56a   徐泉   修改提交

0d72f97b   徐泉   修改提交

8b94a56a   徐泉   修改提交

f1e0c386   徐泉   修改提交

9962583e   陶汉栋   no message