anderx 2 роки тому
батько
коміт
e41abde981

+ 1 - 1
ruoyi-admin/src/main/resources/application.yml

@@ -67,7 +67,7 @@ spring:
   devtools:
     restart:
       # 热部署开关
-      enabled: true
+      enabled: false
   # redis 配置
   redis:
     # 地址

+ 2 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java

@@ -321,10 +321,11 @@ public class SysUserServiceImpl implements ISysUserService
 
     private void updateUserName(SysUser user) {
         SysUser sysUser = userMapper.selectUserById(user.getUserId());
-        if (!sysUser.getNickName().equals(user.getUserName())){
+        if (!sysUser.getNickName().equals(user.getNickName())){
             //修改所有名字
             projectStaffMapper.updateNameByAid(user);
             projectStaffRecordMapper.updateNameByAid(user);
+//            projectStaffRecordMapper.updateExamineName(user);
             List<ProjectStaff> projectStaffs = projectStaffMapper.selectByAid(user.getUserId());
             for (ProjectStaff projectStaff : projectStaffs) {
                 projectTaskMapper.updateStaffName(projectStaff.getPid());

+ 1 - 1
ruoyi-system/src/main/resources/mapper/project/ProjectStaffRecordMapper.xml

@@ -275,7 +275,7 @@
 
   <update id="updateNameByAid" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
     update project_staff_record
-    set admin_name= #{nickName}
+    set name= #{nickName}
     where aid= #{userId}
   </update>