소스 검색

更新请假修改接口

reloaded 5 년 전
부모
커밋
919d511e20
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/service/leave.js

+ 1 - 0
app/service/leave.js

@@ -46,6 +46,7 @@ class LeaveService extends CrudService {
       leave.reason = reason;
     }
     if (status) {
+      leave.status = status;
       const student = await this.smodel.findById(studentid);
       const remark = '感谢您的使用';
       const stuuser = await this.umodel.findOne({ uid: studentid, type: '4' });