From 6da25424f612e8984426d759fa62a18999457362 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Fri, 16 May 2025 14:24:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:sm=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manager/ApplyInfoListManager.java | 5 + .../system/apply/PersonApplyController.java | 76 +++++++++++ .../system/newdev/person/personList.html | 122 ++++++++++++++++++ .../mapper/apply/TdApplyInfoListMapper.java | 4 + .../service/apply/TdApplyInfoListService.java | 3 + .../impl/TdApplyInfoListServiceImpl.java | 6 + .../system/apply/TdApplyInfoListMapper.xml | 28 ++++ 7 files changed, 244 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/apply/PersonApplyController.java create mode 100644 ruoyi-admin/src/main/resources/templates/system/newdev/person/personList.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/ApplyInfoListManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/ApplyInfoListManager.java index 6e705cec..13ff25cc 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/ApplyInfoListManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/ApplyInfoListManager.java @@ -56,6 +56,11 @@ public class ApplyInfoListManager { } + public List selectPersonList(TdApplyInfoListDTO applyInfoListDTO) { + return applyInfoListService.selectPersonList(applyInfoListDTO); + } + + @Transactional(rollbackFor = Exception.class) public boolean saveOrUpdate(TdApplyInfoListDTO applyInfoListDTO) { TdApplyInfoList applyInfoList = Convert.convert(TdApplyInfoList.class, applyInfoListDTO); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/apply/PersonApplyController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/apply/PersonApplyController.java new file mode 100644 index 00000000..f8986a93 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/apply/PersonApplyController.java @@ -0,0 +1,76 @@ +package com.ruoyi.web.controller.system.apply; + +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.system.domain.apply.TdApplyInfoList; +import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO; +import com.ruoyi.web.controller.manager.ApplyInfoListManager; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import java.util.List; + +/** + * ClassName: ApplyInfoListController + * Package: com.ruoyi.web.controller.system.apply + * Description: + * + * @Author wangxy + * @Create 2025/5/14 11:32 + * @Version 1.0 + */ +@Controller +@RequestMapping("/system/personList") +public class PersonApplyController extends BaseController { + + + private String prefix = "system/newdev/person"; + + + @Resource + private ApplyInfoListManager applyInfoListManager; + + @RequiresPermissions("system:person:view") + @GetMapping() + public String personListInfo() { + return prefix + "/personList"; + } + /** + * 人员列表 + */ + @RequiresPermissions("system:person:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) { + startPage(); + List tdApplyInfoLists = applyInfoListManager.selectPersonList(applyInfoListDTO); + return getDataTable(tdApplyInfoLists); + } + + /** + * 查看 + */ + @RequiresPermissions("system:person:detail") + @GetMapping("/detail/{applyId}") + public String detail(@PathVariable("applyId") String applyId, ModelMap mmap) { + TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId); + mmap.put("applyInfoList", applyInfoList); + + return prefix + "/detail"; + } + + + + + + + + + + + +} diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/person/personList.html b/ruoyi-admin/src/main/resources/templates/system/newdev/person/personList.html new file mode 100644 index 00000000..f69abe28 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/newdev/person/personList.html @@ -0,0 +1,122 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ +
+
+
+
+
+
+
+ + + + diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/apply/TdApplyInfoListMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/apply/TdApplyInfoListMapper.java index 7b593f89..74b43c84 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/apply/TdApplyInfoListMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/apply/TdApplyInfoListMapper.java @@ -25,6 +25,10 @@ public interface TdApplyInfoListMapper extends BaseMapper { public List selectPromiseInfoListList(TdApplyInfoListDTO applyInfoListDTO); + public List selectPersonList(TdApplyInfoListDTO applyInfoListDTO); + + + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/apply/TdApplyInfoListService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/apply/TdApplyInfoListService.java index 1406e8b9..1b9cbb50 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/apply/TdApplyInfoListService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/apply/TdApplyInfoListService.java @@ -24,6 +24,9 @@ public interface TdApplyInfoListService extends IService { public List selectPromiseInfoListList(TdApplyInfoListDTO applyInfoListDTO); + public List selectPersonList(TdApplyInfoListDTO applyInfoListDTO); + + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/apply/impl/TdApplyInfoListServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/apply/impl/TdApplyInfoListServiceImpl.java index 18ed3559..55ba4461 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/apply/impl/TdApplyInfoListServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/apply/impl/TdApplyInfoListServiceImpl.java @@ -48,6 +48,12 @@ public class TdApplyInfoListServiceImpl extends ServiceImpl selectPromiseInfoListList(TdApplyInfoListDTO applyInfoListDTO) { return applyInfoListMapper.selectPromiseInfoListList(applyInfoListDTO); } + + @DataScope(deptAlias = "d") + @Override + public List selectPersonList(TdApplyInfoListDTO applyInfoListDTO) { + return applyInfoListMapper.selectPersonList(applyInfoListDTO); + } } diff --git a/ruoyi-system/src/main/resources/mapper/system/apply/TdApplyInfoListMapper.xml b/ruoyi-system/src/main/resources/mapper/system/apply/TdApplyInfoListMapper.xml index 4d66ae88..83ef0cf3 100644 --- a/ruoyi-system/src/main/resources/mapper/system/apply/TdApplyInfoListMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/apply/TdApplyInfoListMapper.xml @@ -159,6 +159,34 @@ ORDER BY create_time DESC +