<!-- 批量新增 -->
<insert id="batchInsert" parameterType="list">
insert into accept_dept
(parent_id,dept_code, dept_name)
values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item.parentId}, #{item.deptCode},#{item.deptName}
)
</foreach>
</insert>
# 新增字段
ALTER TABLE `activity_gift_config` ADD `start_time` datetime DEFAULT NULL COMMENT '领取开始时间';
ALTER TABLE `activity_gift_config` ADD `end_time` datetime DEFAULT NULL COMMENT '领取结束时间';