浏览代码

奖惩规则维护代码提交

zx 5 月之前
父节点
当前提交
7e1a03a6a4

+ 111 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmExamineRoleDetailController.java

@@ -0,0 +1,111 @@
+package com.ruoyi.powerdistribution.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+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.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.PdmExamineRoleDetail;
+import com.ruoyi.powerdistribution.service.IPdmExamineRoleDetailService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 时户数考核规则明细Controller
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+@Api(value = "PdmExamineRoleDetailController", tags = "时户数考核规则明细")
+@RestController
+@RequestMapping("/power/examineRoleDetail")
+public class PdmExamineRoleDetailController extends BaseController
+{
+    @Autowired
+    private IPdmExamineRoleDetailService pdmExamineRoleDetailService;
+
+    /**
+     * 查询时户数考核规则明细列表
+     */
+    @ApiOperation(value = "查询时户数考核规则明细列表")
+    @PreAuthorize("@ss.hasPermi('system:detail:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmExamineRoleDetail pdmExamineRoleDetail)
+    {
+        startPage();
+        List<PdmExamineRoleDetail> list = pdmExamineRoleDetailService.selectPdmExamineRoleDetailList(pdmExamineRoleDetail);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出时户数考核规则明细列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:detail:export')")
+    @Log(title = "时户数考核规则明细", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmExamineRoleDetail pdmExamineRoleDetail)
+    {
+        List<PdmExamineRoleDetail> list = pdmExamineRoleDetailService.selectPdmExamineRoleDetailList(pdmExamineRoleDetail);
+        ExcelUtil<PdmExamineRoleDetail> util = new ExcelUtil<PdmExamineRoleDetail>(PdmExamineRoleDetail.class);
+        util.exportExcel(response, list, "时户数考核规则明细数据");
+    }
+
+    /**
+     * 获取时户数考核规则明细详细信息
+     */
+    @ApiOperation(value = "获取时户数考核规则明细详细信息")
+    @PreAuthorize("@ss.hasPermi('system:detail:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmExamineRoleDetailService.selectPdmExamineRoleDetailById(id));
+    }
+
+    /**
+     * 新增时户数考核规则明细
+     */
+    @ApiOperation(value = "新增时户数考核规则明细")
+    @PreAuthorize("@ss.hasPermi('system:detail:add')")
+    @Log(title = "时户数考核规则明细", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@RequestBody PdmExamineRoleDetail pdmExamineRoleDetail)
+    {
+        return toAjax(pdmExamineRoleDetailService.insertPdmExamineRoleDetail(pdmExamineRoleDetail));
+    }
+
+    /**
+     * 修改时户数考核规则明细
+     */
+    @ApiOperation(value = "修改时户数考核规则明细")
+    @PreAuthorize("@ss.hasPermi('system:detail:edit')")
+    @Log(title = "时户数考核规则明细", businessType = BusinessType.UPDATE)
+    @PostMapping("/update")
+    public AjaxResult edit(@RequestBody PdmExamineRoleDetail pdmExamineRoleDetail)
+    {
+        return toAjax(pdmExamineRoleDetailService.updatePdmExamineRoleDetail(pdmExamineRoleDetail));
+    }
+
+    /**
+     * 删除时户数考核规则明细
+     */
+    @ApiOperation(value = "删除时户数考核规则明细")
+    @PreAuthorize("@ss.hasPermi('system:detail:remove')")
+    @Log(title = "时户数考核规则明细", businessType = BusinessType.DELETE)
+	@GetMapping("delete/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmExamineRoleDetailService.deletePdmExamineRoleDetailByIds(ids));
+    }
+}

+ 111 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/controller/PdmExamineRoleTargetController.java

@@ -0,0 +1,111 @@
+package com.ruoyi.powerdistribution.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+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.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.PdmExamineRoleTarget;
+import com.ruoyi.powerdistribution.service.IPdmExamineRoleTargetService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 时户数考核规则分级Controller
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+@Api(value = "PdmExamineRoleTargetController", tags = "时户数考核规则分级")
+@RestController
+@RequestMapping("/power/examineRoleTarget")
+public class PdmExamineRoleTargetController extends BaseController
+{
+    @Autowired
+    private IPdmExamineRoleTargetService pdmExamineRoleTargetService;
+
+    /**
+     * 查询时户数考核规则分级列表
+     */
+    @ApiOperation(value = "查询时户数考核规则分级列表")
+    @PreAuthorize("@ss.hasPermi('system:target:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PdmExamineRoleTarget pdmExamineRoleTarget)
+    {
+        startPage();
+        List<PdmExamineRoleTarget> list = pdmExamineRoleTargetService.selectPdmExamineRoleTargetList(pdmExamineRoleTarget);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出时户数考核规则分级列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:target:export')")
+    @Log(title = "时户数考核规则分级", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PdmExamineRoleTarget pdmExamineRoleTarget)
+    {
+        List<PdmExamineRoleTarget> list = pdmExamineRoleTargetService.selectPdmExamineRoleTargetList(pdmExamineRoleTarget);
+        ExcelUtil<PdmExamineRoleTarget> util = new ExcelUtil<PdmExamineRoleTarget>(PdmExamineRoleTarget.class);
+        util.exportExcel(response, list, "时户数考核规则分级数据");
+    }
+
+    /**
+     * 获取时户数考核规则分级详细信息
+     */
+    @ApiOperation(value = "获取时户数考核规则分级详细信息")
+    @PreAuthorize("@ss.hasPermi('system:target:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(pdmExamineRoleTargetService.selectPdmExamineRoleTargetById(id));
+    }
+
+    /**
+     * 新增时户数考核规则分级
+     */
+    @ApiOperation(value = "新增时户数考核规则分级")
+    @PreAuthorize("@ss.hasPermi('system:target:add')")
+    @Log(title = "时户数考核规则分级", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PdmExamineRoleTarget pdmExamineRoleTarget)
+    {
+        return toAjax(pdmExamineRoleTargetService.insertPdmExamineRoleTarget(pdmExamineRoleTarget));
+    }
+
+    /**
+     * 修改时户数考核规则分级
+     */
+    @ApiOperation(value = "修改时户数考核规则分级")
+    @PreAuthorize("@ss.hasPermi('system:target:edit')")
+    @Log(title = "时户数考核规则分级", businessType = BusinessType.UPDATE)
+    @PostMapping("/update")
+    public AjaxResult edit(@RequestBody PdmExamineRoleTarget pdmExamineRoleTarget)
+    {
+        return toAjax(pdmExamineRoleTargetService.updatePdmExamineRoleTarget(pdmExamineRoleTarget));
+    }
+
+    /**
+     * 删除时户数考核规则分级
+     */
+    @ApiOperation(value = "删除时户数考核规则分级")
+    @PreAuthorize("@ss.hasPermi('system:target:remove')")
+    @Log(title = "时户数考核规则分级", businessType = BusinessType.DELETE)
+	@GetMapping("delete/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(pdmExamineRoleTargetService.deletePdmExamineRoleTargetByIds(ids));
+    }
+}

+ 210 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmExamineRoleDetail.java

@@ -0,0 +1,210 @@
+package com.ruoyi.powerdistribution.domain;
+
+import java.math.BigDecimal;
+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_examine_role_detail
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+public class PdmExamineRoleDetail extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 目标ID */
+    @Excel(name = "目标ID")
+    private Long targetId;
+
+    /** 完成时户数名称 */
+    @Excel(name = "完成时户数名称")
+    private String detailName;
+
+    /** 最小区间 */
+    @Excel(name = "最小区间")
+    private Integer minNum;
+
+    /** 最大区间 */
+    @Excel(name = "最大区间")
+    private Integer maxNum;
+
+    /** 党政一把手考核金额 */
+    @Excel(name = "党政一把手考核金额")
+    private BigDecimal manageAmt;
+
+    /** 分管副经理 */
+    @Excel(name = "分管副经理")
+    private BigDecimal manageAssistantAmt;
+
+    /** 部室主任考核金额 */
+    @Excel(name = "部室主任考核金额")
+    private BigDecimal deptDirectorAmt;
+
+    /** 部室分管主任考核金额 */
+    @Excel(name = "部室分管主任考核金额")
+    private BigDecimal deptDirectorAssistantAmt;
+
+    /** 部室责任专责考核金额 */
+    @Excel(name = "部室责任专责考核金额")
+    private BigDecimal deptManageAmt;
+
+    /** 总负责人考核金额 */
+    @Excel(name = "总负责人考核金额")
+    private BigDecimal principAmt;
+
+    /** 工作负责人考核金额 */
+    @Excel(name = "工作负责人考核金额")
+    private BigDecimal workPrincipAmt;
+
+    /** 设备主人考核金额 */
+    @Excel(name = "设备主人考核金额")
+    private BigDecimal ownerAmt;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setTargetId(Long targetId)
+    {
+        this.targetId = targetId;
+    }
+
+    public Long getTargetId()
+    {
+        return targetId;
+    }
+    public void setDetailName(String detailName)
+    {
+        this.detailName = detailName;
+    }
+
+    public String getDetailName()
+    {
+        return detailName;
+    }
+    public void setMinNum(Integer minNum)
+    {
+        this.minNum = minNum;
+    }
+
+    public Integer getMinNum()
+    {
+        return minNum;
+    }
+    public void setMaxNum(Integer maxNum)
+    {
+        this.maxNum = maxNum;
+    }
+
+    public Integer getMaxNum()
+    {
+        return maxNum;
+    }
+    public void setManageAmt(BigDecimal manageAmt)
+    {
+        this.manageAmt = manageAmt;
+    }
+
+    public BigDecimal getManageAmt()
+    {
+        return manageAmt;
+    }
+    public void setManageAssistantAmt(BigDecimal manageAssistantAmt)
+    {
+        this.manageAssistantAmt = manageAssistantAmt;
+    }
+
+    public BigDecimal getManageAssistantAmt()
+    {
+        return manageAssistantAmt;
+    }
+    public void setDeptDirectorAmt(BigDecimal deptDirectorAmt)
+    {
+        this.deptDirectorAmt = deptDirectorAmt;
+    }
+
+    public BigDecimal getDeptDirectorAmt()
+    {
+        return deptDirectorAmt;
+    }
+    public void setDeptDirectorAssistantAmt(BigDecimal deptDirectorAssistantAmt)
+    {
+        this.deptDirectorAssistantAmt = deptDirectorAssistantAmt;
+    }
+
+    public BigDecimal getDeptDirectorAssistantAmt()
+    {
+        return deptDirectorAssistantAmt;
+    }
+    public void setDeptManageAmt(BigDecimal deptManageAmt)
+    {
+        this.deptManageAmt = deptManageAmt;
+    }
+
+    public BigDecimal getDeptManageAmt()
+    {
+        return deptManageAmt;
+    }
+    public void setPrincipAmt(BigDecimal principAmt)
+    {
+        this.principAmt = principAmt;
+    }
+
+    public BigDecimal getPrincipAmt()
+    {
+        return principAmt;
+    }
+    public void setWorkPrincipAmt(BigDecimal workPrincipAmt)
+    {
+        this.workPrincipAmt = workPrincipAmt;
+    }
+
+    public BigDecimal getWorkPrincipAmt()
+    {
+        return workPrincipAmt;
+    }
+    public void setOwnerAmt(BigDecimal ownerAmt)
+    {
+        this.ownerAmt = ownerAmt;
+    }
+
+    public BigDecimal getOwnerAmt()
+    {
+        return ownerAmt;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("targetId", getTargetId())
+            .append("detailName", getDetailName())
+            .append("minNum", getMinNum())
+            .append("maxNum", getMaxNum())
+            .append("manageAmt", getManageAmt())
+            .append("manageAssistantAmt", getManageAssistantAmt())
+            .append("deptDirectorAmt", getDeptDirectorAmt())
+            .append("deptDirectorAssistantAmt", getDeptDirectorAssistantAmt())
+            .append("deptManageAmt", getDeptManageAmt())
+            .append("principAmt", getPrincipAmt())
+            .append("workPrincipAmt", getWorkPrincipAmt())
+            .append("ownerAmt", getOwnerAmt())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

+ 83 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/domain/PdmExamineRoleTarget.java

@@ -0,0 +1,83 @@
+package com.ruoyi.powerdistribution.domain;
+
+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_examine_role_target
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+public class PdmExamineRoleTarget extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 目标时户数规则 */
+    @Excel(name = "目标时户数规则")
+    private String targetName;
+
+    /** 最小区间 */
+    @Excel(name = "最小区间")
+    private Integer minNum;
+
+    /** 最大区间 */
+    @Excel(name = "最大区间")
+    private Integer maxNum;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setTargetName(String targetName)
+    {
+        this.targetName = targetName;
+    }
+
+    public String getTargetName()
+    {
+        return targetName;
+    }
+    public void setMinNum(Integer minNum)
+    {
+        this.minNum = minNum;
+    }
+
+    public Integer getMinNum()
+    {
+        return minNum;
+    }
+    public void setMaxNum(Integer maxNum)
+    {
+        this.maxNum = maxNum;
+    }
+
+    public Integer getMaxNum()
+    {
+        return maxNum;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("targetName", getTargetName())
+            .append("minNum", getMinNum())
+            .append("maxNum", getMaxNum())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .toString();
+    }
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmExamineRoleDetail;
+
+/**
+ * 时户数考核规则明细Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+public interface PdmExamineRoleDetailMapper
+{
+    /**
+     * 查询时户数考核规则明细
+     *
+     * @param id 时户数考核规则明细主键
+     * @return 时户数考核规则明细
+     */
+    public PdmExamineRoleDetail selectPdmExamineRoleDetailById(Long id);
+
+    /**
+     * 查询时户数考核规则明细列表
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 时户数考核规则明细集合
+     */
+    public List<PdmExamineRoleDetail> selectPdmExamineRoleDetailList(PdmExamineRoleDetail pdmExamineRoleDetail);
+
+    /**
+     * 新增时户数考核规则明细
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 结果
+     */
+    public int insertPdmExamineRoleDetail(PdmExamineRoleDetail pdmExamineRoleDetail);
+
+    /**
+     * 修改时户数考核规则明细
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 结果
+     */
+    public int updatePdmExamineRoleDetail(PdmExamineRoleDetail pdmExamineRoleDetail);
+
+    /**
+     * 删除时户数考核规则明细
+     *
+     * @param id 时户数考核规则明细主键
+     * @return 结果
+     */
+    public int deletePdmExamineRoleDetailById(Long id);
+
+    /**
+     * 批量删除时户数考核规则明细
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmExamineRoleDetailByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.mapper;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmExamineRoleTarget;
+
+/**
+ * 时户数考核规则分级Mapper接口
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+public interface PdmExamineRoleTargetMapper
+{
+    /**
+     * 查询时户数考核规则分级
+     *
+     * @param id 时户数考核规则分级主键
+     * @return 时户数考核规则分级
+     */
+    public PdmExamineRoleTarget selectPdmExamineRoleTargetById(Long id);
+
+    /**
+     * 查询时户数考核规则分级列表
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 时户数考核规则分级集合
+     */
+    public List<PdmExamineRoleTarget> selectPdmExamineRoleTargetList(PdmExamineRoleTarget pdmExamineRoleTarget);
+
+    /**
+     * 新增时户数考核规则分级
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 结果
+     */
+    public int insertPdmExamineRoleTarget(PdmExamineRoleTarget pdmExamineRoleTarget);
+
+    /**
+     * 修改时户数考核规则分级
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 结果
+     */
+    public int updatePdmExamineRoleTarget(PdmExamineRoleTarget pdmExamineRoleTarget);
+
+    /**
+     * 删除时户数考核规则分级
+     *
+     * @param id 时户数考核规则分级主键
+     * @return 结果
+     */
+    public int deletePdmExamineRoleTargetById(Long id);
+
+    /**
+     * 批量删除时户数考核规则分级
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePdmExamineRoleTargetByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmExamineRoleDetail;
+
+/**
+ * 时户数考核规则明细Service接口
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+public interface IPdmExamineRoleDetailService
+{
+    /**
+     * 查询时户数考核规则明细
+     *
+     * @param id 时户数考核规则明细主键
+     * @return 时户数考核规则明细
+     */
+    public PdmExamineRoleDetail selectPdmExamineRoleDetailById(Long id);
+
+    /**
+     * 查询时户数考核规则明细列表
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 时户数考核规则明细集合
+     */
+    public List<PdmExamineRoleDetail> selectPdmExamineRoleDetailList(PdmExamineRoleDetail pdmExamineRoleDetail);
+
+    /**
+     * 新增时户数考核规则明细
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 结果
+     */
+    public int insertPdmExamineRoleDetail(PdmExamineRoleDetail pdmExamineRoleDetail);
+
+    /**
+     * 修改时户数考核规则明细
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 结果
+     */
+    public int updatePdmExamineRoleDetail(PdmExamineRoleDetail pdmExamineRoleDetail);
+
+    /**
+     * 批量删除时户数考核规则明细
+     *
+     * @param ids 需要删除的时户数考核规则明细主键集合
+     * @return 结果
+     */
+    public int deletePdmExamineRoleDetailByIds(Long[] ids);
+
+    /**
+     * 删除时户数考核规则明细信息
+     *
+     * @param id 时户数考核规则明细主键
+     * @return 结果
+     */
+    public int deletePdmExamineRoleDetailById(Long id);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.powerdistribution.service;
+
+import java.util.List;
+import com.ruoyi.powerdistribution.domain.PdmExamineRoleTarget;
+
+/**
+ * 时户数考核规则分级Service接口
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+public interface IPdmExamineRoleTargetService
+{
+    /**
+     * 查询时户数考核规则分级
+     *
+     * @param id 时户数考核规则分级主键
+     * @return 时户数考核规则分级
+     */
+    public PdmExamineRoleTarget selectPdmExamineRoleTargetById(Long id);
+
+    /**
+     * 查询时户数考核规则分级列表
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 时户数考核规则分级集合
+     */
+    public List<PdmExamineRoleTarget> selectPdmExamineRoleTargetList(PdmExamineRoleTarget pdmExamineRoleTarget);
+
+    /**
+     * 新增时户数考核规则分级
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 结果
+     */
+    public int insertPdmExamineRoleTarget(PdmExamineRoleTarget pdmExamineRoleTarget);
+
+    /**
+     * 修改时户数考核规则分级
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 结果
+     */
+    public int updatePdmExamineRoleTarget(PdmExamineRoleTarget pdmExamineRoleTarget);
+
+    /**
+     * 批量删除时户数考核规则分级
+     *
+     * @param ids 需要删除的时户数考核规则分级主键集合
+     * @return 结果
+     */
+    public int deletePdmExamineRoleTargetByIds(Long[] ids);
+
+    /**
+     * 删除时户数考核规则分级信息
+     *
+     * @param id 时户数考核规则分级主键
+     * @return 结果
+     */
+    public int deletePdmExamineRoleTargetById(Long id);
+}

+ 98 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmExamineRoleDetailServiceImpl.java

@@ -0,0 +1,98 @@
+package com.ruoyi.powerdistribution.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.powerdistribution.mapper.PdmExamineRoleDetailMapper;
+import com.ruoyi.powerdistribution.domain.PdmExamineRoleDetail;
+import com.ruoyi.powerdistribution.service.IPdmExamineRoleDetailService;
+
+/**
+ * 时户数考核规则明细Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+@Service
+public class PdmExamineRoleDetailServiceImpl implements IPdmExamineRoleDetailService
+{
+    @Autowired
+    private PdmExamineRoleDetailMapper pdmExamineRoleDetailMapper;
+
+    /**
+     * 查询时户数考核规则明细
+     *
+     * @param id 时户数考核规则明细主键
+     * @return 时户数考核规则明细
+     */
+    @Override
+    public PdmExamineRoleDetail selectPdmExamineRoleDetailById(Long id)
+    {
+        return pdmExamineRoleDetailMapper.selectPdmExamineRoleDetailById(id);
+    }
+
+    /**
+     * 查询时户数考核规则明细列表
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 时户数考核规则明细
+     */
+    @Override
+    public List<PdmExamineRoleDetail> selectPdmExamineRoleDetailList(PdmExamineRoleDetail pdmExamineRoleDetail)
+    {
+        return pdmExamineRoleDetailMapper.selectPdmExamineRoleDetailList(pdmExamineRoleDetail);
+    }
+
+    /**
+     * 新增时户数考核规则明细
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 结果
+     */
+    @Override
+    public int insertPdmExamineRoleDetail(PdmExamineRoleDetail pdmExamineRoleDetail)
+    {
+        pdmExamineRoleDetail.setCreateTime(DateUtils.getNowDate());
+        pdmExamineRoleDetail.setDetailName(pdmExamineRoleDetail.getMinNum()+"<= X <"+pdmExamineRoleDetail.getMaxNum());
+        return pdmExamineRoleDetailMapper.insertPdmExamineRoleDetail(pdmExamineRoleDetail);
+    }
+
+    /**
+     * 修改时户数考核规则明细
+     *
+     * @param pdmExamineRoleDetail 时户数考核规则明细
+     * @return 结果
+     */
+    @Override
+    public int updatePdmExamineRoleDetail(PdmExamineRoleDetail pdmExamineRoleDetail)
+    {
+        pdmExamineRoleDetail.setUpdateTime(DateUtils.getNowDate());
+        pdmExamineRoleDetail.setDetailName(pdmExamineRoleDetail.getMinNum()+"<= X <"+pdmExamineRoleDetail.getMaxNum());
+        return pdmExamineRoleDetailMapper.updatePdmExamineRoleDetail(pdmExamineRoleDetail);
+    }
+
+    /**
+     * 批量删除时户数考核规则明细
+     *
+     * @param ids 需要删除的时户数考核规则明细主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmExamineRoleDetailByIds(Long[] ids)
+    {
+        return pdmExamineRoleDetailMapper.deletePdmExamineRoleDetailByIds(ids);
+    }
+
+    /**
+     * 删除时户数考核规则明细信息
+     *
+     * @param id 时户数考核规则明细主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmExamineRoleDetailById(Long id)
+    {
+        return pdmExamineRoleDetailMapper.deletePdmExamineRoleDetailById(id);
+    }
+}

+ 98 - 0
ruoyi-powerdistribution/src/main/java/com/ruoyi/powerdistribution/service/impl/PdmExamineRoleTargetServiceImpl.java

@@ -0,0 +1,98 @@
+package com.ruoyi.powerdistribution.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.powerdistribution.mapper.PdmExamineRoleTargetMapper;
+import com.ruoyi.powerdistribution.domain.PdmExamineRoleTarget;
+import com.ruoyi.powerdistribution.service.IPdmExamineRoleTargetService;
+
+/**
+ * 时户数考核规则分级Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-12-30
+ */
+@Service
+public class PdmExamineRoleTargetServiceImpl implements IPdmExamineRoleTargetService
+{
+    @Autowired
+    private PdmExamineRoleTargetMapper pdmExamineRoleTargetMapper;
+
+    /**
+     * 查询时户数考核规则分级
+     *
+     * @param id 时户数考核规则分级主键
+     * @return 时户数考核规则分级
+     */
+    @Override
+    public PdmExamineRoleTarget selectPdmExamineRoleTargetById(Long id)
+    {
+        return pdmExamineRoleTargetMapper.selectPdmExamineRoleTargetById(id);
+    }
+
+    /**
+     * 查询时户数考核规则分级列表
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 时户数考核规则分级
+     */
+    @Override
+    public List<PdmExamineRoleTarget> selectPdmExamineRoleTargetList(PdmExamineRoleTarget pdmExamineRoleTarget)
+    {
+        return pdmExamineRoleTargetMapper.selectPdmExamineRoleTargetList(pdmExamineRoleTarget);
+    }
+
+    /**
+     * 新增时户数考核规则分级
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 结果
+     */
+    @Override
+    public int insertPdmExamineRoleTarget(PdmExamineRoleTarget pdmExamineRoleTarget)
+    {
+        pdmExamineRoleTarget.setCreateTime(DateUtils.getNowDate());
+        pdmExamineRoleTarget.setTargetName(pdmExamineRoleTarget.getMinNum()+"<= N <"+pdmExamineRoleTarget.getMaxNum());
+        return pdmExamineRoleTargetMapper.insertPdmExamineRoleTarget(pdmExamineRoleTarget);
+    }
+
+    /**
+     * 修改时户数考核规则分级
+     *
+     * @param pdmExamineRoleTarget 时户数考核规则分级
+     * @return 结果
+     */
+    @Override
+    public int updatePdmExamineRoleTarget(PdmExamineRoleTarget pdmExamineRoleTarget)
+    {
+        pdmExamineRoleTarget.setUpdateTime(DateUtils.getNowDate());
+        pdmExamineRoleTarget.setTargetName(pdmExamineRoleTarget.getMinNum()+"<= N <"+pdmExamineRoleTarget.getMaxNum());
+        return pdmExamineRoleTargetMapper.updatePdmExamineRoleTarget(pdmExamineRoleTarget);
+    }
+
+    /**
+     * 批量删除时户数考核规则分级
+     *
+     * @param ids 需要删除的时户数考核规则分级主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmExamineRoleTargetByIds(Long[] ids)
+    {
+        return pdmExamineRoleTargetMapper.deletePdmExamineRoleTargetByIds(ids);
+    }
+
+    /**
+     * 删除时户数考核规则分级信息
+     *
+     * @param id 时户数考核规则分级主键
+     * @return 结果
+     */
+    @Override
+    public int deletePdmExamineRoleTargetById(Long id)
+    {
+        return pdmExamineRoleTargetMapper.deletePdmExamineRoleTargetById(id);
+    }
+}

+ 127 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmExamineRoleDetailMapper.xml

@@ -0,0 +1,127 @@
+<?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.PdmExamineRoleDetailMapper">
+
+    <resultMap type="PdmExamineRoleDetail" id="PdmExamineRoleDetailResult">
+        <result property="id"    column="id"    />
+        <result property="targetId"    column="target_id"    />
+        <result property="detailName"    column="detail_name"    />
+        <result property="minNum"    column="min_num"    />
+        <result property="maxNum"    column="max_num"    />
+        <result property="manageAmt"    column="manage_amt"    />
+        <result property="manageAssistantAmt"    column="manage_assistant_amt"    />
+        <result property="deptDirectorAmt"    column="dept_director_amt"    />
+        <result property="deptDirectorAssistantAmt"    column="dept_director_assistant_amt"    />
+        <result property="deptManageAmt"    column="dept_manage_amt"    />
+        <result property="principAmt"    column="princip_amt"    />
+        <result property="workPrincipAmt"    column="work_princip_amt"    />
+        <result property="ownerAmt"    column="owner_amt"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectPdmExamineRoleDetailVo">
+        select id, target_id, detail_name, min_num, max_num, manage_amt, manage_assistant_amt, dept_director_amt, dept_director_assistant_amt, dept_manage_amt, princip_amt, work_princip_amt, owner_amt, create_by, create_time, update_by, update_time from pdm_examine_role_detail
+    </sql>
+
+    <select id="selectPdmExamineRoleDetailList" parameterType="PdmExamineRoleDetail" resultMap="PdmExamineRoleDetailResult">
+        <include refid="selectPdmExamineRoleDetailVo"/>
+        <where>
+            <if test="targetId != null "> and target_id = #{targetId}</if>
+            <if test="detailName != null  and detailName != ''"> and detail_name like concat('%', #{detailName}, '%')</if>
+            <if test="minNum != null "> and min_num = #{minNum}</if>
+            <if test="maxNum != null "> and max_num = #{maxNum}</if>
+            <if test="manageAmt != null "> and manage_amt = #{manageAmt}</if>
+            <if test="manageAssistantAmt != null "> and manage_assistant_amt = #{manageAssistantAmt}</if>
+            <if test="deptDirectorAmt != null "> and dept_director_amt = #{deptDirectorAmt}</if>
+            <if test="deptDirectorAssistantAmt != null "> and dept_director_assistant_amt = #{deptDirectorAssistantAmt}</if>
+            <if test="deptManageAmt != null "> and dept_manage_amt = #{deptManageAmt}</if>
+            <if test="principAmt != null "> and princip_amt = #{principAmt}</if>
+            <if test="workPrincipAmt != null "> and work_princip_amt = #{workPrincipAmt}</if>
+            <if test="ownerAmt != null "> and owner_amt = #{ownerAmt}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmExamineRoleDetailById" parameterType="Long" resultMap="PdmExamineRoleDetailResult">
+        <include refid="selectPdmExamineRoleDetailVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmExamineRoleDetail" parameterType="PdmExamineRoleDetail" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_examine_role_detail
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="targetId != null">target_id,</if>
+            <if test="detailName != null">detail_name,</if>
+            <if test="minNum != null">min_num,</if>
+            <if test="maxNum != null">max_num,</if>
+            <if test="manageAmt != null">manage_amt,</if>
+            <if test="manageAssistantAmt != null">manage_assistant_amt,</if>
+            <if test="deptDirectorAmt != null">dept_director_amt,</if>
+            <if test="deptDirectorAssistantAmt != null">dept_director_assistant_amt,</if>
+            <if test="deptManageAmt != null">dept_manage_amt,</if>
+            <if test="principAmt != null">princip_amt,</if>
+            <if test="workPrincipAmt != null">work_princip_amt,</if>
+            <if test="ownerAmt != null">owner_amt,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="targetId != null">#{targetId},</if>
+            <if test="detailName != null">#{detailName},</if>
+            <if test="minNum != null">#{minNum},</if>
+            <if test="maxNum != null">#{maxNum},</if>
+            <if test="manageAmt != null">#{manageAmt},</if>
+            <if test="manageAssistantAmt != null">#{manageAssistantAmt},</if>
+            <if test="deptDirectorAmt != null">#{deptDirectorAmt},</if>
+            <if test="deptDirectorAssistantAmt != null">#{deptDirectorAssistantAmt},</if>
+            <if test="deptManageAmt != null">#{deptManageAmt},</if>
+            <if test="principAmt != null">#{principAmt},</if>
+            <if test="workPrincipAmt != null">#{workPrincipAmt},</if>
+            <if test="ownerAmt != null">#{ownerAmt},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updatePdmExamineRoleDetail" parameterType="PdmExamineRoleDetail">
+        update pdm_examine_role_detail
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="targetId != null">target_id = #{targetId},</if>
+            <if test="detailName != null">detail_name = #{detailName},</if>
+            <if test="minNum != null">min_num = #{minNum},</if>
+            <if test="maxNum != null">max_num = #{maxNum},</if>
+            <if test="manageAmt != null">manage_amt = #{manageAmt},</if>
+            <if test="manageAssistantAmt != null">manage_assistant_amt = #{manageAssistantAmt},</if>
+            <if test="deptDirectorAmt != null">dept_director_amt = #{deptDirectorAmt},</if>
+            <if test="deptDirectorAssistantAmt != null">dept_director_assistant_amt = #{deptDirectorAssistantAmt},</if>
+            <if test="deptManageAmt != null">dept_manage_amt = #{deptManageAmt},</if>
+            <if test="principAmt != null">princip_amt = #{principAmt},</if>
+            <if test="workPrincipAmt != null">work_princip_amt = #{workPrincipAmt},</if>
+            <if test="ownerAmt != null">owner_amt = #{ownerAmt},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deletePdmExamineRoleDetailById" parameterType="Long">
+        delete from pdm_examine_role_detail where id = #{id}
+    </delete>
+
+    <delete id="deletePdmExamineRoleDetailByIds" parameterType="String">
+        delete from pdm_examine_role_detail where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 82 - 0
ruoyi-powerdistribution/src/main/resources/mapper/powerdistribution/PdmExamineRoleTargetMapper.xml

@@ -0,0 +1,82 @@
+<?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.PdmExamineRoleTargetMapper">
+
+    <resultMap type="PdmExamineRoleTarget" id="PdmExamineRoleTargetResult">
+        <result property="id"    column="id"    />
+        <result property="targetName"    column="target_name"    />
+        <result property="minNum"    column="min_num"    />
+        <result property="maxNum"    column="max_num"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectPdmExamineRoleTargetVo">
+        select id, target_name, min_num, max_num, create_by, create_time, update_by, update_time from pdm_examine_role_target
+    </sql>
+
+    <select id="selectPdmExamineRoleTargetList" parameterType="PdmExamineRoleTarget" resultMap="PdmExamineRoleTargetResult">
+        <include refid="selectPdmExamineRoleTargetVo"/>
+        <where>
+            <if test="targetName != null  and targetName != ''"> and target_name like concat('%', #{targetName}, '%')</if>
+            <if test="minNum != null "> and min_num = #{minNum}</if>
+            <if test="maxNum != null "> and max_num = #{maxNum}</if>
+        </where>
+    </select>
+
+    <select id="selectPdmExamineRoleTargetById" parameterType="Long" resultMap="PdmExamineRoleTargetResult">
+        <include refid="selectPdmExamineRoleTargetVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertPdmExamineRoleTarget" parameterType="PdmExamineRoleTarget" useGeneratedKeys="true" keyProperty="id">
+        insert into pdm_examine_role_target
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="targetName != null">target_name,</if>
+            <if test="minNum != null">min_num,</if>
+            <if test="maxNum != null">max_num,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="targetName != null">#{targetName},</if>
+            <if test="minNum != null">#{minNum},</if>
+            <if test="maxNum != null">#{maxNum},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updatePdmExamineRoleTarget" parameterType="PdmExamineRoleTarget">
+        update pdm_examine_role_target
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="targetName != null">target_name = #{targetName},</if>
+            <if test="minNum != null">min_num = #{minNum},</if>
+            <if test="maxNum != null">max_num = #{maxNum},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deletePdmExamineRoleTargetById" parameterType="Long">
+        delete from pdm_examine_role_target where id = #{id}
+    </delete>
+
+    <delete id="deletePdmExamineRoleTargetByIds" parameterType="String">
+        delete from pdm_examine_role_target where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>