|
|
@@ -9,6 +9,7 @@ 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 lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -18,6 +19,7 @@ import java.util.List;
|
|
|
/**
|
|
|
* @author fenghao
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Api(value = "rest/catenary/bus/glkg", tags = "基础数据 - 隔离开关")
|
|
|
@RestController
|
|
|
@Validated
|
|
|
@@ -51,6 +53,7 @@ public class BusGlkgController extends BaseController {
|
|
|
@ApiOperation(value = "更新")
|
|
|
@PutMapping("/update")
|
|
|
public AjaxResult update(@RequestBody @Valid BusGlkg busGlkg) {
|
|
|
+ log.debug("更新隔离开关基础数据");
|
|
|
BaseDeptStation deptStation = stationService.getInfo(busGlkg.getDeptId(),
|
|
|
busGlkg.getLineId(), busGlkg.getStationId());
|
|
|
busGlkg.setDeptStationId(deptStation.getId());
|