|
@@ -2,12 +2,14 @@ package com.ruoyi.powerdistribution.controller;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
+
|
|
|
|
+import com.ruoyi.powerdistribution.domain.vo.PdmLineComplete;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -27,6 +29,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
* @author ruoyi
|
|
* @author ruoyi
|
|
* @date 2024-12-24
|
|
* @date 2024-12-24
|
|
*/
|
|
*/
|
|
|
|
+@Api(value = "PdmLineController", tags = "线路查询")
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/power/line")
|
|
@RequestMapping("/power/line")
|
|
public class PdmLineController extends BaseController
|
|
public class PdmLineController extends BaseController
|
|
@@ -74,7 +77,7 @@ public class PdmLineController extends BaseController
|
|
*/
|
|
*/
|
|
@PreAuthorize("@ss.hasPermi('system:line:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:line:add')")
|
|
@Log(title = "可靠性馈线", businessType = BusinessType.INSERT)
|
|
@Log(title = "可靠性馈线", businessType = BusinessType.INSERT)
|
|
- @PostMapping
|
|
|
|
|
|
+ @PostMapping("/add")
|
|
public AjaxResult add(@RequestBody PdmLine pdmLine)
|
|
public AjaxResult add(@RequestBody PdmLine pdmLine)
|
|
{
|
|
{
|
|
return toAjax(pdmLineService.insertPdmLine(pdmLine));
|
|
return toAjax(pdmLineService.insertPdmLine(pdmLine));
|
|
@@ -85,7 +88,7 @@ public class PdmLineController extends BaseController
|
|
*/
|
|
*/
|
|
@PreAuthorize("@ss.hasPermi('system:line:edit')")
|
|
@PreAuthorize("@ss.hasPermi('system:line:edit')")
|
|
@Log(title = "可靠性馈线", businessType = BusinessType.UPDATE)
|
|
@Log(title = "可靠性馈线", businessType = BusinessType.UPDATE)
|
|
- @PutMapping
|
|
|
|
|
|
+ @PostMapping("/update")
|
|
public AjaxResult edit(@RequestBody PdmLine pdmLine)
|
|
public AjaxResult edit(@RequestBody PdmLine pdmLine)
|
|
{
|
|
{
|
|
return toAjax(pdmLineService.updatePdmLine(pdmLine));
|
|
return toAjax(pdmLineService.updatePdmLine(pdmLine));
|
|
@@ -96,9 +99,22 @@ public class PdmLineController extends BaseController
|
|
*/
|
|
*/
|
|
@PreAuthorize("@ss.hasPermi('system:line:remove')")
|
|
@PreAuthorize("@ss.hasPermi('system:line:remove')")
|
|
@Log(title = "可靠性馈线", businessType = BusinessType.DELETE)
|
|
@Log(title = "可靠性馈线", businessType = BusinessType.DELETE)
|
|
- @DeleteMapping("/{ids}")
|
|
|
|
|
|
+ @GetMapping("delete/{ids}")
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
{
|
|
{
|
|
return toAjax(pdmLineService.deletePdmLineByIds(ids));
|
|
return toAjax(pdmLineService.deletePdmLineByIds(ids));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询线路完成情况列表
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "查询线路完成情况列表")
|
|
|
|
+ @GetMapping("/selectCompleteList")
|
|
|
|
+ public TableDataInfo selectCompleteList(PdmLineComplete complete)
|
|
|
|
+ {
|
|
|
|
+ startPage();
|
|
|
|
+ List<PdmLineComplete> list = pdmLineService.selectCompleteList(complete);
|
|
|
|
+ return getDataTable(list);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|