select id, staff_id, dept_id, name, month, breakfast_expend, breakfast_number, breakfast_pre_sum_expend, breakfast_sum_expend, lunch_expend, lunch_number, lunch_pre_sum_expend, lunch_sum_expend, supper_expend, supper_number, supper_pre_sum_expend, supper_sum_expend, personal_sum_consumption, sum_consumption, remarks, del_flag, create_by, create_time, update_by, update_time from rz_restaurant_statistics
select id,statistics_id, create_time, date_time, name, shang_ban, xia_ban, duration, breakfast_number, breakfast_subsidy, breakfast_personal_consumption, breakfast_sum_consumption, lunch_number, lunch_subsidy, lunch_presonal_consumption, lunch_sum_consumption, supper_number, supper_subsidy, supper_personal_consumption, supper_sum_consumption, sum_subsidy, personal_sum_consumption, sum_consumption, spared_one, spared_two, spared_three, spared_four from cy_consumption_info
insert into rz_restaurant_statistics
staff_id,
dept_id,
name,
month,
breakfast_expend,
breakfast_number,
breakfast_pre_sum_expend,
breakfast_sum_expend,
lunch_expend,
lunch_number,
lunch_pre_sum_expend,
lunch_sum_expend,
supper_expend,
supper_number,
supper_pre_sum_expend,
supper_sum_expend,
personal_sum_consumption,
sum_consumption,
remarks,
del_flag,
create_by,
create_time,
update_by,
update_time,
#{staffId},
#{deptId},
#{name},
#{month},
#{breakfastExpend},
#{breakfastNumber},
#{breakfastPreSumExpend},
#{breakfastSumExpend},
#{lunchExpend},
#{lunchNumber},
#{lunchPreSumExpend},
#{lunchSumExpend},
#{supperExpend},
#{supperNumber},
#{supperPreSumExpend},
#{supperSumExpend},
#{personalSumConsumption},
#{sumConsumption},
#{remarks},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update rz_restaurant_statistics
staff_id = #{staffId},
dept_id = #{deptId},
name = #{name},
month = #{month},
breakfast_expend = #{breakfastExpend},
breakfast_number = #{breakfastNumber},
breakfast_pre_sum_expend = #{breakfastPreSumExpend},
breakfast_sum_expend = #{breakfastSumExpend},
lunch_expend = #{lunchExpend},
lunch_number = #{lunchNumber},
lunch_pre_sum_expend = #{lunchPreSumExpend},
lunch_sum_expend = #{lunchSumExpend},
supper_expend = #{supperExpend},
supper_number = #{supperNumber},
supper_pre_sum_expend = #{supperPreSumExpend},
supper_sum_expend = #{supperSumExpend},
personal_sum_consumption = #{personalSumConsumption},
sum_consumption = #{sumConsumption},
remarks = #{remarks},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}