浏览代码

Merge remote-tracking branch 'origin/online1' into online1

Joburgess 4 年之前
父节点
当前提交
b47667f7e5

+ 14 - 14
mec-auth/mec-auth-server/src/main/resources/config/mybatis/SysUserMapper.xml

@@ -91,25 +91,25 @@
             <if test="delFlag != null">
                 del_flag_ = #{delFlag, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
             </if>
-            <if test="wxOpenid != null">
+            <if test="wxOpenid != null and wxOpenid != ''">
                 wx_openid_ = #{wxOpenid},
             </if>
-            <if test="avatar != null">
+            <if test="avatar != null and avatar != ''">
                 avatar_ = #{avatar},
             </if>
-            <if test="email != null">
+            <if test="email != null and email != ''">
                 email_ = #{email},
             </if>
             <if test="gender != null">
                 gender_ = #{gender},
             </if>
-            <if test="salt != null">
+            <if test="salt != null and salt != ''">
                 salt_ = #{salt},
             </if>
-            <if test="username != null">
+            <if test="username != null and username != ''">
                 username_ = #{username},
             </if>
-            <if test="userType != null">
+            <if test="userType != null and userType != ''">
                 user_type_ = #{userType},
             </if>
             <if test="updateTime != null">
@@ -121,31 +121,31 @@
             <if test="birthdate != null">
                 birthdate_ = #{birthdate},
             </if>
-            <if test="phone != null">
+            <if test="phone != null and phone != ''">
                 phone_ = #{phone},
             </if>
-            <if test="qqOpenid != null">
+            <if test="qqOpenid != null and qqOpenid != ''">
                 qq_openid_ = #{qqOpenid},
             </if>
-            <if test="nation != null">
+            <if test="nation != null and nation != ''">
                 nation_ = #{nation},
             </if>
             <if test="organId != null">
                 organ_id_ = #{organId},
             </if>
-            <if test="imToken != null">
+            <if test="imToken != null and imToken != ''">
                 im_token_ = #{imToken},
             </if>
-            <if test="idCardNo != null">
+            <if test="idCardNo != null and idCardNo != ''">
                 id_card_no_ = #{idCardNo},
             </if>
-            <if test="password != null">
+            <if test="password != null and password != ''">
                 password_ = #{password},
             </if>
-            <if test="wechatId != null">
+            <if test="wechatId != null and wechatId != ''">
                 wechat_id_ = #{wechatId},
             </if>
-            <if test="realName != null">
+            <if test="realName != null and realName != ''">
                 real_name_ = #{realName},
             </if>
             <if test="isSuperAdmin != null">

+ 1 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentManageServiceImpl.java

@@ -524,6 +524,7 @@ public class StudentManageServiceImpl implements StudentManageService {
         if (sysUser1 != null && !userId.equals(sysUser1.getId())) {
             throw new BizException("手机号已被占用");
         }
+        student.setUserType(sysUser1.getUserType());
         sysUserFeignService.updateSysUser(student);
 
         student.setUserId(student.getId());