id , uuid , house_id , check_date, check_sign, custodian_sign, remark, pre_window_close, pre_water_clean, doing_weather, doing_window_close, doing_water_clean, doing_water_in, doing_water_in_position, doing_water_in_solution, post_check_date, post_house_temp, post_house_water, post_water_in, post_water_in_position, post_water_in_solution, c_id , c_time , u_id , u_time , version, sync_flag UPDATE windrainsnow_check uuid=#{uuid}, house_id=#{houseId}, check_date=#{checkDate}, check_sign=#{checkSign}, custodian_sign=#{custodianSign}, remark=#{remark}, pre_window_close=#{preWindowClose}, pre_water_clean=#{preWaterClean}, doing_weather=#{doingWeather}, doing_window_close=#{doingWindowClose}, doing_water_clean=#{doingWaterClean}, doing_water_in=#{doingWaterIn}, doing_water_in_position=#{doingWaterInPosition}, doing_water_in_solution=#{doingWaterInSolution}, post_check_date=#{postCheckDate}, post_house_temp=#{postHouseTemp}, post_house_water=#{postHouseWater}, post_water_in=#{postWaterIn}, post_water_in_position=#{postWaterInPosition}, post_water_in_solution=#{postWaterInSolution}, c_id=#{cId}, c_time=#{cTime}, u_id=#{uId}, u_time=#{uTime}, version=#{version} WHERE uuid = #{uuid} INSERT INTO windrainsnow_check id, uuid, house_id, check_date, check_sign, custodian_sign, remark, pre_window_close, pre_water_clean, doing_weather, doing_window_close, doing_water_clean, doing_water_in, doing_water_in_position, doing_water_in_solution, post_check_date, post_house_temp, post_house_water, post_water_in, post_water_in_position, post_water_in_solution, c_id, c_time, u_id, u_time, version #{id}, #{uuid}, #{houseId}, #{checkDate}, #{checkSign}, #{custodianSign}, #{remark}, #{preWindowClose}, #{preWaterClean}, #{doingWeather}, #{doingWindowClose}, #{doingWaterClean}, #{doingWaterIn}, #{doingWaterInPosition}, #{doingWaterInSolution}, #{postCheckDate}, #{postHouseTemp}, #{postHouseWater}, #{postWaterIn}, #{postWaterInPosition}, #{postWaterInSolution}, #{cId}, #{cTime}, #{uId}, #{uTime}, #{version} UPDATE windrainsnow_check id=#{id}, uuid=#{uuid}, house_id=#{houseId}, check_date=#{checkDate}, check_sign=#{checkSign}, custodian_sign=#{custodianSign}, remark=#{remark}, pre_window_close=#{preWindowClose}, pre_water_clean=#{preWaterClean}, doing_weather=#{doingWeather}, doing_window_close=#{doingWindowClose}, doing_water_clean=#{doingWaterClean}, doing_water_in=#{doingWaterIn}, doing_water_in_position=#{doingWaterInPosition}, doing_water_in_solution=#{doingWaterInSolution}, post_check_date=#{postCheckDate}, post_house_temp=#{postHouseTemp}, post_house_water=#{postHouseWater}, post_water_in=#{postWaterIn}, post_water_in_position=#{postWaterInPosition}, post_water_in_solution=#{postWaterInSolution}, c_id=#{cId}, c_time=#{cTime}, u_id=#{uId}, u_time=#{uTime}, version=#{version}, sync_flag=#{syncFlag} WHERE id = #{id} DELETE FROM windrainsnow_check WHERE id=#{id} DELETE FROM windrainsnow_check WHERE house_id = #{houseId} AND post_check_date #{cTime}