Browse Source

线路,分支线代码提交

zx 5 tháng trước cách đây
mục cha
commit
6e6072a793

+ 104 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmBranchLineController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.powerdistribution.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+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.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.powerdistribution.domain.PdmBranchLine;
+import com.ruoyi.powerdistribution.service.IPdmBranchLineService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 可靠性分支线Controller
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+@RestController
+@RequestMapping("/power/branchLine")
+public class PdmBranchLineController extends BaseController
+{
+    @Autowired
+    private IPdmBranchLineService pdmBranchLineService;
+
+    /**
+     * 查询可靠性分支线列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmBranchLine pdmBranchLine)
+    {
+        startPage();
+        List<PdmBranchLine> list = pdmBranchLineService.selectPdmBranchLineList(pdmBranchLine);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出可靠性分支线列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:export')")
+    @Log(title = "可靠性分支线", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmBranchLine pdmBranchLine)
+    {
+        List<PdmBranchLine> list = pdmBranchLineService.selectPdmBranchLineList(pdmBranchLine);
+        ExcelUtil<PdmBranchLine> util = new ExcelUtil<PdmBranchLine>(PdmBranchLine.class);
+        util.exportExcel(response, list, "可靠性分支线数据");
+    }
+
+    /**
+     * 获取可靠性分支线详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmBranchLineService.selectPdmBranchLineById(id));
+    }
+
+    /**
+     * 新增可靠性分支线
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:add')")
+    @Log(title = "可靠性分支线", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PdmBranchLine pdmBranchLine)
+    {
+        return toAjax(pdmBranchLineService.insertPdmBranchLine(pdmBranchLine));
+    }
+
+    /**
+     * 修改可靠性分支线
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:edit')")
+    @Log(title = "可靠性分支线", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PdmBranchLine pdmBranchLine)
+    {
+        return toAjax(pdmBranchLineService.updatePdmBranchLine(pdmBranchLine));
+    }
+
+    /**
+     * 删除可靠性分支线
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:remove')")
+    @Log(title = "可靠性分支线", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmBranchLineService.deletePdmBranchLineByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmLineController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.powerdistribution.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+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.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.powerdistribution.domain.PdmLine;
+import com.ruoyi.powerdistribution.service.IPdmLineService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 可靠性馈线Controller
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+@RestController
+@RequestMapping("/power/line")
+public class PdmLineController extends BaseController
+{
+    @Autowired
+    private IPdmLineService pdmLineService;
+
+    /**
+     * 查询可靠性馈线列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmLine pdmLine)
+    {
+        startPage();
+        List<PdmLine> list = pdmLineService.selectPdmLineList(pdmLine);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出可靠性馈线列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:export')")
+    @Log(title = "可靠性馈线", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmLine pdmLine)
+    {
+        List<PdmLine> list = pdmLineService.selectPdmLineList(pdmLine);
+        ExcelUtil<PdmLine> util = new ExcelUtil<PdmLine>(PdmLine.class);
+        util.exportExcel(response, list, "可靠性馈线数据");
+    }
+
+    /**
+     * 获取可靠性馈线详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmLineService.selectPdmLineById(id));
+    }
+
+    /**
+     * 新增可靠性馈线
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:add')")
+    @Log(title = "可靠性馈线", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PdmLine pdmLine)
+    {
+        return toAjax(pdmLineService.insertPdmLine(pdmLine));
+    }
+
+    /**
+     * 修改可靠性馈线
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:edit')")
+    @Log(title = "可靠性馈线", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PdmLine pdmLine)
+    {
+        return toAjax(pdmLineService.updatePdmLine(pdmLine));
+    }
+
+    /**
+     * 删除可靠性馈线
+     */
+    @PreAuthorize("@ss.hasPermi('system:line:remove')")
+    @Log(title = "可靠性馈线", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmLineService.deletePdmLineByIds(ids));
+    }
+}

+ 758 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmBranchLine.java

