Commit fbd5fa15 by 王欣伟

车辆信息BUG修复

1 parent a9c2d610
......@@ -13,7 +13,9 @@ import com.glsx.plat.core.web.R;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
......@@ -28,7 +30,7 @@ public class VehicleController implements VehicleServiceClient {
private VehicleService vehicleService;
@Override
public R<VehicleDto> getVehicleBySn(String sn) {
public R<VehicleDto> getVehicleBySn(@RequestParam String sn) {
if (StringUtils.isBlank(sn)) {
return R.ok("vehicle not exist");
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!