select plan_id, plan_code, plan_name,calendar_type, start_date, end_date, shift_type, shift_method, shift_count,status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from cal_plan
insert into cal_plan
plan_code,
plan_name,
calendar_type,
start_date,
end_date,
shift_type,
shift_method,
shift_count,
status,
remark,
attr1,
attr2,
attr3,
attr4,
create_by,
create_time,
update_by,
update_time,
#{planCode},
#{planName},
#{calendarType},
#{startDate},
#{endDate},
#{shiftType},
#{shiftMethod},
#{shiftCount},
#{status},
#{remark},
#{attr1},
#{attr2},
#{attr3},
#{attr4},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update cal_plan
plan_code = #{planCode},
plan_name = #{planName},
calendar_type = #{calendarType},
start_date = #{startDate},
end_date = #{endDate},
shift_type = #{shiftType},
shift_method = #{shiftMethod},
shift_count = #{shiftCount},
status = #{status},
remark = #{remark},
attr1 = #{attr1},
attr2 = #{attr2},
attr3 = #{attr3},
attr4 = #{attr4},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where plan_id = #{planId}
delete from cal_plan where plan_id = #{planId}
delete from cal_plan where plan_id in
#{planId}