郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
<?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.gkhy.safePlatform.account.repository.schedule.BreakTimeRuleInfoRepository" >
    <resultMap id="breakTimeRuleMap" type="com.gkhy.safePlatform.account.entity.schedule.BreakTimeRuleInfo">
 
        <result property="id" column="id"></result>
        <result property="name" column="name"></result>
        <result property="info" column="info"></result>
        <result property="type" column="type"></result>
        <result property="rule" column="rule"></result>
        <result property="ruleNumber" column="rule_number"></result>
        <result property="status" column="status"></result>
        <result property="startTime" column="start_time"></result>
        <result property="endTime" column="end_time"></result>
        <result property="gmtCreate" column="gmt_create"></result>
        <result property="gmtCreate" column="gmt_create" />
        <result property="createBy" column="create_by" />
        <result property="createUid" column="create_uid" />
        <result property="gmtModified"  column="gmt_modified"/>
        <result property="editBy"  column="edit_by"/>
        <result property="editUid"  column="edit_uid"/>
 
    </resultMap>
 
 
    <!--查询-->
    <select id="getAllBreakTimeRule" parameterType="com.gkhy.safePlatform.account.entity.schedule.BreakTimeRuleInfo" resultMap="breakTimeRuleMap">
        select
            id,
            name,
            info,
            type,
            rule,
            rule_number,
            status,
            start_time,
            end_time,
            create_by,
            gmt_create,
            create_uid,
            edit_by,
            edit_uid,
            gmt_modified
        from schedule_break_time_rule
        where
            status = #{query.status}
        <if test="query.id != null ">
            and id = #{query.id}
        </if>
        <if test="query.name != null and query.name != ''">
            and name like concat("%",#{query.name},"%")
        </if>
        <if test="query.type != null ">
            and type = #{query.type}
        </if>
    </select>
    <!--删除绑定-->
    <delete id="deleteWtgAprByWorkTimeGroupId" parameterType="java.lang.Long">
        delete from schedule_work_time_group_and_period_relation where  work_time_group_id = #{workTimeGroupId}
    </delete>
 
 
</mapper>