You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
2.3 KiB
47 lines
2.3 KiB
<?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.secreting.TdSecretingMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.ruoyi.system.domain.secreting.TdSecreting">
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
|
<result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
|
|
<result property="fileName" column="file_name" jdbcType="VARCHAR"/>
|
|
<result property="basis" column="basis" jdbcType="VARCHAR"/>
|
|
<result property="responsible" column="responsible" jdbcType="VARCHAR"/>
|
|
<result property="scope" column="scope" jdbcType="VARCHAR"/>
|
|
<result property="secretDegree" column="secret_degree" jdbcType="VARCHAR"/>
|
|
<result property="term" column="term" jdbcType="VARCHAR"/>
|
|
<result property="keyPoint" column="key_point" jdbcType="VARCHAR"/>
|
|
<result property="deptId" column="dept_id" jdbcType="BIGINT"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
id,create_by,create_time,
|
|
update_by,update_time,remark,
|
|
file_url,file_name,basis,
|
|
responsible,scope,secret_degree,
|
|
term,key_point
|
|
</sql>
|
|
|
|
<select id="selectSecretList" resultType="com.ruoyi.system.domain.secreting.TdSecreting">
|
|
select <include refid="Base_Column_List"/> from td_secreting d
|
|
<trim prefix="where" prefixOverrides="and|or">
|
|
<if test="secretDegree!=null and secretDegree!=''">
|
|
AND secret_degree = #{secretDegree}
|
|
</if>
|
|
<if test="responsible!=null and responsible!=''">
|
|
AND responsible = #{responsible}
|
|
</if>
|
|
<!-- 数据范围过滤 -->
|
|
${params.dataScope}
|
|
</trim>
|
|
</select>
|
|
</mapper>
|