gongfuzhu 1 年之前
父节点
当前提交
2808caadcd

+ 3 - 6
SpringBatchServiceServer/src/main/java/com/zswl/cloud/springBtach/server/core/controller/XiaoJuController.java

@@ -17,10 +17,7 @@ import com.zswl.cloud.springBtach.server.core.service.XiaoJuService;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.log4j.Log4j2;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
 
@@ -59,9 +56,9 @@ public class XiaoJuController {
         return xiaoJuService.queryStorePrice(storeIdList);
     }
     @ApiOperation("查看加油站详情")
-    @RequestMapping(value = "queryStoreDetail", method = RequestMethod.POST)
+    @RequestMapping(value = "queryStoreDetail/{storeId}", method = RequestMethod.GET)
     @ResourceAuth(value = "user", type = AuthType.User)
-    public ResultContent<QueryStoreDetailResponse> queryStoreDetail(String storeId) {
+    public ResultContent<QueryStoreDetailResponse> queryStoreDetail(@PathVariable("storeId") String storeId) {
 
         return xiaoJuService.queryStoreDetail(storeId);
     }