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.
ry_zhky/ruoyi-system/src/main/resources/mapper/system/TdPlaceMapper.xml

48 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.place.TdPlaceMapper">
<resultMap id="BaseResultMap" type="com.ruoyi.system.domain.place.TdPlace">
<id property="id" column="id" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="placeRule" column="place_rule" 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="afterTime" column="after_time" jdbcType="TIMESTAMP"/>
<result property="afterName" column="after_name" jdbcType="VARCHAR"/>
<result property="afterRule" column="after_rule" jdbcType="VARCHAR"/>
<result property="state" column="state" jdbcType="VARCHAR"/>
<result property="isDissolve" column="is_dissolve" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,place_name,place_rule,
create_by,create_time,update_by,
update_time,remark
</sql>
<select id="selectTdPlaceList" resultType="com.ruoyi.system.domain.place.TdPlace">
select <include refid="Base_Column_List"/> from td_place
<trim prefix="where" prefixOverrides="and|or">
<if test="placeName!=null and placeName!=''">
AND place_name LIKE concat('%',#{placeName},'%')
</if>
AND state !='0'
</trim>
ORDER BY create_time DESC
</select>
<select id="selectTdPlaceChangeList" resultType="com.ruoyi.system.domain.place.TdPlace">
select <include refid="Base_Column_List"/> from td_place
<trim prefix="where" prefixOverrides="and|or">
<if test="placeName!=null and placeName!=''">
AND place_name LIKE concat('%',#{placeName},'%')
</if>
</trim>
ORDER BY create_time DESC
</select>
</mapper>