rjuq whnt

This commit is contained in:
quyixiao 2020-12-10 09:56:39 +08:00
parent 6fb5648523
commit 080900fe49
3 changed files with 7 additions and 0 deletions

View File

@ -269,6 +269,9 @@ public class StaffRoleController extends AbstractController {
//http://localhost:8080/lz_management/user/lzstaffrole/comment/list?detailId=4917&pageSize=2
@RequestMapping("/comment/list")
public R commentList(TaskModel taskModel) {
if(taskModel.getStaffId() == null && getUser()!=null && getUserId() !=null){
taskModel.setStaffId(getUserId());
}
return staffRoleService.commentList(taskModel);
}

View File

@ -5,4 +5,5 @@ import lombok.Data;
@Data
public class TaskCommentDto extends TaskComment {
private int isSelf;
}

View File

@ -655,6 +655,9 @@ public class StaffRoleServiceImpl extends ServiceImpl<StaffRoleMapper, StaffRole
for (TaskComment taskComment : taskComments) {
TaskCommentDto taskCommentDto = new TaskCommentDto();
BeanUtils.copyProperties(taskComment, taskCommentDto);
if(taskComment.getStaffId().equals(taskModel.getStaffId())){
taskCommentDto.setIsSelf(1);
}
taskCommentDtoList.add(taskCommentDto);
}
pageUtils.setList(taskCommentDtoList);