加班管理
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
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:
parent
4b5a71c17c
commit
681baaa005
@ -101,12 +101,12 @@ public class JbglServiceImpl implements JbglService {
|
|||||||
return jbglMapper.selectPage(userid, pageReqVO);
|
return jbglMapper.selectPage(userid, pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateJbglStatus(Long id, Integer status) {
|
public void updateJbglStatus(Long id, Integer status) {
|
||||||
validateLeaveExists(id);
|
validateLeaveExists(id);
|
||||||
jbglMapper.updateById(new JbglDO().setId(id).setStatus(status));
|
jbglMapper.updateById(new JbglDO().setId(id).setStatus(status));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void validateLeaveExists(Long id) {
|
private void validateLeaveExists(Long id) {
|
||||||
if (jbglMapper.selectById(id) == null) {
|
if (jbglMapper.selectById(id) == null) {
|
||||||
throw exception(KNOWLEDGE_NOT_EXISTS);
|
throw exception(KNOWLEDGE_NOT_EXISTS);
|
||||||
|
Loading…
Reference in New Issue
Block a user