From 826c032a8685f6466654dd1599c440700b02d2ec Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Mon, 19 May 2025 17:02:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8A=9E=E6=A1=88=E6=83=85=E5=86=B5?= =?UTF-8?q?=E9=80=9A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/manager/CaseReportManager.java | 35 +++++++++++++++---- .../system/SysCaseReportController.java | 2 +- .../system/mapper/SysCaseReportMapper.java | 7 +++- .../system/service/SysCaseReportService.java | 8 +++-- .../impl/SysCaseReportServiceImpl.java | 8 ++--- 5 files changed, 45 insertions(+), 15 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CaseReportManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CaseReportManager.java index 57126a4..a43791c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CaseReportManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/CaseReportManager.java @@ -5,7 +5,6 @@ import cn.hutool.core.text.CharSequenceUtil; import com.ruoyi.common.utils.ShiroUtils; import com.ruoyi.common.utils.uuid.IdUtils; import com.ruoyi.system.domain.SysCaseReport; -import com.ruoyi.system.domain.SysColumn; import com.ruoyi.system.service.SysCaseReportService; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; @@ -18,7 +17,7 @@ import java.util.List; /** * ClassName: CaseReportManager * Package: com.ruoyi.web.controller.manager - * Description: + * Description:办案情况通报 * * @Author wangxy * @Create 2025/5/19 9:34 @@ -31,11 +30,20 @@ public class CaseReportManager { @Resource private SysCaseReportService caseReportService; - + /** + * 查询列表 + * @param caseReport + * @return + */ public List selectSysCaseReportList(SysCaseReport caseReport) { return caseReportService.selectSysCaseReportList(caseReport); } + /** + * 保存与修改 + * @param caseReport + * @return + */ @Transactional(rollbackFor = Exception.class) public boolean saveOrUpdate(SysCaseReport caseReport) { if (CharSequenceUtil.isNotBlank(caseReport.getCaseId())) { @@ -51,7 +59,11 @@ public class CaseReportManager { return caseReportService.saveOrUpdate(caseReport); } - + /** + * 查询信息 + * @param caseId + * @return + */ public SysCaseReport selectSysCaseReportById(String caseId) { return caseReportService.lambdaQuery() .eq(SysCaseReport::getCaseId, caseId) @@ -59,13 +71,21 @@ public class CaseReportManager { .one(); } - + /** + * 删除信息 + * @param ids + * @return + */ @Transactional(rollbackFor = Exception.class) public boolean deletedSysCaseReportIds(String ids) { List list = Arrays.asList(Convert.toStrArray(ids)); return caseReportService.removeByIds(list); } + /** + * 查询列表信息 + * @return + */ public List selectCaseReportList() { return caseReportService.lambdaQuery() .eq(SysCaseReport::getStatus, "0") @@ -73,7 +93,10 @@ public class CaseReportManager { .list(); } - + /** + * 查询列表信息 + * @return + */ public List selectSysCaseReportHomeList() { return caseReportService.lambdaQuery() .select(SysCaseReport::getCaseId,SysCaseReport::getCaseTitle, diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysCaseReportController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysCaseReportController.java index 088566b..02a80cb 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysCaseReportController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysCaseReportController.java @@ -34,7 +34,7 @@ public class SysCaseReportController extends BaseController { private CaseReportManager caseReportManager; - private String prefix = "system/caseReport"; + private final String prefix = "system/caseReport"; @RequiresPermissions("system:caseReport:view") @GetMapping() diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysCaseReportMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysCaseReportMapper.java index f4490c1..df7203a 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysCaseReportMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysCaseReportMapper.java @@ -8,7 +8,7 @@ import java.util.List; /** * ClassName: SysCaseReportMapper * Package: com.ruoyi.system.mapper - * Description: + * Description:办案情况通报 * * @Author wangxy * @Create 2025/5/19 9:20 @@ -17,6 +17,11 @@ import java.util.List; public interface SysCaseReportMapper extends BaseMapper { + /** + * 查询列表信息 + * @param caseReport + * @return + */ public List selectSysCaseReportList(SysCaseReport caseReport); diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/SysCaseReportService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/SysCaseReportService.java index c3b7e98..00ec00c 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/SysCaseReportService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/SysCaseReportService.java @@ -1,7 +1,6 @@ package com.ruoyi.system.service; import com.baomidou.mybatisplus.extension.service.IService; -import com.ruoyi.system.domain.SysBusiness; import com.ruoyi.system.domain.SysCaseReport; import java.util.List; @@ -9,7 +8,7 @@ import java.util.List; /** * ClassName: SysCaseReportService * Package: com.ruoyi.system.service - * Description: + * Description:办案情况通报 * * @Author wangxy * @Create 2025/5/19 9:21 @@ -18,6 +17,11 @@ import java.util.List; public interface SysCaseReportService extends IService { + /** + * 查询列表信息 + * @param caseReport + * @return + */ public List selectSysCaseReportList(SysCaseReport caseReport); diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysCaseReportServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysCaseReportServiceImpl.java index 0973db4..a6a07c5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysCaseReportServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysCaseReportServiceImpl.java @@ -1,20 +1,18 @@ package com.ruoyi.system.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ruoyi.system.domain.SysBusiness; import com.ruoyi.system.domain.SysCaseReport; import com.ruoyi.system.mapper.SysCaseReportMapper; import com.ruoyi.system.service.SysCaseReportService; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; -import java.util.Collections; +import javax.annotation.Resource; import java.util.List; /** * ClassName: SysCaseReportServiceImpl * Package: com.ruoyi.system.service.impl - * Description: + * Description:办案情况通报 * * @Author wangxy * @Create 2025/5/19 9:22 @@ -23,7 +21,7 @@ import java.util.List; @Service public class SysCaseReportServiceImpl extends ServiceImpl implements SysCaseReportService { - @Autowired + @Resource private SysCaseReportMapper caseReportMapper; @Override