INSERT INTO t_user ( user_id, user_name, password, random, public_key, private_key, organization_name, person_name ) VALUES (#{item.user_id}, #{item.user_name}, #{item.password}, #{item.random}, #{item.public_key}, #{item.private_key}, #{item.organization_name}, #{item.person_name}) insert into t_user(user_id,account,password,person_name,random,public_key,private_key,account_balance,create_time,update_time)values(#{user_id},#{account},#{password},#{person_name},#{random},#{public_key},#{private_key},#{account_balance},#{create_time},#{update_time}); insert into user_role(user_id,role_id)values(#{user_id},#{role_id}); update t_user set account = #{account},password = #{password},person_name = #{person_name},account_balance = #{account_balance},update_time = #{update_time} where user_id = #{user_id}; update user_role set role_id = #{role_id} where user_id = #{user_id};