加班管理
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
XaoLi717 2024-11-07 15:25:50 +08:00
parent 4b5a71c17c
commit 681baaa005

View File

@ -101,12 +101,12 @@ public class JbglServiceImpl implements JbglService {
return jbglMapper.selectPage(userid, pageReqVO);
}
@Override
public void updateJbglStatus(Long id, Integer status) {
validateLeaveExists(id);
jbglMapper.updateById(new JbglDO().setId(id).setStatus(status));
}
private void validateLeaveExists(Long id) {
if (jbglMapper.selectById(id) == null) {
throw exception(KNOWLEDGE_NOT_EXISTS);