lrf402788946 před 4 roky
rodič
revize
067756ffbe
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      app/service/attendance.js

+ 3 - 0
app/service/attendance.js

@@ -126,8 +126,10 @@ class AttendanceService extends CrudService {
         studentid: student.id,
       });
       const datetime = sd.format(new Date(), 'YYYY-MM-DD HH:mm');
+      console.log(datetime);
       // TODO 考勤时间没有处理
       const diffres = await this.islate(datetime, setting, type);
+      console.log(diffres);
       if (diffres === 0) {
         throw new BusinessError(
           ErrorCode.BUSINESS,
@@ -140,6 +142,7 @@ class AttendanceService extends CrudService {
         type,
         status: diffres + '',
       };
+      console.log(newData);
       if (attendance) {
         // TODO: 保存数据
         const attends = attendance.attend;