Explorar o código

更新请假修改接口

reloaded %!s(int64=5) %!d(string=hai) anos
pai
achega
919d511e20
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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' });