feat(perf): 添加绩效考核相关服务接口和实体类
- 创建了考核维度评分明细服务接口及实现类 - 添加了月度绩效考核记录服务接口及实现类 - 实现了绩效系数换算、车间考核参数配置等相关服务 - 定义了绩效考核相关的实体类和业务对象 - 创建了绩效考核控制器提供CRUD操作接口 - 配置了数据库映射文件和结果集映射 - 实现了数据校验和分页查询功能
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfAppraisalVo;
|
||||
import com.klp.perf.domain.bo.PerfAppraisalBo;
|
||||
import com.klp.perf.service.IPerfAppraisalService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 月度绩效考核记录
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/appraisal")
|
||||
public class PerfAppraisalController extends BaseController {
|
||||
|
||||
private final IPerfAppraisalService iPerfAppraisalService;
|
||||
|
||||
/**
|
||||
* 查询月度绩效考核记录列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfAppraisalVo> list(PerfAppraisalBo bo, PageQuery pageQuery) {
|
||||
return iPerfAppraisalService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出月度绩效考核记录列表
|
||||
*/
|
||||
@Log(title = "月度绩效考核记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfAppraisalBo bo, HttpServletResponse response) {
|
||||
List<PerfAppraisalVo> list = iPerfAppraisalService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "月度绩效考核记录", PerfAppraisalVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取月度绩效考核记录详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfAppraisalVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfAppraisalService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增月度绩效考核记录
|
||||
*/
|
||||
@Log(title = "月度绩效考核记录", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfAppraisalBo bo) {
|
||||
return toAjax(iPerfAppraisalService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改月度绩效考核记录
|
||||
*/
|
||||
@Log(title = "月度绩效考核记录", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfAppraisalBo bo) {
|
||||
return toAjax(iPerfAppraisalService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除月度绩效考核记录
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "月度绩效考核记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfAppraisalService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfAppraisalDetailVo;
|
||||
import com.klp.perf.domain.bo.PerfAppraisalDetailBo;
|
||||
import com.klp.perf.service.IPerfAppraisalDetailService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 考核维度评分明细
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/appraisalDetail")
|
||||
public class PerfAppraisalDetailController extends BaseController {
|
||||
|
||||
private final IPerfAppraisalDetailService iPerfAppraisalDetailService;
|
||||
|
||||
/**
|
||||
* 查询考核维度评分明细列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfAppraisalDetailVo> list(PerfAppraisalDetailBo bo, PageQuery pageQuery) {
|
||||
return iPerfAppraisalDetailService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出考核维度评分明细列表
|
||||
*/
|
||||
@Log(title = "考核维度评分明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfAppraisalDetailBo bo, HttpServletResponse response) {
|
||||
List<PerfAppraisalDetailVo> list = iPerfAppraisalDetailService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "考核维度评分明细", PerfAppraisalDetailVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取考核维度评分明细详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfAppraisalDetailVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfAppraisalDetailService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增考核维度评分明细
|
||||
*/
|
||||
@Log(title = "考核维度评分明细", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfAppraisalDetailBo bo) {
|
||||
return toAjax(iPerfAppraisalDetailService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改考核维度评分明细
|
||||
*/
|
||||
@Log(title = "考核维度评分明细", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfAppraisalDetailBo bo) {
|
||||
return toAjax(iPerfAppraisalDetailService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除考核维度评分明细
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "考核维度评分明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfAppraisalDetailService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfCoeffRangeVo;
|
||||
import com.klp.perf.domain.bo.PerfCoeffRangeBo;
|
||||
import com.klp.perf.service.IPerfCoeffRangeService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 绩效系数换算
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/coeffRange")
|
||||
public class PerfCoeffRangeController extends BaseController {
|
||||
|
||||
private final IPerfCoeffRangeService iPerfCoeffRangeService;
|
||||
|
||||
/**
|
||||
* 查询绩效系数换算列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfCoeffRangeVo> list(PerfCoeffRangeBo bo, PageQuery pageQuery) {
|
||||
return iPerfCoeffRangeService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出绩效系数换算列表
|
||||
*/
|
||||
@Log(title = "绩效系数换算", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfCoeffRangeBo bo, HttpServletResponse response) {
|
||||
List<PerfCoeffRangeVo> list = iPerfCoeffRangeService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "绩效系数换算", PerfCoeffRangeVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取绩效系数换算详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfCoeffRangeVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfCoeffRangeService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增绩效系数换算
|
||||
*/
|
||||
@Log(title = "绩效系数换算", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfCoeffRangeBo bo) {
|
||||
return toAjax(iPerfCoeffRangeService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改绩效系数换算
|
||||
*/
|
||||
@Log(title = "绩效系数换算", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfCoeffRangeBo bo) {
|
||||
return toAjax(iPerfCoeffRangeService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除绩效系数换算
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "绩效系数换算", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfCoeffRangeService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfDeptConfigVo;
|
||||
import com.klp.perf.domain.bo.PerfDeptConfigBo;
|
||||
import com.klp.perf.service.IPerfDeptConfigService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 车间考核参数配置
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/deptConfig")
|
||||
public class PerfDeptConfigController extends BaseController {
|
||||
|
||||
private final IPerfDeptConfigService iPerfDeptConfigService;
|
||||
|
||||
/**
|
||||
* 查询车间考核参数配置列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfDeptConfigVo> list(PerfDeptConfigBo bo, PageQuery pageQuery) {
|
||||
return iPerfDeptConfigService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出车间考核参数配置列表
|
||||
*/
|
||||
@Log(title = "车间考核参数配置", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfDeptConfigBo bo, HttpServletResponse response) {
|
||||
List<PerfDeptConfigVo> list = iPerfDeptConfigService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "车间考核参数配置", PerfDeptConfigVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取车间考核参数配置详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfDeptConfigVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfDeptConfigService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车间考核参数配置
|
||||
*/
|
||||
@Log(title = "车间考核参数配置", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfDeptConfigBo bo) {
|
||||
return toAjax(iPerfDeptConfigService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车间考核参数配置
|
||||
*/
|
||||
@Log(title = "车间考核参数配置", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfDeptConfigBo bo) {
|
||||
return toAjax(iPerfDeptConfigService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车间考核参数配置
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "车间考核参数配置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfDeptConfigService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfDeptItemConfigVo;
|
||||
import com.klp.perf.domain.bo.PerfDeptItemConfigBo;
|
||||
import com.klp.perf.service.IPerfDeptItemConfigService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 车间扣款/奖励项目配置
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/deptItemConfig")
|
||||
public class PerfDeptItemConfigController extends BaseController {
|
||||
|
||||
private final IPerfDeptItemConfigService iPerfDeptItemConfigService;
|
||||
|
||||
/**
|
||||
* 查询车间扣款/奖励项目配置列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfDeptItemConfigVo> list(PerfDeptItemConfigBo bo, PageQuery pageQuery) {
|
||||
return iPerfDeptItemConfigService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出车间扣款/奖励项目配置列表
|
||||
*/
|
||||
@Log(title = "车间扣款/奖励项目配置", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfDeptItemConfigBo bo, HttpServletResponse response) {
|
||||
List<PerfDeptItemConfigVo> list = iPerfDeptItemConfigService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "车间扣款/奖励项目配置", PerfDeptItemConfigVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取车间扣款/奖励项目配置详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfDeptItemConfigVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfDeptItemConfigService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车间扣款/奖励项目配置
|
||||
*/
|
||||
@Log(title = "车间扣款/奖励项目配置", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfDeptItemConfigBo bo) {
|
||||
return toAjax(iPerfDeptItemConfigService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车间扣款/奖励项目配置
|
||||
*/
|
||||
@Log(title = "车间扣款/奖励项目配置", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfDeptItemConfigBo bo) {
|
||||
return toAjax(iPerfDeptItemConfigService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车间扣款/奖励项目配置
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "车间扣款/奖励项目配置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfDeptItemConfigService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfDeptSummaryVo;
|
||||
import com.klp.perf.domain.bo.PerfDeptSummaryBo;
|
||||
import com.klp.perf.service.IPerfDeptSummaryService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 车间月度汇总
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/deptSummary")
|
||||
public class PerfDeptSummaryController extends BaseController {
|
||||
|
||||
private final IPerfDeptSummaryService iPerfDeptSummaryService;
|
||||
|
||||
/**
|
||||
* 查询车间月度汇总列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfDeptSummaryVo> list(PerfDeptSummaryBo bo, PageQuery pageQuery) {
|
||||
return iPerfDeptSummaryService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出车间月度汇总列表
|
||||
*/
|
||||
@Log(title = "车间月度汇总", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfDeptSummaryBo bo, HttpServletResponse response) {
|
||||
List<PerfDeptSummaryVo> list = iPerfDeptSummaryService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "车间月度汇总", PerfDeptSummaryVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取车间月度汇总详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfDeptSummaryVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfDeptSummaryService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车间月度汇总
|
||||
*/
|
||||
@Log(title = "车间月度汇总", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfDeptSummaryBo bo) {
|
||||
return toAjax(iPerfDeptSummaryService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车间月度汇总
|
||||
*/
|
||||
@Log(title = "车间月度汇总", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfDeptSummaryBo bo) {
|
||||
return toAjax(iPerfDeptSummaryService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车间月度汇总
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "车间月度汇总", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfDeptSummaryService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfEmployeeInfoVo;
|
||||
import com.klp.perf.domain.bo.PerfEmployeeInfoBo;
|
||||
import com.klp.perf.service.IPerfEmployeeInfoService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 员工绩效薪资基本信息
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/employeeInfo")
|
||||
public class PerfEmployeeInfoController extends BaseController {
|
||||
|
||||
private final IPerfEmployeeInfoService iPerfEmployeeInfoService;
|
||||
|
||||
/**
|
||||
* 查询员工绩效薪资基本信息列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfEmployeeInfoVo> list(PerfEmployeeInfoBo bo, PageQuery pageQuery) {
|
||||
return iPerfEmployeeInfoService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出员工绩效薪资基本信息列表
|
||||
*/
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfEmployeeInfoBo bo, HttpServletResponse response) {
|
||||
List<PerfEmployeeInfoVo> list = iPerfEmployeeInfoService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "员工绩效薪资基本信息", PerfEmployeeInfoVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取员工绩效薪资基本信息详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfEmployeeInfoVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfEmployeeInfoService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增员工绩效薪资基本信息
|
||||
*/
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfEmployeeInfoBo bo) {
|
||||
return toAjax(iPerfEmployeeInfoService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改员工绩效薪资基本信息
|
||||
*/
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfEmployeeInfoBo bo) {
|
||||
return toAjax(iPerfEmployeeInfoService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除员工绩效薪资基本信息
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfEmployeeInfoService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfPositionTemplateVo;
|
||||
import com.klp.perf.domain.bo.PerfPositionTemplateBo;
|
||||
import com.klp.perf.service.IPerfPositionTemplateService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 岗位绩效考核模板
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/positionTemplate")
|
||||
public class PerfPositionTemplateController extends BaseController {
|
||||
|
||||
private final IPerfPositionTemplateService iPerfPositionTemplateService;
|
||||
|
||||
/**
|
||||
* 查询岗位绩效考核模板列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfPositionTemplateVo> list(PerfPositionTemplateBo bo, PageQuery pageQuery) {
|
||||
return iPerfPositionTemplateService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出岗位绩效考核模板列表
|
||||
*/
|
||||
@Log(title = "岗位绩效考核模板", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfPositionTemplateBo bo, HttpServletResponse response) {
|
||||
List<PerfPositionTemplateVo> list = iPerfPositionTemplateService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "岗位绩效考核模板", PerfPositionTemplateVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取岗位绩效考核模板详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfPositionTemplateVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfPositionTemplateService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增岗位绩效考核模板
|
||||
*/
|
||||
@Log(title = "岗位绩效考核模板", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfPositionTemplateBo bo) {
|
||||
return toAjax(iPerfPositionTemplateService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改岗位绩效考核模板
|
||||
*/
|
||||
@Log(title = "岗位绩效考核模板", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfPositionTemplateBo bo) {
|
||||
return toAjax(iPerfPositionTemplateService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除岗位绩效考核模板
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "岗位绩效考核模板", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfPositionTemplateService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfSalaryVo;
|
||||
import com.klp.perf.domain.bo.PerfSalaryBo;
|
||||
import com.klp.perf.service.IPerfSalaryService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 月度薪资计算记录
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/salary")
|
||||
public class PerfSalaryController extends BaseController {
|
||||
|
||||
private final IPerfSalaryService iPerfSalaryService;
|
||||
|
||||
/**
|
||||
* 查询月度薪资计算记录列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfSalaryVo> list(PerfSalaryBo bo, PageQuery pageQuery) {
|
||||
return iPerfSalaryService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出月度薪资计算记录列表
|
||||
*/
|
||||
@Log(title = "月度薪资计算记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfSalaryBo bo, HttpServletResponse response) {
|
||||
List<PerfSalaryVo> list = iPerfSalaryService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "月度薪资计算记录", PerfSalaryVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取月度薪资计算记录详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfSalaryVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfSalaryService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增月度薪资计算记录
|
||||
*/
|
||||
@Log(title = "月度薪资计算记录", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfSalaryBo bo) {
|
||||
return toAjax(iPerfSalaryService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改月度薪资计算记录
|
||||
*/
|
||||
@Log(title = "月度薪资计算记录", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfSalaryBo bo) {
|
||||
return toAjax(iPerfSalaryService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除月度薪资计算记录
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "月度薪资计算记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfSalaryService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfTemplateDimensionVo;
|
||||
import com.klp.perf.domain.bo.PerfTemplateDimensionBo;
|
||||
import com.klp.perf.service.IPerfTemplateDimensionService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 考核维度明细
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/templateDimension")
|
||||
public class PerfTemplateDimensionController extends BaseController {
|
||||
|
||||
private final IPerfTemplateDimensionService iPerfTemplateDimensionService;
|
||||
|
||||
/**
|
||||
* 查询考核维度明细列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfTemplateDimensionVo> list(PerfTemplateDimensionBo bo, PageQuery pageQuery) {
|
||||
return iPerfTemplateDimensionService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出考核维度明细列表
|
||||
*/
|
||||
@Log(title = "考核维度明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfTemplateDimensionBo bo, HttpServletResponse response) {
|
||||
List<PerfTemplateDimensionVo> list = iPerfTemplateDimensionService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "考核维度明细", PerfTemplateDimensionVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取考核维度明细详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfTemplateDimensionVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
return R.ok(iPerfTemplateDimensionService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增考核维度明细
|
||||
*/
|
||||
@Log(title = "考核维度明细", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfTemplateDimensionBo bo) {
|
||||
return toAjax(iPerfTemplateDimensionService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改考核维度明细
|
||||
*/
|
||||
@Log(title = "考核维度明细", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfTemplateDimensionBo bo) {
|
||||
return toAjax(iPerfTemplateDimensionService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除考核维度明细
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "考核维度明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
return toAjax(iPerfTemplateDimensionService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user