|
|
|
@ -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,
|
|
|
|
|