|
@@ -392,12 +392,12 @@ public class HmEmployClockService {
|
|
|
return hmEmployClockMapper.updateByExampleSelective(hmEmployClock, example);
|
|
|
}
|
|
|
|
|
|
- public HmEmployClock queryByStateAndDate(Long employRelationId, int state, String date) {
|
|
|
+ public long queryByStateAndDate(Long employRelationId, int state, String date) {
|
|
|
LocalDate localDate = DateTimeUtil.strToLocalDate(date + "-01");
|
|
|
LocalDate firstDayOfMonth = DateTimeUtil.firstDayOfMonth(localDate);
|
|
|
LocalDate lastDayOfMonth = DateTimeUtil.lastDayOfMonth(localDate);
|
|
|
HmEmployClockExample example = new HmEmployClockExample();
|
|
|
example.or().andEmployRelationIdEqualTo(employRelationId).andWorkDataBetween(firstDayOfMonth.atStartOfDay(),lastDayOfMonth.atStartOfDay()).andStatusEqualTo(state);
|
|
|
- return hmEmployClockMapper.selectOneByExample(example);
|
|
|
+ return hmEmployClockMapper.countByExample(example);
|
|
|
}
|
|
|
}
|