INSERT INTO sys_user_expand (
user_id,
price_additional_pkg,
price_additional_video_demo,
price_additional_urgent,
price_all,
price_material,
price_material_agent,
price_material_agent_urgent,
available_proj_type,
postpaid,
postpaid_count,
free_proj_count,
correction_count
) VALUES (
#{userId},
#{priceAdditionalPkg},
#{priceAdditionalVideoDemo},
#{priceAdditionalUrgent},
#{priceAll},
#{priceMaterial},
#{priceMaterialAgent},
#{priceMaterialAgentUrgent},
#{availableProjType},
#{postpaid},
#{postpaidCount},
#{freeProjCount},
#{correctionCount}
)
UPDATE
sys_user_expand
SET
price_additional_pkg = #{priceAdditionalPkg},
price_additional_video_demo = #{priceAdditionalVideoDemo},
price_additional_urgent = #{priceAdditionalUrgent},
price_all = #{priceAll},
price_material = #{priceMaterial},
price_material_agent = #{priceMaterialAgent},
price_material_agent_urgent = #{priceMaterialAgentUrgent},
available_proj_type = #{availableProjType},
postpaid = #{postpaid},
postpaid_count = #{postpaidCount},
free_proj_count = #{freeProjCount},
correction_count = #{correctionCount}
WHERE
user_id = #{userId}