02191019
陈杰
考勤推送修改,绑定关注逻辑
|
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.RegisterPushMapper" >
|
02191019
陈杰
考勤推送修改,绑定关注逻辑
|
4
|
|
e92e5a92
陶汉栋
增加网关负载
|
5
6
7
8
9
10
11
12
13
|
<resultMap id="BindPushDto" type="com.sincere.common.dto.smartCampus.BindPushDto" >
<result column="SchoolId" property="schoolId" />
<result column="SchoolName" property="schoolName" />
<result column="type" property="type" />
<result column="BeginDate" property="beginDate" />
<result column="EndDate" property="endDate" />
<result column="IntervalDays" property="intervalDays" />
<result column="PushTime" property="pushTime" />
<result column="Msg" property="msg" />
|
02191019
陈杰
考勤推送修改,绑定关注逻辑
|
14
15
16
|
</resultMap>
<select id="selectBindPushSchool" resultType="java.lang.Integer" resultMap="BindPushDto">
|
e92e5a92
陶汉栋
增加网关负载
|
17
18
|
select SchoolId , SchoolName , type , BeginDate , EndDate , IntervalDays , PushTime , Msg from EM_QYHID where isPush = 1
</select>
|
02191019
陈杰
考勤推送修改,绑定关注逻辑
|
19
20
21
|
<resultMap id="ParentMap" type="com.sincere.common.dto.smartCampus.ParentDto">
|
e92e5a92
陶汉栋
增加网关负载
|
22
23
24
25
|
<result column="school_id" property="schoolId"/>
<result column="ParentMobile" property="mobile"/>
</resultMap>
|
02191019
陈杰
考勤推送修改,绑定关注逻辑
|
26
|
<select id="selectNotFollow" parameterType="java.lang.Integer" resultMap="ParentMap">
|
e92e5a92
陶汉栋
增加网关负载
|
27
28
29
30
|
SELECT SZ_V_School_Student.school_id , SZ_V_School_Student.ParentMobile FROM SZ_V_School_Student WHERE not EXISTS
(SELECT NULL
FROM SZ_V_School_Parent
WHERE SZ_V_School_Parent.class_id = SZ_V_School_Student.class_id
|
8e0ce284
陈杰
关注绑定
|
31
|
AND SZ_V_School_Parent.parent_mobile = SZ_V_School_Student.ParentMobile
|
02191019
陈杰
考勤推送修改,绑定关注逻辑
|
32
33
|
)
and school_id = #{schoolId}
|
e92e5a92
陶汉栋
增加网关负载
|
34
35
36
|
</select>
<resultMap id="ParentMap2" type="com.sincere.common.dto.smartCampus.ParentDto">
|
02191019
陈杰
考勤推送修改,绑定关注逻辑
|
37
|
<result column="school_id" property="schoolId"/>
|
8e0ce284
陈杰
关注绑定
|
38
39
40
41
|
<result column="mobile" property="mobile"/>
</resultMap>
<select id="selectNotBind" parameterType="java.util.Map" resultMap="ParentMap2">
SELECT SZ_V_School_Parent.school_id , SZ_V_School_Parent.mobile FROM SZ_V_School_Parent
|
e92e5a92
陶汉栋
增加网关负载
|
42
43
44
45
46
47
48
49
50
|
WHERE school_id = #{schoolId}
<if test="type == 4">
and ( DingUserId is null or DingUserId = '' )
</if>
<if test="type == 5">
and ( QiYeHaoUserId is null or QiYeHaoUserId = '' )
</if>
</select>
</mapper>
|
02191019
陈杰
考勤推送修改,绑定关注逻辑
|
|
|