From 2c31f9f1c1f5bbf3648b20e814ae0bb4568f2b9d Mon Sep 17 00:00:00 2001 From: wangyan21 Date: Mon, 18 Dec 2023 16:14:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=80=E6=9E=9D=E8=8A=B1=E7=85=A4=E4=B8=9AET?= =?UTF-8?q?M=EF=BC=8C=E8=80=83=E6=A0=B8=E6=A8=A1=E5=BC=8F=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E7=BB=A9=E6=95=88=E8=AF=84=E4=BC=B0=E5=91=A8?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PzhmyAssessPatternController.java | 98 ++++ .../domain/PzhmyAssessPattern.java | 178 ++++++++ .../mapper/PzhmyAssessPatternMapper.java | 61 +++ .../service/IPzhmyAssessPatternService.java | 61 +++ .../impl/PzhmyAssessPatternServiceImpl.java | 92 ++++ .../pzhmyManage/PzhmyAssessPatternMapper.xml | 107 +++++ god-ui/src/api/pzhmyManage/pattern.js | 44 ++ .../views/pzhmyManage/assessCycle/index.vue | 413 +++++++++++++++++ .../src/views/pzhmyManage/pattern/index.vue | 417 ++++++++++++++++++ 9 files changed, 1471 insertions(+) create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/pzhmyManage/PzhmyAssessPatternController.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/domain/PzhmyAssessPattern.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/mapper/PzhmyAssessPatternMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/service/IPzhmyAssessPatternService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/service/impl/PzhmyAssessPatternServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/pzhmyManage/PzhmyAssessPatternMapper.xml create mode 100644 god-ui/src/api/pzhmyManage/pattern.js create mode 100644 god-ui/src/views/pzhmyManage/assessCycle/index.vue create mode 100644 god-ui/src/views/pzhmyManage/pattern/index.vue diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/pzhmyManage/PzhmyAssessPatternController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/pzhmyManage/PzhmyAssessPatternController.java new file mode 100644 index 00000000..050e9e58 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/pzhmyManage/PzhmyAssessPatternController.java @@ -0,0 +1,98 @@ +package com.god.web.controller.pzhmyManage; + +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.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.pzhmyManage.domain.PzhmyAssessPattern; +import com.god.pzhmyManage.service.IPzhmyAssessPatternService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 考核模式管理Controller + * + * @author wangyan + * @date 2023-12-18 + */ +@RestController +@RequestMapping("/pzhmyManage/pattern") +public class PzhmyAssessPatternController extends BaseController { + @Autowired + private IPzhmyAssessPatternService pzhmyAssessPatternService; + + /** + * 查询考核模式管理列表 + */ + @PreAuthorize("@ss.hasPermi('pzhmyManage:pattern:list')") + @GetMapping("/list") + public TableDataInfo list(PzhmyAssessPattern pzhmyAssessPattern) { + startPage(); + List list = pzhmyAssessPatternService.selectPzhmyAssessPatternList(pzhmyAssessPattern); + return getDataTable(list); + } + + /** + * 导出考核模式管理列表 + */ + @PreAuthorize("@ss.hasPermi('pzhmyManage:pattern:export')") + @Log(title = "考核模式管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, PzhmyAssessPattern pzhmyAssessPattern) { + List list = pzhmyAssessPatternService.selectPzhmyAssessPatternList(pzhmyAssessPattern); + ExcelUtil util = new ExcelUtil(PzhmyAssessPattern.class); + util.exportExcel(response, list, "考核模式管理数据"); + } + + /** + * 获取考核模式管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('pzhmyManage:pattern:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) { + return success(pzhmyAssessPatternService.selectPzhmyAssessPatternById(id)); + } + + /** + * 新增考核模式管理 + */ + @PreAuthorize("@ss.hasPermi('pzhmyManage:pattern:add')") + @Log(title = "考核模式管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody PzhmyAssessPattern pzhmyAssessPattern) { + return toAjax(pzhmyAssessPatternService.insertPzhmyAssessPattern(pzhmyAssessPattern)); + } + + /** + * 修改考核模式管理 + */ + @PreAuthorize("@ss.hasPermi('pzhmyManage:pattern:edit')") + @Log(title = "考核模式管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody PzhmyAssessPattern pzhmyAssessPattern) { + return toAjax(pzhmyAssessPatternService.updatePzhmyAssessPattern(pzhmyAssessPattern)); + } + + /** + * 删除考核模式管理 + */ + @PreAuthorize("@ss.hasPermi('pzhmyManage:pattern:remove')") + @Log(title = "考核模式管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) { + return toAjax(pzhmyAssessPatternService.deletePzhmyAssessPatternByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/domain/PzhmyAssessPattern.java b/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/domain/PzhmyAssessPattern.java new file mode 100644 index 00000000..c764d573 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/domain/PzhmyAssessPattern.java @@ -0,0 +1,178 @@ +package com.god.pzhmyManage.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 考核模式管理对象 pzhmy_assess_pattern + * + * @author wangyan + * @date 2023-12-18 + */ +public class PzhmyAssessPattern extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 模式名称 */ + @Excel(name = "模式名称") + private String patternName; + + /** 模式类别 */ + @Excel(name = "模式类别") + private String patternType; + + /** 考核周期 */ + @Excel(name = "考核周期") + private String assessCycle; + + /** 评估标准 */ + @Excel(name = "评估标准") + private String assessStandard; + + /** 考核岗位 */ + @Excel(name = "考核岗位") + private String assessStation; + + /** 添加时间 */ + @Excel(name = "添加时间") + private String addTime; + + /** 添加人 */ + @Excel(name = "添加人") + private String addPerson; + + /** 审批时间 */ + @Excel(name = "审批时间") + private String approvalTime; + + /** 审批人 */ + @Excel(name = "审批人") + private String approvalPerson; + + /** 数据类型 */ + @Excel(name = "数据类型") + private String dataType; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setPatternName(String patternName) + { + this.patternName = patternName; + } + + public String getPatternName() + { + return patternName; + } + public void setPatternType(String patternType) + { + this.patternType = patternType; + } + + public String getPatternType() + { + return patternType; + } + public void setAssessCycle(String assessCycle) + { + this.assessCycle = assessCycle; + } + + public String getAssessCycle() + { + return assessCycle; + } + public void setAssessStandard(String assessStandard) + { + this.assessStandard = assessStandard; + } + + public String getAssessStandard() + { + return assessStandard; + } + public void setAssessStation(String assessStation) + { + this.assessStation = assessStation; + } + + public String getAssessStation() + { + return assessStation; + } + public void setAddTime(String addTime) + { + this.addTime = addTime; + } + + public String getAddTime() + { + return addTime; + } + public void setAddPerson(String addPerson) + { + this.addPerson = addPerson; + } + + public String getAddPerson() + { + return addPerson; + } + public void setApprovalTime(String approvalTime) + { + this.approvalTime = approvalTime; + } + + public String getApprovalTime() + { + return approvalTime; + } + public void setApprovalPerson(String approvalPerson) + { + this.approvalPerson = approvalPerson; + } + + public String getApprovalPerson() + { + return approvalPerson; + } + public void setDataType(String dataType) + { + this.dataType = dataType; + } + + public String getDataType() + { + return dataType; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("patternName", getPatternName()) + .append("patternType", getPatternType()) + .append("assessCycle", getAssessCycle()) + .append("assessStandard", getAssessStandard()) + .append("assessStation", getAssessStation()) + .append("addTime", getAddTime()) + .append("addPerson", getAddPerson()) + .append("approvalTime", getApprovalTime()) + .append("approvalPerson", getApprovalPerson()) + .append("dataType", getDataType()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/mapper/PzhmyAssessPatternMapper.java b/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/mapper/PzhmyAssessPatternMapper.java new file mode 100644 index 00000000..5255858e --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/mapper/PzhmyAssessPatternMapper.java @@ -0,0 +1,61 @@ +package com.god.pzhmyManage.mapper; + +import java.util.List; +import com.god.pzhmyManage.domain.PzhmyAssessPattern; + +/** + * 考核模式管理Mapper接口 + * + * @author wangyan + * @date 2023-12-18 + */ +public interface PzhmyAssessPatternMapper +{ + /** + * 查询考核模式管理 + * + * @param id 考核模式管理主键 + * @return 考核模式管理 + */ + public PzhmyAssessPattern selectPzhmyAssessPatternById(String id); + + /** + * 查询考核模式管理列表 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 考核模式管理集合 + */ + public List selectPzhmyAssessPatternList(PzhmyAssessPattern pzhmyAssessPattern); + + /** + * 新增考核模式管理 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 结果 + */ + public int insertPzhmyAssessPattern(PzhmyAssessPattern pzhmyAssessPattern); + + /** + * 修改考核模式管理 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 结果 + */ + public int updatePzhmyAssessPattern(PzhmyAssessPattern pzhmyAssessPattern); + + /** + * 删除考核模式管理 + * + * @param id 考核模式管理主键 + * @return 结果 + */ + public int deletePzhmyAssessPatternById(String id); + + /** + * 批量删除考核模式管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePzhmyAssessPatternByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/service/IPzhmyAssessPatternService.java b/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/service/IPzhmyAssessPatternService.java new file mode 100644 index 00000000..8426ffcb --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/service/IPzhmyAssessPatternService.java @@ -0,0 +1,61 @@ +package com.god.pzhmyManage.service; + +import java.util.List; +import com.god.pzhmyManage.domain.PzhmyAssessPattern; + +/** + * 考核模式管理Service接口 + * + * @author wangyan + * @date 2023-12-18 + */ +public interface IPzhmyAssessPatternService +{ + /** + * 查询考核模式管理 + * + * @param id 考核模式管理主键 + * @return 考核模式管理 + */ + public PzhmyAssessPattern selectPzhmyAssessPatternById(String id); + + /** + * 查询考核模式管理列表 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 考核模式管理集合 + */ + public List selectPzhmyAssessPatternList(PzhmyAssessPattern pzhmyAssessPattern); + + /** + * 新增考核模式管理 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 结果 + */ + public int insertPzhmyAssessPattern(PzhmyAssessPattern pzhmyAssessPattern); + + /** + * 修改考核模式管理 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 结果 + */ + public int updatePzhmyAssessPattern(PzhmyAssessPattern pzhmyAssessPattern); + + /** + * 批量删除考核模式管理 + * + * @param ids 需要删除的考核模式管理主键集合 + * @return 结果 + */ + public int deletePzhmyAssessPatternByIds(String[] ids); + + /** + * 删除考核模式管理信息 + * + * @param id 考核模式管理主键 + * @return 结果 + */ + public int deletePzhmyAssessPatternById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/service/impl/PzhmyAssessPatternServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/service/impl/PzhmyAssessPatternServiceImpl.java new file mode 100644 index 00000000..c329d82a --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/pzhmyManage/service/impl/PzhmyAssessPatternServiceImpl.java @@ -0,0 +1,92 @@ +package com.god.pzhmyManage.service.impl; + +import java.util.List; + +import com.god.common.utils.StringUtils; +import com.god.common.utils.uuid.IdUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.god.pzhmyManage.mapper.PzhmyAssessPatternMapper; +import com.god.pzhmyManage.domain.PzhmyAssessPattern; +import com.god.pzhmyManage.service.IPzhmyAssessPatternService; + +/** + * 考核模式管理Service业务层处理 + * + * @author wangyan + * @date 2023-12-18 + */ +@Service +public class PzhmyAssessPatternServiceImpl implements IPzhmyAssessPatternService { + @Autowired + private PzhmyAssessPatternMapper pzhmyAssessPatternMapper; + + /** + * 查询考核模式管理 + * + * @param id 考核模式管理主键 + * @return 考核模式管理 + */ + @Override + public PzhmyAssessPattern selectPzhmyAssessPatternById(String id) { + return pzhmyAssessPatternMapper.selectPzhmyAssessPatternById(id); + } + + /** + * 查询考核模式管理列表 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 考核模式管理 + */ + @Override + public List selectPzhmyAssessPatternList(PzhmyAssessPattern pzhmyAssessPattern) { + return pzhmyAssessPatternMapper.selectPzhmyAssessPatternList(pzhmyAssessPattern); + } + + /** + * 新增考核模式管理 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 结果 + */ + @Override + public int insertPzhmyAssessPattern(PzhmyAssessPattern pzhmyAssessPattern) { + if (StringUtils.isBlank(pzhmyAssessPattern.getId())) { + pzhmyAssessPattern.setId(IdUtils.fastSimpleUUID()); + } + return pzhmyAssessPatternMapper.insertPzhmyAssessPattern(pzhmyAssessPattern); + } + + /** + * 修改考核模式管理 + * + * @param pzhmyAssessPattern 考核模式管理 + * @return 结果 + */ + @Override + public int updatePzhmyAssessPattern(PzhmyAssessPattern pzhmyAssessPattern) { + return pzhmyAssessPatternMapper.updatePzhmyAssessPattern(pzhmyAssessPattern); + } + + /** + * 批量删除考核模式管理 + * + * @param ids 需要删除的考核模式管理主键 + * @return 结果 + */ + @Override + public int deletePzhmyAssessPatternByIds(String[] ids) { + return pzhmyAssessPatternMapper.deletePzhmyAssessPatternByIds(ids); + } + + /** + * 删除考核模式管理信息 + * + * @param id 考核模式管理主键 + * @return 结果 + */ + @Override + public int deletePzhmyAssessPatternById(String id) { + return pzhmyAssessPatternMapper.deletePzhmyAssessPatternById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/pzhmyManage/PzhmyAssessPatternMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/pzhmyManage/PzhmyAssessPatternMapper.xml new file mode 100644 index 00000000..0066c100 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/pzhmyManage/PzhmyAssessPatternMapper.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + select id, pattern_name, pattern_type, assess_cycle, assess_standard, assess_station, add_time, add_person, approval_time, approval_person, data_type, remark from pzhmy_assess_pattern + + + + + + + + insert into pzhmy_assess_pattern + + id, + pattern_name, + pattern_type, + assess_cycle, + assess_standard, + assess_station, + add_time, + add_person, + approval_time, + approval_person, + data_type, + remark, + + + #{id}, + #{patternName}, + #{patternType}, + #{assessCycle}, + #{assessStandard}, + #{assessStation}, + #{addTime}, + #{addPerson}, + #{approvalTime}, + #{approvalPerson}, + #{dataType}, + #{remark}, + + + + + update pzhmy_assess_pattern + + pattern_name = #{patternName}, + pattern_type = #{patternType}, + assess_cycle = #{assessCycle}, + assess_standard = #{assessStandard}, + assess_station = #{assessStation}, + add_time = #{addTime}, + add_person = #{addPerson}, + approval_time = #{approvalTime}, + approval_person = #{approvalPerson}, + data_type = #{dataType}, + remark = #{remark}, + + where id = #{id} + + + + delete from pzhmy_assess_pattern where id = #{id} + + + + delete from pzhmy_assess_pattern where id in + + #{id} + + + \ No newline at end of file diff --git a/god-ui/src/api/pzhmyManage/pattern.js b/god-ui/src/api/pzhmyManage/pattern.js new file mode 100644 index 00000000..c9f8f15a --- /dev/null +++ b/god-ui/src/api/pzhmyManage/pattern.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询考核模式管理列表 +export function listPattern(query) { + return request({ + url: '/pzhmyManage/pattern/list', + method: 'get', + params: query + }) +} + +// 查询考核模式管理详细 +export function getPattern(id) { + return request({ + url: '/pzhmyManage/pattern/' + id, + method: 'get' + }) +} + +// 新增考核模式管理 +export function addPattern(data) { + return request({ + url: '/pzhmyManage/pattern', + method: 'post', + data: data + }) +} + +// 修改考核模式管理 +export function updatePattern(data) { + return request({ + url: '/pzhmyManage/pattern', + method: 'put', + data: data + }) +} + +// 删除考核模式管理 +export function delPattern(id) { + return request({ + url: '/pzhmyManage/pattern/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/pzhmyManage/assessCycle/index.vue b/god-ui/src/views/pzhmyManage/assessCycle/index.vue new file mode 100644 index 00000000..44f84246 --- /dev/null +++ b/god-ui/src/views/pzhmyManage/assessCycle/index.vue @@ -0,0 +1,413 @@ + + + diff --git a/god-ui/src/views/pzhmyManage/pattern/index.vue b/god-ui/src/views/pzhmyManage/pattern/index.vue new file mode 100644 index 00000000..6a7546cd --- /dev/null +++ b/god-ui/src/views/pzhmyManage/pattern/index.vue @@ -0,0 +1,417 @@ + + +