优化补缺
This commit is contained in:
parent
2e17b013ac
commit
66529793f6
|
|
@ -24,6 +24,7 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
import java.time.LocalTime;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Component
|
||||
public class AllocMealtimeApi {
|
||||
|
|
@ -139,8 +140,9 @@ public class AllocMealtimeApi {
|
|||
}
|
||||
}
|
||||
|
||||
RedisUtil.setString(key, JacksonUtil.writeValueAsString(mealtimeList), 1800L);
|
||||
return mealtimeList;
|
||||
List<AllocMealtimeModel> mealtimeList2 = (List)mealtimeList.stream().sorted(Comparator.comparing(AllocMealtimeModel::getMealtimeType)).collect(Collectors.toList());
|
||||
RedisUtil.setString(key, JacksonUtil.writeValueAsString(mealtimeList2), 1800L);
|
||||
return mealtimeList2;
|
||||
}
|
||||
|
||||
public AllocMealtimeModel getUseAssignTimeMealtime(LocalTime assignTime, Long canteenId, Long stallId) {
|
||||
|
|
|
|||
|
|
@ -373,6 +373,7 @@ public class MenuRecipeServiceImpl extends ServiceImpl<MenuRecipeMapper, MenuRec
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void generateRecipe(Long recipeId, LocalDate applyDate) {
|
||||
if (!ObjectUtil.isEmpty(recipeId) && !ObjectUtil.isEmpty(applyDate)) {
|
||||
this.generateRecipe(Collections.singletonList(recipeId), applyDate);
|
||||
|
|
|
|||
Reference in New Issue