fuxubing 3 éve
szülő
commit
56e545cad3

+ 2 - 2
jz-crm-service/src/main/java/org/linlinjava/jz/service/HmEmployClockService.java

@@ -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);
     }
 }