<?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.gk.hotwork.Mapper.BlackListInfoMapper" >
|
<resultMap id="BaseResultMap" type="com.gk.hotwork.Domain.BlackListInfo" >
|
<!-- -->
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="company" property="company" jdbcType="VARCHAR" />
|
<result column="contactname" property="contactname" jdbcType="VARCHAR" />
|
<result column="createdby" property="createdby" jdbcType="VARCHAR" />
|
<result column="createdat" property="createdat" jdbcType="TIMESTAMP" />
|
<result column="modifiedby" property="modifiedby" jdbcType="VARCHAR" />
|
<result column="modifiedat" property="modifiedat" jdbcType="TIMESTAMP" />
|
<result column="flag" property="flag" jdbcType="TINYINT" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
<!-- -->
|
id, company, contactname, createdby, createdat, modifiedby, modifiedat, flag
|
</sql>
|
<select id="selectDataGrid" resultType="com.gk.hotwork.Domain.BlackListInfo">
|
select
|
<include refid="Base_Column_List"/>
|
from blacklist
|
<where>
|
1=1
|
<if test="condition.company != null and condition.company != ''">
|
and `company` like concat('%',#{condition.company},'%')
|
</if>
|
</where>
|
</select>
|
|
</mapper>
|