相关bug修改

master
wany 2026-03-11 15:13:39 +08:00
parent a384b22431
commit 35c6d2f28e
6 changed files with 12 additions and 11 deletions

View File

@ -1,6 +1,5 @@
package com.gunshi.project.ss.common.model.page; package com.gunshi.project.ss.common.model.page;
import com.baomidou.mybatisplus.annotation.TableField;
import com.gunshi.db.dto.PageSo; import com.gunshi.db.dto.PageSo;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;

View File

@ -66,7 +66,7 @@ public class ImpactZoneInfoController{
@Operation(summary = "列表") @Operation(summary = "列表")
@PostMapping("/list") @PostMapping("/list")
public R<List<ImpactZoneInfo>> list() { public R<List<ImpactZoneInfo>> list() {
return R.ok(service.lambdaQuery().list()); return R.ok(service.lambdaQuery().eq(ImpactZoneInfo::getStatus,0).list());
} }
@Operation(summary = "分页") @Operation(summary = "分页")

View File

@ -17,6 +17,7 @@ import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.mapper.SysDeptMapper; import com.ruoyi.system.mapper.SysDeptMapper;
import com.ruoyi.system.mapper.SysUserMapper; import com.ruoyi.system.mapper.SysUserMapper;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -213,17 +214,18 @@ public class DocCenterService extends ServiceImpl<DocCenterMapper, DocCenter> {
.ge(DocCenter::getCreateTime, dateTimeRangeSo.getStart()) .ge(DocCenter::getCreateTime, dateTimeRangeSo.getStart())
.le(DocCenter::getCreateTime, dateTimeRangeSo.getEnd()).list(); .le(DocCenter::getCreateTime, dateTimeRangeSo.getEnd()).list();
if(CollectionUtils.isEmpty(list)){
return res;
}
//获取去重的所有资料分类ID //获取去重的所有资料分类ID
List<Long> categoryIds = list.stream().distinct().map(o -> { List<Long> categoryIds = list.stream().distinct().map(DocCenter::getDocCategoryId).collect(Collectors.toList());
return o.getDocCategoryId();
}).collect(Collectors.toList());
List<DocCategory> level3Category = docCategoryService.lambdaQuery().in(DocCategory::getId, categoryIds).list(); List<DocCategory> level3Category = docCategoryService.lambdaQuery().in(DocCategory::getId, categoryIds).list();
for (DocCategory docCategory : level3Category) { for (DocCategory docCategory : level3Category) {
long count = list.stream().filter(o -> { long count = list.stream().filter(o ->
return docCategory.getId().equals(o.getDocCategoryId()); docCategory.getId().equals(o.getDocCategoryId())
}).count(); ).count();
res.put(docCategory.getCategoryName(),count); res.put(docCategory.getCategoryName(),count);
} }
return res; return res;

View File

@ -77,7 +77,7 @@ public class ProjectSafetyService extends ServiceImpl<ProjectSafetyMapper, Proje
if (type == null) { if (type == null) {
return false; return false;
} }
Long cnt = getBaseMapper().selectCount(new LambdaQueryWrapper<ProjectSafety>().eq(ProjectSafety::getType, type.getName())); Long cnt = getBaseMapper().selectCount(new LambdaQueryWrapper<ProjectSafety>().eq(ProjectSafety::getType, id));
if (cnt > 0) { if (cnt > 0) {
throw new IllegalArgumentException("请先删除关联数据"); throw new IllegalArgumentException("请先删除关联数据");
} }

View File

@ -73,7 +73,7 @@ public class WarningRuleInfoService extends ServiceImpl<WarningRuleInfoMapper,Wa
warningRuleInfo.setSecondAuditUserId(auditProcess.getSecondAuditUserId()); warningRuleInfo.setSecondAuditUserId(auditProcess.getSecondAuditUserId());
warningRuleInfo.setSecondAuditUserName(auditProcess.getSecondAuditUserName()); warningRuleInfo.setSecondAuditUserName(auditProcess.getSecondAuditUserName());
warningRuleInfo.setSecondAuditTime(null); warningRuleInfo.setSecondAuditTime(null);
warningRuleInfo.setStatus(null); warningRuleInfo.setSecondAuditStatus(null);
this.updateById(warningRuleInfo); this.updateById(warningRuleInfo);
objService.remove(new QueryWrapper<WarningRecObj>().eq("warning_info_id",warningRuleInfo.getId())); objService.remove(new QueryWrapper<WarningRecObj>().eq("warning_info_id",warningRuleInfo.getId()));
objService.saveOrUpdateBatch(warningRuleInfo.getObjs()); objService.saveOrUpdateBatch(warningRuleInfo.getObjs());

View File

@ -72,7 +72,7 @@
<!-- 当type=3时只查询位移表 --> <!-- 当type=3时只查询位移表 -->
<when test="dto.type == 3"> <when test="dto.type == 3">
SELECT SELECT
cdnm as code, cd_nm as code,
ch as dm, ch as dm,
lgtd, lgtd,
lttd, lttd,