i国网:一周菜谱

This commit is contained in:
sxu 2025-07-08 14:30:26 +08:00
parent 9a35ef9a9d
commit aba688fd61
2 changed files with 6 additions and 3 deletions

View File

@ -7,8 +7,8 @@ import java.time.LocalDate;
@Data
public class WeekRecipeDTO {
@ApiModelProperty(value = "食堂id")
private Long canteenId;
// @ApiModelProperty(value = "食堂id")
// private Long canteenId;
@ApiModelProperty(value = "菜单日期")
@JsonFormat(pattern = "yyyy-MM-dd")

View File

@ -11,6 +11,7 @@ import com.bonus.canteen.core.zhhq.mapper.ZhhqCookRecipeMapper;
import com.bonus.canteen.core.zhhq.service.IZhhqCookRecipeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
@ -31,6 +32,8 @@ import java.util.stream.Collectors;
@Service
@Slf4j
public class ZhhqCookRecipeServiceImpl implements IZhhqCookRecipeService {
private Long JYY_CANTEEN_ID = 10L;
@Autowired
private BasicCanteenMapper basicCanteenMapper;
@Autowired
@ -40,7 +43,7 @@ public class ZhhqCookRecipeServiceImpl implements IZhhqCookRecipeService {
public WeekRecipeVO getWeekRecipeDetailList(WeekRecipeDTO dto) {
WeekRecipeVO weekRecipeVO = new WeekRecipeVO();
weekRecipeVO.setRecipeName("周菜谱");
BasicCanteen basicCanteen = basicCanteenMapper.selectBasicCanteenByCanteenId(dto.getCanteenId());
BasicCanteen basicCanteen = basicCanteenMapper.selectBasicCanteenByCanteenId(JYY_CANTEEN_ID);
weekRecipeVO.setCanteenName(basicCanteen.getCanteenName());
List<LocalDate> weekDates = DateUtil.getWeekDates(dto.getMenuDate());
weekRecipeVO.setRecipeYear(dto.getMenuDate().getYear());