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
| <?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.CalendarDayMapper">
|
| <delete id="deleteByCalendarId">
| delete
| from blade_production_calendar_day
| where calendar_id = #{id}
| and calendar_date > #{localDate}
| </delete>
|
|
| <insert id="saveBatchDay" parameterType="java.util.List">
| insert into blade_production_calendar_day
| (id,calendar_id,calendar_date,start_time,end_time,model_id,is_deleted,week,month
| ,year,is_high_priority,is_off_day,off_id)
| values
| <foreach collection="list" item="item" index="index" separator=",">
| (
| #{item.id},
| #{item.calendarId},
| #{item.calendarDate},
| #{item.startTime},
| #{item.endTime},
| #{item.modelId},
| #{item.isDeleted},
| #{item.week},
| #{item.month},
| #{item.year},
| #{item.isHighPriority},
| #{item.isOffDay},
| #{item.offId}
| )
| </foreach>
|
| </insert>
| </mapper>
|
|