是否忽略员工打卡时的“进/出”方向标识和bug修复
This commit is contained in:
parent
5bcc2e8517
commit
018afbc1e7
@ -30,7 +30,7 @@
|
|||||||
group by a.id
|
group by a.id
|
||||||
</select>
|
</select>
|
||||||
<select id="selectOneWorkerAttendance" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
|
<select id="selectOneWorkerAttendance" resultType="com.zhgd.jeecg.common.mybatis.EntityMap">
|
||||||
SELECT pass_type, create_time
|
SELECT pass_type, create_time, project_sn
|
||||||
FROM worker_attendance
|
FROM worker_attendance
|
||||||
WHERE person_sn = #{personSn}
|
WHERE person_sn = #{personSn}
|
||||||
AND is_statistics = 0
|
AND is_statistics = 0
|
||||||
|
|||||||
@ -11,7 +11,12 @@
|
|||||||
IF(29>DAY(last_day(str_to_date(CONCAT(#{param.monthTime},'-01'),'%Y-%m-%d'))),NULL,day29) day29,
|
IF(29>DAY(last_day(str_to_date(CONCAT(#{param.monthTime},'-01'),'%Y-%m-%d'))),NULL,day29) day29,
|
||||||
IF(30>DAY(last_day(str_to_date(CONCAT(#{param.monthTime},'-01'),'%Y-%m-%d'))),NULL,day30) day30,
|
IF(30>DAY(last_day(str_to_date(CONCAT(#{param.monthTime},'-01'),'%Y-%m-%d'))),NULL,day30) day30,
|
||||||
IF(31>DAY(last_day(str_to_date(CONCAT(#{param.monthTime},'-01'),'%Y-%m-%d'))),NULL,day31) day31
|
IF(31>DAY(last_day(str_to_date(CONCAT(#{param.monthTime},'-01'),'%Y-%m-%d'))),NULL,day31) day31
|
||||||
|
,a.enterprise_id enterprise_id
|
||||||
|
,if(a.person_type=1,b.id,c1.id) dept_id
|
||||||
|
,a.id worker_id
|
||||||
from worker_info a
|
from worker_info a
|
||||||
|
LEFT JOIN team_info b ON a.team_id = b.id and a.person_type=1
|
||||||
|
LEFT JOIN department_info c1 ON a.department_id = c1.id and a.person_type=2
|
||||||
LEFT JOIN worker_month_attendance_statistics c ON a.person_sn=c.person_sn AND c.query_time=#{param.monthTime}
|
LEFT JOIN worker_month_attendance_statistics c ON a.person_sn=c.person_sn AND c.query_time=#{param.monthTime}
|
||||||
where a.project_sn=#{param.projectSn} and a.inService_type=#{param.inserviceType}
|
where a.project_sn=#{param.projectSn} and a.inService_type=#{param.inserviceType}
|
||||||
<if test="param.personType!=null and param.personType!=''">
|
<if test="param.personType!=null and param.personType!=''">
|
||||||
|
|||||||
@ -69,7 +69,9 @@ public class WorkerMonthAttendanceStatisticsServiceImpl extends ServiceImpl<Work
|
|||||||
private GovtOpenApiService govtOpenApiService;
|
private GovtOpenApiService govtOpenApiService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private EnvironmentUtil environmentUtil;
|
private EnvironmentUtil environmentUtil;
|
||||||
|
@Lazy
|
||||||
|
@Autowired
|
||||||
|
private IProjectConfigService projectConfigService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IPage<EntityMap> selectMonthAttendanceByPage(Map<String, Object> map) {
|
public IPage<EntityMap> selectMonthAttendanceByPage(Map<String, Object> map) {
|
||||||
@ -141,7 +143,6 @@ public class WorkerMonthAttendanceStatisticsServiceImpl extends ServiceImpl<Work
|
|||||||
return workerMonthAttendanceStatisticsMapper.getListByProjectSn(projectSn);
|
return workerMonthAttendanceStatisticsMapper.getListByProjectSn(projectSn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void getMonthAttendanceStatistics(String inputTime) {
|
public void getMonthAttendanceStatistics(String inputTime) {
|
||||||
try {
|
try {
|
||||||
@ -531,10 +532,6 @@ public class WorkerMonthAttendanceStatisticsServiceImpl extends ServiceImpl<Work
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Lazy
|
|
||||||
@Autowired
|
|
||||||
private IProjectConfigService projectConfigService;
|
|
||||||
|
|
||||||
//判断考勤情况
|
//判断考勤情况
|
||||||
public Map<String, Integer> getWorkerAttendanceType(String personSn, Long workerAttendanceRuleId, String passTime) {
|
public Map<String, Integer> getWorkerAttendanceType(String personSn, Long workerAttendanceRuleId, String passTime) {
|
||||||
int attendanceType = 0;
|
int attendanceType = 0;
|
||||||
|
|||||||
@ -17,8 +17,8 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ import java.util.*;
|
|||||||
* @create: 2021-11-11 18:48
|
* @create: 2021-11-11 18:48
|
||||||
**/
|
**/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Controller
|
@RestController
|
||||||
@RequestMapping("/xmgl/task/")
|
@RequestMapping("/xmgl/task/")
|
||||||
public class VideoTask {
|
public class VideoTask {
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user