|
|
@@ -2,21 +2,17 @@ package com.railway.web.controller.business.catenary;
|
|
|
|
|
|
import com.railway.business.catenary.domain.BusJcbGlkg;
|
|
|
import com.railway.business.catenary.service.IBusJcbGlkgService;
|
|
|
+import com.railway.common.core.controller.BaseController;
|
|
|
+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.http.ResponseEntity;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
-import org.springframework.web.bind.WebDataBinder;
|
|
|
-import com.railway.common.core.controller.BaseController;
|
|
|
-import com.railway.common.core.domain.AjaxResult;
|
|
|
-import com.railway.common.core.page.TableDataInfo;
|
|
|
-import javax.validation.Valid;
|
|
|
-import java.util.List;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
-import javax.websocket.server.PathParam;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Api(value = "rest/catenary/bus/jcb/glkg", tags = "APP-隔离开关检查表")
|
|
|
@RestController
|
|
|
@@ -29,9 +25,31 @@ public class BusJcbGlkgController extends BaseController {
|
|
|
@ApiOperation(value = "新增")
|
|
|
@PostMapping("/add")
|
|
|
public AjaxResult add(@Validated @RequestBody BusJcbGlkg busJcbGlkg) {
|
|
|
+ busJcbGlkg.setCreateBy(getUsername());
|
|
|
return toAjax(busJcbGlkgService.create(busJcbGlkg));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "提交")
|
|
|
+ @PutMapping("/submit")
|
|
|
+ public AjaxResult submit(@RequestBody BusJcbGlkg busJcbGlkg) {
|
|
|
+ busJcbGlkg.setUpdateBy(getUsername());
|
|
|
+ return toAjax(busJcbGlkgService.submit(busJcbGlkg));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "退回")
|
|
|
+ @PutMapping("/reject")
|
|
|
+ public AjaxResult reject(@RequestBody BusJcbGlkg busJcbGlkg) {
|
|
|
+ busJcbGlkg.setUpdateBy(getUsername());
|
|
|
+ return toAjax(busJcbGlkgService.reject(busJcbGlkg));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "确认")
|
|
|
+ @PutMapping("/confirm")
|
|
|
+ public AjaxResult confirm(@RequestBody BusJcbGlkg busJcbGlkg) {
|
|
|
+ busJcbGlkg.setUpdateBy(getUsername());
|
|
|
+ return toAjax(busJcbGlkgService.confirm(busJcbGlkg));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "删除")
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult delete(@PathVariable(value = "ids") String[] ids) {
|
|
|
@@ -41,6 +59,7 @@ public class BusJcbGlkgController extends BaseController {
|
|
|
@ApiOperation(value = "更新")
|
|
|
@PutMapping("/update")
|
|
|
public AjaxResult update(@RequestBody @Valid BusJcbGlkg busJcbGlkg) {
|
|
|
+ busJcbGlkg.setUpdateBy(getUsername());
|
|
|
return toAjax(busJcbGlkgService.update(busJcbGlkg));
|
|
|
}
|
|
|
|