Explorar el Código

更新请假修改接口

reloaded hace 5 años
padre
commit
919d511e20
Se han modificado 1 ficheros con 1 adiciones y 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' });