1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-06 07:21:24 +08:00

Add employee personal information

This commit is contained in:
GGB
2023-05-28 22:11:30 +08:00
parent f772b39964
commit 11e122df0b
9 changed files with 129 additions and 80 deletions

View File

@@ -36,42 +36,21 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, Work> implements IW
private UserMapper userMapper;
@Override
public List<Work> getAll() {
// List<Work> workList = workMapper.getAll();
// for (Work work:
// workList) {
// work.setProgress(getProgress(work.getId()));
// work.setPublisherName(getUserName(work.getPublisherId()));
// }
return workMapper.getAll();
}
@Override
public List<Work> getTodo(Long userId) {
// List<Work> workList = workMapper.getTodo(userId);
// for (Work work:
// workList) {
// work.setPublisherName(getUserName(work.getPublisherId()));
// }
return workMapper.getTodo(userId);
}
@Override
public List<Work> getCard(Long userId) {
// List<Work> workList = workMapper.getCard(userId);
// for (Work work:
// workList) {
// work.setPublisherName(getUserName(work.getPublisherId()));
// }
return workMapper.getCard(userId);
}
@Override
public List<Work> getComplete(Long userId) {
// List<Work> workList = workMapper.getComplete(userId);
// for (Work work:
// workList) {
// work.setPublisherName(getUserName(work.getPublisherId()));
// }
return workMapper.getComplete(userId);
}
@@ -85,12 +64,6 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, Work> implements IW
@Override
public List<Work> getWorkByContent(String content) {
// List<Work> workList = workMapper.getWorkByContent(content);
// for (Work work:
// workList) {
// work.setProgress(getProgress(work.getId()));
// work.setPublisherName(getUserName(work.getPublisherId()));
// }
return workMapper.getWorkByContent(content);
}