mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
temp 2023/5/5
This commit is contained in:
@@ -62,6 +62,14 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, Work> implements IW
|
||||
return workList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Work getOne(Long workId) {
|
||||
Work work = workMapper.getWork(workId);
|
||||
work.setProgress(getProgress(workId));
|
||||
work.setPublisherName(getUserName(work.getPublisherId()));
|
||||
return work;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getProgress(Long workId) {
|
||||
double workNum = userWorkMapper.selectCount(new QueryWrapper<UserWork>().eq("work_id",workId));
|
||||
|
||||
Reference in New Issue
Block a user