Blame view

parking-module-charge/src/main/resources/mybatis/smapper/OperatorInfoSMapper.xml 2.96 KB
55f68655   王彪总   新项目
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
  <?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.zteits.charge.mapper.smapper.OperatorInfoSMapper">
    <resultMap id="BaseResultMap" type="com.zteits.charge.domain.OperatorInfo">
      <id column="id" jdbcType="BIGINT" property="id" />
      <result column="operator_id" jdbcType="VARCHAR" property="operatorId" />
      <result column="operator_name" jdbcType="VARCHAR" property="operatorName" />
      <result column="operator_tell" jdbcType="VARCHAR" property="operatorTell" />
      <result column="operator_tel2" jdbcType="VARCHAR" property="operatorTel2" />
      <result column="operator_reg_address" jdbcType="VARCHAR" property="operatorRegAddress" />
      <result column="operator_note" jdbcType="VARCHAR" property="operatorNote" />
      <result column="operator_url" jdbcType="VARCHAR" property="operatorUrl" />
      <result column="operator_secret" jdbcType="VARCHAR" property="operatorSecret" />
      <result column="operator_data_secret" jdbcType="VARCHAR" property="operatorDataSecret" />
      <result column="operator_data_secret_iv" jdbcType="VARCHAR" property="operatorDataSecretIv" />
      <result column="operator_sign_secret" jdbcType="VARCHAR" property="operatorSignSecret" />
      <result column="operator_retry_count" jdbcType="INTEGER" property="operatorRetryCount" />
      <result column="data_state" jdbcType="INTEGER" property="dataState" />
      <result column="create_emp_id" jdbcType="VARCHAR" property="createEmpId" />
      <result column="create_emp_name" jdbcType="VARCHAR" property="createEmpName" />
      <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
      <result column="modify_emp_id" jdbcType="VARCHAR" property="modifyEmpId" />
      <result column="modify_emp_name" jdbcType="VARCHAR" property="modifyEmpName" />
      <result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
      <result column="org_id" jdbcType="BIGINT" property="orgId" />
    </resultMap>
  
    <sql id="Base_Column_List">
      id, operator_id, operator_name, operator_tell, operator_tel2, operator_reg_address, 
      operator_note, operator_url, operator_secret, operator_data_secret, operator_data_secret_iv, 
      operator_sign_secret, operator_retry_count, data_state, create_emp_id, create_emp_name, 
      create_time, modify_emp_id, modify_emp_name, modify_time, org_id
    </sql>
    <select id="queryOperatorInfoList" parameterType="com.zteits.clouds.api.dto.charge.param.QueryOperatorInfoRequest" resultMap="BaseResultMap">
      select
      <include refid="Base_Column_List" />
      from operator_info
      where data_state = 1
      <if test="operatorId != null and operatorId != ''">
        and operator_id = #{operatorId,jdbcType=VARCHAR}
      </if>
      <if test="operatorName != null and operatorName != ''">
        and operator_name like  concat ('%',#{operatorName},'%')
      </if>
      <if test="orgId != null">
        and org_id = #{orgId,jdbcType=BIGINT}
      </if>
    </select>
  
  </mapper>