修改假期,节假日定时器
This commit is contained in:
parent
c800cdaeca
commit
7fb6106716
|
|
@ -35,7 +35,7 @@ public class HolidayTasks {
|
|||
@Resource(name = "OrgChangeService")
|
||||
private OrgChangeService orgChangeService;
|
||||
|
||||
@Scheduled(cron = "0 0 5 26 12 *")//每天12月26日凌晨5点
|
||||
@Scheduled(cron = "0 0 5 26 11 *")//每天12月26日凌晨5点
|
||||
@Async
|
||||
public void getAttTasks(){
|
||||
getHoliday();
|
||||
|
|
|
|||
|
|
@ -47,10 +47,10 @@
|
|||
|
||||
<select id="selectAttAllList" resultType="com.bonus.system.att.entity.AttDetailByMonthBean">
|
||||
select
|
||||
user_id as userId,
|
||||
name as name,
|
||||
org_id as orgId,
|
||||
org_name as orgName,
|
||||
amr.user_id as userId,
|
||||
amr.name as name,
|
||||
amr.org_id as orgId,
|
||||
amr.org_name as orgName,
|
||||
att_current_month as attCurrentMonth,
|
||||
coalesce(required_days,0) as requiredDays,
|
||||
coalesce(normal_num,0) as normalNum,
|
||||
|
|
@ -61,7 +61,8 @@
|
|||
coalesce(address_error_num,0) as addressErrorNum,
|
||||
coalesce(ein_error_num,0) as einErrorNum
|
||||
from att_month_report amr
|
||||
where amr.is_active = 1
|
||||
left join att_group_person_relation p on p.user_id = amr.user_id
|
||||
where amr.is_active = 1 and p.is_active = 1
|
||||
and amr.required_days != amr.normal_num
|
||||
<if test="bean.attCurrentMonth != null and bean.attCurrentMonth != '' ">
|
||||
and amr.att_current_month = #{bean.attCurrentMonth}
|
||||
|
|
@ -83,7 +84,7 @@
|
|||
</foreach>
|
||||
)
|
||||
</if>
|
||||
group by user_id
|
||||
group by amr.user_id
|
||||
</select>
|
||||
|
||||
<select id="getOrgParentId" resultType="com.bonus.system.basic.domain.SysOrg">
|
||||
|
|
|
|||
|
|
@ -155,14 +155,11 @@
|
|||
att_range,
|
||||
so.lon,
|
||||
so.lat
|
||||
FROM
|
||||
att_group_person_relation ag
|
||||
LEFT JOIN sys_organization so ON so.id = ag.org_id
|
||||
LEFT JOIN att_group_setting agt on agt.group_id = ag.group_id and agt.is_active = '1'
|
||||
AND so.is_active = '1'
|
||||
WHERE
|
||||
ag.is_active = '1'
|
||||
AND ag.user_id = #{userId}
|
||||
FROM att_group_person_relation ag
|
||||
LEFT JOIN sys_organization so ON so.id = ag.org_id
|
||||
LEFT JOIN att_group_setting agt on agt.group_id = ag.group_id and agt.is_active = '1'
|
||||
AND so.is_active = '1'
|
||||
WHERE ag.user_id = #{userId}
|
||||
limit 1
|
||||
</select>
|
||||
<select id="getWebLeaveList" resultType="com.bonus.system.evection.entity.EvectionBean">
|
||||
|
|
|
|||
Loading…
Reference in New Issue