Commit 47c00e98 by 杨林龙

Merge remote-tracking branch 'origin/v1.5.0' into v1.5.0

2 parents 04ed38aa fbd5fa15
......@@ -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!