|
@@ -2,9 +2,11 @@ package com.boman.web.core.service.leave;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.boman.common.core.utils.DateUtils;
|
|
|
+import com.boman.web.core.mapper.LeaveMapper;
|
|
|
import com.boman.web.core.service.common.ICommonService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -31,6 +33,9 @@ public class LeaveServiceImpl implements LeaveService {
|
|
|
@Resource
|
|
|
private ICommonService commonService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private LeaveMapper leaveMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 功能描述: 直接查询一年的
|
|
|
*
|
|
@@ -68,6 +73,17 @@ public class LeaveServiceImpl implements LeaveService {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 功能描述: 直接查询一年的
|
|
|
+ *
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Integer statisticLeave() {
|
|
|
+ Integer count = leaveMapper.statisticLeave();
|
|
|
+ return count == null ? 0 : count;
|
|
|
+ }
|
|
|
+
|
|
|
private List<JSONObject> listByTime(String startTime, String endTime) {
|
|
|
JSONObject condition = new JSONObject();
|
|
|
condition.put(LEAVEFROM_START_TIME, startTime);
|