diff --git a/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiActionResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiActionResponse.java index 31cc447..885e5c4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiActionResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiActionResponse.java @@ -24,8 +24,6 @@ public class ZongzhiActionResponse { private Date zhuanxiangTime; - @ApiModelProperty(value = "百分比") - private double pt; @ApiModelProperty(value = "处理类型 1.处理有害信息 2.关闭直播平台违规账号") diff --git a/ruoyi-admin/src/main/java/com/ruoyi/screen/mapper/ZongzhiScreenManageMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/screen/mapper/ZongzhiScreenManageMapper.java index 0812fc9..9ecbd21 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/screen/mapper/ZongzhiScreenManageMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/screen/mapper/ZongzhiScreenManageMapper.java @@ -30,6 +30,7 @@ public interface ZongzhiScreenManageMapper { /** * 请朗专项行动数据统计 */ + // public List getaction(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/zongzhi/service/impl/TcYqFlServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/zongzhi/service/impl/TcYqFlServiceImpl.java index 30a4598..6849c00 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/zongzhi/service/impl/TcYqFlServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/zongzhi/service/impl/TcYqFlServiceImpl.java @@ -1,6 +1,8 @@ package com.ruoyi.zongzhi.service.impl; import java.util.List; + +import com.ruoyi.common.exception.ServiceException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.zongzhi.mapper.TcYqFlMapper; @@ -52,6 +54,12 @@ public class TcYqFlServiceImpl implements ITcYqFlService @Override public int insertTcYqFl(TcYqFl tcYqFl) { + List list =tcYqFlMapper.selectTcYqFlList(tcYqFl); + if (list.contains(tcYqFl.getMediaType())){ + throw new ServiceException("此媒体类型已存在"); + }else if(list.contains(tcYqFl.getEventType())){ + throw new ServiceException("此涉事类型已存在"); + } return tcYqFlMapper.insertTcYqFl(tcYqFl); } diff --git a/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenManageMapper.xml b/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenManageMapper.xml index a30b2c9..4962df0 100644 --- a/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenManageMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenManageMapper.xml @@ -17,10 +17,10 @@ diff --git a/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenOpinionMapper.xml b/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenOpinionMapper.xml index f5eb572..cc6cad9 100644 --- a/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenOpinionMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenOpinionMapper.xml @@ -6,11 +6,9 @@