parent
8a99fb4cfe
commit
63780c7f9e
@ -1,153 +0,0 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 涉密文件销毁对象 td_file_destory
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-15
|
||||
*/
|
||||
public class TdFileDestory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long destoryId;
|
||||
|
||||
/** 接收id */
|
||||
@Excel(name = "接收id")
|
||||
private Long receiveId;
|
||||
|
||||
/** 文件名 */
|
||||
@Excel(name = "文件名")
|
||||
private String destoryFilename;
|
||||
|
||||
/** 销毁地点 */
|
||||
@Excel(name = "销毁地点")
|
||||
private String destoryAddress;
|
||||
|
||||
/** 销毁数量 */
|
||||
@Excel(name = "销毁数量")
|
||||
private Long destoryCount;
|
||||
|
||||
/** 销毁单位 */
|
||||
@Excel(name = "销毁单位")
|
||||
private String destoryDepart;
|
||||
|
||||
/** 销毁人员 */
|
||||
@Excel(name = "销毁人员")
|
||||
private String destoryUsername;
|
||||
|
||||
/** 销毁方式 */
|
||||
@Excel(name = "销毁方式")
|
||||
private String destoryStyle;
|
||||
|
||||
/** 销毁日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "销毁日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date destoryDate;
|
||||
|
||||
public void setDestoryId(Long destoryId)
|
||||
{
|
||||
this.destoryId = destoryId;
|
||||
}
|
||||
|
||||
public Long getDestoryId()
|
||||
{
|
||||
return destoryId;
|
||||
}
|
||||
public void setReceiveId(Long receiveId)
|
||||
{
|
||||
this.receiveId = receiveId;
|
||||
}
|
||||
|
||||
public Long getReceiveId()
|
||||
{
|
||||
return receiveId;
|
||||
}
|
||||
public void setDestoryFilename(String destoryFilename)
|
||||
{
|
||||
this.destoryFilename = destoryFilename;
|
||||
}
|
||||
|
||||
public String getDestoryFilename()
|
||||
{
|
||||
return destoryFilename;
|
||||
}
|
||||
public void setDestoryAddress(String destoryAddress)
|
||||
{
|
||||
this.destoryAddress = destoryAddress;
|
||||
}
|
||||
|
||||
public String getDestoryAddress()
|
||||
{
|
||||
return destoryAddress;
|
||||
}
|
||||
public void setDestoryCount(Long destoryCount)
|
||||
{
|
||||
this.destoryCount = destoryCount;
|
||||
}
|
||||
|
||||
public Long getDestoryCount()
|
||||
{
|
||||
return destoryCount;
|
||||
}
|
||||
public void setDestoryDepart(String destoryDepart)
|
||||
{
|
||||
this.destoryDepart = destoryDepart;
|
||||
}
|
||||
|
||||
public String getDestoryDepart()
|
||||
{
|
||||
return destoryDepart;
|
||||
}
|
||||
public void setDestoryUsername(String destoryUsername)
|
||||
{
|
||||
this.destoryUsername = destoryUsername;
|
||||
}
|
||||
|
||||
public String getDestoryUsername()
|
||||
{
|
||||
return destoryUsername;
|
||||
}
|
||||
public void setDestoryStyle(String destoryStyle)
|
||||
{
|
||||
this.destoryStyle = destoryStyle;
|
||||
}
|
||||
|
||||
public String getDestoryStyle()
|
||||
{
|
||||
return destoryStyle;
|
||||
}
|
||||
public void setDestoryDate(Date destoryDate)
|
||||
{
|
||||
this.destoryDate = destoryDate;
|
||||
}
|
||||
|
||||
public Date getDestoryDate()
|
||||
{
|
||||
return destoryDate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("destoryId", getDestoryId())
|
||||
.append("receiveId", getReceiveId())
|
||||
.append("destoryFilename", getDestoryFilename())
|
||||
.append("destoryAddress", getDestoryAddress())
|
||||
.append("destoryCount", getDestoryCount())
|
||||
.append("destoryDepart", getDestoryDepart())
|
||||
.append("destoryUsername", getDestoryUsername())
|
||||
.append("destoryStyle", getDestoryStyle())
|
||||
.append("destoryDate", getDestoryDate())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.TdFileDestory;
|
||||
|
||||
/**
|
||||
* 涉密文件销毁Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-15
|
||||
*/
|
||||
public interface TdFileDestoryMapper
|
||||
{
|
||||
/**
|
||||
* 查询涉密文件销毁
|
||||
*
|
||||
* @param destoryId 涉密文件销毁主键
|
||||
* @return 涉密文件销毁
|
||||
*/
|
||||
public TdFileDestory selectTdFileDestoryByDestoryId(Long destoryId);
|
||||
|
||||
/**
|
||||
* 查询涉密文件销毁列表
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 涉密文件销毁集合
|
||||
*/
|
||||
public List<TdFileDestory> selectTdFileDestoryList(TdFileDestory tdFileDestory);
|
||||
|
||||
/**
|
||||
* 新增涉密文件销毁
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTdFileDestory(TdFileDestory tdFileDestory);
|
||||
|
||||
/**
|
||||
* 修改涉密文件销毁
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTdFileDestory(TdFileDestory tdFileDestory);
|
||||
|
||||
/**
|
||||
* 删除涉密文件销毁
|
||||
*
|
||||
* @param destoryId 涉密文件销毁主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTdFileDestoryByDestoryId(Long destoryId);
|
||||
|
||||
/**
|
||||
* 批量删除涉密文件销毁
|
||||
*
|
||||
* @param destoryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTdFileDestoryByDestoryIds(String[] destoryIds);
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.TdFileDestory;
|
||||
|
||||
/**
|
||||
* 涉密文件销毁Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-15
|
||||
*/
|
||||
public interface ITdFileDestoryService
|
||||
{
|
||||
/**
|
||||
* 查询涉密文件销毁
|
||||
*
|
||||
* @param destoryId 涉密文件销毁主键
|
||||
* @return 涉密文件销毁
|
||||
*/
|
||||
public TdFileDestory selectTdFileDestoryByDestoryId(Long destoryId);
|
||||
|
||||
/**
|
||||
* 查询涉密文件销毁列表
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 涉密文件销毁集合
|
||||
*/
|
||||
public List<TdFileDestory> selectTdFileDestoryList(TdFileDestory tdFileDestory);
|
||||
|
||||
/**
|
||||
* 新增涉密文件销毁
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTdFileDestory(TdFileDestory tdFileDestory);
|
||||
|
||||
/**
|
||||
* 修改涉密文件销毁
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTdFileDestory(TdFileDestory tdFileDestory);
|
||||
|
||||
/**
|
||||
* 批量删除涉密文件销毁
|
||||
*
|
||||
* @param destoryIds 需要删除的涉密文件销毁主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTdFileDestoryByDestoryIds(String destoryIds);
|
||||
|
||||
/**
|
||||
* 删除涉密文件销毁信息
|
||||
*
|
||||
* @param destoryId 涉密文件销毁主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTdFileDestoryByDestoryId(Long destoryId);
|
||||
}
|
@ -1,94 +0,0 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.system.mapper.TdFileDestoryMapper;
|
||||
import com.ruoyi.system.domain.TdFileDestory;
|
||||
import com.ruoyi.system.service.ITdFileDestoryService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 涉密文件销毁Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-15
|
||||
*/
|
||||
@Service
|
||||
public class TdFileDestoryServiceImpl implements ITdFileDestoryService
|
||||
{
|
||||
@Autowired
|
||||
private TdFileDestoryMapper tdFileDestoryMapper;
|
||||
|
||||
/**
|
||||
* 查询涉密文件销毁
|
||||
*
|
||||
* @param destoryId 涉密文件销毁主键
|
||||
* @return 涉密文件销毁
|
||||
*/
|
||||
@Override
|
||||
public TdFileDestory selectTdFileDestoryByDestoryId(Long destoryId)
|
||||
{
|
||||
return tdFileDestoryMapper.selectTdFileDestoryByDestoryId(destoryId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询涉密文件销毁列表
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 涉密文件销毁
|
||||
*/
|
||||
@Override
|
||||
public List<TdFileDestory> selectTdFileDestoryList(TdFileDestory tdFileDestory)
|
||||
{
|
||||
return tdFileDestoryMapper.selectTdFileDestoryList(tdFileDestory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增涉密文件销毁
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTdFileDestory(TdFileDestory tdFileDestory)
|
||||
{
|
||||
return tdFileDestoryMapper.insertTdFileDestory(tdFileDestory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改涉密文件销毁
|
||||
*
|
||||
* @param tdFileDestory 涉密文件销毁
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTdFileDestory(TdFileDestory tdFileDestory)
|
||||
{
|
||||
return tdFileDestoryMapper.updateTdFileDestory(tdFileDestory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除涉密文件销毁
|
||||
*
|
||||
* @param destoryIds 需要删除的涉密文件销毁主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTdFileDestoryByDestoryIds(String destoryIds)
|
||||
{
|
||||
return tdFileDestoryMapper.deleteTdFileDestoryByDestoryIds(Convert.toStrArray(destoryIds));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除涉密文件销毁信息
|
||||
*
|
||||
* @param destoryId 涉密文件销毁主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTdFileDestoryByDestoryId(Long destoryId)
|
||||
{
|
||||
return tdFileDestoryMapper.deleteTdFileDestoryByDestoryId(destoryId);
|
||||
}
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
<?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.system.mapper.TdFileDestoryMapper">
|
||||
|
||||
<resultMap type="TdFileDestory" id="TdFileDestoryResult">
|
||||
<result property="destoryId" column="destory_id" />
|
||||
<result property="receiveId" column="receive_id" />
|
||||
<result property="destoryFilename" column="destory_filename" />
|
||||
<result property="destoryAddress" column="destory_address" />
|
||||
<result property="destoryCount" column="destory_count" />
|
||||
<result property="destoryDepart" column="destory_depart" />
|
||||
<result property="destoryUsername" column="destory_username" />
|
||||
<result property="destoryStyle" column="destory_style" />
|
||||
<result property="destoryDate" column="destory_date" />
|
||||
<result property="remark" column="remark" />
|
||||
<!-- <collection property="TdFileReceive" ofType="com.ruoyi.system.domain.TdFileReceive" resultMap="TdFileReceiveResult" />-->
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTdFileDestoryVo">
|
||||
select destory_id, receive_id, destory_filename, destory_address, destory_count, destory_depart, destory_username, destory_style, destory_date, remark from td_file_destory
|
||||
</sql>
|
||||
|
||||
<select id="selectTdFileDestoryList" parameterType="TdFileDestory" resultMap="TdFileDestoryResult">
|
||||
<include refid="selectTdFileDestoryVo"/>
|
||||
<where>
|
||||
<if test="receiveId != null and receiveId != ''"> and receive_id = #{receiveId}</if>
|
||||
<if test="destoryFilename != null and destoryFilename != ''"> and destory_filename like concat('%', #{destoryFilename}, '%')</if>
|
||||
<if test="destoryAddress != null and destoryAddress != ''"> and destory_address = #{destoryAddress}</if>
|
||||
<if test="destoryCount != null "> and destory_count = #{destoryCount}</if>
|
||||
<if test="destoryDepart != null and destoryDepart != ''"> and destory_depart = #{destoryDepart}</if>
|
||||
<if test="destoryUsername != null and destoryUsername != ''"> and destory_username like concat('%', #{destoryUsername}, '%')</if>
|
||||
<if test="destoryStyle != null and destoryStyle != ''"> and destory_style = #{destoryStyle}</if>
|
||||
<if test="destoryDate != null "> and destory_date = #{destoryDate}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTdFileDestoryByDestoryId" parameterType="Long" resultMap="TdFileDestoryResult">
|
||||
<include refid="selectTdFileDestoryVo"/>
|
||||
where destory_id = #{destoryId}
|
||||
</select>
|
||||
|
||||
<insert id="insertTdFileDestory" parameterType="TdFileDestory" useGeneratedKeys="true" keyProperty="destoryId">
|
||||
insert into td_file_destory
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="receiveId != null">receive_id,</if>
|
||||
<if test="destoryFilename != null">destory_filename,</if>
|
||||
<if test="destoryAddress != null">destory_address,</if>
|
||||
<if test="destoryCount != null">destory_count,</if>
|
||||
<if test="destoryDepart != null">destory_depart,</if>
|
||||
<if test="destoryUsername != null">destory_username,</if>
|
||||
<if test="destoryStyle != null">destory_style,</if>
|
||||
<if test="destoryDate != null">destory_date,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="receiveId != null">#{receiveId},</if>
|
||||
<if test="destoryFilename != null">#{destoryFilename},</if>
|
||||
<if test="destoryAddress != null">#{destoryAddress},</if>
|
||||
<if test="destoryCount != null">#{destoryCount},</if>
|
||||
<if test="destoryDepart != null">#{destoryDepart},</if>
|
||||
<if test="destoryUsername != null">#{destoryUsername},</if>
|
||||
<if test="destoryStyle != null">#{destoryStyle},</if>
|
||||
<if test="destoryDate != null">#{destoryDate},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTdFileDestory" parameterType="TdFileDestory">
|
||||
update td_file_destory
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="receiveId != null">receive_id = #{receiveId},</if>
|
||||
<if test="destoryFilename != null">destory_filename = #{destoryFilename},</if>
|
||||
<if test="destoryAddress != null">destory_address = #{destoryAddress},</if>
|
||||
<if test="destoryCount != null">destory_count = #{destoryCount},</if>
|
||||
<if test="destoryDepart != null">destory_depart = #{destoryDepart},</if>
|
||||
<if test="destoryUsername != null">destory_username = #{destoryUsername},</if>
|
||||
<if test="destoryStyle != null">destory_style = #{destoryStyle},</if>
|
||||
<if test="destoryDate != null">destory_date = #{destoryDate},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where destory_id = #{destoryId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTdFileDestoryByDestoryId" parameterType="Long">
|
||||
delete from td_file_destory where destory_id = #{destoryId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTdFileDestoryByDestoryIds" parameterType="String">
|
||||
delete from td_file_destory where destory_id in
|
||||
<foreach item="destoryId" collection="array" open="(" separator="," close=")">
|
||||
#{destoryId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Loading…
Reference in new issue