parent
330133bbe2
commit
6d9eb43f18
@ -1,97 +1,122 @@
|
|||||||
package com.ruoyi.zongzhi.domain;
|
package com.ruoyi.zongzhi.domain;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.ruoyi.common.annotation.Excel;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据来源统计表(TcDataSourceTj)表实体类
|
* 数据来源统计对象 tc_data_source_tj
|
||||||
*
|
*
|
||||||
* @author wu
|
* @author ruoyi
|
||||||
* @since 2023-09-12 14:55:53
|
* @date 2023-09-13
|
||||||
*/
|
*/
|
||||||
@Data
|
public class TcDataSourceTj extends BaseEntity {
|
||||||
@ApiModel("数据来源统计表实体类")
|
private static final long serialVersionUID = 1L;
|
||||||
@TableName(value = "tc_data_source_tj")
|
|
||||||
public class TcDataSourceTj implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 304828068144976883L;
|
|
||||||
/**
|
/**
|
||||||
* 主键id
|
* 主键id
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "主键id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 区域id
|
* 区域id
|
||||||
*/
|
*/
|
||||||
|
@Excel(name = "区域id")
|
||||||
@ApiModelProperty(value = "区域id")
|
@ApiModelProperty(value = "区域id")
|
||||||
private Long areaId;
|
private Long areaId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 云端监测(G)
|
* 云端监测(G)
|
||||||
*/
|
*/
|
||||||
|
@Excel(name = "云端监测(G)")
|
||||||
@ApiModelProperty(value = "云端监测(G)")
|
@ApiModelProperty(value = "云端监测(G)")
|
||||||
private String lable1;
|
private String lable1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APT(M)
|
* APT(M)
|
||||||
*/
|
*/
|
||||||
|
@Excel(name = "APT(M)")
|
||||||
@ApiModelProperty(value = "APT(M)")
|
@ApiModelProperty(value = "APT(M)")
|
||||||
private String lable2;
|
private String lable2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人id
|
* 创建人id
|
||||||
*/
|
*/
|
||||||
|
@Excel(name = "创建人id")
|
||||||
@ApiModelProperty(value = "创建人id")
|
@ApiModelProperty(value = "创建人id")
|
||||||
private Long createId;
|
private Long createId;
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建人名称
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "创建人名称")
|
|
||||||
private String createBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "创建时间")
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd ")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 最后更新人id
|
* 最后更新人id
|
||||||
*/
|
*/
|
||||||
|
@Excel(name = "最后更新人id")
|
||||||
@ApiModelProperty(value = "最后更新人id")
|
@ApiModelProperty(value = "最后更新人id")
|
||||||
private Long updateId;
|
private Long updateId;
|
||||||
|
|
||||||
/**
|
public void setId(Long id) {
|
||||||
* 最后更新人名称
|
this.id = id;
|
||||||
*/
|
}
|
||||||
@ApiModelProperty(value = "最后更新人名称")
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
/**
|
public Long getId() {
|
||||||
* 最后更新时间
|
return id;
|
||||||
*/
|
}
|
||||||
@ApiModelProperty(value = "最后更新时间")
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd ")
|
|
||||||
private Date updateTime;
|
|
||||||
|
|
||||||
/**
|
public void setAreaId(Long areaId) {
|
||||||
* 备注
|
this.areaId = areaId;
|
||||||
*/
|
}
|
||||||
@ApiModelProperty(value = "备注")
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
|
public Long getAreaId() {
|
||||||
|
return areaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setLable1(String lable1) {
|
||||||
|
this.lable1 = lable1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLable1() {
|
||||||
|
return lable1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLable2(String lable2) {
|
||||||
|
this.lable2 = lable2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLable2() {
|
||||||
|
return lable2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateId(Long createId) {
|
||||||
|
this.createId = createId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCreateId() {
|
||||||
|
return createId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateId(Long updateId) {
|
||||||
|
this.updateId = updateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUpdateId() {
|
||||||
|
return updateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("areaId", getAreaId())
|
||||||
|
.append("lable1", getLable1())
|
||||||
|
.append("lable2", getLable2())
|
||||||
|
.append("createId", getCreateId())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateId", getUpdateId())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,15 +1,61 @@
|
|||||||
package com.ruoyi.zongzhi.mapper;
|
package com.ruoyi.zongzhi.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.ruoyi.zongzhi.domain.TcDataSourceTj;
|
import com.ruoyi.zongzhi.domain.TcDataSourceTj;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据来源统计Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-13
|
||||||
|
*/
|
||||||
|
public interface TcDataSourceTjMapper {
|
||||||
/**
|
/**
|
||||||
* 数据来源统计表(TcDataSourceTj)表数据库访问层
|
* 查询数据来源统计
|
||||||
*
|
*
|
||||||
* @author wu
|
* @param id 数据来源统计主键
|
||||||
* @since 2023-09-12 14:55:53
|
* @return 数据来源统计
|
||||||
*/
|
*/
|
||||||
public interface TcDataSourceTjMapper extends BaseMapper<TcDataSourceTj> {
|
public TcDataSourceTj selectTcDataSourceTjById(Long id);
|
||||||
|
|
||||||
}
|
/**
|
||||||
|
* 查询数据来源统计列表
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 数据来源统计集合
|
||||||
|
*/
|
||||||
|
public List<TcDataSourceTj> selectTcDataSourceTjList(TcDataSourceTj tcDataSourceTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据来源统计
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTcDataSourceTj(TcDataSourceTj tcDataSourceTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据来源统计
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTcDataSourceTj(TcDataSourceTj tcDataSourceTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据来源统计
|
||||||
|
*
|
||||||
|
* @param id 数据来源统计主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcDataSourceTjById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除数据来源统计
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcDataSourceTjByIds(Long[] ids);
|
||||||
|
}
|
||||||
|
@ -1,15 +1,61 @@
|
|||||||
package com.ruoyi.zongzhi.mapper;
|
package com.ruoyi.zongzhi.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.ruoyi.zongzhi.domain.TcSgjTj;
|
import com.ruoyi.zongzhi.domain.TcSgjTj;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安全监测受攻击统计Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-13
|
||||||
|
*/
|
||||||
|
public interface TcSgjTjMapper {
|
||||||
/**
|
/**
|
||||||
* 安全监测受攻击统计(TcSgjTj)表数据库访问层
|
* 查询安全监测受攻击统计
|
||||||
*
|
*
|
||||||
* @author wu
|
* @param id 安全监测受攻击统计主键
|
||||||
* @since 2023-09-11 15:42:22
|
* @return 安全监测受攻击统计
|
||||||
*/
|
*/
|
||||||
public interface TcSgjTjMapper extends BaseMapper<TcSgjTj> {
|
public TcSgjTj selectTcSgjTjById(Long id);
|
||||||
|
|
||||||
}
|
/**
|
||||||
|
* 查询安全监测受攻击统计列表
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 安全监测受攻击统计集合
|
||||||
|
*/
|
||||||
|
public List<TcSgjTj> selectTcSgjTjList(TcSgjTj tcSgjTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTcSgjTj(TcSgjTj tcSgjTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTcSgjTj(TcSgjTj tcSgjTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param id 安全监测受攻击统计主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcSgjTjById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcSgjTjByIds(Long[] ids);
|
||||||
|
}
|
||||||
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.zongzhi.service;
|
||||||
|
|
||||||
|
import com.ruoyi.zongzhi.domain.TcDataSourceTj;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据来源统计Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-13
|
||||||
|
*/
|
||||||
|
public interface ITcDataSourceTjService {
|
||||||
|
/**
|
||||||
|
* 查询数据来源统计
|
||||||
|
*
|
||||||
|
* @param id 数据来源统计主键
|
||||||
|
* @return 数据来源统计
|
||||||
|
*/
|
||||||
|
public TcDataSourceTj selectTcDataSourceTjById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询数据来源统计列表
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 数据来源统计集合
|
||||||
|
*/
|
||||||
|
public List<TcDataSourceTj> selectTcDataSourceTjList(TcDataSourceTj tcDataSourceTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据来源统计
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTcDataSourceTj(TcDataSourceTj tcDataSourceTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据来源统计
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTcDataSourceTj(TcDataSourceTj tcDataSourceTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除数据来源统计
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据来源统计主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcDataSourceTjByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据来源统计信息
|
||||||
|
*
|
||||||
|
* @param id 数据来源统计主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcDataSourceTjById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.zongzhi.service;
|
||||||
|
|
||||||
|
import com.ruoyi.zongzhi.domain.TcSgjTj;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安全监测受攻击统计Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-09-13
|
||||||
|
*/
|
||||||
|
public interface ITcSgjTjService {
|
||||||
|
/**
|
||||||
|
* 查询安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param id 安全监测受攻击统计主键
|
||||||
|
* @return 安全监测受攻击统计
|
||||||
|
*/
|
||||||
|
public TcSgjTj selectTcSgjTjById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询安全监测受攻击统计列表
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 安全监测受攻击统计集合
|
||||||
|
*/
|
||||||
|
public List<TcSgjTj> selectTcSgjTjList(TcSgjTj tcSgjTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTcSgjTj(TcSgjTj tcSgjTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTcSgjTj(TcSgjTj tcSgjTj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的安全监测受攻击统计主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcSgjTjByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除安全监测受攻击统计信息
|
||||||
|
*
|
||||||
|
* @param id 安全监测受攻击统计主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcSgjTjById(Long id);
|
||||||
|
}
|
@ -1,15 +0,0 @@
|
|||||||
package com.ruoyi.zongzhi.service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
|
||||||
import com.ruoyi.zongzhi.domain.TcDataSourceTj;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数据来源统计表(TcDataSourceTj)表服务接口
|
|
||||||
*
|
|
||||||
* @author wu
|
|
||||||
* @since 2023-09-12 14:55:53
|
|
||||||
*/
|
|
||||||
public interface TcDataSourceTjService extends IService<TcDataSourceTj> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
package com.ruoyi.zongzhi.service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
|
||||||
import com.ruoyi.zongzhi.domain.TcSgjTj;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 安全监测受攻击统计(TcSgjTj)表服务接口
|
|
||||||
*
|
|
||||||
* @author wu
|
|
||||||
* @since 2023-09-11 15:42:25
|
|
||||||
*/
|
|
||||||
public interface TcSgjTjService extends IService<TcSgjTj> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +1,90 @@
|
|||||||
package com.ruoyi.zongzhi.service.impl;
|
package com.ruoyi.zongzhi.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
import com.ruoyi.zongzhi.domain.TcDataSourceTj;
|
import com.ruoyi.zongzhi.domain.TcDataSourceTj;
|
||||||
import com.ruoyi.zongzhi.mapper.TcDataSourceTjMapper;
|
import com.ruoyi.zongzhi.mapper.TcDataSourceTjMapper;
|
||||||
import com.ruoyi.zongzhi.service.TcDataSourceTjService;
|
import com.ruoyi.zongzhi.service.ITcDataSourceTjService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据来源统计表(TcDataSourceTj)表服务实现类
|
* 数据来源统计Service业务层处理
|
||||||
*
|
*
|
||||||
* @author wu
|
* @author ruoyi
|
||||||
* @since 2023-09-12 14:55:53
|
* @date 2023-09-13
|
||||||
*/
|
*/
|
||||||
@Service("tcDataSourceTjService")
|
@Service
|
||||||
public class TcDataSourceTjServiceImpl extends ServiceImpl<TcDataSourceTjMapper, TcDataSourceTj> implements TcDataSourceTjService {
|
public class TcDataSourceTjServiceImpl implements ITcDataSourceTjService {
|
||||||
|
@Resource
|
||||||
|
private TcDataSourceTjMapper tcDataSourceTjMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询数据来源统计
|
||||||
|
*
|
||||||
|
* @param id 数据来源统计主键
|
||||||
|
* @return 数据来源统计
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TcDataSourceTj selectTcDataSourceTjById(Long id) {
|
||||||
|
return tcDataSourceTjMapper.selectTcDataSourceTjById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询数据来源统计列表
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 数据来源统计
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TcDataSourceTj> selectTcDataSourceTjList(TcDataSourceTj tcDataSourceTj) {
|
||||||
|
return tcDataSourceTjMapper.selectTcDataSourceTjList(tcDataSourceTj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据来源统计
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTcDataSourceTj(TcDataSourceTj tcDataSourceTj) {
|
||||||
|
tcDataSourceTj.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return tcDataSourceTjMapper.insertTcDataSourceTj(tcDataSourceTj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据来源统计
|
||||||
|
*
|
||||||
|
* @param tcDataSourceTj 数据来源统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTcDataSourceTj(TcDataSourceTj tcDataSourceTj) {
|
||||||
|
tcDataSourceTj.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return tcDataSourceTjMapper.updateTcDataSourceTj(tcDataSourceTj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除数据来源统计
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据来源统计主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTcDataSourceTjByIds(Long[] ids) {
|
||||||
|
return tcDataSourceTjMapper.deleteTcDataSourceTjByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据来源统计信息
|
||||||
|
*
|
||||||
|
* @param id 数据来源统计主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTcDataSourceTjById(Long id) {
|
||||||
|
return tcDataSourceTjMapper.deleteTcDataSourceTjById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,19 +1,90 @@
|
|||||||
package com.ruoyi.zongzhi.service.impl;
|
package com.ruoyi.zongzhi.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
import com.ruoyi.zongzhi.domain.TcSgjTj;
|
import com.ruoyi.zongzhi.domain.TcSgjTj;
|
||||||
import com.ruoyi.zongzhi.mapper.TcSgjTjMapper;
|
import com.ruoyi.zongzhi.mapper.TcSgjTjMapper;
|
||||||
import com.ruoyi.zongzhi.service.TcSgjTjService;
|
import com.ruoyi.zongzhi.service.ITcSgjTjService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 安全监测受攻击统计(TcSgjTj)表服务实现类
|
* 安全监测受攻击统计Service业务层处理
|
||||||
*
|
*
|
||||||
* @author wu
|
* @author ruoyi
|
||||||
* @since 2023-09-11 15:42:25
|
* @date 2023-09-13
|
||||||
*/
|
*/
|
||||||
@Service("tcSgjTjService")
|
@Service
|
||||||
public class TcSgjTjServiceImpl extends ServiceImpl<TcSgjTjMapper, TcSgjTj> implements TcSgjTjService {
|
public class TcSgjTjServiceImpl implements ITcSgjTjService {
|
||||||
|
@Resource
|
||||||
|
private TcSgjTjMapper tcSgjTjMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param id 安全监测受攻击统计主键
|
||||||
|
* @return 安全监测受攻击统计
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TcSgjTj selectTcSgjTjById(Long id) {
|
||||||
|
return tcSgjTjMapper.selectTcSgjTjById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询安全监测受攻击统计列表
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 安全监测受攻击统计
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TcSgjTj> selectTcSgjTjList(TcSgjTj tcSgjTj) {
|
||||||
|
return tcSgjTjMapper.selectTcSgjTjList(tcSgjTj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTcSgjTj(TcSgjTj tcSgjTj) {
|
||||||
|
tcSgjTj.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return tcSgjTjMapper.insertTcSgjTj(tcSgjTj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param tcSgjTj 安全监测受攻击统计
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTcSgjTj(TcSgjTj tcSgjTj) {
|
||||||
|
tcSgjTj.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return tcSgjTjMapper.updateTcSgjTj(tcSgjTj);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除安全监测受攻击统计
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的安全监测受攻击统计主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTcSgjTjByIds(Long[] ids) {
|
||||||
|
return tcSgjTjMapper.deleteTcSgjTjByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除安全监测受攻击统计信息
|
||||||
|
*
|
||||||
|
* @param id 安全监测受攻击统计主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTcSgjTjById(Long id) {
|
||||||
|
return tcSgjTjMapper.deleteTcSgjTjById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.zongzhi.mapper.TcDataSourceTjMapper">
|
||||||
|
|
||||||
|
<resultMap type="TcDataSourceTj" id="TcDataSourceTjResult">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="areaId" column="area_id"/>
|
||||||
|
<result property="lable1" column="lable1"/>
|
||||||
|
<result property="lable2" column="lable2"/>
|
||||||
|
<result property="createId" column="create_id"/>
|
||||||
|
<result property="createBy" column="create_by"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="updateId" column="update_id"/>
|
||||||
|
<result property="updateBy" column="update_by"/>
|
||||||
|
<result property="updateTime" column="update_time"/>
|
||||||
|
<result property="remark" column="remark"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectTcDataSourceTjVo">
|
||||||
|
select id,
|
||||||
|
area_id,
|
||||||
|
lable1,
|
||||||
|
lable2,
|
||||||
|
create_id,
|
||||||
|
create_by,
|
||||||
|
create_time,
|
||||||
|
update_id,
|
||||||
|
update_by,
|
||||||
|
update_time,
|
||||||
|
remark
|
||||||
|
from tc_data_source_tj
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTcDataSourceTjList" parameterType="TcDataSourceTj" resultMap="TcDataSourceTjResult">
|
||||||
|
<include refid="selectTcDataSourceTjVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="areaId != null ">and area_id = #{areaId}</if>
|
||||||
|
<if test="lable1 != null and lable1 != ''">and lable1 = #{lable1}</if>
|
||||||
|
<if test="lable2 != null and lable2 != ''">and lable2 = #{lable2}</if>
|
||||||
|
<if test="createId != null ">and create_id = #{createId}</if>
|
||||||
|
<if test="updateId != null ">and update_id = #{updateId}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTcDataSourceTjById" parameterType="Long" resultMap="TcDataSourceTjResult">
|
||||||
|
<include refid="selectTcDataSourceTjVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTcDataSourceTj" parameterType="TcDataSourceTj" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into tc_data_source_tj
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="areaId != null">area_id,</if>
|
||||||
|
<if test="lable1 != null">lable1,</if>
|
||||||
|
<if test="lable2 != null">lable2,</if>
|
||||||
|
<if test="createId != null">create_id,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateId != null">update_id,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="areaId != null">#{areaId},</if>
|
||||||
|
<if test="lable1 != null">#{lable1},</if>
|
||||||
|
<if test="lable2 != null">#{lable2},</if>
|
||||||
|
<if test="createId != null">#{createId},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateId != null">#{updateId},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateTcDataSourceTj" parameterType="TcDataSourceTj">
|
||||||
|
update tc_data_source_tj
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="areaId != null">area_id = #{areaId},</if>
|
||||||
|
<if test="lable1 != null">lable1 = #{lable1},</if>
|
||||||
|
<if test="lable2 != null">lable2 = #{lable2},</if>
|
||||||
|
<if test="createId != null">create_id = #{createId},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateId != null">update_id = #{updateId},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteTcDataSourceTjById" parameterType="Long">
|
||||||
|
delete
|
||||||
|
from tc_data_source_tj
|
||||||
|
where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTcDataSourceTjByIds" parameterType="String">
|
||||||
|
delete from tc_data_source_tj where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
@ -0,0 +1,121 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.zongzhi.mapper.TcSgjTjMapper">
|
||||||
|
|
||||||
|
<resultMap type="TcSgjTj" id="TcSgjTjResult">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="townId" column="town_id"/>
|
||||||
|
<result property="villageId" column="village_id"/>
|
||||||
|
<result property="totalSum" column="total_sum"/>
|
||||||
|
<result property="rqSum" column="rq_sum"/>
|
||||||
|
<result property="eySum" column="ey_sum"/>
|
||||||
|
<result property="jmrSum" column="jmr_sum"/>
|
||||||
|
<result property="createId" column="create_id"/>
|
||||||
|
<result property="createBy" column="create_by"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="updateId" column="update_id"/>
|
||||||
|
<result property="updateBy" column="update_by"/>
|
||||||
|
<result property="updateTime" column="update_time"/>
|
||||||
|
<result property="remark" column="remark"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectTcSgjTjVo">
|
||||||
|
select id,
|
||||||
|
town_id,
|
||||||
|
village_id,
|
||||||
|
total_sum,
|
||||||
|
rq_sum,
|
||||||
|
ey_sum,
|
||||||
|
jmr_sum,
|
||||||
|
create_id,
|
||||||
|
create_by,
|
||||||
|
create_time,
|
||||||
|
update_id,
|
||||||
|
update_by,
|
||||||
|
update_time,
|
||||||
|
remark
|
||||||
|
from tc_sgj_tj
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTcSgjTjList" parameterType="TcSgjTj" resultMap="TcSgjTjResult">
|
||||||
|
<include refid="selectTcSgjTjVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="totalSum != null ">and total_sum = #{totalSum}</if>
|
||||||
|
<if test="rqSum != null ">and rq_sum = #{rqSum}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTcSgjTjById" parameterType="Long" resultMap="TcSgjTjResult">
|
||||||
|
<include refid="selectTcSgjTjVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTcSgjTj" parameterType="TcSgjTj" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into tc_sgj_tj
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="townId != null">town_id,</if>
|
||||||
|
<if test="villageId != null">village_id,</if>
|
||||||
|
<if test="totalSum != null">total_sum,</if>
|
||||||
|
<if test="rqSum != null">rq_sum,</if>
|
||||||
|
<if test="eySum != null">ey_sum,</if>
|
||||||
|
<if test="jmrSum != null">jmr_sum,</if>
|
||||||
|
<if test="createId != null">create_id,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateId != null">update_id,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="townId != null">#{townId},</if>
|
||||||
|
<if test="villageId != null">#{villageId},</if>
|
||||||
|
<if test="totalSum != null">#{totalSum},</if>
|
||||||
|
<if test="rqSum != null">#{rqSum},</if>
|
||||||
|
<if test="eySum != null">#{eySum},</if>
|
||||||
|
<if test="jmrSum != null">#{jmrSum},</if>
|
||||||
|
<if test="createId != null">#{createId},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateId != null">#{updateId},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateTcSgjTj" parameterType="TcSgjTj">
|
||||||
|
update tc_sgj_tj
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="townId != null">town_id = #{townId},</if>
|
||||||
|
<if test="villageId != null">village_id = #{villageId},</if>
|
||||||
|
<if test="totalSum != null">total_sum = #{totalSum},</if>
|
||||||
|
<if test="rqSum != null">rq_sum = #{rqSum},</if>
|
||||||
|
<if test="eySum != null">ey_sum = #{eySum},</if>
|
||||||
|
<if test="jmrSum != null">jmr_sum = #{jmrSum},</if>
|
||||||
|
<if test="createId != null">create_id = #{createId},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateId != null">update_id = #{updateId},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteTcSgjTjById" parameterType="Long">
|
||||||
|
delete
|
||||||
|
from tc_sgj_tj
|
||||||
|
where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTcSgjTjByIds" parameterType="String">
|
||||||
|
delete from tc_sgj_tj where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
Loading…
Reference in new issue