<?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.xzx.gc.pay.mapper.CityPartnerMapper">
|
<resultMap id="BaseResultMap" type="com.xzx.gc.entity.CityPartner">
|
<!--
|
WARNING - @mbg.generated
|
-->
|
<id column="id" jdbcType="INTEGER" property="id" />
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
<result column="account_no" jdbcType="VARCHAR" property="accountNo" />
|
<result column="password" jdbcType="VARCHAR" property="password" />
|
<result column="partner_name" jdbcType="VARCHAR" property="partnerName" />
|
<result column="mobile_phone" jdbcType="VARCHAR" property="mobilePhone" />
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
<result column="effective_statr_time" jdbcType="VARCHAR" property="effectiveStatrTime" />
|
<result column="effective_end_time" jdbcType="VARCHAR" property="effectiveEndTime" />
|
<result column="create_time" jdbcType="VARCHAR" property="createTime" />
|
<result column="org_id" jdbcType="INTEGER" property="orgId" />
|
<result column="state" jdbcType="VARCHAR" property="state" />
|
<result column="job_type1" jdbcType="VARCHAR" property="jobType1" />
|
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
|
<result column="update_time" jdbcType="VARCHAR" property="updateTime" />
|
<result column="job_type0" jdbcType="VARCHAR" property="jobType0" />
|
<result column="attachment_id" jdbcType="VARCHAR" property="attachmentId" />
|
<result column="attachment_id1" jdbcType="VARCHAR" property="attachmentId1" />
|
<result column="id_card" jdbcType="VARCHAR" property="idCard" />
|
<result column="open_account_name" jdbcType="VARCHAR" property="openAccountName" />
|
<result column="open_account_bank" jdbcType="VARCHAR" property="openAccountBank" />
|
<result column="bank_account" jdbcType="VARCHAR" property="bankAccount" />
|
<result column="prohibit" jdbcType="BIT" property="prohibit" />
|
<result column="packing_station" jdbcType="VARCHAR" property="packingStation" />
|
<result column="partner_type" jdbcType="VARCHAR" property="partnerType" />
|
<result column="partner_key" jdbcType="VARCHAR" property="partnerKey" />
|
</resultMap>
|
|
|
<select id="queryPackageIdByPartnerId" resultType="java.lang.String">
|
select id from xzx_city_partner where packing_station=#{partnerId}
|
</select>
|
|
<select id="queryEntityByUserIds" resultType="com.xzx.gc.entity.CityPartner">
|
select *
|
from xzx_city_partner
|
where user_id like concat("%", #{userId}, "%") and del_flag = 0
|
</select>
|
</mapper>
|