You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
udi-wms-java/src/main/resources/mybatis/mapper/system/SysTableHeadMapper.xml

55 lines
2.6 KiB
XML

<?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.glxp.api.dao.system.SysTableHeadMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysTableHeadEntity">
<!--@mbg.generated-->
<!--@Table sys_table_head-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="pageName" jdbcType="VARCHAR" property="pageName"/>
<result column="pageCode" jdbcType="VARCHAR" property="pageCode"/>
<result column="response" jdbcType="VARCHAR" property="response"/>
<result column="label" jdbcType="VARCHAR" property="label"/>
<result column="prop" jdbcType="VARCHAR" property="prop"/>
<result column="width" jdbcType="DOUBLE" property="width"/>
<result column="isShow" jdbcType="VARCHAR" property="isShow"/>
<result column="isAuto" jdbcType="VARCHAR" property="isAuto"/>
<result column="overflow" jdbcType="TINYINT" property="overflow"/>
<result column="sort" jdbcType="INTEGER" property="sort"/>
<result column="customSort" jdbcType="TINYINT" property="customSort"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id,pageName, pageCode, response, `label`, prop, width, isShow, isAuto, overflow, sort, customSort,
remark, updateTime
</sql>
<select id="filterList" parameterType="com.glxp.api.req.system.SysTableHeadRequest"
resultType="com.glxp.api.entity.system.SysTableHeadEntity">
SELECT *
FROM sys_table_head
<where>
<if test="pageName != null and pageName != ''">
AND `pageName` like CONCAT('%', #{pageName}, '%')
</if>
<if test="pageCode != null and pageCode != ''">
AND `pageCode` like CONCAT('%', #{pageCode}, '%')
</if>
<if test="label != null and label != ''">
AND `label` like CONCAT('%', #{label}, '%')
</if>
<if test="prop != null and prop != ''">
AND `prop` like CONCAT('%', #{prop}, '%')
</if>
<if test="isShow != null and isShow != ''">
AND `isShow` = #{isShow}
</if>
<if test="overflow != null and overflow != ''">
AND `overflow` = #{overflow}
</if>
</where>
</select>
</mapper>