|
@@ -11,6 +11,7 @@ import com.boman.domain.constant.FormDataConstant;
|
|
import com.boman.domain.dto.AjaxResult;
|
|
import com.boman.domain.dto.AjaxResult;
|
|
import com.boman.domain.dto.ClockOnDto;
|
|
import com.boman.domain.dto.ClockOnDto;
|
|
import com.boman.domain.dto.FormDataDto;
|
|
import com.boman.domain.dto.FormDataDto;
|
|
|
|
+import com.boman.web.core.mapper.StandardlyMapper;
|
|
import com.boman.web.core.service.TableServiceCmdService;
|
|
import com.boman.web.core.service.TableServiceCmdService;
|
|
import com.boman.web.core.service.attendance.rules.AttendanceRulesService;
|
|
import com.boman.web.core.service.attendance.rules.AttendanceRulesService;
|
|
import com.boman.web.core.service.common.ICommonService;
|
|
import com.boman.web.core.service.common.ICommonService;
|
|
@@ -19,6 +20,7 @@ import com.boman.web.core.utils.AuthUtils;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -54,6 +56,8 @@ public class AttendanceServiceImpl implements AttendanceService {
|
|
private TableServiceCmdService cmdService;
|
|
private TableServiceCmdService cmdService;
|
|
@Resource
|
|
@Resource
|
|
private IBaseSelectService selectService;
|
|
private IBaseSelectService selectService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private StandardlyMapper standardlyMapper;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 功能描述: 根据tableName和userId查找当月考勤
|
|
* 功能描述: 根据tableName和userId查找当月考勤
|
|
@@ -295,6 +299,29 @@ public class AttendanceServiceImpl implements AttendanceService {
|
|
return commitData;
|
|
return commitData;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 按月统计人员考勤信息
|
|
|
|
+ * @param date
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public AjaxResult statisticsByMonth(String date) {
|
|
|
|
+ List<JSONObject> jsonObjects = standardlyMapper.statisticsByMonth(date);
|
|
|
|
+ return AjaxResult.success(jsonObjects);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询用户某月的上班打卡时间
|
|
|
|
+ * @param date
|
|
|
|
+ * @param userId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public AjaxResult findDate(String date, Long userId) {
|
|
|
|
+ List<JSONObject> jsonObjects= standardlyMapper.findDate(date, userId);
|
|
|
|
+ return AjaxResult.success(jsonObjects);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 功能描述: 保存打卡信息
|
|
* 功能描述: 保存打卡信息
|
|
*
|
|
*
|