|
|
@@ -9,12 +9,17 @@ import com.railway.common.core.domain.AjaxResult;
|
|
|
import com.railway.common.core.page.TableDataInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
-import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
+import javax.validation.Valid;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.PutMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
|
* @author fenghao
|
|
|
@@ -39,7 +44,7 @@ public class BusJlgzController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "删除")
|
|
|
@DeleteMapping("/{ids}")
|
|
|
- public AjaxResult delete(@PathVariable(value = "ids") String[] ids) {
|
|
|
+ public AjaxResult delete(@PathVariable(value = "ids") Long[] ids) {
|
|
|
return toAjax(budJlgzService.delete(ids));
|
|
|
}
|
|
|
|
|
|
@@ -51,7 +56,7 @@ public class BusJlgzController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "单个")
|
|
|
@GetMapping(value = {"/", "/{id}"})
|
|
|
- public AjaxResult getInfo(@PathVariable(value = "id") String id) {
|
|
|
+ public AjaxResult getInfo(@PathVariable(value = "id") Long id) {
|
|
|
BusJlgz info = budJlgzService.getInfo(id);
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
ajax.put("info",info);
|