@@ -0,0 +1,758 @@
+package com.ruoyi.powerdistribution.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 可靠性分支线对象 pdm_branch_line
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+public class PdmBranchLine extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 馈线线段资源id  */
+    @Excel(name = "馈线线段资源id ")
+    private String bigFeederBranchLineId;
+
+    /** 线路名称  */
+    @Excel(name = "线路名称 ")
+    private String lineNm;
+
+    /** 设备编码  */
+    @Excel(name = "设备编码 ")
+    private String eqpNo;
+
+    /** 运行编号  */
+    @Excel(name = "运行编号 ")
+    private String runNo;
+
+    /** 所属馈线id  */
+    @Excel(name = "所属馈线id ")
+    private String blgBigFeederId;
+
+    /** 所属馈线名称  */
+    @Excel(name = "所属馈线名称 ")
+    private String blgBigFeederNm;
+
+    /** 电压等级代码  */
+    @Excel(name = "电压等级代码 ")
+    private String voltLvlCd;
+
+    /** 电压等级描述  */
+    @Excel(name = "电压等级描述 ")
+    private String voltLvlDsc;
+
+    /** 架设方式代码  */
+    @Excel(name = "架设方式代码 ")
+    private String erectModeCd;
+
+    /** 架设方式描述  */
+    @Excel(name = "架设方式描述 ")
+    private String erectModeDsc;
+
+    /** 架空线路长度(km)  */
+    @Excel(name = "架空线路长度", readConverterExp = "架空线路长度(km) ")
+    private BigDecimal overhdLineLen;
+
+    /** 电缆线路长度(km)  */
+    @Excel(name = "电缆线路长度", readConverterExp = "k=m")
+    private BigDecimal cableLineLen;
+
+    /** 线路总长度(km)  */
+    @Excel(name = "线路总长度", readConverterExp = "k=m")
+    private BigDecimal lineTolLen;
+
+    /** 起始点设备id(pms2.0使用)  */
+    @Excel(name = "起始点设备id(pms2.0使用) ")
+    private String startEqpId;
+
+    /** 起始点设备名称(pms2.0使用)  */
+    @Excel(name = "起始点设备名称(pms2.0使用) ")
+    private String startEqpNm;
+
+    /** 起始点设备类型代码  */
+    @Excel(name = "起始点设备类型代码 ")
+    private String startEqpTypCd;
+
+    /** 起始点设备类型描述  */
+    @Excel(name = "起始点设备类型描述 ")
+    private String startEqpTypDsc;
+
+    /** 线路性质代码  */
+    @Excel(name = "线路性质代码 ")
+    private String lineNatureCd;
+
+    /** 线路性质描述  */
+    @Excel(name = "线路性质描述 ")
+    private String lineNatureDsc;
+
+    /** 所属上级线路id  */
+    @Excel(name = "所属上级线路id ")
+    private String blgSuperLineId;
+
+    /** 所属上级线路名称  */
+    @Excel(name = "所属上级线路名称 ")
+    private String blgSuperLineNm;
+
+    /** 所属地市id  */
+    @Excel(name = "所属地市id ")
+    private String blgCityId;
+
+    /** 所属地市名称  */
+    @Excel(name = "所属地市名称 ")
+    private String blgCityNm;
+
+    /** 运维单位id  */
+    @Excel(name = "运维单位id ")
+    private String opMaintOrgId;
+
+    /** 运维单位名称  */
+    @Excel(name = "运维单位名称 ")
+    private String opMaintOrgNm;
+
+    /** 维护班组id  */
+    @Excel(name = "维护班组id ")
+    private String maintTeamId;
+
+    /** 维护班组名称  */
+    @Excel(name = "维护班组名称 ")
+    private String maintTeamNm;
+
+    /** 运行状态代码  */
+    @Excel(name = "运行状态代码 ")
+    private String runStCd;
+
+    /** 运行状态描述  */
+    @Excel(name = "运行状态描述 ")
+    private String runStDsc;
+
+    /** 发布状态描述(pms2.0使用)  */
+    @Excel(name = "发布状态描述(pms2.0使用) ")
+    private String releaseStDsc;
+
+    /** 代维线路长度(km)(pms2.0使用)  */
+    @Excel(name = "代维线路长度", readConverterExp = "k=m")
+    private BigDecimal repmaintLineLen;
+
+    /** 是否有图形(pms2.0使用)  */
+    @Excel(name = "是否有图形(pms2.0使用) ")
+    private String isHaveFigur;
+
+    /** 标准设备主人编码  */
+    @Excel(name = "标准设备主人编码 ")
+    private String stdEqpMasterId;
+
+    /** 标准设备主人名称  */
+    @Excel(name = "标准设备主人名称 ")
+    private String stdEqpMasterNm;
+
+    /** 投运日期  */
+    @Excel(name = "投运日期 ")
+    private String shipDt;
+
+    /** 标准单位编码  */
+    @Excel(name = "标准单位编码 ")
+    private String stdOrgNo;
+
+    /** 标准单位名称  */
+    @Excel(name = "标准单位名称 ")
+    private String stdOrgNm;
+
+    /** 标准地市单位名称  */
+    @Excel(name = "标准地市单位名称 ")
+    private String stdCityOrgNm;
+
+    /** 标准区县单位编码  */
+    @Excel(name = "标准区县单位编码 ")
+    private String stdCountyOrgNo;
+
+    /** 标准区县单位名称  */
+    @Excel(name = "标准区县单位名称 ")
+    private String stdCountyOrgNm;
+
+    /** 业务日期  */
+    @Excel(name = "业务日期 ")
+    private String dataDt;
+
+    /** etl时间戳  */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "etl时间戳 ", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date etlTm;
+
+    /** 标准地市单位编码  */
+    @Excel(name = "标准地市单位编码 ")
+    private String stdCityOrgNo;
+
+    /** 起点位置  */
+    @Excel(name = "起点位置 ")
+    private String startPos;
+
+    /** 设备主人id  */
+    @Excel(name = "设备主人id ")
+    private String eqpMasterId;
+
+    /** 设备主人名称  */
+    @Excel(name = "设备主人名称 ")
+    private String eqpMasterNm;
+
+    /** 营配标识  */
+    @Excel(name = "营配标识 ")
+    private String battalionId;
+
+    /** 营配名称  */
+    @Excel(name = "营配名称 ")
+    private String battalionNm;
+
+    /** 退运日期  */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "退运日期 ", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date retrogresDt;
+
+    /** 创建时间  */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "创建时间 ", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date createTm;
+
+    /** 最新更新时间  */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "最新更新时间 ", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date latestUpdTm;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setBigFeederBranchLineId(String bigFeederBranchLineId)
+    {
+        this.bigFeederBranchLineId = bigFeederBranchLineId;
+    }
+
+    public String getBigFeederBranchLineId()
+    {
+        return bigFeederBranchLineId;
+    }
+    public void setLineNm(String lineNm)
+    {
+        this.lineNm = lineNm;
+    }
+
+    public String getLineNm()
+    {
+        return lineNm;
+    }
+    public void setEqpNo(String eqpNo)
+    {
+        this.eqpNo = eqpNo;
+    }
+
+    public String getEqpNo()
+    {
+        return eqpNo;
+    }
+    public void setRunNo(String runNo)
+    {
+        this.runNo = runNo;
+    }
+
+    public String getRunNo()
+    {
+        return runNo;
+    }
+    public void setBlgBigFeederId(String blgBigFeederId)
+    {
+        this.blgBigFeederId = blgBigFeederId;
+    }
+
+    public String getBlgBigFeederId()
+    {
+        return blgBigFeederId;
+    }
+    public void setBlgBigFeederNm(String blgBigFeederNm)
+    {
+        this.blgBigFeederNm = blgBigFeederNm;
+    }
+
+    public String getBlgBigFeederNm()
+    {
+        return blgBigFeederNm;
+    }
+    public void setVoltLvlCd(String voltLvlCd)
+    {
+        this.voltLvlCd = voltLvlCd;
+    }
+
+    public String getVoltLvlCd()
+    {
+        return voltLvlCd;
+    }
+    public void setVoltLvlDsc(String voltLvlDsc)
+    {
+        this.voltLvlDsc = voltLvlDsc;
+    }
+
+    public String getVoltLvlDsc()
+    {
+        return voltLvlDsc;
+    }
+    public void setErectModeCd(String erectModeCd)
+    {
+        this.erectModeCd = erectModeCd;
+    }
+
+    public String getErectModeCd()
+    {
+        return erectModeCd;
+    }
+    public void setErectModeDsc(String erectModeDsc)
+    {
+        this.erectModeDsc = erectModeDsc;
+    }
+
+    public String getErectModeDsc()
+    {
+        return erectModeDsc;
+    }
+    public void setOverhdLineLen(BigDecimal overhdLineLen)
+    {
+        this.overhdLineLen = overhdLineLen;
+    }
+
+    public BigDecimal getOverhdLineLen()
+    {
+        return overhdLineLen;
+    }
+    public void setCableLineLen(BigDecimal cableLineLen)
+    {
+        this.cableLineLen = cableLineLen;
+    }
+
+    public BigDecimal getCableLineLen()
+    {
+        return cableLineLen;
+    }
+    public void setLineTolLen(BigDecimal lineTolLen)
+    {
+        this.lineTolLen = lineTolLen;
+    }
+
+    public BigDecimal getLineTolLen()
+    {
+        return lineTolLen;
+    }
+    public void setStartEqpId(String startEqpId)
+    {
+        this.startEqpId = startEqpId;
+    }
+
+    public String getStartEqpId()
+    {
+        return startEqpId;
+    }
+    public void setStartEqpNm(String startEqpNm)
+    {
+        this.startEqpNm = startEqpNm;
+    }
+
+    public String getStartEqpNm()
+    {
+        return startEqpNm;
+    }
+    public void setStartEqpTypCd(String startEqpTypCd)
+    {
+        this.startEqpTypCd = startEqpTypCd;
+    }
+
+    public String getStartEqpTypCd()
+    {
+        return startEqpTypCd;
+    }
+    public void setStartEqpTypDsc(String startEqpTypDsc)
+    {
+        this.startEqpTypDsc = startEqpTypDsc;
+    }
+
+    public String getStartEqpTypDsc()
+    {
+        return startEqpTypDsc;
+    }
+    public void setLineNatureCd(String lineNatureCd)
+    {
+        this.lineNatureCd = lineNatureCd;
+    }
+
+    public String getLineNatureCd()
+    {
+        return lineNatureCd;
+    }
+    public void setLineNatureDsc(String lineNatureDsc)
+    {
+        this.lineNatureDsc = lineNatureDsc;
+    }
+
+    public String getLineNatureDsc()
+    {
+        return lineNatureDsc;
+    }
+    public void setBlgSuperLineId(String blgSuperLineId)
+    {
+        this.blgSuperLineId = blgSuperLineId;
+    }
+
+    public String getBlgSuperLineId()
+    {
+        return blgSuperLineId;
+    }
+    public void setBlgSuperLineNm(String blgSuperLineNm)
+    {
+        this.blgSuperLineNm = blgSuperLineNm;
+    }
+
+    public String getBlgSuperLineNm()
+    {
+        return blgSuperLineNm;
+    }
+    public void setBlgCityId(String blgCityId)
+    {
+        this.blgCityId = blgCityId;
+    }
+
+    public String getBlgCityId()
+    {
+        return blgCityId;
+    }
+    public void setBlgCityNm(String blgCityNm)
+    {
+        this.blgCityNm = blgCityNm;
+    }
+
+    public String getBlgCityNm()
+    {
+        return blgCityNm;
+    }
+    public void setOpMaintOrgId(String opMaintOrgId)
+    {
+        this.opMaintOrgId = opMaintOrgId;
+    }
+
+    public String getOpMaintOrgId()
+    {
+        return opMaintOrgId;
+    }
+    public void setOpMaintOrgNm(String opMaintOrgNm)
+    {
+        this.opMaintOrgNm = opMaintOrgNm;
+    }
+
+    public String getOpMaintOrgNm()
+    {
+        return opMaintOrgNm;
+    }
+    public void setMaintTeamId(String maintTeamId)
+    {
+        this.maintTeamId = maintTeamId;
+    }
+
+    public String getMaintTeamId()
+    {
+        return maintTeamId;
+    }
+    public void setMaintTeamNm(String maintTeamNm)
+    {
+        this.maintTeamNm = maintTeamNm;
+    }
+
+    public String getMaintTeamNm()
+    {
+        return maintTeamNm;
+    }
+    public void setRunStCd(String runStCd)
+    {
+        this.runStCd = runStCd;
+    }
+
+    public String getRunStCd()
+    {
+        return runStCd;
+    }
+    public void setRunStDsc(String runStDsc)
+    {
+        this.runStDsc = runStDsc;
+    }
+
+    public String getRunStDsc()
+    {
+        return runStDsc;
+    }
+    public void setReleaseStDsc(String releaseStDsc)
+    {
+        this.releaseStDsc = releaseStDsc;
+    }
+
+    public String getReleaseStDsc()
+    {
+        return releaseStDsc;
+    }
+    public void setRepmaintLineLen(BigDecimal repmaintLineLen)
+    {
+        this.repmaintLineLen = repmaintLineLen;
+    }
+
+    public BigDecimal getRepmaintLineLen()
+    {
+        return repmaintLineLen;
+    }
+    public void setIsHaveFigur(String isHaveFigur)
+    {
+        this.isHaveFigur = isHaveFigur;
+    }
+
+    public String getIsHaveFigur()
+    {
+        return isHaveFigur;
+    }
+    public void setStdEqpMasterId(String stdEqpMasterId)
+    {
+        this.stdEqpMasterId = stdEqpMasterId;
+    }
+
+    public String getStdEqpMasterId()
+    {
+        return stdEqpMasterId;
+    }
+    public void setStdEqpMasterNm(String stdEqpMasterNm)
+    {
+        this.stdEqpMasterNm = stdEqpMasterNm;
+    }
+
+    public String getStdEqpMasterNm()
+    {
+        return stdEqpMasterNm;
+    }
+    public void setShipDt(String shipDt)
+    {
+        this.shipDt = shipDt;
+    }
+
+    public String getShipDt()
+    {
+        return shipDt;
+    }
+    public void setStdOrgNo(String stdOrgNo)
+    {
+        this.stdOrgNo = stdOrgNo;
+    }
+
+    public String getStdOrgNo()
+    {
+        return stdOrgNo;
+    }
+    public void setStdOrgNm(String stdOrgNm)
+    {
+        this.stdOrgNm = stdOrgNm;
+    }
+
+    public String getStdOrgNm()
+    {
+        return stdOrgNm;
+    }
+    public void setStdCityOrgNm(String stdCityOrgNm)
+    {
+        this.stdCityOrgNm = stdCityOrgNm;
+    }
+
+    public String getStdCityOrgNm()
+    {
+        return stdCityOrgNm;
+    }
+    public void setStdCountyOrgNo(String stdCountyOrgNo)
+    {
+        this.stdCountyOrgNo = stdCountyOrgNo;
+    }
+
+    public String getStdCountyOrgNo()
+    {
+        return stdCountyOrgNo;
+    }
+    public void setStdCountyOrgNm(String stdCountyOrgNm)
+    {
+        this.stdCountyOrgNm = stdCountyOrgNm;
+    }
+
+    public String getStdCountyOrgNm()
+    {
+        return stdCountyOrgNm;
+    }
+    public void setDataDt(String dataDt)
+    {
+        this.dataDt = dataDt;
+    }
+
+    public String getDataDt()
+    {
+        return dataDt;
+    }
+    public void setEtlTm(Date etlTm)
+    {
+        this.etlTm = etlTm;
+    }
+
+    public Date getEtlTm()
+    {
+        return etlTm;
+    }
+    public void setStdCityOrgNo(String stdCityOrgNo)
+    {
+        this.stdCityOrgNo = stdCityOrgNo;
+    }
+
+    public String getStdCityOrgNo()
+    {
+        return stdCityOrgNo;
+    }
+    public void setStartPos(String startPos)
+    {
+        this.startPos = startPos;
+    }
+
+    public String getStartPos()
+    {
+        return startPos;
+    }
+    public void setEqpMasterId(String eqpMasterId)
+    {
+        this.eqpMasterId = eqpMasterId;
+    }
+
+    public String getEqpMasterId()
+    {
+        return eqpMasterId;
+    }
+    public void setEqpMasterNm(String eqpMasterNm)
+    {
+        this.eqpMasterNm = eqpMasterNm;
+    }
+
+    public String getEqpMasterNm()
+    {
+        return eqpMasterNm;
+    }
+    public void setBattalionId(String battalionId)
+    {
+        this.battalionId = battalionId;
+    }
+
+    public String getBattalionId()
+    {
+        return battalionId;
+    }
+    public void setBattalionNm(String battalionNm)
+    {
+        this.battalionNm = battalionNm;
+    }
+
+    public String getBattalionNm()
+    {
+        return battalionNm;
+    }
+    public void setRetrogresDt(Date retrogresDt)
+    {
+        this.retrogresDt = retrogresDt;
+    }
+
+    public Date getRetrogresDt()
+    {
+        return retrogresDt;
+    }
+    public void setCreateTm(Date createTm)
+    {
+        this.createTm = createTm;
+    }
+
+    public Date getCreateTm()
+    {
+        return createTm;
+    }
+    public void setLatestUpdTm(Date latestUpdTm)
+    {
+        this.latestUpdTm = latestUpdTm;
+    }
+
+    public Date getLatestUpdTm()
+    {
+        return latestUpdTm;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("bigFeederBranchLineId", getBigFeederBranchLineId())
+            .append("lineNm", getLineNm())
+            .append("eqpNo", getEqpNo())
+            .append("runNo", getRunNo())
+            .append("blgBigFeederId", getBlgBigFeederId())
+            .append("blgBigFeederNm", getBlgBigFeederNm())
+            .append("voltLvlCd", getVoltLvlCd())
+            .append("voltLvlDsc", getVoltLvlDsc())
+            .append("erectModeCd", getErectModeCd())
+            .append("erectModeDsc", getErectModeDsc())
+            .append("overhdLineLen", getOverhdLineLen())
+            .append("cableLineLen", getCableLineLen())
+            .append("lineTolLen", getLineTolLen())
+            .append("startEqpId", getStartEqpId())
+            .append("startEqpNm", getStartEqpNm())
+            .append("startEqpTypCd", getStartEqpTypCd())
+            .append("startEqpTypDsc", getStartEqpTypDsc())
+            .append("lineNatureCd", getLineNatureCd())
+            .append("lineNatureDsc", getLineNatureDsc())
+            .append("blgSuperLineId", getBlgSuperLineId())
+            .append("blgSuperLineNm", getBlgSuperLineNm())
+            .append("blgCityId", getBlgCityId())
+            .append("blgCityNm", getBlgCityNm())
+            .append("opMaintOrgId", getOpMaintOrgId())
+            .append("opMaintOrgNm", getOpMaintOrgNm())
+            .append("maintTeamId", getMaintTeamId())
+            .append("maintTeamNm", getMaintTeamNm())
+            .append("runStCd", getRunStCd())
+            .append("runStDsc", getRunStDsc())
+            .append("releaseStDsc", getReleaseStDsc())
+            .append("repmaintLineLen", getRepmaintLineLen())
+            .append("isHaveFigur", getIsHaveFigur())
+            .append("stdEqpMasterId", getStdEqpMasterId())
+            .append("stdEqpMasterNm", getStdEqpMasterNm())
+            .append("shipDt", getShipDt())
+            .append("stdOrgNo", getStdOrgNo())
+            .append("stdOrgNm", getStdOrgNm())
+            .append("stdCityOrgNm", getStdCityOrgNm())
+            .append("stdCountyOrgNo", getStdCountyOrgNo())
+            .append("stdCountyOrgNm", getStdCountyOrgNm())
+            .append("dataDt", getDataDt())
+            .append("etlTm", getEtlTm())
+            .append("stdCityOrgNo", getStdCityOrgNo())
+            .append("startPos", getStartPos())
+            .append("eqpMasterId", getEqpMasterId())
+            .append("eqpMasterNm", getEqpMasterNm())
+            .append("battalionId", getBattalionId())
+            .append("battalionNm", getBattalionNm())
+            .append("retrogresDt", getRetrogresDt())
+            .append("createTm", getCreateTm())
+            .append("latestUpdTm", getLatestUpdTm())
+            .toString();
+    }
+}

