Administrator
2023-06-19 49588f5a462ae7425e7eb030438a35fd80c246fa
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?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.firework.Mapper.RegisterInfoMapper" >
  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.RegisterInfo" >
    <!--          -->
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="enterprisename" property="enterprisename" jdbcType="VARCHAR" />
    <result column="enterprisenumber" property="enterprisenumber" jdbcType="VARCHAR" />
    <result column="password" property="password" jdbcType="VARCHAR" />
    <result column="type" property="type" jdbcType="VARCHAR" />
    <result column="businessrange" property="businessrange" jdbcType="VARCHAR" />
    <result column="licensestart" property="licensestart" jdbcType="DATE" />
    <result column="licenseend" property="licenseend" jdbcType="DATE" />
    <result column="legalperson" property="legalperson" jdbcType="VARCHAR" />
    <result column="legalpersonphone" property="legalpersonphone" jdbcType="VARCHAR" />
    <result column="createdby" property="createdby" jdbcType="VARCHAR" />
    <result column="createdat" property="createdat" jdbcType="TIMESTAMP" />
    <result column="flag" property="flag" jdbcType="TINYINT" />
    <result column="isdel" property="isdel" jdbcType="TINYINT" />
    <result column="remark" property="remark" jdbcType="VARCHAR" />
    <result column="issms" property="issms" jdbcType="TINYINT" />
    <result column="smstimes" property="smstimes" jdbcType="INTEGER" />
    <result column="smsat" property="smsat" jdbcType="TIMESTAMP" />
    <result column="reviewer" property="reviewer" jdbcType="VARCHAR" />
    <result column="reviewresult" property="reviewresult" jdbcType="TINYINT" />
    <result column="reviewat" property="reviewat" jdbcType="TIMESTAMP" />
    <result column="reviewcontent" property="reviewcontent" jdbcType="VARCHAR" />
    <result column="isagreement" property="isagreement" jdbcType="TINYINT" />
    <result column="province" property="province" jdbcType="VARCHAR" />
    <result column="city" property="city" jdbcType="VARCHAR" />
    <result column="district" property="district" jdbcType="VARCHAR" />
    <result column="street" property="street" jdbcType="VARCHAR" />
    <result column="committee" property="committee" jdbcType="VARCHAR" />
    <result column="address" property="address" jdbcType="VARCHAR" />
    <result column="legalpersonstart" property="legalpersonstart" jdbcType="DATE" />
    <result column="legalpersonend" property="legalpersonend" jdbcType="DATE" />
    <result column="qualificationstart" property="qualificationstart" jdbcType="DATE" />
    <result column="qualificationend" property="qualificationend" jdbcType="DATE" />
    <result column="escortstart" property="escortstart" jdbcType="DATE" />
    <result column="escortend" property="escortend" jdbcType="DATE" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--          -->
    id, enterprisename, enterprisenumber, password, type, businessrange, licensestart, 
    licenseend, legalperson, legalpersonphone, createdby, createdat, flag, isdel, remark, 
    issms, smstimes, smsat, reviewer, reviewresult, reviewat, reviewcontent, isagreement,
    province, city, district, street, committee, address, legalpersonstart, legalpersonend,
    qualificationstart, qualificationend, escortstart, escortend
  </sql>
  <select id="selectDataGrid" resultType="com.gk.firework.Domain.Vo.RegisterVo">
    SELECT
    <include refid="Base_Column_List"/>
    FROM
    register
    <where>
      1=1
      and isdel = 0
      <if test="condition.name != null and condition.name != ''">
        and enterprisename like concat('%',#{condition.name},'%')
      </if>
 
      <if test="condition.type != null and condition.type != ''">
        and `type` = #{condition.type}
      </if>
      <if test="condition.reviewResult != null and condition.reviewResult != ''">
        and reviewresult = #{condition.reviewResult}
      </if>
    </where>
  </select>
</mapper>