INSERT INTO kpi_community_boss_${level}_day_count( user_id, day_date, is_signin, is_signin_late, is_signout, is_signout_early, work_distance, population_count, save_population_count, update_population_count ) VALUES ( #{userId}, #{dayDate}, #{isSignin}, #{isSigninLate}, #{isSignout}, #{isSignoutEarly}, #{workDistance}, #{populationCount}, #{savePopulationCount}, #{updatePopulationCount} ) DELETE FROM kpi_community_boss_${level}_day_count WHERE day_date = #{dayDate} UPDATE kpi_community_boss_${level}_day_count SET is_signin = #{isSignin}, is_signin_late = #{isSigninLate}, is_signout = #{isSignout}, is_signout_early = #{isSignoutEarly}, work_distance = #{workDistance}, save_population_count = #{savePopulationCount}, update_population_count = #{updatePopulationCount} WHERE user_id = #{userId} AND day_date = #{dayDate}