parent
81e7dd0329
commit
588098c00a
|
|
@ -280,4 +280,20 @@ public class AttendanceDetailsController extends BaseController {
|
|||
}
|
||||
return getDataTableError(new ArrayList<>());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取数据看板-详细记录
|
||||
*/
|
||||
@GetMapping("/getAttDayReportDetailsListData")
|
||||
@Log(title = "数据看板->数据看板-> 今日异常统计", businessType = BusinessType.QUERY)
|
||||
public TableDataInfo getAttDayReportDetailsListData(AttDataDetailsBean bean) {
|
||||
try{
|
||||
startPage();
|
||||
return getDataTable(attendanceDetailsService.getAttDayReportDetailsListData(bean));
|
||||
}catch (Exception e){
|
||||
log.error(e.toString(),e);
|
||||
}
|
||||
return getDataTableError(new ArrayList<>());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,4 +86,6 @@ public interface AttendanceDetailsDao {
|
|||
List<AttDataDetailsBean> getOutCountList(AttDataDetailsBean bean);
|
||||
|
||||
List<AttDataDetailsBean> getAttDayList(AttDataDetailsBean bean);
|
||||
|
||||
List<AttDataDetailsBean> getAttDayReportDetailsListData(AttDataDetailsBean bean);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,6 +95,8 @@ public interface AttendanceDetailsService {
|
|||
* @return list bean
|
||||
*/
|
||||
List<AttDataDetailsBean> getAttDayReportDetailsList(AttDataDetailsBean bean);
|
||||
|
||||
List<AttDataDetailsBean> getAttDayReportDetailsListData(AttDataDetailsBean bean);
|
||||
|
||||
List<AttDataDetailsBean> getOutCountList(AttDataDetailsBean bean);
|
||||
|
||||
|
|
|
|||
|
|
@ -166,6 +166,11 @@ public class AttendanceDetailsServiceImpl implements AttendanceDetailsService {
|
|||
return attendanceDetailsDao.getAttDayReportDetailsList(bean);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AttDataDetailsBean> getAttDayReportDetailsListData(AttDataDetailsBean bean) {
|
||||
return attendanceDetailsDao.getAttDayReportDetailsListData(bean);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AttDataDetailsBean> getOutCountList(AttDataDetailsBean bean) {
|
||||
return attendanceDetailsDao.getOutCountList(bean);
|
||||
|
|
|
|||
|
|
@ -257,6 +257,34 @@
|
|||
</if>
|
||||
GROUP BY agpr.user_id
|
||||
</select>
|
||||
<select id="getAttDayReportDetailsListData" resultType="com.bonus.system.att.entity.AttDataDetailsBean">
|
||||
select su.user_name, so.org_name, v.* from v_att_update_data v
|
||||
left join sys_user su on su.user_id = v.user_id
|
||||
left join sys_organization so on so.id = v.org_id
|
||||
<where>
|
||||
<if test="attCurrentDay != null and attCurrentDay != ''">
|
||||
AND att_current_day = #{attCurrentDay}
|
||||
</if>
|
||||
<if test="startDate != null and startDate != ''">
|
||||
AND att_current_day between #{startDate} AND #{endDate}
|
||||
</if>
|
||||
<if test='attStatus != null and attStatus == "6"'>
|
||||
and (toWorkAttStatus in (12,13,14,15,16,17,18,19) or offWorkAttStatus in (12,13,14,15,16,17,18,19))
|
||||
</if>
|
||||
<if test='attStatus != null and attStatus != "6"'>
|
||||
<if test='attStatus == "1"'>
|
||||
and ( toWorkAttStatus = #{attStatus} or offWorkAttStatus = #{attStatus} )
|
||||
</if>
|
||||
<if test='attStatus != "1"'>
|
||||
and ( toWorkAttStatus = #{attStatus} or offWorkAttStatus = #{attStatus} )
|
||||
</if>
|
||||
</if>
|
||||
<if test="userName != null and userName != ''">
|
||||
AND su.user_name like concat('%', #{userName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY att_current_day DESC
|
||||
</select>
|
||||
|
||||
|
||||
<update id="updateAttDetailsData">
|
||||
|
|
|
|||
Loading…
Reference in New Issue