Blame view

parking-module-order/src/main/resources/mybatis/mapper/smapper/ArrearageCallConfigSmapper.xml 2.3 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
  <?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.order.mapper.smapper.ArrearageCallConfigSmapper">
    <resultMap id="BaseResultMap" type="com.zteits.order.domain.ArrearageCallConfig">
      <id column="id" jdbcType="BIGINT" property="id" />
      <result column="arrearage_call_name" jdbcType="VARCHAR" property="arrearageCallName" />
      <result column="call_min_value" jdbcType="BIGINT" property="callMinValue" />
      <result column="call_max_value" jdbcType="BIGINT" property="callMaxValue" />
      <result column="begin_time" jdbcType="TIMESTAMP" property="beginTime" />
      <result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
      <result column="pl_no" jdbcType="VARCHAR" property="plNo" />
      <result column="pl_name" jdbcType="VARCHAR" property="plName" />
      <result column="org_id" jdbcType="BIGINT" property="orgId" />
      <result column="org_name" jdbcType="VARCHAR" property="orgName" />
      <result column="remark" jdbcType="VARCHAR" property="remark" />
      <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_date" jdbcType="TIMESTAMP" property="createDate" />
      <result column="modfiy_emp_id" jdbcType="VARCHAR" property="modfiyEmpId" />
      <result column="modfiy_emp_name" jdbcType="VARCHAR" property="modfiyEmpName" />
      <result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
    </resultMap>
  
    <sql id="Base_Column_List">
      id, arrearage_call_name, call_min_value, call_max_value, begin_time, end_time, pl_no, 
      pl_name, org_id, org_name, remark, data_state, create_emp_id, create_emp_name, create_date, 
      modfiy_emp_id, modfiy_emp_name, modfiy_date
    </sql>
  
    <!--查询停车场欠费规则-->
     <select id="queryArrearageCallByPlNo" resultMap="BaseResultMap">
       SELECT
         <include refid="Base_Column_List"></include>
       FROM
       arrearage_call_config
       where 1=1
       and data_state=1
       <![CDATA[and begin_time <= #{currentTime}
       and end_time >=#{currentTime}]]>
       and pl_no =#{plNo}
       limit 1
     </select>
  
  
  </mapper>