瀏覽代碼

1、修改baseController

zhoux 2 年之前
父節點
當前提交
f080ac6cd4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/dk/common/controller/BaseController.java

+ 1 - 1
src/main/java/com/dk/common/controller/BaseController.java

@@ -239,7 +239,7 @@ public abstract class BaseController<T> {
      */
      */
     @ApiOperation(value = "根据id查询",notes = "根据id查询")
     @ApiOperation(value = "根据id查询",notes = "根据id查询")
     @PostMapping("{id}")
     @PostMapping("{id}")
-    public ResponseResultVO<T> selectById(@PathVariable Long id) {
+    public ResponseResultVO<T> selectById(@PathVariable String id) {
         return this.getService().selectById(id);
         return this.getService().selectById(id);
     }
     }
 }
 }