insert into gzpt_user_info (id,user_name,sex,logincode,CARTYPE,PASSWORD,PHOTO
,NICKNAME,APPTYPE,CRDATE,pxjd,MN_STATUS,EDU_STATUS)
VALUES (seq_gzpt_user_info.nextval, #{userName},
#{sex},
#{logincode},
#{cartype},
#{password},
#{photo},
#{nickname},
#{apptype,jdbcType=VARCHAR},
#{crdate},
#{pxjd,jdbcType=NUMERIC},
#{mnStatus,jdbcType=NUMERIC},
#{eduStatus,jdbcType=NUMERIC})
update gzpt_user_info set is_bind_coach = 1 where out_id = #{outId,jdbcType=NUMERIC}
update gzpt_user_info set open_id = #{openid,jdbcType=VARCHAR} where id = (select max(id) from gzpt_user_info g where g.logincode=#{logincode,jdbcType=VARCHAR} and g.password=#{password,jdbcType=VARCHAR})