Commit 4a81bb37 by 向延琳

增加查询参数

1 parent 2f54e640
...@@ -8,9 +8,11 @@ import com.glsx.plat.core.web.R; ...@@ -8,9 +8,11 @@ import com.glsx.plat.core.web.R;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
...@@ -31,7 +33,7 @@ public class FeignStayPointController implements StayPointFeignService { ...@@ -31,7 +33,7 @@ public class FeignStayPointController implements StayPointFeignService {
@GetMapping("/queryList") @GetMapping("/queryList")
@Override @Override
public R<List<StayPointRecordDTO>> getStayPointRecord(StayPointRequest stayPointRequest) { public R<List<StayPointRecordDTO>> getStayPointRecord(@SpringQueryMap StayPointRequest stayPointRequest) {
List<StayPointRecordDTO> list = stayPointService.getStayPointRecord(stayPointRequest); List<StayPointRecordDTO> list = stayPointService.getStayPointRecord(stayPointRequest);
return R.ok().data(list); return R.ok().data(list);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!