食谱计划修改

This commit is contained in:
xiezhijun
2021-02-27 19:22:25 +08:00
parent a244a4a536
commit 2ceefcf9a5
7 changed files with 121 additions and 29 deletions

View File

@ -3,6 +3,7 @@ package com.stdiet.custom.mapper;
import java.util.List;
import com.stdiet.custom.domain.SysRecipesPlan;
import com.stdiet.custom.domain.SysRecipesPlanListInfo;
import org.apache.ibatis.annotations.Param;
/**
* 食谱计划Mapper接口
@ -81,6 +82,13 @@ public interface SysRecipesPlanMapper
*/
List<SysRecipesPlan> selectPlanListByCondition(SysRecipesPlan sysRecipesPlan);
/**
* 根据客户ID查询最后一天食谱计划
* @param customerId
* @return
*/
SysRecipesPlan getLastDayRecipesPlan(@Param("customerId")Long customerId);
/**
* 根据订单ID查询食谱计划
* @param sysRecipesPlan
@ -93,4 +101,11 @@ public interface SysRecipesPlanMapper
List<SysRecipesPlanListInfo> selectRecipesPlanListInfo(String outId);
List<SysRecipesPlan> selectPlanListByCusId(Long cusId);
/**
* 批量更新食谱计划的开始时间、结束时间
* @param list
* @return
*/
int updateMuchRecipesPlanDate(SysRecipesPlan sysRecipesPlan);
}