微信食谱开发
This commit is contained in:
@ -103,10 +103,14 @@ public interface SysRecipesPlanMapper
|
||||
|
||||
List<SysRecipesPlanListInfo> selectRecipesPlanListInfo(String outId);
|
||||
|
||||
List<SysRecipesPlanListInfo> selectRecipesPlanListInfoByCusId(Long cusId);
|
||||
|
||||
|
||||
List<SysRecipesPlan> selectPlanListByCusId(Long cusId);
|
||||
|
||||
List<SysRecipesPlan> selectRecipesModelList(SysRecipesPlan sysRecipesPlan);
|
||||
|
||||
|
||||
/**
|
||||
* 批量更新食谱计划的开始时间、结束时间
|
||||
* @param list
|
||||
|
@ -112,6 +112,9 @@ public interface ISysRecipesPlanService
|
||||
*/
|
||||
List<SysRecipesPlanListInfo> selectRecipesPlanListInfo(String outId);
|
||||
|
||||
List<SysRecipesPlanListInfo> selectRecipesPlanListInfoByCusId(Long cusId);
|
||||
|
||||
|
||||
/**
|
||||
* 通过客户id查询食谱计划
|
||||
* @param cusId
|
||||
|
@ -421,6 +421,11 @@ public class SysRecipesPlanServiceImpl implements ISysRecipesPlanService {
|
||||
return sysRecipesPlanMapper.selectRecipesPlanListInfo(outId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SysRecipesPlanListInfo> selectRecipesPlanListInfoByCusId(Long cusId) {
|
||||
return sysRecipesPlanMapper.selectRecipesPlanListInfoByCusId(cusId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SysRecipesPlan> selectPlanListByCusId(Long cusId) {
|
||||
return sysRecipesPlanMapper.selectPlanListByCusId(cusId);
|
||||
|
@ -246,6 +246,10 @@
|
||||
select id, start_date, end_date, start_num_day, end_num_day, recipes_id from sys_recipes_plan where out_id=#{outId} and del_flag = 0 and review_status = 2 and send_flag = 1
|
||||
</select>
|
||||
|
||||
<select id="selectRecipesPlanListInfoByCusId" resultMap="SysRecipesPlanListInfoResult">
|
||||
select id, start_date, end_date, start_num_day, end_num_day, recipes_id from sys_recipes_plan where cus_id=#{cusId} and del_flag = 0 and review_status = 2 and send_flag = 1
|
||||
</select>
|
||||
|
||||
<resultMap type="SysRecipesDaily" id="SysRecipesResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="numDay" column="num_day"/>
|
||||
|
Reference in New Issue
Block a user