INSERT INTO t_tdgy (id, project_id, srf, tdyt, jswz,
gd_area, gd_type, has_zz, hbcrfapfwh, hbcrhtbh,
hbcrht_date, gd_unit, has_onchain, creator_id,
created_at, updated_at)
VALUES (#{id}, #{projectId}, #{srf}, #{tdyt}, #{jswz},
#{gdArea}, #{gdType}, #{hasZz}, #{hbcrfapfwh}, #{hbcrhtbh},
#{hbcrhtDate}, #{gdUnit}, false, #{creatorId},
now(), now())
UPDATE t_tdgy
project_id = #{projectId},
srf = #{srf},
tdyt = #{tdyt},
jswz = #{jswz},
gd_area = #{gdArea},
gd_type = #{gdType},
has_zz = #{hasZz},
hbcrfapfwh = #{hbcrfapfwh},
hbcrhtbh = #{hbcrhtbh},
hbcrht_date = #{hbcrhtDate},
has_onchain = #{hasOnchain},
gd_unit = #{gdUnit},
updated_at = now()
WHERE id = #{id}
UPDATE t_tdgy
SET has_onchain = #{hasOnchain}, updated_at = now()
WHERE id = #{id}