添加全勤
This commit is contained in:
parent
43a67fd17a
commit
0dbe176718
|
|
@ -261,5 +261,5 @@ public interface AttSourceDataDao {
|
|||
*/
|
||||
List<String> getNotFullAtt(String today);
|
||||
|
||||
int updateMonthReportFullAtt(@Param("list") List<String> list, @Param("month") int month);
|
||||
int updateMonthReportFullAtt(@Param("list") List<String> list, @Param("month") String month);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,5 +156,5 @@ public interface AttCalService {
|
|||
* @param list
|
||||
* @param month
|
||||
*/
|
||||
int updateMonthReportFullAtt(List<String> list,int month);
|
||||
int updateMonthReportFullAtt(List<String> list,String month);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -542,7 +542,7 @@ public class AttCalServiceImpl implements AttCalService {
|
|||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int updateMonthReportFullAtt(List<String> list,int month) {
|
||||
public int updateMonthReportFullAtt(List<String> list,String month) {
|
||||
return attSourceDataDao.updateMonthReportFullAtt(list,month);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -181,11 +181,11 @@ public class NewAttTask {
|
|||
@Async
|
||||
public void getMonthReportFullAttTask() {
|
||||
log.info("--------月报表--是否全勤定时器开启------");
|
||||
String today = DateUtil.today();
|
||||
// String today = DateUtil.today();
|
||||
String today = "2025-08-04";
|
||||
List<String> list = attCalService.getNotFullAtt(today);
|
||||
if(!list.isEmpty()){
|
||||
Date now = new Date(); // 当前日期时间
|
||||
int month = DateUtil.month(now) + 1;
|
||||
String month = today.substring(0,7);
|
||||
attCalService.updateMonthReportFullAtt(list,month);
|
||||
}
|
||||
log.info("--------月报表--是否全勤定时器完毕------");
|
||||
|
|
|
|||
|
|
@ -764,7 +764,8 @@ public class ExportFileController {
|
|||
map.put("培训天数", attDayReportList.get(i).getTrainNum());
|
||||
map.put("外勤天数", attDayReportList.get(i).getOutsideAttNum());
|
||||
map.put("考勤天数备注", attDayReportList.get(i).getRequiredDayRemark());
|
||||
map.put("是否全勤", attDayReportList.get(i).getIsFullAtt()==1?"是":"否");
|
||||
double isFullAtt = attDayReportList.get(i).getLateNum() + attDayReportList.get(i).getLateNum() + attDayReportList.get(i).getSkippingNum();
|
||||
map.put("是否全勤", attDayReportList.get(i).getIsFullAtt()==1?(isFullAtt>0?"否":"是"):"否");
|
||||
departmentData1.add(map);
|
||||
}
|
||||
exporter.addDataRows(departmentSheet1, departmentData1, departmentHeaders1);
|
||||
|
|
|
|||
|
|
@ -206,4 +206,7 @@ public class EvectionBean extends BaseBean {
|
|||
|
||||
private String isActive;
|
||||
|
||||
/**是否因公*/
|
||||
private String isBusiness;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue