TdCThirdPushConfigSMapper.xml
2.02 KB
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
<?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.pay.mapper.smapper.TdCThirdPushConfigSMapper">
<resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdCThirdPushConfig">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="version" jdbcType="VARCHAR" property="version" />
<result column="pub_key" jdbcType="VARCHAR" property="pubKey" />
<result column="secret_key" jdbcType="VARCHAR" property="secretKey" />
<result column="push_ip_url" jdbcType="VARCHAR" property="pushIpUrl" />
<result column="merchant_code" jdbcType="VARCHAR" property="merchantCode" />
<result column="park_id" jdbcType="INTEGER" property="parkId" />
<result column="pl_no" jdbcType="INTEGER" property="plNo" />
<result column="data_state" jdbcType="INTEGER" property="dataState" />
<result column="create_empid" jdbcType="VARCHAR" property="createEmpid" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" />
<result column="modify_date" jdbcType="TIMESTAMP" property="modifyDate" />
<result column="org_id" jdbcType="BIGINT" property="orgId" />
<result column="lease_occupied_slot_count" jdbcType="INTEGER" property="leaseOccupiedSlotCount" />
<result column="pl_in_count" jdbcType="INTEGER" property="plInCount" />
<result column="pl_out_count" jdbcType="INTEGER" property="plOutCount" />
</resultMap>
<!-- 查询已配置的车场数据 -->
<select id="selecthirdPushConfigByPlNo" parameterType="java.lang.String"
resultMap="BaseResultMap">
SELECT
*
FROM
td_c_third_push_config r
WHERE
r.data_state = 1
<if test="plNo != null and plNo !=''" >
AND r.pl_no = #{plNo}
</if>
</select>
</mapper>