wangyingyang

fix label and menu

...@@ -25,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -25,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired;
25 import org.springframework.http.HttpStatus; 25 import org.springframework.http.HttpStatus;
26 import org.springframework.validation.annotation.Validated; 26 import org.springframework.validation.annotation.Validated;
27 import org.springframework.web.bind.annotation.DeleteMapping; 27 import org.springframework.web.bind.annotation.DeleteMapping;
28 +import org.springframework.web.bind.annotation.GetMapping;
28 import org.springframework.web.bind.annotation.PathVariable; 29 import org.springframework.web.bind.annotation.PathVariable;
29 import org.springframework.web.bind.annotation.PostMapping; 30 import org.springframework.web.bind.annotation.PostMapping;
30 import org.springframework.web.bind.annotation.RequestBody; 31 import org.springframework.web.bind.annotation.RequestBody;
...@@ -75,14 +76,14 @@ public class LabelController { ...@@ -75,14 +76,14 @@ public class LabelController {
75 } 76 }
76 77
77 @ApiOperation(value = "根据hisCustomerId查询用户绑定过敏源标签") 78 @ApiOperation(value = "根据hisCustomerId查询用户绑定过敏源标签")
78 - @DeleteMapping("/allergy/hisCustomer/{hisCustomerId}") 79 + @GetMapping("/allergy/hisCustomer/{hisCustomerId}")
79 @ResponseStatus(HttpStatus.OK) 80 @ResponseStatus(HttpStatus.OK)
80 public List<HisAllergy> getHisCustomerAllergiesByCustomerId(@PathVariable String hisCustomerId) { 81 public List<HisAllergy> getHisCustomerAllergiesByCustomerId(@PathVariable String hisCustomerId) {
81 return meiZhongYiHeService.getHisCustomerAllergiesByCustomerId(hisCustomerId); 82 return meiZhongYiHeService.getHisCustomerAllergiesByCustomerId(hisCustomerId);
82 } 83 }
83 84
84 @ApiOperation(value = "根据contractNo查询His用户医嘱") 85 @ApiOperation(value = "根据contractNo查询His用户医嘱")
85 - @DeleteMapping("/medicalAdvice/hisCustomer/{contractNo}") 86 + @GetMapping("/medicalAdvice/hisCustomer/{contractNo}")
86 @ResponseStatus(HttpStatus.OK) 87 @ResponseStatus(HttpStatus.OK)
87 public List<HisMedicalAdviceDto> getHisCustomerMedicalAdviceByContractNo(@PathVariable String contractNo) { 88 public List<HisMedicalAdviceDto> getHisCustomerMedicalAdviceByContractNo(@PathVariable String contractNo) {
88 return meiZhongYiHeService.getHisCustomerMedicalAdvicesByContractNo(contractNo); 89 return meiZhongYiHeService.getHisCustomerMedicalAdvicesByContractNo(contractNo);
......
1 package com.infoloop.tianting.controller; 1 package com.infoloop.tianting.controller;
2 2
3 +import cn.dev33.satoken.annotation.SaIgnore;
3 import com.github.xiaoymin.knife4j.annotations.ApiSupport; 4 import com.github.xiaoymin.knife4j.annotations.ApiSupport;
4 import com.infoloop.tianting.model.dto.MenuDbDTO.BatchCreateMenuRefsDto; 5 import com.infoloop.tianting.model.dto.MenuDbDTO.BatchCreateMenuRefsDto;
5 import com.infoloop.tianting.model.dto.MenuDbDTO.BatchCreateMenuRefsResponseDto; 6 import com.infoloop.tianting.model.dto.MenuDbDTO.BatchCreateMenuRefsResponseDto;
...@@ -41,7 +42,8 @@ public class MenuController { ...@@ -41,7 +42,8 @@ public class MenuController {
41 return menuService.queryMiniProgramPublishedMenusByStallId(enterpriseId, stallId); 42 return menuService.queryMiniProgramPublishedMenusByStallId(enterpriseId, stallId);
42 } 43 }
43 44
44 - @ApiOperation(value = "根据stallIds获取所有已发布餐单") 45 + @SaIgnore
46 + @ApiOperation(value = "根据stallId获取所有已发布餐单")
45 @GetMapping("/enterprises/{enterpriseId}/stalls/{stallId}/all/menus") 47 @GetMapping("/enterprises/{enterpriseId}/stalls/{stallId}/all/menus")
46 @ResponseStatus(HttpStatus.OK) 48 @ResponseStatus(HttpStatus.OK)
47 public List<MenuDto> queryPublishedMenusByStallIds( 49 public List<MenuDto> queryPublishedMenusByStallIds(
...@@ -58,6 +60,7 @@ public class MenuController { ...@@ -58,6 +60,7 @@ public class MenuController {
58 return menuService.getMenuById(enterpriseId, menuId); 60 return menuService.getMenuById(enterpriseId, menuId);
59 } 61 }
60 62
63 + @SaIgnore
61 @ApiOperation(value = "根据MenuId获取餐单详情") 64 @ApiOperation(value = "根据MenuId获取餐单详情")
62 @GetMapping("/enterprises/{enterpriseId}/menusDetails/{menuId}") 65 @GetMapping("/enterprises/{enterpriseId}/menusDetails/{menuId}")
63 @ResponseStatus(HttpStatus.OK) 66 @ResponseStatus(HttpStatus.OK)
......