+ 418 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmLine.java

@@ -0,0 +1,418 @@
+package com.ruoyi.powerdistribution.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 可靠性馈线对象 pdm_line
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+public class PdmLine extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 记录ID  */
+    @Excel(name = "记录ID ")
+    private String recId;
+
+    /** 线路名称  */
+    @Excel(name = "线路名称 ")
+    private String lineNm;
+
+    /** 线路运行编号  */
+    @Excel(name = "线路运行编号 ")
+    private String lineRunNo;
+
+    /** 电压等级代码  */
+    @Excel(name = "电压等级代码 ")
+    private String voltLvlCd;
+
+    /** 电压等级描述  */
+    @Excel(name = "电压等级描述 ")
+    private String voltLvlDsc;
+
+    /** 变电站id  */
+    @Excel(name = "变电站id ")
+    private String subsId;
+
+    /** 变电站名称  */
+    @Excel(name = "变电站名称 ")
+    private String subsNm;
+
+    /** 馈线id  */
+    @Excel(name = "馈线id ")
+    private String feederId;
+
+    /** 馈线名称  */
+    @Excel(name = "馈线名称 ")
+    private String feederNm;
+
+    /** 运维单位id  */
+    @Excel(name = "运维单位id ")
+    private String opMaintOrgId;
+
+    /** 运维单位名称  */
+    @Excel(name = "运维单位名称 ")
+    private String opMaintOrgNm;
+
+    /** 维护班组id  */
+    @Excel(name = "维护班组id ")
+    private String maintTeamId;
+
+    /** 维护班组名称  */
+    @Excel(name = "维护班组名称 ")
+    private String maintTeamNm;
+
+    /** 单位编码  */
+    @Excel(name = "单位编码 ")
+    private String orgNo;
+
+    /** 单位名称  */
+    @Excel(name = "单位名称 ")
+    private String orgNm;
+
+    /** 标准创建人编码  */
+    @Excel(name = "标准创建人编码 ")
+    private String stdCreatorNo;
+
+    /** 标准创建人名称  */
+    @Excel(name = "标准创建人名称 ")
+    private String stdCreatorNm;
+
+    /** 标准修改人编码  */
+    @Excel(name = "标准修改人编码 ")
+    private String stdUpdatorNo;
+
+    /** 标准修改人名称  */
+    @Excel(name = "标准修改人名称 ")
+    private String stdUpdatorNm;
+
+    /** 标准单位编码  */
+    @Excel(name = "标准单位编码 ")
+    private String stdOrgNo;
+
+    /** 标准单位名称  */
+    @Excel(name = "标准单位名称 ")
+    private String stdOrgNm;
+
+    /** 标准地市单位编码  */
+    @Excel(name = "标准地市单位编码 ")
+    private String stdCityOrgNo;
+
+    /** 标准地市单位名称  */
+    @Excel(name = "标准地市单位名称 ")
+    private String stdCityOrgNm;
+
+    /** 标准区县单位编码  */
+    @Excel(name = "标准区县单位编码 ")
+    private String stdCountyOrgNo;
+
+    /** 标准区县单位名称  */
+    @Excel(name = "标准区县单位名称 ")
+    private String stdCountyOrgNm;
+
+    /** 数据日期  */
+    @Excel(name = "数据日期 ")
+    private String dataDt;
+
+    /** etl时间戳  */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "etl时间戳 ", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date etlTm;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setRecId(String recId)
+    {
+        this.recId = recId;
+    }
+
+    public String getRecId()
+    {
+        return recId;
+    }
+    public void setLineNm(String lineNm)
+    {
+        this.lineNm = lineNm;
+    }
+
+    public String getLineNm()
+    {
+        return lineNm;
+    }
+    public void setLineRunNo(String lineRunNo)
+    {
+        this.lineRunNo = lineRunNo;
+    }
+
+    public String getLineRunNo()
+    {
+        return lineRunNo;
+    }
+    public void setVoltLvlCd(String voltLvlCd)
+    {
+        this.voltLvlCd = voltLvlCd;
+    }
+
+    public String getVoltLvlCd()
+    {
+        return voltLvlCd;
+    }
+    public void setVoltLvlDsc(String voltLvlDsc)
+    {
+        this.voltLvlDsc = voltLvlDsc;
+    }
+
+    public String getVoltLvlDsc()
+    {
+        return voltLvlDsc;
+    }
+    public void setSubsId(String subsId)
+    {
+        this.subsId = subsId;
+    }
+
+    public String getSubsId()
+    {
+        return subsId;
+    }
+    public void setSubsNm(String subsNm)
+    {
+        this.subsNm = subsNm;
+    }
+
+    public String getSubsNm()
+    {
+        return subsNm;
+    }
+    public void setFeederId(String feederId)
+    {
+        this.feederId = feederId;
+    }
+
+    public String getFeederId()
+    {
+        return feederId;
+    }
+    public void setFeederNm(String feederNm)
+    {
+        this.feederNm = feederNm;
+    }
+
+    public String getFeederNm()
+    {
+        return feederNm;
+    }
+    public void setOpMaintOrgId(String opMaintOrgId)
+    {
+        this.opMaintOrgId = opMaintOrgId;
+    }
+
+    public String getOpMaintOrgId()
+    {
+        return opMaintOrgId;
+    }
+    public void setOpMaintOrgNm(String opMaintOrgNm)
+    {
+        this.opMaintOrgNm = opMaintOrgNm;
+    }
+
+    public String getOpMaintOrgNm()
+    {
+        return opMaintOrgNm;
+    }
+    public void setMaintTeamId(String maintTeamId)
+    {
+        this.maintTeamId = maintTeamId;
+    }
+
+    public String getMaintTeamId()
+    {
+        return maintTeamId;
+    }
+    public void setMaintTeamNm(String maintTeamNm)
+    {
+        this.maintTeamNm = maintTeamNm;
+    }
+
+    public String getMaintTeamNm()
+    {
+        return maintTeamNm;
+    }
+    public void setOrgNo(String orgNo)
+    {
+        this.orgNo = orgNo;
+    }
+
+    public String getOrgNo()
+    {
+        return orgNo;
+    }
+    public void setOrgNm(String orgNm)
+    {
+        this.orgNm = orgNm;
+    }
+
+    public String getOrgNm()
+    {
+        return orgNm;
+    }
+    public void setStdCreatorNo(String stdCreatorNo)
+    {
+        this.stdCreatorNo = stdCreatorNo;
+    }
+
+    public String getStdCreatorNo()
+    {
+        return stdCreatorNo;
+    }
+    public void setStdCreatorNm(String stdCreatorNm)
+    {
+        this.stdCreatorNm = stdCreatorNm;
+    }
+
+    public String getStdCreatorNm()
+    {
+        return stdCreatorNm;
+    }
+    public void setStdUpdatorNo(String stdUpdatorNo)
+    {
+        this.stdUpdatorNo = stdUpdatorNo;
+    }
+
+    public String getStdUpdatorNo()
+    {
+        return stdUpdatorNo;
+    }
+    public void setStdUpdatorNm(String stdUpdatorNm)
+    {
+        this.stdUpdatorNm = stdUpdatorNm;
+    }
+
+    public String getStdUpdatorNm()
+    {
+        return stdUpdatorNm;
+    }
+    public void setStdOrgNo(String stdOrgNo)
+    {
+        this.stdOrgNo = stdOrgNo;
+    }
+
+    public String getStdOrgNo()
+    {
+        return stdOrgNo;
+    }
+    public void setStdOrgNm(String stdOrgNm)
+    {
+        this.stdOrgNm = stdOrgNm;
+    }
+
+    public String getStdOrgNm()
+    {
+        return stdOrgNm;
+    }
+    public void setStdCityOrgNo(String stdCityOrgNo)
+    {
+        this.stdCityOrgNo = stdCityOrgNo;
+    }
+
+    public String getStdCityOrgNo()
+    {
+        return stdCityOrgNo;
+    }
+    public void setStdCityOrgNm(String stdCityOrgNm)
+    {
+        this.stdCityOrgNm = stdCityOrgNm;
+    }
+
+    public String getStdCityOrgNm()
+    {
+        return stdCityOrgNm;
+    }
+    public void setStdCountyOrgNo(String stdCountyOrgNo)
+    {
+        this.stdCountyOrgNo = stdCountyOrgNo;
+    }
+
+    public String getStdCountyOrgNo()
+    {
+        return stdCountyOrgNo;
+    }
+    public void setStdCountyOrgNm(String stdCountyOrgNm)
+    {
+        this.stdCountyOrgNm = stdCountyOrgNm;
+    }
+
+    public String getStdCountyOrgNm()
+    {
+        return stdCountyOrgNm;
+    }
+    public void setDataDt(String dataDt)
+    {
+        this.dataDt = dataDt;
+    }
+
+    public String getDataDt()
+    {
+        return dataDt;
+    }
+    public void setEtlTm(Date etlTm)
+    {
+        this.etlTm = etlTm;
+    }
+
+    public Date getEtlTm()
+    {
+        return etlTm;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("recId", getRecId())
+            .append("lineNm", getLineNm())
+            .append("lineRunNo", getLineRunNo())
+            .append("voltLvlCd", getVoltLvlCd())
+            .append("voltLvlDsc", getVoltLvlDsc())
+            .append("subsId", getSubsId())
+            .append("subsNm", getSubsNm())
+            .append("feederId", getFeederId())
+            .append("feederNm", getFeederNm())
+            .append("opMaintOrgId", getOpMaintOrgId())
+            .append("opMaintOrgNm", getOpMaintOrgNm())
+            .append("maintTeamId", getMaintTeamId())
+            .append("maintTeamNm", getMaintTeamNm())
+            .append("orgNo", getOrgNo())
+            .append("orgNm", getOrgNm())
+            .append("stdCreatorNo", getStdCreatorNo())
+            .append("stdCreatorNm", getStdCreatorNm())
+            .append("stdUpdatorNo", getStdUpdatorNo())
+            .append("stdUpdatorNm", getStdUpdatorNm())
+            .append("stdOrgNo", getStdOrgNo())
+            .append("stdOrgNm", getStdOrgNm())
+            .append("stdCityOrgNo", getStdCityOrgNo())
+            .append("stdCityOrgNm", getStdCityOrgNm())
+            .append("stdCountyOrgNo", getStdCountyOrgNo())
+            .append("stdCountyOrgNm", getStdCountyOrgNm())
+            .append("dataDt", getDataDt())
+            .append("etlTm", getEtlTm())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmBranchLineMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmBranchLine;
+
+/**
+ * 可靠性分支线Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+public interface PdmBranchLineMapper
+{
+    /**
+     * 查询可靠性分支线
+     *
+     * @param id 可靠性分支线主键
+     * @return 可靠性分支线
+     */
+    public PdmBranchLine selectPdmBranchLineById(Long id);
+
+    /**
+     * 查询可靠性分支线列表
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 可靠性分支线集合
+     */
+    public List<PdmBranchLine> selectPdmBranchLineList(PdmBranchLine pdmBranchLine);
+
+    /**
+     * 新增可靠性分支线
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 结果
+     */
+    public int insertPdmBranchLine(PdmBranchLine pdmBranchLine);
+
+    /**
+     * 修改可靠性分支线
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 结果
+     */
+    public int updatePdmBranchLine(PdmBranchLine pdmBranchLine);
+
+    /**
+     * 删除可靠性分支线
+     *
+     * @param id 可靠性分支线主键
+     * @return 结果
+     */
+    public int deletePdmBranchLineById(Long id);
+
+    /**
+     * 批量删除可靠性分支线
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmBranchLineByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/mapper/PdmLineMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmLine;
+
+/**
+ * 可靠性馈线Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+public interface PdmLineMapper
+{
+    /**
+     * 查询可靠性馈线
+     *
+     * @param id 可靠性馈线主键
+     * @return 可靠性馈线
+     */
+    public PdmLine selectPdmLineById(Long id);
+
+    /**
+     * 查询可靠性馈线列表
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 可靠性馈线集合
+     */
+    public List<PdmLine> selectPdmLineList(PdmLine pdmLine);
+
+    /**
+     * 新增可靠性馈线
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 结果
+     */
+    public int insertPdmLine(PdmLine pdmLine);
+
+    /**
+     * 修改可靠性馈线
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 结果
+     */
+    public int updatePdmLine(PdmLine pdmLine);
+
+    /**
+     * 删除可靠性馈线
+     *
+     * @param id 可靠性馈线主键
+     * @return 结果
+     */
+    public int deletePdmLineById(Long id);
+
+    /**
+     * 批量删除可靠性馈线
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmLineByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmBranchLineService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmBranchLine;
+
+/**
+ * 可靠性分支线Service接口
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+public interface IPdmBranchLineService
+{
+    /**
+     * 查询可靠性分支线
+     *
+     * @param id 可靠性分支线主键
+     * @return 可靠性分支线
+     */
+    public PdmBranchLine selectPdmBranchLineById(Long id);
+
+    /**
+     * 查询可靠性分支线列表
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 可靠性分支线集合
+     */
+    public List<PdmBranchLine> selectPdmBranchLineList(PdmBranchLine pdmBranchLine);
+
+    /**
+     * 新增可靠性分支线
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 结果
+     */
+    public int insertPdmBranchLine(PdmBranchLine pdmBranchLine);
+
+    /**
+     * 修改可靠性分支线
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 结果
+     */
+    public int updatePdmBranchLine(PdmBranchLine pdmBranchLine);
+
+    /**
+     * 批量删除可靠性分支线
+     *
+     * @param ids 需要删除的可靠性分支线主键集合
+     * @return 结果
+     */
+    public int deletePdmBranchLineByIds(Long[] ids);
+
+    /**
+     * 删除可靠性分支线信息
+     *
+     * @param id 可靠性分支线主键
+     * @return 结果
+     */
+    public int deletePdmBranchLineById(Long id);
+}

