diff --git a/epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/controller/DemoController.java b/epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/controller/DemoController.java index 5ad9d87f8f..2588109776 100644 --- a/epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/controller/DemoController.java +++ b/epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/controller/DemoController.java @@ -157,13 +157,27 @@ public class DemoController { return demoService.saveCustomerInfo(dto); } + /** + * @param id + * @return com.epmet.commons.tools.utils.Result + * @Author yinzuomei + * @Description 测试demo-gov get入参@PathVariable + * @Date 2020/3/20 9:37 + **/ @GetMapping("/getcustomergrid/{id}") - public Result getcustomergrid(@PathVariable("id") String id){ + public Result getcustomergrid(@PathVariable("id") String id) { return demoService.getcustomergrid(id); } + /** + * @param id + * @return com.epmet.commons.tools.utils.Result + * @Author yinzuomei + * @Description 测试demo-admin get入参@RequestParam + * @Date 2020/3/20 9:37 + **/ @GetMapping("getSysUserInfoById") - public Result getSysUserInfoById(@RequestParam("id") Long id){ + public Result getSysUserInfoById(@RequestParam("id") Long id) { return demoService.getSysUserInfoById(id); } } diff --git a/epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/service/DemoService.java b/epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/service/DemoService.java index ed31425ca6..38cfe6ef29 100644 --- a/epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/service/DemoService.java +++ b/epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/service/DemoService.java @@ -136,9 +136,22 @@ public interface DemoService extends BaseService { * @Date 2020/3/18 9:51 **/ Result saveCustomerInfo(SaveCustomerFormDTO dto); - Result saveCustomerInfo(SaveCustomerFormDTO dto); + /** + * @param id + * @return com.epmet.commons.tools.utils.Result + * @Author yinzuomei + * @Description 测试demo-gov get入参@PathVariable + * @Date 2020/3/20 9:37 + **/ Result getcustomergrid(String id); - Result getSysUserInfoById(Long id); + /** + * @param id + * @return com.epmet.commons.tools.utils.Result + * @Author yinzuomei + * @Description 测试demo-admin get入参@RequestParam + * @Date 2020/3/20 9:37 + **/ + Result getSysUserInfoById(Long id); }