bug修改

This commit is contained in:
jjLv 2025-09-11 16:58:44 +08:00
parent fcb195e1f4
commit 2f8f31202d
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ public class DataScreeningServiceImpl implements DataScreeningService {
case DISH:
//查询所有绑定的菜谱
List<String> recipeIds = mapper.selectAllRecipeIds();
if(recipeIds.isEmpty()){
SingleModelVO singleModelVO = new SingleModelVO();
singleModelVO.setNum(BigDecimal.ZERO);
return singleModelVO;
}
return mapper.selectDish(date,recipeIds);
default:
return new SingleModelVO();