month_award
id,
year_month,month_manure_total,month_award_pool,month_manure_award,month_gold_award,month_farmer_award,
month_forest_start_award,month_partner_award,create_time,update_time
#{yearMonth},#{monthManureTotal},#{monthAwardPool},#{monthManureAward},#{monthGoldAward},#{monthFarmerAward},
#{monthForestStartAward}, #{monthPartnerAward},now(),now()
year_month =#{yearMonth},
month_manure_total = #{monthManureTotal},
month_award_pool = #{monthAwardPool},
month_manure_award =#{monthManureAward},
month_gold_award =#{monthGoldAward},
month_farmer_award =#{monthFarmerAward},
month_forest_start_award =#{monthForestStartAward},
month_partner_award =#{monthPartnerAward},
update_time =now()
id = #{id}
and year_month =#{yearMonth}
and month_manure_total = #{monthManureTotal}
and month_award_pool = #{monthAwardPool}
and month_manure_award =#{monthManureAward}
and month_gold_award =#{monthGoldAward}
and month_farmer_award =#{monthFarmerAward}
and month_forest_start_award =#{monthForestStartAward}
and month_partner_award =#{monthPartnerAward}
and create_time >= #{createTime}
and #{updateTime} >= update_time
insert into
()
value(
)
UPDATE
id = #{id}
delete from
where id = #{id}