16639036659
2023-09-19 c07615f4a30c29621979b9a0f6022ada684af6cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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>