SearchMapper.xml
2.68 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?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.example.dahua.xiananDao.SearchMapper" >
<resultMap id="resultMap" type="com.example.dahua.bean.CheckIn">
<result column="arr" property="out" jdbcType="VARCHAR" />
<result column="iscuccess" property="isSuccess" jdbcType="INTEGER" />
</resultMap>
<insert id="checkIn" parameterType="com.example.dahua.bean.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>
<insert id="insert" >
INSERT INTO SZ_AttendanceRecords202101 (
[user_id],
[school_id],
[customerId],
[usertype],
[card_num],
[card_type],
[outof],
[intime],
[cid],
[func_no],
[head_image],
[class_id],
[expression],
[attendance_id],
[name],
[mobile],
[class_name],
[sex],
[student_type],
[systime]
)
VALUES
(
#{user_id},#{school_id},#{customerId},2,#{card_num},#{card_type},#{outof}, #{intime}, #{cid},8,null,#{class_id},null,#{attendance_id},#{name},#{mobile}, #{class_name}, #{sex}, 2, #{systime}
)
</insert>
<insert id="insertSS" >
INSERT INTO SZ_AttendanceRecordsSS202101 (
[user_id],
[school_id],
[customerId],
[usertype],
[card_num],
[card_type],
[outof],
[intime],
[cid],
[func_no],
[head_image],
[class_id],
[expression],
[attendance_id],
[name],
[mobile],
[class_name],
[sex],
[student_type],
[systime]
)
VALUES
(
#{user_id},#{school_id},#{customerId},2,#{card_num},#{card_type},#{outof}, #{intime}, #{cid},8,null,#{class_id},null,#{attendance_id},#{name},#{mobile}, #{class_name}, #{sex}, 2, #{systime}
)
</insert>
<insert id="insertFace" parameterType="com.example.dahua.bean.yx.FaceBean">
insert into Face_SendRecord values (#{deviceId},#{userId},#{Num},#{Name},#{time},#{schoolName},null,#{schoolId},null,null,#{userType},#{deviceType},#{status},#{channel})
</insert>
</mapper>