rjuq whnt
This commit is contained in:
parent
6fb5648523
commit
080900fe49
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -5,4 +5,5 @@ import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class TaskCommentDto extends TaskComment {
|
||||
private int isSelf;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user