From 38534cdf245eb26b1063f51792cf86b352deca90 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Wed, 21 May 2025 14:25:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BA=BA=E5=91=98=E5=9C=A8=E5=B2=97?= =?UTF-8?q?=E8=B0=83=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manager/ApplyInfoListManager.java | 5 + .../onduty/OnDutyInfoListController.java | 72 +++++++++++ .../system/newdev/onduty/ondutyList.html | 114 ++++++++++++++++++ .../mapper/apply/TdApplyInfoListMapper.java | 5 + .../service/apply/TdApplyInfoListService.java | 5 + .../impl/TdApplyInfoListServiceImpl.java | 6 + .../system/apply/TdApplyInfoListMapper.xml | 27 +++++ 7 files changed, 234 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/onduty/OnDutyInfoListController.java create mode 100644 ruoyi-admin/src/main/resources/templates/system/newdev/onduty/ondutyList.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 13ff25cc..a2afcb92 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 @@ -61,6 +61,11 @@ public class ApplyInfoListManager { } + public List selectOndutyInfoListList(TdApplyInfoListDTO applyInfoListDTO) { + return applyInfoListService.selectOndutyInfoListList(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/onduty/OnDutyInfoListController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/onduty/OnDutyInfoListController.java new file mode 100644 index 00000000..cc933997 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/onduty/OnDutyInfoListController.java @@ -0,0 +1,72 @@ +package com.ruoyi.web.controller.system.onduty; + +import com.ruoyi.common.core.controller.BaseController; +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/onDutyList") +public class OnDutyInfoListController extends BaseController { + + + private String prefix = "system/newdev/onduty"; + + + @Resource + private ApplyInfoListManager applyInfoListManager; + + @RequiresPermissions("system:onduty:view") + @GetMapping() + public String ondutyList() { + return prefix + "/ondutyList"; + } + /** + * 人员列表 + */ + @RequiresPermissions("system:onduty:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TdApplyInfoListDTO applyInfoListDTO) { + startPage(); + List tdApplyInfoLists = applyInfoListManager.selectOndutyInfoListList(applyInfoListDTO); + return getDataTable(tdApplyInfoLists); + } + + /** + * 在岗 + */ + @RequiresPermissions("system:onduty:editDuty") + @GetMapping("/editDuty/{applyId}") + public String editDuty(@PathVariable("applyId") String applyId, ModelMap mmap) { + TdApplyInfoListDTO applyInfoList = applyInfoListManager.getTdApplyInfoList(applyId); + mmap.put("applyInfoList", applyInfoList); + return prefix + "/editDuty"; + } + + + + + + + + + +} diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/onduty/ondutyList.html b/ruoyi-admin/src/main/resources/templates/system/newdev/onduty/ondutyList.html new file mode 100644 index 00000000..e1e3fe75 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/newdev/onduty/ondutyList.html @@ -0,0 +1,114 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ +
+
+
+
+
+
+
+ + + + 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 74b43c84..127b2480 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 @@ -29,6 +29,11 @@ public interface TdApplyInfoListMapper extends BaseMapper { + public List selectOndutyInfoListList(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 1b9cbb50..814154ea 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 @@ -28,5 +28,10 @@ public interface TdApplyInfoListService extends IService { + public List selectOndutyInfoListList(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 55ba4461..cc4031fb 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 @@ -54,6 +54,12 @@ public class TdApplyInfoListServiceImpl extends ServiceImpl selectPersonList(TdApplyInfoListDTO applyInfoListDTO) { return applyInfoListMapper.selectPersonList(applyInfoListDTO); } + + @DataScope(deptAlias = "d") + @Override + public List selectOndutyInfoListList(TdApplyInfoListDTO applyInfoListDTO) { + return applyInfoListMapper.selectOndutyInfoListList(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 83ef0cf3..9465b2a8 100644 --- a/ruoyi-system/src/main/resources/mapper/system/apply/TdApplyInfoListMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/apply/TdApplyInfoListMapper.xml @@ -187,6 +187,33 @@ ORDER BY create_time DESC +