微信食谱开发

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

@ -39,6 +39,8 @@ public class WechatAppletController extends BaseController {
public static final String[] imageName = {"breakfastImages", "lunchImages", "dinnerImages", "extraMealImages", "bodyImages"};
@Autowired
ISysRecipesService iSysRecipesService;
@Autowired
private ISysCustomerCaseService sysCustomerCaseService;
@Autowired
private ISysWxUserLogService sysWxUserLogService;
@ -449,7 +451,7 @@ public class WechatAppletController extends BaseController {
public AjaxResult getRecipesPlans(@RequestParam String customerId) {
Long cusId = StringUtils.isNotEmpty(customerId) ? Long.parseLong(AesUtils.decrypt(customerId)) : 0L;
List<SysRecipesPlan> plans = sysRecipesPlanService.selectPlanListByCusId(cusId);
List<SysRecipesPlanListInfo> plans = sysRecipesPlanService.selectRecipesPlanListInfoByCusId(cusId);
SysOrderPause orderPause = new SysOrderPause();
orderPause.setCusId(cusId);
@ -476,6 +478,11 @@ public class WechatAppletController extends BaseController {
return AjaxResult.success(result);
}
@GetMapping("/getRecipesDetail")
public AjaxResult getRecipesDetail(@RequestParam Long menuId) {
return AjaxResult.success(iSysRecipesService.selectDishesByMenuId(menuId));
}
}