INSERT INTO kpi_khxz_wgz (
area_id,
community_id,
user_id,
user_username,
kh_year,
kh_month,
B
) VALUES (
#{areaId},
#{communityId},
#{userId},
#{userUsername},
#{khYear},
#{khMonth},
#{B}
)
DELETE FROM
kpi_khxz_wgz
WHERE
kh_year = #{khYear}
AND
kh_month = #{khMonth}
UPDATE
kpi_khxz_wgz
SET
C = #{C},
D = #{D},
E = #{E},
F = #{F},
G = #{G},
H = #{H}
WHERE
kh_year = #{khYear}
AND
kh_month = #{khMonth}
AND
user_id = #{userId}