刘俊驰 5 달 전
부모
커밋
19870b4092

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/dao/EmployeeDao.java

@@ -133,5 +133,5 @@ public interface EmployeeDao extends BaseDAO<Long, Employee> {
      */
     int insertSysRole(SysRole sysRole);
 
-    void updateSysUserIdCard(SysUser sysUser);
+    void updateSysUserIdCard(@Param("userId") Long userId, @Param("idCardNo") String idCardNo);
 }

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TeacherServiceImpl.java

@@ -614,7 +614,7 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
         sysUser = getUserDetil(sysUser, teacherSubmitReq);
         sysUser.setUpdateTime(new Date());
         employeeDao.updateSysUser(sysUser);
-        employeeDao.updateSysUserIdCard(sysUser);
+        employeeDao.updateSysUserIdCard(sysUser.getId(),teacherSubmitReq.getIdCardNo());
 
         return sysUser;
     }

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/EmployeeMapper.xml

@@ -331,6 +331,6 @@
     </select>
 
     <update id="updateSysUserIdCard">
-        UPDATE sys_user SET id_card_no_ = #{idCardNo} WHERE id_ = #{id}
+        UPDATE sys_user SET id_card_no_ = #{idCardNo} WHERE id_ = #{userId}
     </update>
 </mapper>