|
|
@@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isNeedRegisterMember" column="is_need_register_member" />
|
|
|
<result property="isAllowedAllRegister" column="is_allowed_all_register" />
|
|
|
<result property="doctorId" column="doctor_id" />
|
|
|
+ <result property="mpOpenId" column="mp_open_id" />
|
|
|
<association property="dept" column="dept_id" javaType="CompanyDept" resultMap="deptResult" />
|
|
|
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
|
|
</resultMap>
|
|
|
@@ -230,6 +231,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="addressId != null">address_id,</if>
|
|
|
<if test="domain != null">domain,</if>
|
|
|
<if test="isAudit != null">`is_audit`,</if>
|
|
|
+ <if test="mpOpenId != null">`mp_open_id`,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
@@ -263,6 +265,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="addressId != null">#{addressId},</if>
|
|
|
<if test="domain != null">#{domain},</if>
|
|
|
<if test="isAudit != null">#{isAudit},</if>
|
|
|
+ <if test="mpOpenId != null">#{mpOpenId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<insert id="insertQwIpadTotal">
|
|
|
@@ -308,6 +311,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="domain != null">domain = #{domain},</if>
|
|
|
<if test="isAudit != null">`is_audit` = #{isAudit},</if>
|
|
|
<if test="doctorId != null">`doctor_id` = #{doctorId},</if>
|
|
|
+ <if test="mpOpenId != null">`mp_open_id` = #{mpOpenId},</if>
|
|
|
</trim>
|
|
|
where user_id = #{userId}
|
|
|
</update>
|
|
|
@@ -344,6 +348,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isAudit != null">`is_audit` = #{isAudit},</if>
|
|
|
<if test="addressId != null">`address_id` = #{addressId},</if>
|
|
|
<if test="maOpenId != null">`ma_open_id` = #{maOpenId},</if>
|
|
|
+ <if test="mpOpenId != null">`mp_open_id` = #{mpOpenId},</if>
|
|
|
</trim>
|
|
|
where company_id = #{companyId}
|
|
|
</update>
|
|
|
@@ -426,7 +431,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectCompanyUserByPhone" resultType="com.fs.company.domain.CompanyUser">
|
|
|
- select user_id, dept_id, user_name, nick_name, user_type, email, phonenumber, sex, avatar, password, status, del_flag, login_ip, login_date, create_by, create_time, update_by, update_time, remark, open_id, id_card, company_id, qr_code_weixin, qr_code_wecom, jpush_id, qw_user_id, qw_status, voice_print_url, address_id, `domain`, parent_id, bind_code from company_user where phonenumber=#{phone} and del_flag=0
|
|
|
+ select user_id, dept_id, user_name, nick_name, user_type, email, phonenumber, sex, avatar, password, status, del_flag, login_ip, login_date, create_by, create_time, update_by, update_time, remark, open_id, id_card, company_id, qr_code_weixin, qr_code_wecom, jpush_id, qw_user_id, qw_status, voice_print_url, address_id, `domain`, parent_id, bind_code,mp_open_id from company_user where phonenumber=#{phone} and del_flag=0
|
|
|
</select>
|
|
|
|
|
|
|