Helius
2021-07-23 71bf751d248aff415c95b2bc09dc1bb0219c9428
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
<?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.system.mapper.CityPartnerMapper">
  <resultMap id="BaseResultMap" type="com.xzx.gc.entity.CityPartner">
    <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="queryTownIdsByPartnerId" resultType="java.lang.String">
      select town_id
      from xzx_partner_gaode
      where del_flag = 0 and partner_id = #{partnerId}
    </select>
 
  <select id="queryFenceIdByPartnerId" resultType="java.lang.String">
    select a.fence_id from xzx_partner_fence a
    where a.del_flag=0 and a.partner_id=#{partnerId}
 
  </select>
</mapper>