fix:办案情况通报

special-20250331
wangxy 2 months ago
parent 7a6907a7b2
commit 826c032a86

@ -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<SysCaseReport> 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<String> list = Arrays.asList(Convert.toStrArray(ids));
return caseReportService.removeByIds(list);
}
/**
*
* @return
*/
public List<SysCaseReport> selectCaseReportList() {
return caseReportService.lambdaQuery()
.eq(SysCaseReport::getStatus, "0")
@ -73,7 +93,10 @@ public class CaseReportManager {
.list();
}
/**
*
* @return
*/
public List<SysCaseReport> selectSysCaseReportHomeList() {
return caseReportService.lambdaQuery()
.select(SysCaseReport::getCaseId,SysCaseReport::getCaseTitle,

@ -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()

@ -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<SysCaseReport> {
/**
*
* @param caseReport
* @return
*/
public List<SysCaseReport> selectSysCaseReportList(SysCaseReport caseReport);

@ -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<SysCaseReport> {
/**
*
* @param caseReport
* @return
*/
public List<SysCaseReport> selectSysCaseReportList(SysCaseReport caseReport);

@ -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<SysCaseReportMapper, SysCaseReport> implements SysCaseReportService {
@Autowired
@Resource
private SysCaseReportMapper caseReportMapper;
@Override

Loading…
Cancel
Save