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.ShiroUtils;
import com.ruoyi.common.utils.uuid.IdUtils; import com.ruoyi.common.utils.uuid.IdUtils;
import com.ruoyi.system.domain.SysCaseReport; import com.ruoyi.system.domain.SysCaseReport;
import com.ruoyi.system.domain.SysColumn;
import com.ruoyi.system.service.SysCaseReportService; import com.ruoyi.system.service.SysCaseReportService;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -18,7 +17,7 @@ import java.util.List;
/** /**
* ClassName: CaseReportManager * ClassName: CaseReportManager
* Package: com.ruoyi.web.controller.manager * Package: com.ruoyi.web.controller.manager
* Description: * Description:
* *
* @Author wangxy * @Author wangxy
* @Create 2025/5/19 9:34 * @Create 2025/5/19 9:34
@ -31,11 +30,20 @@ public class CaseReportManager {
@Resource @Resource
private SysCaseReportService caseReportService; private SysCaseReportService caseReportService;
/**
*
* @param caseReport
* @return
*/
public List<SysCaseReport> selectSysCaseReportList(SysCaseReport caseReport) { public List<SysCaseReport> selectSysCaseReportList(SysCaseReport caseReport) {
return caseReportService.selectSysCaseReportList(caseReport); return caseReportService.selectSysCaseReportList(caseReport);
} }
/**
*
* @param caseReport
* @return
*/
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean saveOrUpdate(SysCaseReport caseReport) { public boolean saveOrUpdate(SysCaseReport caseReport) {
if (CharSequenceUtil.isNotBlank(caseReport.getCaseId())) { if (CharSequenceUtil.isNotBlank(caseReport.getCaseId())) {
@ -51,7 +59,11 @@ public class CaseReportManager {
return caseReportService.saveOrUpdate(caseReport); return caseReportService.saveOrUpdate(caseReport);
} }
/**
*
* @param caseId
* @return
*/
public SysCaseReport selectSysCaseReportById(String caseId) { public SysCaseReport selectSysCaseReportById(String caseId) {
return caseReportService.lambdaQuery() return caseReportService.lambdaQuery()
.eq(SysCaseReport::getCaseId, caseId) .eq(SysCaseReport::getCaseId, caseId)
@ -59,13 +71,21 @@ public class CaseReportManager {
.one(); .one();
} }
/**
*
* @param ids
* @return
*/
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean deletedSysCaseReportIds(String ids) { public boolean deletedSysCaseReportIds(String ids) {
List<String> list = Arrays.asList(Convert.toStrArray(ids)); List<String> list = Arrays.asList(Convert.toStrArray(ids));
return caseReportService.removeByIds(list); return caseReportService.removeByIds(list);
} }
/**
*
* @return
*/
public List<SysCaseReport> selectCaseReportList() { public List<SysCaseReport> selectCaseReportList() {
return caseReportService.lambdaQuery() return caseReportService.lambdaQuery()
.eq(SysCaseReport::getStatus, "0") .eq(SysCaseReport::getStatus, "0")
@ -73,7 +93,10 @@ public class CaseReportManager {
.list(); .list();
} }
/**
*
* @return
*/
public List<SysCaseReport> selectSysCaseReportHomeList() { public List<SysCaseReport> selectSysCaseReportHomeList() {
return caseReportService.lambdaQuery() return caseReportService.lambdaQuery()
.select(SysCaseReport::getCaseId,SysCaseReport::getCaseTitle, .select(SysCaseReport::getCaseId,SysCaseReport::getCaseTitle,

@ -34,7 +34,7 @@ public class SysCaseReportController extends BaseController {
private CaseReportManager caseReportManager; private CaseReportManager caseReportManager;
private String prefix = "system/caseReport"; private final String prefix = "system/caseReport";
@RequiresPermissions("system:caseReport:view") @RequiresPermissions("system:caseReport:view")
@GetMapping() @GetMapping()

@ -8,7 +8,7 @@ import java.util.List;
/** /**
* ClassName: SysCaseReportMapper * ClassName: SysCaseReportMapper
* Package: com.ruoyi.system.mapper * Package: com.ruoyi.system.mapper
* Description: * Description:
* *
* @Author wangxy * @Author wangxy
* @Create 2025/5/19 9:20 * @Create 2025/5/19 9:20
@ -17,6 +17,11 @@ import java.util.List;
public interface SysCaseReportMapper extends BaseMapper<SysCaseReport> { public interface SysCaseReportMapper extends BaseMapper<SysCaseReport> {
/**
*
* @param caseReport
* @return
*/
public List<SysCaseReport> selectSysCaseReportList(SysCaseReport caseReport); public List<SysCaseReport> selectSysCaseReportList(SysCaseReport caseReport);

@ -1,7 +1,6 @@
package com.ruoyi.system.service; package com.ruoyi.system.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.SysBusiness;
import com.ruoyi.system.domain.SysCaseReport; import com.ruoyi.system.domain.SysCaseReport;
import java.util.List; import java.util.List;
@ -9,7 +8,7 @@ import java.util.List;
/** /**
* ClassName: SysCaseReportService * ClassName: SysCaseReportService
* Package: com.ruoyi.system.service * Package: com.ruoyi.system.service
* Description: * Description:
* *
* @Author wangxy * @Author wangxy
* @Create 2025/5/19 9:21 * @Create 2025/5/19 9:21
@ -18,6 +17,11 @@ import java.util.List;
public interface SysCaseReportService extends IService<SysCaseReport> { public interface SysCaseReportService extends IService<SysCaseReport> {
/**
*
* @param caseReport
* @return
*/
public List<SysCaseReport> selectSysCaseReportList(SysCaseReport caseReport); public List<SysCaseReport> selectSysCaseReportList(SysCaseReport caseReport);

@ -1,20 +1,18 @@
package com.ruoyi.system.service.impl; package com.ruoyi.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SysBusiness;
import com.ruoyi.system.domain.SysCaseReport; import com.ruoyi.system.domain.SysCaseReport;
import com.ruoyi.system.mapper.SysCaseReportMapper; import com.ruoyi.system.mapper.SysCaseReportMapper;
import com.ruoyi.system.service.SysCaseReportService; import com.ruoyi.system.service.SysCaseReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Collections; import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
* ClassName: SysCaseReportServiceImpl * ClassName: SysCaseReportServiceImpl
* Package: com.ruoyi.system.service.impl * Package: com.ruoyi.system.service.impl
* Description: * Description:
* *
* @Author wangxy * @Author wangxy
* @Create 2025/5/19 9:22 * @Create 2025/5/19 9:22
@ -23,7 +21,7 @@ import java.util.List;
@Service @Service
public class SysCaseReportServiceImpl extends ServiceImpl<SysCaseReportMapper, SysCaseReport> implements SysCaseReportService { public class SysCaseReportServiceImpl extends ServiceImpl<SysCaseReportMapper, SysCaseReport> implements SysCaseReportService {
@Autowired @Resource
private SysCaseReportMapper caseReportMapper; private SysCaseReportMapper caseReportMapper;
@Override @Override

Loading…
Cancel
Save