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.
53 lines
2.8 KiB
53 lines
2.8 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.place.TdPlaceRegistMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.ruoyi.system.domain.place.TdPlaceRegist">
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
<result property="placeId" column="place_id" jdbcType="VARCHAR"/>
|
|
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
|
|
<result property="registName" column="regist_name" jdbcType="VARCHAR"/>
|
|
<result property="registTime" column="regist_time" jdbcType="TIMESTAMP"/>
|
|
<result property="subjectMatter" column="subject_matter" jdbcType="VARCHAR"/>
|
|
<result property="accessTime" column="access_time" jdbcType="TIMESTAMP"/>
|
|
<result property="leaveTime" column="leave_time" jdbcType="TIMESTAMP"/>
|
|
<result property="entourageName" column="entourage_name" jdbcType="VARCHAR"/>
|
|
<result property="deptId" column="dept_id" jdbcType="BIGINT"/>
|
|
<result property="deptName" column="dept_name" 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"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
id,place_id,place_name,
|
|
regist_name,regist_time,subject_matter,
|
|
access_time,leave_time,entourage_name,
|
|
dept_id,create_by,create_time,
|
|
update_by,update_time,remark,dept_name
|
|
</sql>
|
|
<select id="selectTdPlaceRegistList" resultType="com.ruoyi.system.domain.place.TdPlaceRegist">
|
|
select <include refid="Base_Column_List"/> from td_place_regist
|
|
<trim prefix="where" prefixOverrides="and|or">
|
|
<if test="placeName!=null and placeName!=''">
|
|
AND place_name LIKE concat('%',#{placeName},'%')
|
|
</if>
|
|
<if test="registName!=null and registName!=''">
|
|
AND regist_name LIKE concat('%',#{registName},'%')
|
|
</if>
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
AND regist_time >= #{params.beginTime}
|
|
</if>
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
AND regist_time <= #{params.endTime}
|
|
</if>
|
|
</trim>
|
|
ORDER BY create_time DESC
|
|
|
|
</select>
|
|
</mapper>
|