TdCThirdPushConfigSMapper.xml 2.02 KB
<?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>