微信食谱开发

This commit is contained in:
huangdeliang
2021-05-11 16:00:04 +08:00
parent d736726b24
commit e5fb063b57
6 changed files with 25 additions and 2 deletions

View File

@ -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

View File

@ -112,6 +112,9 @@ public interface ISysRecipesPlanService
*/
List<SysRecipesPlanListInfo> selectRecipesPlanListInfo(String outId);
List<SysRecipesPlanListInfo> selectRecipesPlanListInfoByCusId(Long cusId);
/**
* 通过客户id查询食谱计划
* @param cusId

View File

@ -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);

View File

@ -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"/>