Browse Source

【工作日志】处理urlPath的冲突问题

master
wangxianzhang 3 years ago
parent
commit
072932fec4
  1. 4
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/WorkdiaryServiceController.java

4
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/WorkdiaryServiceController.java

@ -67,7 +67,7 @@ public class WorkdiaryServiceController {
* @param id
* @return
*/
@RequestMapping(value = "/record/{id}",method = {RequestMethod.POST,RequestMethod.GET})
@RequestMapping(value = "/record/{id}/detail",method = {RequestMethod.POST,RequestMethod.GET})
public Result<WorkdiaryServiceRecordDTO> recordGet(@PathVariable("id") String id){
WorkdiaryServiceRecordDTO data = workdiaryServiceRecordService.get(id);
return new Result<WorkdiaryServiceRecordDTO>().ok(data);
@ -136,7 +136,7 @@ public class WorkdiaryServiceController {
* 服务类型-单条
* @return
*/
@RequestMapping(value = "/serviceType/{id}",method = {RequestMethod.POST,RequestMethod.GET})
@RequestMapping(value = "/serviceType/{id}/detail",method = {RequestMethod.POST,RequestMethod.GET})
public Result<WorkdiaryServiceTypeDTO> serviceTypeGet(@PathVariable("id") String id){
WorkdiaryServiceTypeDTO data = workdiaryServiceTypeService.get(id);
return new Result<WorkdiaryServiceTypeDTO>().ok(data);

Loading…
Cancel
Save