|
|
@@ -168,7 +168,7 @@ public class CorpKfServiceImpl implements CorpKfService {
|
|
|
.eq(CorpKfAccountFollow::getOpenKfId, openKfId)
|
|
|
.le(CorpKfAccountFollow::getStartTime, thisHourDate)
|
|
|
.ge(CorpKfAccountFollow::getEndTime, thisHourDate)
|
|
|
- .apply(String.format(String.format(" JSON_CONTAINS(duty_week,'\"%s\"')", dayOfWeek))));
|
|
|
+ .eq(CorpKfAccountFollow::getDutyWeek, dayOfWeek));
|
|
|
//无需值班
|
|
|
if (corpKfAccountFollows.isEmpty()) {
|
|
|
throw BusinessRuntimeException.getInstance("非值班时间");
|
|
|
@@ -211,7 +211,7 @@ public class CorpKfServiceImpl implements CorpKfService {
|
|
|
.eq(CorpKfAccountFollow::getOpenKfId, openKfId)
|
|
|
.le(CorpKfAccountFollow::getStartTime, thisHourDate)
|
|
|
.ge(CorpKfAccountFollow::getEndTime, thisHourDate)
|
|
|
- .apply(String.format(" JSON_CONTAINS(duty_week,'\"%s\"')", dayOfWeek)));
|
|
|
+ .eq(CorpKfAccountFollow::getDutyWeek, dayOfWeek));
|
|
|
|
|
|
if (corpKfAccountFollows.isEmpty()) {
|
|
|
return Lists.newArrayList();
|