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
| <?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.qianwen.smartman.modules.smis.mapper.CalendarDaytimeMapper">
|
| <insert id="saveBatchDaytime" parameterType="java.util.List">
| insert into blade_production_calendar_daytime
| (id,calendar_id,calendar_day_id,calendar_date,start_time,end_time,shift_index,shift_type,week,month ,year
| ,create_time,create_user,is_high_priority,is_undefined)
| values
| <foreach collection="list" item="item" index="index" separator=",">
| (
| #{item.id},
| #{item.calendarId},
| #{item.calendarDayId},
| #{item.calendarDate},
| #{item.startTime},
| #{item.endTime},
| #{item.shiftIndex},
| #{item.shiftType},
| #{item.week},
| #{item.month},
| #{item.year},
| #{item.createTime},
| #{item.createUser},
| #{item.isHighPriority},
| #{item.isUndefined}
| )
| </foreach>
|
| </insert>
|
| <delete id="deleteByCalendarId">
| delete
| from blade_production_calendar_daytime
| where calendar_id = #{id}
| and calendar_date > #{localDate}
| </delete>
|
| <delete id="deleteByCalendarDate">
| delete
| from blade_production_calendar_daytime
| where calendar_date = #{localDate}
| and calendar_id = #{calendarId}
| </delete>
| </mapper>
|
|