+ 61 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/IPdmLineService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmLine;
+
+/**
+ * 可靠性馈线Service接口
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+public interface IPdmLineService
+{
+    /**
+     * 查询可靠性馈线
+     *
+     * @param id 可靠性馈线主键
+     * @return 可靠性馈线
+     */
+    public PdmLine selectPdmLineById(Long id);
+
+    /**
+     * 查询可靠性馈线列表
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 可靠性馈线集合
+     */
+    public List<PdmLine> selectPdmLineList(PdmLine pdmLine);
+
+    /**
+     * 新增可靠性馈线
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 结果
+     */
+    public int insertPdmLine(PdmLine pdmLine);
+
+    /**
+     * 修改可靠性馈线
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 结果
+     */
+    public int updatePdmLine(PdmLine pdmLine);
+
+    /**
+     * 批量删除可靠性馈线
+     *
+     * @param ids 需要删除的可靠性馈线主键集合
+     * @return 结果
+     */
+    public int deletePdmLineByIds(Long[] ids);
+
+    /**
+     * 删除可靠性馈线信息
+     *
+     * @param id 可靠性馈线主键
+     * @return 结果
+     */
+    public int deletePdmLineById(Long id);
+}

+ 93 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmBranchLineServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.powerdistribution.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.powerdistribution.mapper.PdmBranchLineMapper;
+import com.ruoyi.powerdistribution.domain.PdmBranchLine;
+import com.ruoyi.powerdistribution.service.IPdmBranchLineService;
+
+/**
+ * 可靠性分支线Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+@Service
+public class PdmBranchLineServiceImpl implements IPdmBranchLineService
+{
+    @Autowired
+    private PdmBranchLineMapper pdmBranchLineMapper;
+
+    /**
+     * 查询可靠性分支线
+     *
+     * @param id 可靠性分支线主键
+     * @return 可靠性分支线
+     */
+    @Override
+    public PdmBranchLine selectPdmBranchLineById(Long id)
+    {
+        return pdmBranchLineMapper.selectPdmBranchLineById(id);
+    }
+
+    /**
+     * 查询可靠性分支线列表
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 可靠性分支线
+     */
+    @Override
+    public List<PdmBranchLine> selectPdmBranchLineList(PdmBranchLine pdmBranchLine)
+    {
+        return pdmBranchLineMapper.selectPdmBranchLineList(pdmBranchLine);
+    }
+
+    /**
+     * 新增可靠性分支线
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 结果
+     */
+    @Override
+    public int insertPdmBranchLine(PdmBranchLine pdmBranchLine)
+    {
+        return pdmBranchLineMapper.insertPdmBranchLine(pdmBranchLine);
+    }
+
+    /**
+     * 修改可靠性分支线
+     *
+     * @param pdmBranchLine 可靠性分支线
+     * @return 结果
+     */
+    @Override
+    public int updatePdmBranchLine(PdmBranchLine pdmBranchLine)
+    {
+        return pdmBranchLineMapper.updatePdmBranchLine(pdmBranchLine);
+    }
+
+    /**
+     * 批量删除可靠性分支线
+     *
+     * @param ids 需要删除的可靠性分支线主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmBranchLineByIds(Long[] ids)
+    {
+        return pdmBranchLineMapper.deletePdmBranchLineByIds(ids);
+    }
+
+    /**
+     * 删除可靠性分支线信息
+     *
+     * @param id 可靠性分支线主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmBranchLineById(Long id)
+    {
+        return pdmBranchLineMapper.deletePdmBranchLineById(id);
+    }
+}

+ 93 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmLineServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.powerdistribution.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.powerdistribution.mapper.PdmLineMapper;
+import com.ruoyi.powerdistribution.domain.PdmLine;
+import com.ruoyi.powerdistribution.service.IPdmLineService;
+
+/**
+ * 可靠性馈线Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-12-24
+ */
+@Service
+public class PdmLineServiceImpl implements IPdmLineService
+{
+    @Autowired
+    private PdmLineMapper pdmLineMapper;
+
+    /**
+     * 查询可靠性馈线
+     *
+     * @param id 可靠性馈线主键
+     * @return 可靠性馈线
+     */
+    @Override
+    public PdmLine selectPdmLineById(Long id)
+    {
+        return pdmLineMapper.selectPdmLineById(id);
+    }
+
+    /**
+     * 查询可靠性馈线列表
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 可靠性馈线
+     */
+    @Override
+    public List<PdmLine> selectPdmLineList(PdmLine pdmLine)
+    {
+        return pdmLineMapper.selectPdmLineList(pdmLine);
+    }
+
+    /**
+     * 新增可靠性馈线
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 结果
+     */
+    @Override
+    public int insertPdmLine(PdmLine pdmLine)
+    {
+        return pdmLineMapper.insertPdmLine(pdmLine);
+    }
+
+    /**
+     * 修改可靠性馈线
+     *
+     * @param pdmLine 可靠性馈线
+     * @return 结果
+     */
+    @Override
+    public int updatePdmLine(PdmLine pdmLine)
+    {
+        return pdmLineMapper.updatePdmLine(pdmLine);
+    }
+
+    /**
+     * 批量删除可靠性馈线
+     *
+     * @param ids 需要删除的可靠性馈线主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmLineByIds(Long[] ids)
+    {
+        return pdmLineMapper.deletePdmLineByIds(ids);
+    }
+
+    /**
+     * 删除可靠性馈线信息
+     *
+     * @param id 可靠性馈线主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmLineById(Long id)
+    {
+        return pdmLineMapper.deletePdmLineById(id);
+    }
+}

+ 306 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmBranchLineMapper.xml

@@ -0,0 +1,306 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.powerdistribution.mapper.PdmBranchLineMapper">
+
+    <resultMap type="PdmBranchLine" id="PdmBranchLineResult">
+        <result property="id"    column="id"    />
+        <result property="bigFeederBranchLineId"    column="big_feeder_branch_line_id"    />
+        <result property="lineNm"    column="line_nm"    />
+        <result property="eqpNo"    column="eqp_no"    />
+        <result property="runNo"    column="run_no"    />
+        <result property="blgBigFeederId"    column="blg_big_feeder_id"    />
+        <result property="blgBigFeederNm"    column="blg_big_feeder_nm"    />
+        <result property="voltLvlCd"    column="volt_lvl_cd"    />
+        <result property="voltLvlDsc"    column="volt_lvl_dsc"    />
+        <result property="erectModeCd"    column="erect_mode_cd"    />
+        <result property="erectModeDsc"    column="erect_mode_dsc"    />
+        <result property="overhdLineLen"    column="overhd_line_len"    />
+        <result property="cableLineLen"    column="cable_line_len"    />
+        <result property="lineTolLen"    column="line_tol_len"    />
+        <result property="startEqpId"    column="start_eqp_id"    />
+        <result property="startEqpNm"    column="start_eqp_nm"    />
+        <result property="startEqpTypCd"    column="start_eqp_typ_cd"    />
+        <result property="startEqpTypDsc"    column="start_eqp_typ_dsc"    />
+        <result property="lineNatureCd"    column="line_nature_cd"    />
+        <result property="lineNatureDsc"    column="line_nature_dsc"    />
+        <result property="blgSuperLineId"    column="blg_super_line_id"    />
+        <result property="blgSuperLineNm"    column="blg_super_line_nm"    />
+        <result property="blgCityId"    column="blg_city_id"    />
+        <result property="blgCityNm"    column="blg_city_nm"    />
+        <result property="opMaintOrgId"    column="op_maint_org_id"    />
+        <result property="opMaintOrgNm"    column="op_maint_org_nm"    />
+        <result property="maintTeamId"    column="maint_team_id"    />
+        <result property="maintTeamNm"    column="maint_team_nm"    />
+        <result property="runStCd"    column="run_st_cd"    />
+        <result property="runStDsc"    column="run_st_dsc"    />
+        <result property="releaseStDsc"    column="release_st_dsc"    />
+        <result property="repmaintLineLen"    column="repmaint_line_len"    />
+        <result property="isHaveFigur"    column="is_have_figur"    />
+        <result property="stdEqpMasterId"    column="std_eqp_master_id"    />
+        <result property="stdEqpMasterNm"    column="std_eqp_master_nm"    />
+        <result property="shipDt"    column="ship_dt"    />
+        <result property="stdOrgNo"    column="std_org_no"    />
+        <result property="stdOrgNm"    column="std_org_nm"    />
+        <result property="stdCityOrgNm"    column="std_city_org_nm"    />
+        <result property="stdCountyOrgNo"    column="std_county_org_no"    />
+        <result property="stdCountyOrgNm"    column="std_county_org_nm"    />
+        <result property="dataDt"    column="data_dt"    />
+        <result property="etlTm"    column="etl_tm"    />
+        <result property="stdCityOrgNo"    column="std_city_org_no"    />
+        <result property="startPos"    column="start_pos"    />
+        <result property="eqpMasterId"    column="eqp_master_id"    />
+        <result property="eqpMasterNm"    column="eqp_master_nm"    />
+        <result property="battalionId"    column="battalion_id"    />
+        <result property="battalionNm"    column="battalion_nm"    />
+        <result property="retrogresDt"    column="retrogres_dt"    />
+        <result property="createTm"    column="create_tm"    />
+        <result property="latestUpdTm"    column="latest_upd_tm"    />
+    </resultMap>
+
+    <sql id="selectPdmBranchLineVo">
+        select id, big_feeder_branch_line_id, line_nm, eqp_no, run_no, blg_big_feeder_id, blg_big_feeder_nm, volt_lvl_cd, volt_lvl_dsc, erect_mode_cd, erect_mode_dsc, overhd_line_len, cable_line_len, line_tol_len, start_eqp_id, start_eqp_nm, start_eqp_typ_cd, start_eqp_typ_dsc, line_nature_cd, line_nature_dsc, blg_super_line_id, blg_super_line_nm, blg_city_id, blg_city_nm, op_maint_org_id, op_maint_org_nm, maint_team_id, maint_team_nm, run_st_cd, run_st_dsc, release_st_dsc, repmaint_line_len, is_have_figur, std_eqp_master_id, std_eqp_master_nm, ship_dt, std_org_no, std_org_nm, std_city_org_nm, std_county_org_no, std_county_org_nm, data_dt, etl_tm, std_city_org_no, start_pos, eqp_master_id, eqp_master_nm, battalion_id, battalion_nm, retrogres_dt, create_tm, latest_upd_tm from pdm_branch_line
+    </sql>
+
+    <select id="selectPdmBranchLineList" parameterType="PdmBranchLine" resultMap="PdmBranchLineResult">
+        <include refid="selectPdmBranchLineVo"/>
+        <where>
+            <if test="bigFeederBranchLineId != null  and bigFeederBranchLineId != ''"> and big_feeder_branch_line_id = #{bigFeederBranchLineId}</if>
+            <if test="lineNm != null  and lineNm != ''"> and line_nm = #{lineNm}</if>
+            <if test="eqpNo != null  and eqpNo != ''"> and eqp_no = #{eqpNo}</if>
+            <if test="runNo != null  and runNo != ''"> and run_no = #{runNo}</if>
+            <if test="blgBigFeederId != null  and blgBigFeederId != ''"> and blg_big_feeder_id = #{blgBigFeederId}</if>
+            <if test="blgBigFeederNm != null  and blgBigFeederNm != ''"> and blg_big_feeder_nm = #{blgBigFeederNm}</if>
+            <if test="voltLvlCd != null  and voltLvlCd != ''"> and volt_lvl_cd = #{voltLvlCd}</if>
+            <if test="voltLvlDsc != null  and voltLvlDsc != ''"> and volt_lvl_dsc = #{voltLvlDsc}</if>
+            <if test="erectModeCd != null  and erectModeCd != ''"> and erect_mode_cd = #{erectModeCd}</if>
+            <if test="erectModeDsc != null  and erectModeDsc != ''"> and erect_mode_dsc = #{erectModeDsc}</if>
+            <if test="overhdLineLen != null "> and overhd_line_len = #{overhdLineLen}</if>
+            <if test="cableLineLen != null "> and cable_line_len = #{cableLineLen}</if>
+            <if test="lineTolLen != null "> and line_tol_len = #{lineTolLen}</if>
+            <if test="startEqpId != null  and startEqpId != ''"> and start_eqp_id = #{startEqpId}</if>
+            <if test="startEqpNm != null  and startEqpNm != ''"> and start_eqp_nm = #{startEqpNm}</if>
+            <if test="startEqpTypCd != null  and startEqpTypCd != ''"> and start_eqp_typ_cd = #{startEqpTypCd}</if>
+            <if test="startEqpTypDsc != null  and startEqpTypDsc != ''"> and start_eqp_typ_dsc = #{startEqpTypDsc}</if>
+            <if test="lineNatureCd != null  and lineNatureCd != ''"> and line_nature_cd = #{lineNatureCd}</if>
+            <if test="lineNatureDsc != null  and lineNatureDsc != ''"> and line_nature_dsc = #{lineNatureDsc}</if>
+            <if test="blgSuperLineId != null  and blgSuperLineId != ''"> and blg_super_line_id = #{blgSuperLineId}</if>
+            <if test="blgSuperLineNm != null  and blgSuperLineNm != ''"> and blg_super_line_nm = #{blgSuperLineNm}</if>
+            <if test="blgCityId != null  and blgCityId != ''"> and blg_city_id = #{blgCityId}</if>
+            <if test="blgCityNm != null  and blgCityNm != ''"> and blg_city_nm = #{blgCityNm}</if>
+            <if test="opMaintOrgId != null  and opMaintOrgId != ''"> and op_maint_org_id = #{opMaintOrgId}</if>
+            <if test="opMaintOrgNm != null  and opMaintOrgNm != ''"> and op_maint_org_nm = #{opMaintOrgNm}</if>
+            <if test="maintTeamId != null  and maintTeamId != ''"> and maint_team_id = #{maintTeamId}</if>
+            <if test="maintTeamNm != null  and maintTeamNm != ''"> and maint_team_nm = #{maintTeamNm}</if>
+            <if test="runStCd != null  and runStCd != ''"> and run_st_cd = #{runStCd}</if>
+            <if test="runStDsc != null  and runStDsc != ''"> and run_st_dsc = #{runStDsc}</if>
+            <if test="releaseStDsc != null  and releaseStDsc != ''"> and release_st_dsc = #{releaseStDsc}</if>
+            <if test="repmaintLineLen != null "> and repmaint_line_len = #{repmaintLineLen}</if>
+            <if test="isHaveFigur != null  and isHaveFigur != ''"> and is_have_figur = #{isHaveFigur}</if>
+            <if test="stdEqpMasterId != null  and stdEqpMasterId != ''"> and std_eqp_master_id = #{stdEqpMasterId}</if>
+            <if test="stdEqpMasterNm != null  and stdEqpMasterNm != ''"> and std_eqp_master_nm = #{stdEqpMasterNm}</if>
+            <if test="shipDt != null  and shipDt != ''"> and ship_dt = #{shipDt}</if>
+            <if test="stdOrgNo != null  and stdOrgNo != ''"> and std_org_no = #{stdOrgNo}</if>
+            <if test="stdOrgNm != null  and stdOrgNm != ''"> and std_org_nm = #{stdOrgNm}</if>
+            <if test="stdCityOrgNm != null  and stdCityOrgNm != ''"> and std_city_org_nm = #{stdCityOrgNm}</if>
+            <if test="stdCountyOrgNo != null  and stdCountyOrgNo != ''"> and std_county_org_no = #{stdCountyOrgNo}</if>
+            <if test="stdCountyOrgNm != null  and stdCountyOrgNm != ''"> and std_county_org_nm = #{stdCountyOrgNm}</if>
+            <if test="dataDt != null  and dataDt != ''"> and data_dt = #{dataDt}</if>
+            <if test="etlTm != null "> and etl_tm = #{etlTm}</if>
+            <if test="stdCityOrgNo != null  and stdCityOrgNo != ''"> and std_city_org_no = #{stdCityOrgNo}</if>
+            <if test="startPos != null  and startPos != ''"> and start_pos = #{startPos}</if>
+            <if test="eqpMasterId != null  and eqpMasterId != ''"> and eqp_master_id = #{eqpMasterId}</if>
+            <if test="eqpMasterNm != null  and eqpMasterNm != ''"> and eqp_master_nm = #{eqpMasterNm}</if>
+            <if test="battalionId != null  and battalionId != ''"> and battalion_id = #{battalionId}</if>
+            <if test="battalionNm != null  and battalionNm != ''"> and battalion_nm = #{battalionNm}</if>
+            <if test="retrogresDt != null "> and retrogres_dt = #{retrogresDt}</if>
+            <if test="createTm != null "> and create_tm = #{createTm}</if>
+            <if test="latestUpdTm != null "> and latest_upd_tm = #{latestUpdTm}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmBranchLineById" parameterType="Long" resultMap="PdmBranchLineResult">
+        <include refid="selectPdmBranchLineVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmBranchLine" parameterType="PdmBranchLine" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_branch_line
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="bigFeederBranchLineId != null">big_feeder_branch_line_id,</if>
+            <if test="lineNm != null">line_nm,</if>
+            <if test="eqpNo != null">eqp_no,</if>
+            <if test="runNo != null">run_no,</if>
+            <if test="blgBigFeederId != null">blg_big_feeder_id,</if>
+            <if test="blgBigFeederNm != null">blg_big_feeder_nm,</if>
+            <if test="voltLvlCd != null">volt_lvl_cd,</if>
+            <if test="voltLvlDsc != null">volt_lvl_dsc,</if>
+            <if test="erectModeCd != null">erect_mode_cd,</if>
+            <if test="erectModeDsc != null">erect_mode_dsc,</if>
+            <if test="overhdLineLen != null">overhd_line_len,</if>
+            <if test="cableLineLen != null">cable_line_len,</if>
+            <if test="lineTolLen != null">line_tol_len,</if>
+            <if test="startEqpId != null">start_eqp_id,</if>
+            <if test="startEqpNm != null">start_eqp_nm,</if>
+            <if test="startEqpTypCd != null">start_eqp_typ_cd,</if>
+            <if test="startEqpTypDsc != null">start_eqp_typ_dsc,</if>
+            <if test="lineNatureCd != null">line_nature_cd,</if>
+            <if test="lineNatureDsc != null">line_nature_dsc,</if>
+            <if test="blgSuperLineId != null">blg_super_line_id,</if>
+            <if test="blgSuperLineNm != null">blg_super_line_nm,</if>
+            <if test="blgCityId != null">blg_city_id,</if>
+            <if test="blgCityNm != null">blg_city_nm,</if>
+            <if test="opMaintOrgId != null">op_maint_org_id,</if>
+            <if test="opMaintOrgNm != null">op_maint_org_nm,</if>
+            <if test="maintTeamId != null">maint_team_id,</if>
+            <if test="maintTeamNm != null">maint_team_nm,</if>
+            <if test="runStCd != null">run_st_cd,</if>
+            <if test="runStDsc != null">run_st_dsc,</if>
+            <if test="releaseStDsc != null">release_st_dsc,</if>
+            <if test="repmaintLineLen != null">repmaint_line_len,</if>
+            <if test="isHaveFigur != null">is_have_figur,</if>
+            <if test="stdEqpMasterId != null">std_eqp_master_id,</if>
+            <if test="stdEqpMasterNm != null">std_eqp_master_nm,</if>
+            <if test="shipDt != null">ship_dt,</if>
+            <if test="stdOrgNo != null">std_org_no,</if>
+            <if test="stdOrgNm != null">std_org_nm,</if>
+            <if test="stdCityOrgNm != null">std_city_org_nm,</if>
+            <if test="stdCountyOrgNo != null">std_county_org_no,</if>
+            <if test="stdCountyOrgNm != null">std_county_org_nm,</if>
+            <if test="dataDt != null">data_dt,</if>
+            <if test="etlTm != null">etl_tm,</if>
+            <if test="stdCityOrgNo != null">std_city_org_no,</if>
+            <if test="startPos != null">start_pos,</if>
+            <if test="eqpMasterId != null">eqp_master_id,</if>
+            <if test="eqpMasterNm != null">eqp_master_nm,</if>
+            <if test="battalionId != null">battalion_id,</if>
+            <if test="battalionNm != null">battalion_nm,</if>
+            <if test="retrogresDt != null">retrogres_dt,</if>
+            <if test="createTm != null">create_tm,</if>
+            <if test="latestUpdTm != null">latest_upd_tm,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="bigFeederBranchLineId != null">#{bigFeederBranchLineId},</if>
+            <if test="lineNm != null">#{lineNm},</if>
+            <if test="eqpNo != null">#{eqpNo},</if>
+            <if test="runNo != null">#{runNo},</if>
+            <if test="blgBigFeederId != null">#{blgBigFeederId},</if>
+            <if test="blgBigFeederNm != null">#{blgBigFeederNm},</if>
+            <if test="voltLvlCd != null">#{voltLvlCd},</if>
+            <if test="voltLvlDsc != null">#{voltLvlDsc},</if>
+            <if test="erectModeCd != null">#{erectModeCd},</if>
+            <if test="erectModeDsc != null">#{erectModeDsc},</if>
+            <if test="overhdLineLen != null">#{overhdLineLen},</if>
+            <if test="cableLineLen != null">#{cableLineLen},</if>
+            <if test="lineTolLen != null">#{lineTolLen},</if>
+            <if test="startEqpId != null">#{startEqpId},</if>
+            <if test="startEqpNm != null">#{startEqpNm},</if>
+            <if test="startEqpTypCd != null">#{startEqpTypCd},</if>
+            <if test="startEqpTypDsc != null">#{startEqpTypDsc},</if>
+            <if test="lineNatureCd != null">#{lineNatureCd},</if>
+            <if test="lineNatureDsc != null">#{lineNatureDsc},</if>
+            <if test="blgSuperLineId != null">#{blgSuperLineId},</if>
+            <if test="blgSuperLineNm != null">#{blgSuperLineNm},</if>
+            <if test="blgCityId != null">#{blgCityId},</if>
+            <if test="blgCityNm != null">#{blgCityNm},</if>
+            <if test="opMaintOrgId != null">#{opMaintOrgId},</if>
+            <if test="opMaintOrgNm != null">#{opMaintOrgNm},</if>
+            <if test="maintTeamId != null">#{maintTeamId},</if>
+            <if test="maintTeamNm != null">#{maintTeamNm},</if>
+            <if test="runStCd != null">#{runStCd},</if>
+            <if test="runStDsc != null">#{runStDsc},</if>
+            <if test="releaseStDsc != null">#{releaseStDsc},</if>
+            <if test="repmaintLineLen != null">#{repmaintLineLen},</if>
+            <if test="isHaveFigur != null">#{isHaveFigur},</if>
+            <if test="stdEqpMasterId != null">#{stdEqpMasterId},</if>
+            <if test="stdEqpMasterNm != null">#{stdEqpMasterNm},</if>
+            <if test="shipDt != null">#{shipDt},</if>
+            <if test="stdOrgNo != null">#{stdOrgNo},</if>
+            <if test="stdOrgNm != null">#{stdOrgNm},</if>
+            <if test="stdCityOrgNm != null">#{stdCityOrgNm},</if>
+            <if test="stdCountyOrgNo != null">#{stdCountyOrgNo},</if>
+            <if test="stdCountyOrgNm != null">#{stdCountyOrgNm},</if>
+            <if test="dataDt != null">#{dataDt},</if>
+            <if test="etlTm != null">#{etlTm},</if>
+            <if test="stdCityOrgNo != null">#{stdCityOrgNo},</if>
+            <if test="startPos != null">#{startPos},</if>
+            <if test="eqpMasterId != null">#{eqpMasterId},</if>
+            <if test="eqpMasterNm != null">#{eqpMasterNm},</if>
+            <if test="battalionId != null">#{battalionId},</if>
+            <if test="battalionNm != null">#{battalionNm},</if>
+            <if test="retrogresDt != null">#{retrogresDt},</if>
+            <if test="createTm != null">#{createTm},</if>
+            <if test="latestUpdTm != null">#{latestUpdTm},</if>
+         </trim>
+    </insert>
+
+    <update id="updatePdmBranchLine" parameterType="PdmBranchLine">
+        update pdm_branch_line
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="bigFeederBranchLineId != null">big_feeder_branch_line_id = #{bigFeederBranchLineId},</if>
+            <if test="lineNm != null">line_nm = #{lineNm},</if>
+            <if test="eqpNo != null">eqp_no = #{eqpNo},</if>
+            <if test="runNo != null">run_no = #{runNo},</if>
+            <if test="blgBigFeederId != null">blg_big_feeder_id = #{blgBigFeederId},</if>
+            <if test="blgBigFeederNm != null">blg_big_feeder_nm = #{blgBigFeederNm},</if>
+            <if test="voltLvlCd != null">volt_lvl_cd = #{voltLvlCd},</if>
+            <if test="voltLvlDsc != null">volt_lvl_dsc = #{voltLvlDsc},</if>
+            <if test="erectModeCd != null">erect_mode_cd = #{erectModeCd},</if>
+            <if test="erectModeDsc != null">erect_mode_dsc = #{erectModeDsc},</if>
+            <if test="overhdLineLen != null">overhd_line_len = #{overhdLineLen},</if>
+            <if test="cableLineLen != null">cable_line_len = #{cableLineLen},</if>
+            <if test="lineTolLen != null">line_tol_len = #{lineTolLen},</if>
+            <if test="startEqpId != null">start_eqp_id = #{startEqpId},</if>
+            <if test="startEqpNm != null">start_eqp_nm = #{startEqpNm},</if>
+            <if test="startEqpTypCd != null">start_eqp_typ_cd = #{startEqpTypCd},</if>
+            <if test="startEqpTypDsc != null">start_eqp_typ_dsc = #{startEqpTypDsc},</if>
+            <if test="lineNatureCd != null">line_nature_cd = #{lineNatureCd},</if>
+            <if test="lineNatureDsc != null">line_nature_dsc = #{lineNatureDsc},</if>
+            <if test="blgSuperLineId != null">blg_super_line_id = #{blgSuperLineId},</if>
+            <if test="blgSuperLineNm != null">blg_super_line_nm = #{blgSuperLineNm},</if>
+            <if test="blgCityId != null">blg_city_id = #{blgCityId},</if>
+            <if test="blgCityNm != null">blg_city_nm = #{blgCityNm},</if>
+            <if test="opMaintOrgId != null">op_maint_org_id = #{opMaintOrgId},</if>
+            <if test="opMaintOrgNm != null">op_maint_org_nm = #{opMaintOrgNm},</if>
+            <if test="maintTeamId != null">maint_team_id = #{maintTeamId},</if>
+            <if test="maintTeamNm != null">maint_team_nm = #{maintTeamNm},</if>
+            <if test="runStCd != null">run_st_cd = #{runStCd},</if>
+            <if test="runStDsc != null">run_st_dsc = #{runStDsc},</if>
+            <if test="releaseStDsc != null">release_st_dsc = #{releaseStDsc},</if>
+            <if test="repmaintLineLen != null">repmaint_line_len = #{repmaintLineLen},</if>
+            <if test="isHaveFigur != null">is_have_figur = #{isHaveFigur},</if>
+            <if test="stdEqpMasterId != null">std_eqp_master_id = #{stdEqpMasterId},</if>
+            <if test="stdEqpMasterNm != null">std_eqp_master_nm = #{stdEqpMasterNm},</if>
+            <if test="shipDt != null">ship_dt = #{shipDt},</if>
+            <if test="stdOrgNo != null">std_org_no = #{stdOrgNo},</if>
+            <if test="stdOrgNm != null">std_org_nm = #{stdOrgNm},</if>
+            <if test="stdCityOrgNm != null">std_city_org_nm = #{stdCityOrgNm},</if>
+            <if test="stdCountyOrgNo != null">std_county_org_no = #{stdCountyOrgNo},</if>
+            <if test="stdCountyOrgNm != null">std_county_org_nm = #{stdCountyOrgNm},</if>
+            <if test="dataDt != null">data_dt = #{dataDt},</if>
+            <if test="etlTm != null">etl_tm = #{etlTm},</if>
+            <if test="stdCityOrgNo != null">std_city_org_no = #{stdCityOrgNo},</if>
+            <if test="startPos != null">start_pos = #{startPos},</if>
+            <if test="eqpMasterId != null">eqp_master_id = #{eqpMasterId},</if>
+            <if test="eqpMasterNm != null">eqp_master_nm = #{eqpMasterNm},</if>
+            <if test="battalionId != null">battalion_id = #{battalionId},</if>
+            <if test="battalionNm != null">battalion_nm = #{battalionNm},</if>
+            <if test="retrogresDt != null">retrogres_dt = #{retrogresDt},</if>
+            <if test="createTm != null">create_tm = #{createTm},</if>
+            <if test="latestUpdTm != null">latest_upd_tm = #{latestUpdTm},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deletePdmBranchLineById" parameterType="Long">
+        delete from pdm_branch_line where id = #{id}
+    </delete>
+
+    <delete id="deletePdmBranchLineByIds" parameterType="String">
+        delete from pdm_branch_line where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 186 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmLineMapper.xml

@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.powerdistribution.mapper.PdmLineMapper">
+
+    <resultMap type="PdmLine" id="PdmLineResult">
+        <result property="id"    column="id"    />
+        <result property="recId"    column="rec_id"    />
+        <result property="lineNm"    column="line_nm"    />
+        <result property="lineRunNo"    column="line_run_no"    />
+        <result property="voltLvlCd"    column="volt_lvl_cd"    />
+        <result property="voltLvlDsc"    column="volt_lvl_dsc"    />
+        <result property="subsId"    column="subs_id"    />
+        <result property="subsNm"    column="subs_nm"    />
+        <result property="feederId"    column="feeder_id"    />
+        <result property="feederNm"    column="feeder_nm"    />
+        <result property="opMaintOrgId"    column="op_maint_org_id"    />
+        <result property="opMaintOrgNm"    column="op_maint_org_nm"    />
+        <result property="maintTeamId"    column="maint_team_id"    />
+        <result property="maintTeamNm"    column="maint_team_nm"    />
+        <result property="orgNo"    column="org_no"    />
+        <result property="orgNm"    column="org_nm"    />
+        <result property="stdCreatorNo"    column="std_creator_no"    />
+        <result property="stdCreatorNm"    column="std_creator_nm"    />
+        <result property="stdUpdatorNo"    column="std_updator_no"    />
+        <result property="stdUpdatorNm"    column="std_updator_nm"    />
+        <result property="stdOrgNo"    column="std_org_no"    />
+        <result property="stdOrgNm"    column="std_org_nm"    />
+        <result property="stdCityOrgNo"    column="std_city_org_no"    />
+        <result property="stdCityOrgNm"    column="std_city_org_nm"    />
+        <result property="stdCountyOrgNo"    column="std_county_org_no"    />
+        <result property="stdCountyOrgNm"    column="std_county_org_nm"    />
+        <result property="dataDt"    column="data_dt"    />
+        <result property="etlTm"    column="etl_tm"    />
+    </resultMap>
+
+    <sql id="selectPdmLineVo">
+        select id, rec_id, line_nm, line_run_no, volt_lvl_cd, volt_lvl_dsc, subs_id, subs_nm, feeder_id, feeder_nm, op_maint_org_id, op_maint_org_nm, maint_team_id, maint_team_nm, org_no, org_nm, std_creator_no, std_creator_nm, std_updator_no, std_updator_nm, std_org_no, std_org_nm, std_city_org_no, std_city_org_nm, std_county_org_no, std_county_org_nm, data_dt, etl_tm from pdm_line
+    </sql>
+
+    <select id="selectPdmLineList" parameterType="PdmLine" resultMap="PdmLineResult">
+        <include refid="selectPdmLineVo"/>
+        <where>
+            <if test="recId != null  and recId != ''"> and rec_id = #{recId}</if>
+            <if test="lineNm != null  and lineNm != ''"> and line_nm = #{lineNm}</if>
+            <if test="lineRunNo != null  and lineRunNo != ''"> and line_run_no = #{lineRunNo}</if>
+            <if test="voltLvlCd != null  and voltLvlCd != ''"> and volt_lvl_cd = #{voltLvlCd}</if>
+            <if test="voltLvlDsc != null  and voltLvlDsc != ''"> and volt_lvl_dsc = #{voltLvlDsc}</if>
+            <if test="subsId != null  and subsId != ''"> and subs_id = #{subsId}</if>
+            <if test="subsNm != null  and subsNm != ''"> and subs_nm = #{subsNm}</if>
+            <if test="feederId != null  and feederId != ''"> and feeder_id = #{feederId}</if>
+            <if test="feederNm != null  and feederNm != ''"> and feeder_nm = #{feederNm}</if>
+            <if test="opMaintOrgId != null  and opMaintOrgId != ''"> and op_maint_org_id = #{opMaintOrgId}</if>
+            <if test="opMaintOrgNm != null  and opMaintOrgNm != ''"> and op_maint_org_nm = #{opMaintOrgNm}</if>
+            <if test="maintTeamId != null  and maintTeamId != ''"> and maint_team_id = #{maintTeamId}</if>
+            <if test="maintTeamNm != null  and maintTeamNm != ''"> and maint_team_nm = #{maintTeamNm}</if>
+            <if test="orgNo != null  and orgNo != ''"> and org_no = #{orgNo}</if>
+            <if test="orgNm != null  and orgNm != ''"> and org_nm = #{orgNm}</if>
+            <if test="stdCreatorNo != null  and stdCreatorNo != ''"> and std_creator_no = #{stdCreatorNo}</if>
+            <if test="stdCreatorNm != null  and stdCreatorNm != ''"> and std_creator_nm = #{stdCreatorNm}</if>
+            <if test="stdUpdatorNo != null  and stdUpdatorNo != ''"> and std_updator_no = #{stdUpdatorNo}</if>
+            <if test="stdUpdatorNm != null  and stdUpdatorNm != ''"> and std_updator_nm = #{stdUpdatorNm}</if>
+            <if test="stdOrgNo != null  and stdOrgNo != ''"> and std_org_no = #{stdOrgNo}</if>
+            <if test="stdOrgNm != null  and stdOrgNm != ''"> and std_org_nm = #{stdOrgNm}</if>
+            <if test="stdCityOrgNo != null  and stdCityOrgNo != ''"> and std_city_org_no = #{stdCityOrgNo}</if>
+            <if test="stdCityOrgNm != null  and stdCityOrgNm != ''"> and std_city_org_nm = #{stdCityOrgNm}</if>
+            <if test="stdCountyOrgNo != null  and stdCountyOrgNo != ''"> and std_county_org_no = #{stdCountyOrgNo}</if>
+            <if test="stdCountyOrgNm != null  and stdCountyOrgNm != ''"> and std_county_org_nm = #{stdCountyOrgNm}</if>
+            <if test="dataDt != null  and dataDt != ''"> and data_dt = #{dataDt}</if>
+            <if test="etlTm != null "> and etl_tm = #{etlTm}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmLineById" parameterType="Long" resultMap="PdmLineResult">
+        <include refid="selectPdmLineVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmLine" parameterType="PdmLine" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_line
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="recId != null">rec_id,</if>
+            <if test="lineNm != null">line_nm,</if>
+            <if test="lineRunNo != null">line_run_no,</if>
+            <if test="voltLvlCd != null">volt_lvl_cd,</if>
+            <if test="voltLvlDsc != null">volt_lvl_dsc,</if>
+            <if test="subsId != null">subs_id,</if>
+            <if test="subsNm != null">subs_nm,</if>
+            <if test="feederId != null">feeder_id,</if>
+            <if test="feederNm != null">feeder_nm,</if>
+            <if test="opMaintOrgId != null">op_maint_org_id,</if>
+            <if test="opMaintOrgNm != null">op_maint_org_nm,</if>
+            <if test="maintTeamId != null">maint_team_id,</if>
+            <if test="maintTeamNm != null">maint_team_nm,</if>
+            <if test="orgNo != null">org_no,</if>
+            <if test="orgNm != null">org_nm,</if>
+            <if test="stdCreatorNo != null">std_creator_no,</if>
+            <if test="stdCreatorNm != null">std_creator_nm,</if>
+            <if test="stdUpdatorNo != null">std_updator_no,</if>
+            <if test="stdUpdatorNm != null">std_updator_nm,</if>
+            <if test="stdOrgNo != null">std_org_no,</if>
+            <if test="stdOrgNm != null">std_org_nm,</if>
+            <if test="stdCityOrgNo != null">std_city_org_no,</if>
+            <if test="stdCityOrgNm != null">std_city_org_nm,</if>
+            <if test="stdCountyOrgNo != null">std_county_org_no,</if>
+            <if test="stdCountyOrgNm != null">std_county_org_nm,</if>
+            <if test="dataDt != null">data_dt,</if>
+            <if test="etlTm != null">etl_tm,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="recId != null">#{recId},</if>
+            <if test="lineNm != null">#{lineNm},</if>
+            <if test="lineRunNo != null">#{lineRunNo},</if>
+            <if test="voltLvlCd != null">#{voltLvlCd},</if>
+            <if test="voltLvlDsc != null">#{voltLvlDsc},</if>
+            <if test="subsId != null">#{subsId},</if>
+            <if test="subsNm != null">#{subsNm},</if>
+            <if test="feederId != null">#{feederId},</if>
+            <if test="feederNm != null">#{feederNm},</if>
+            <if test="opMaintOrgId != null">#{opMaintOrgId},</if>
+            <if test="opMaintOrgNm != null">#{opMaintOrgNm},</if>
+            <if test="maintTeamId != null">#{maintTeamId},</if>
+            <if test="maintTeamNm != null">#{maintTeamNm},</if>
+            <if test="orgNo != null">#{orgNo},</if>
+            <if test="orgNm != null">#{orgNm},</if>
+            <if test="stdCreatorNo != null">#{stdCreatorNo},</if>
+            <if test="stdCreatorNm != null">#{stdCreatorNm},</if>
+            <if test="stdUpdatorNo != null">#{stdUpdatorNo},</if>
+            <if test="stdUpdatorNm != null">#{stdUpdatorNm},</if>
+            <if test="stdOrgNo != null">#{stdOrgNo},</if>
+            <if test="stdOrgNm != null">#{stdOrgNm},</if>
+            <if test="stdCityOrgNo != null">#{stdCityOrgNo},</if>
+            <if test="stdCityOrgNm != null">#{stdCityOrgNm},</if>
+            <if test="stdCountyOrgNo != null">#{stdCountyOrgNo},</if>
+            <if test="stdCountyOrgNm != null">#{stdCountyOrgNm},</if>
+            <if test="dataDt != null">#{dataDt},</if>
+            <if test="etlTm != null">#{etlTm},</if>
+         </trim>
+    </insert>
+
+    <update id="updatePdmLine" parameterType="PdmLine">
+        update pdm_line
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="recId != null">rec_id = #{recId},</if>
+            <if test="lineNm != null">line_nm = #{lineNm},</if>
+            <if test="lineRunNo != null">line_run_no = #{lineRunNo},</if>
+            <if test="voltLvlCd != null">volt_lvl_cd = #{voltLvlCd},</if>
+            <if test="voltLvlDsc != null">volt_lvl_dsc = #{voltLvlDsc},</if>
+            <if test="subsId != null">subs_id = #{subsId},</if>
+            <if test="subsNm != null">subs_nm = #{subsNm},</if>
+            <if test="feederId != null">feeder_id = #{feederId},</if>
+            <if test="feederNm != null">feeder_nm = #{feederNm},</if>
+            <if test="opMaintOrgId != null">op_maint_org_id = #{opMaintOrgId},</if>
+            <if test="opMaintOrgNm != null">op_maint_org_nm = #{opMaintOrgNm},</if>
+            <if test="maintTeamId != null">maint_team_id = #{maintTeamId},</if>
+            <if test="maintTeamNm != null">maint_team_nm = #{maintTeamNm},</if>
+            <if test="orgNo != null">org_no = #{orgNo},</if>
+            <if test="orgNm != null">org_nm = #{orgNm},</if>
+            <if test="stdCreatorNo != null">std_creator_no = #{stdCreatorNo},</if>
+            <if test="stdCreatorNm != null">std_creator_nm = #{stdCreatorNm},</if>
+            <if test="stdUpdatorNo != null">std_updator_no = #{stdUpdatorNo},</if>
+            <if test="stdUpdatorNm != null">std_updator_nm = #{stdUpdatorNm},</if>
+            <if test="stdOrgNo != null">std_org_no = #{stdOrgNo},</if>
+            <if test="stdOrgNm != null">std_org_nm = #{stdOrgNm},</if>
+            <if test="stdCityOrgNo != null">std_city_org_no = #{stdCityOrgNo},</if>
+            <if test="stdCityOrgNm != null">std_city_org_nm = #{stdCityOrgNm},</if>
+            <if test="stdCountyOrgNo != null">std_county_org_no = #{stdCountyOrgNo},</if>
+            <if test="stdCountyOrgNm != null">std_county_org_nm = #{stdCountyOrgNm},</if>
+            <if test="dataDt != null">data_dt = #{dataDt},</if>
+            <if test="etlTm != null">etl_tm = #{etlTm},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deletePdmLineById" parameterType="Long">
+        delete from pdm_line where id = #{id}
+    </delete>
+
+    <delete id="deletePdmLineByIds" parameterType="String">
+        delete from pdm_line where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>