Commit dc7b77a4 authored by 温志超's avatar 温志超

更改用户复制BUG

parent 3cc641d9
...@@ -876,7 +876,6 @@ public class ProTaskServiceImpl implements IProTaskService { ...@@ -876,7 +876,6 @@ public class ProTaskServiceImpl implements IProTaskService {
feedback.setWorkstationId(DataUtil.repliceData(feedback.getWorkstationId(), workstation.getWorkstationId())); feedback.setWorkstationId(DataUtil.repliceData(feedback.getWorkstationId(), workstation.getWorkstationId()));
feedback.setFeedbackType("SELF"); feedback.setFeedbackType("SELF");
feedback.setWorkunitId(taskWorkunit.getWorkunitId()); feedback.setWorkunitId(taskWorkunit.getWorkunitId());
feedback.setNickName(sysUserMapper.selectUserById(SecurityUtils.getUserId()).getNickName());
//暂停更新记录 //暂停更新记录
if (Objects.equals(taskWorkunit.getStatus(), FINISHED.getStatus())) { if (Objects.equals(taskWorkunit.getStatus(), FINISHED.getStatus())) {
......
...@@ -136,7 +136,7 @@ public interface SysUserMapper { ...@@ -136,7 +136,7 @@ public interface SysUserMapper {
@Select(value = "select * from sys_user ${ew.customSqlSegment}") @Select(value = "select * from sys_user ${ew.customSqlSegment}")
List<SysUser> selectListByQw(@Param("ew") QueryWrapper<SysUser> user); List<SysUser> selectListByQw(@Param("ew") QueryWrapper<SysUser> user);
void batchWorkunitWorker(@Param("copiedUserId")Long copiedUserId, @Param("userId")Long userId, @Param("username")String username); void batchWorkunitWorker(@Param("copiedUserId")Long copiedUserId, @Param("userId")Long userId,@Param("userName")String userName,@Param("nickName")String nickName, @Param("createName")String createName);
void deleteWorkunitWorkerByUserIds(@Param("userIds")List<Long> userIds); void deleteWorkunitWorkerByUserIds(@Param("userIds")List<Long> userIds);
......
...@@ -603,7 +603,8 @@ public class SysUserServiceImpl implements ISysUserService { ...@@ -603,7 +603,8 @@ public class SysUserServiceImpl implements ISysUserService {
//批量插入岗位资源 //批量插入岗位资源
userMapper.deleteWorkunitWorkerByUserIds(userIds); userMapper.deleteWorkunitWorkerByUserIds(userIds);
for (Long userId : userIds){ for (Long userId : userIds){
userMapper.batchWorkunitWorker(copiedUserId,userId,SecurityUtils.getUsername()); SysUser sysUserCopy = userMapper.selectUserById(userId);
userMapper.batchWorkunitWorker(copiedUserId,userId,sysUserCopy.getUserName(),sysUserCopy.getNickName(),SecurityUtils.getUsername());
} }
} }
......
...@@ -242,10 +242,10 @@ ...@@ -242,10 +242,10 @@
post_id , post_id ,
post_name, post_name,
#{userId}, #{userId},
user_name, #{userName},
nick_name, #{nickName},
remark, remark,
#{username}, #{createName},
now() from md_workunit_worker where user_id = #{copiedUserId} now() from md_workunit_worker where user_id = #{copiedUserId}
</insert> </insert>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment