|
@@ -1,41 +1,10 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?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">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.caimei.modules.bulkpurchase.dao.CmClubDao">
|
|
<mapper namespace="com.caimei.modules.bulkpurchase.dao.CmClubDao">
|
|
- <!-- <resultMap id="resultClub" type="CmClub">
|
|
|
|
- <id column="clubID" property="id"></id>
|
|
|
|
- <result property="userID" column="userID"></result>
|
|
|
|
- <result column="clubTypeID" property="clubTypeID"></result>
|
|
|
|
- <result column="name" property="name"></result>
|
|
|
|
- <result column="nameEn" property="nameEn"></result>
|
|
|
|
- <result column="site" property="site"></result>
|
|
|
|
- <result column="logo" property="logo"></result>
|
|
|
|
- <result column="level" property="level"></result>
|
|
|
|
- <result column="score" property="score"></result>
|
|
|
|
- <result column="subClubCount" property="subClubCount"></result>
|
|
|
|
- <result column="legalPerson" property="legalPerson"></result>
|
|
|
|
- <result column="registeredCapital" property="registeredCapital"></result>
|
|
|
|
- <result column="mainClubID" property="mainClubID"></result>
|
|
|
|
- <result column="turnover" property="turnover"></result>
|
|
|
|
- <result column="linkMan" property="linkMan"></result>
|
|
|
|
- <result column="contractPhone" property="contractPhone"></result>
|
|
|
|
- <result column="contractMobile" property="contractMobile"></result>
|
|
|
|
- <association javaType="caimei.modules.address.entity.Address" ></association>
|
|
|
|
- <result column="addressID" property="defaultAddress.addressID"></result>
|
|
|
|
- <result column="shouHuoRen" property="defaultAddress.shouHuoRen"></result>
|
|
|
|
- <result column="townID" property="defaultAddress.townID"></result>
|
|
|
|
- <result column="address" property="defaultAddress.address"></result>
|
|
|
|
- <result column="postalCode" property="defaultAddress.postalCode"></result>
|
|
|
|
- <result column="phone" property="defaultAddress.phone"></result>
|
|
|
|
- <result column="mobile" property="defaultAddress.mobile"></result>
|
|
|
|
- <result column="defaultFlag" property="defaultAddress.defaultFlag"></result>
|
|
|
|
-
|
|
|
|
- </resultMap>-->
|
|
|
|
-
|
|
|
|
<resultMap id="resultClub" type="CmClub">
|
|
<resultMap id="resultClub" type="CmClub">
|
|
<result column="clubID" property="id"/>
|
|
<result column="clubID" property="id"/>
|
|
<result column="name" property="name"/>
|
|
<result column="name" property="name"/>
|
|
<result column="address" property="address"/>
|
|
<result column="address" property="address"/>
|
|
- <result column="zipCode" property="zipCode"/>
|
|
|
|
<result column="contractPhone" property="contractPhone"/>
|
|
<result column="contractPhone" property="contractPhone"/>
|
|
<result column="contractMobile" property="contractMobile"/>
|
|
<result column="contractMobile" property="contractMobile"/>
|
|
<result column="linkMan" property="linkMan"/>
|
|
<result column="linkMan" property="linkMan"/>
|
|
@@ -43,74 +12,34 @@
|
|
<sql id="cmClubColumns">
|
|
<sql id="cmClubColumns">
|
|
a.clubID AS "id",
|
|
a.clubID AS "id",
|
|
a.userID AS "userID",
|
|
a.userID AS "userID",
|
|
- a.clubTypeID AS "clubTypeID",
|
|
|
|
a.name AS "name",
|
|
a.name AS "name",
|
|
- a.nameEn AS "nameEn",
|
|
|
|
- a.site AS "site",
|
|
|
|
a.logo AS "logo",
|
|
a.logo AS "logo",
|
|
a.townID as townID,
|
|
a.townID as townID,
|
|
a.address as address,
|
|
a.address as address,
|
|
- a.level AS "level",
|
|
|
|
- a.score AS "score",
|
|
|
|
- a.subClubCount AS "subClubCount",
|
|
|
|
a.legalPerson AS "legalPerson",
|
|
a.legalPerson AS "legalPerson",
|
|
- a.registeredCapital AS "registeredCapital",
|
|
|
|
- a.mainClubID AS "mainClubID",
|
|
|
|
- a.turnover AS "turnover",
|
|
|
|
a.linkMan AS "linkMan",
|
|
a.linkMan AS "linkMan",
|
|
a.contractPhone AS "contractPhone",
|
|
a.contractPhone AS "contractPhone",
|
|
a.contractMobile AS "contractMobile",
|
|
a.contractMobile AS "contractMobile",
|
|
a.fax AS "fax",
|
|
a.fax AS "fax",
|
|
- a.zipCode AS "zipCode",
|
|
|
|
- a.linkMan1 AS "linkMan1",
|
|
|
|
- a.duty1 AS "duty1",
|
|
|
|
- a.contractPhone1 AS "contractPhone1",
|
|
|
|
- a.contractMobile1 AS "contractMobile1",
|
|
|
|
- a.contractQQ1 AS "contractQQ1",
|
|
|
|
- a.wechat1 AS "wechat1",
|
|
|
|
- a.contractEmail1 AS "contractEmail1",
|
|
|
|
- a.linkMan2 AS "linkMan2",
|
|
|
|
- a.duty2 AS "duty2",
|
|
|
|
- a.contractPhone2 AS "contractPhone2",
|
|
|
|
- a.contractMobile2 AS "contractMobile2",
|
|
|
|
- a.contractQQ2 AS "contractQQ2",
|
|
|
|
- a.wechat2 AS "wechat2",
|
|
|
|
- a.contractEmail2 AS "contractEmail2",
|
|
|
|
- a.scope AS "scope",
|
|
|
|
a.info AS "info",
|
|
a.info AS "info",
|
|
- a.lng AS "lng",
|
|
|
|
- a.lat AS "lat",
|
|
|
|
a.addTime AS "addTime",
|
|
a.addTime AS "addTime",
|
|
- a.favoriteTimes AS "favoriteTimes",
|
|
|
|
- a.payFlag1 AS "payFlag1",
|
|
|
|
a.auditTime AS "auditTime",
|
|
a.auditTime AS "auditTime",
|
|
a.auditNote AS "auditNote",
|
|
a.auditNote AS "auditNote",
|
|
a.status AS "status",
|
|
a.status AS "status",
|
|
- a.clubInvitationStatus AS "clubInvitationStatus",
|
|
|
|
- a.recAddress AS "recAddress",
|
|
|
|
a.businessLicenseImage AS "businessLicenseImage",
|
|
a.businessLicenseImage AS "businessLicenseImage",
|
|
- a.sortIndex AS "sortIndex",
|
|
|
|
- a.recTownID AS "recTownID",
|
|
|
|
a.defaultServiceProviderID AS "defaultServiceProviderID",
|
|
a.defaultServiceProviderID AS "defaultServiceProviderID",
|
|
a.defaultServiceProviderUpdTime AS "defaultServiceProviderUpdTime",
|
|
a.defaultServiceProviderUpdTime AS "defaultServiceProviderUpdTime",
|
|
- a.firstServiceProviderFlag AS "firstServiceProviderFlag",
|
|
|
|
-
|
|
|
|
a.sname AS "sname",
|
|
a.sname AS "sname",
|
|
a.flag AS "flag",
|
|
a.flag AS "flag",
|
|
a.scanFlag AS "scanFlag",
|
|
a.scanFlag AS "scanFlag",
|
|
a.mainServiceProviderID AS "mainServiceProviderID",
|
|
a.mainServiceProviderID AS "mainServiceProviderID",
|
|
a.spID AS "spID",
|
|
a.spID AS "spID",
|
|
- a.agreement AS "agreement",
|
|
|
|
- a.scale AS "scale",
|
|
|
|
- a.empnum AS "empnum",
|
|
|
|
a.mainpro AS "mainpro",
|
|
a.mainpro AS "mainpro",
|
|
- a.remark AS "remark",
|
|
|
|
a.provinceID AS "provinceID",
|
|
a.provinceID AS "provinceID",
|
|
a.cityID AS "cityID",
|
|
a.cityID AS "cityID",
|
|
a.inviterName AS "inviterName",
|
|
a.inviterName AS "inviterName",
|
|
a.inviterBindID AS "inviterBindID",
|
|
a.inviterBindID AS "inviterBindID",
|
|
a.scanTime AS "scanTime",
|
|
a.scanTime AS "scanTime",
|
|
- a.checkTime AS "checkTime",
|
|
|
|
a.headpic AS "headpic"
|
|
a.headpic AS "headpic"
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -179,143 +108,65 @@
|
|
<insert id="insert" parameterType="CmClub" keyProperty="id" useGeneratedKeys="true">
|
|
<insert id="insert" parameterType="CmClub" keyProperty="id" useGeneratedKeys="true">
|
|
INSERT INTO club(
|
|
INSERT INTO club(
|
|
userID,
|
|
userID,
|
|
- clubTypeID,
|
|
|
|
name,
|
|
name,
|
|
- nameEn,
|
|
|
|
- site,
|
|
|
|
logo,
|
|
logo,
|
|
- level,
|
|
|
|
- score,
|
|
|
|
- subClubCount,
|
|
|
|
legalPerson,
|
|
legalPerson,
|
|
townID,
|
|
townID,
|
|
address,
|
|
address,
|
|
- registeredCapital,
|
|
|
|
- mainClubID,
|
|
|
|
- turnover,
|
|
|
|
linkMan,
|
|
linkMan,
|
|
contractPhone,
|
|
contractPhone,
|
|
contractMobile,
|
|
contractMobile,
|
|
fax,
|
|
fax,
|
|
- zipCode,
|
|
|
|
- linkMan1,
|
|
|
|
- duty1,
|
|
|
|
- contractPhone1,
|
|
|
|
- contractMobile1,
|
|
|
|
- contractQQ1,
|
|
|
|
- wechat1,
|
|
|
|
- contractEmail1,
|
|
|
|
- linkMan2,
|
|
|
|
- duty2,
|
|
|
|
- contractPhone2,
|
|
|
|
- contractMobile2,
|
|
|
|
- contractQQ2,
|
|
|
|
- wechat2,
|
|
|
|
- contractEmail2,
|
|
|
|
- scope,
|
|
|
|
info,
|
|
info,
|
|
- lng,
|
|
|
|
- lat,
|
|
|
|
addTime,
|
|
addTime,
|
|
- favoriteTimes,
|
|
|
|
- payFlag1,
|
|
|
|
auditTime,
|
|
auditTime,
|
|
auditNote,
|
|
auditNote,
|
|
status,
|
|
status,
|
|
- clubInvitationStatus,
|
|
|
|
- recAddress,
|
|
|
|
businessLicenseImage,
|
|
businessLicenseImage,
|
|
- sortIndex,
|
|
|
|
- recTownID,
|
|
|
|
defaultServiceProviderID,
|
|
defaultServiceProviderID,
|
|
defaultServiceProviderUpdTime,
|
|
defaultServiceProviderUpdTime,
|
|
- firstServiceProviderFlag,
|
|
|
|
sname,
|
|
sname,
|
|
flag,
|
|
flag,
|
|
scanFlag,
|
|
scanFlag,
|
|
mainServiceProviderID,
|
|
mainServiceProviderID,
|
|
spID,
|
|
spID,
|
|
- agreement,
|
|
|
|
- scale,
|
|
|
|
- empnum,
|
|
|
|
mainpro,
|
|
mainpro,
|
|
- remark,
|
|
|
|
provinceID,
|
|
provinceID,
|
|
cityID,
|
|
cityID,
|
|
inviterName,
|
|
inviterName,
|
|
inviterBindID,
|
|
inviterBindID,
|
|
scanTime,
|
|
scanTime,
|
|
- checkTime,
|
|
|
|
headpic
|
|
headpic
|
|
) VALUES (
|
|
) VALUES (
|
|
#{userID},
|
|
#{userID},
|
|
- #{clubTypeID},
|
|
|
|
#{name},
|
|
#{name},
|
|
- #{nameEn},
|
|
|
|
- #{site},
|
|
|
|
#{logo},
|
|
#{logo},
|
|
- #{level},
|
|
|
|
- #{score},
|
|
|
|
- #{subClubCount},
|
|
|
|
#{legalPerson},
|
|
#{legalPerson},
|
|
#{townID},
|
|
#{townID},
|
|
#{address},
|
|
#{address},
|
|
- #{registeredCapital},
|
|
|
|
- #{mainClubID},
|
|
|
|
- #{turnover},
|
|
|
|
#{linkMan},
|
|
#{linkMan},
|
|
#{contractPhone},
|
|
#{contractPhone},
|
|
#{contractMobile},
|
|
#{contractMobile},
|
|
#{fax},
|
|
#{fax},
|
|
- #{zipCode},
|
|
|
|
- #{linkMan1},
|
|
|
|
- #{duty1},
|
|
|
|
- #{contractPhone1},
|
|
|
|
- #{contractMobile1},
|
|
|
|
- #{contractQQ1},
|
|
|
|
- #{wechat1},
|
|
|
|
- #{contractEmail1},
|
|
|
|
- #{linkMan2},
|
|
|
|
- #{duty2},
|
|
|
|
- #{contractPhone2},
|
|
|
|
- #{contractMobile2},
|
|
|
|
- #{contractQQ2},
|
|
|
|
- #{wechat2},
|
|
|
|
- #{contractEmail2},
|
|
|
|
- #{scope},
|
|
|
|
#{info},
|
|
#{info},
|
|
- #{lng},
|
|
|
|
- #{lat},
|
|
|
|
#{addTime},
|
|
#{addTime},
|
|
- #{favoriteTimes},
|
|
|
|
- #{payFlag1},
|
|
|
|
#{auditTime},
|
|
#{auditTime},
|
|
#{auditNote},
|
|
#{auditNote},
|
|
#{status},
|
|
#{status},
|
|
- #{clubInvitationStatus},
|
|
|
|
- #{recAddress},
|
|
|
|
#{businessLicenseImage},
|
|
#{businessLicenseImage},
|
|
- #{sortIndex},
|
|
|
|
- #{recTownID},
|
|
|
|
#{defaultServiceProviderID},
|
|
#{defaultServiceProviderID},
|
|
#{defaultServiceProviderUpdTime},
|
|
#{defaultServiceProviderUpdTime},
|
|
- #{firstServiceProviderFlag},
|
|
|
|
#{sname},
|
|
#{sname},
|
|
#{flag},
|
|
#{flag},
|
|
#{scanFlag},
|
|
#{scanFlag},
|
|
#{mainServiceProviderID},
|
|
#{mainServiceProviderID},
|
|
#{spID},
|
|
#{spID},
|
|
- #{agreement},
|
|
|
|
- #{scale},
|
|
|
|
- #{empnum},
|
|
|
|
#{mainpro},
|
|
#{mainpro},
|
|
- #{remark},
|
|
|
|
#{provinceID},
|
|
#{provinceID},
|
|
#{cityID},
|
|
#{cityID},
|
|
#{inviterName},
|
|
#{inviterName},
|
|
#{inviterBindID},
|
|
#{inviterBindID},
|
|
#{scanTime},
|
|
#{scanTime},
|
|
- #{checkTime},
|
|
|
|
#{headpic}
|
|
#{headpic}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
@@ -323,79 +174,39 @@
|
|
<update id="update">
|
|
<update id="update">
|
|
UPDATE club SET
|
|
UPDATE club SET
|
|
userID = #{userID},
|
|
userID = #{userID},
|
|
- clubTypeID = #{clubTypeID},
|
|
|
|
name = #{name},
|
|
name = #{name},
|
|
- nameEn = #{nameEn},
|
|
|
|
- site = #{site},
|
|
|
|
logo = #{logo},
|
|
logo = #{logo},
|
|
- level = #{level},
|
|
|
|
- score = #{score},
|
|
|
|
- subClubCount = #{subClubCount},
|
|
|
|
legalPerson = #{legalPerson},
|
|
legalPerson = #{legalPerson},
|
|
townID = #{townID},
|
|
townID = #{townID},
|
|
address = #{address},
|
|
address = #{address},
|
|
- registeredCapital = #{registeredCapital},
|
|
|
|
- mainClubID = #{mainClubID},
|
|
|
|
- turnover = #{turnover},
|
|
|
|
linkMan = #{linkMan},
|
|
linkMan = #{linkMan},
|
|
contractPhone = #{contractPhone},
|
|
contractPhone = #{contractPhone},
|
|
contractMobile = #{contractMobile},
|
|
contractMobile = #{contractMobile},
|
|
fax = #{fax},
|
|
fax = #{fax},
|
|
- zipCode = #{zipCode},
|
|
|
|
- linkMan1 = #{linkMan1},
|
|
|
|
- duty1 = #{duty1},
|
|
|
|
- contractPhone1 = #{contractPhone1},
|
|
|
|
- contractMobile1 = #{contractMobile1},
|
|
|
|
- contractQQ1 = #{contractQQ1},
|
|
|
|
- wechat1 = #{wechat1},
|
|
|
|
- contractEmail1 = #{contractEmail1},
|
|
|
|
- linkMan2 = #{linkMan2},
|
|
|
|
- duty2 = #{duty2},
|
|
|
|
- contractPhone2 = #{contractPhone2},
|
|
|
|
- contractMobile2 = #{contractMobile2},
|
|
|
|
- contractQQ2 = #{contractQQ2},
|
|
|
|
- wechat2 = #{wechat2},
|
|
|
|
- contractEmail2 = #{contractEmail2},
|
|
|
|
- scope = #{scope},
|
|
|
|
info = #{info},
|
|
info = #{info},
|
|
- lng = #{lng},
|
|
|
|
- lat = #{lat},
|
|
|
|
addTime = #{addTime},
|
|
addTime = #{addTime},
|
|
- favoriteTimes = #{favoriteTimes},
|
|
|
|
- payFlag1 = #{payFlag1},
|
|
|
|
auditTime = #{auditTime},
|
|
auditTime = #{auditTime},
|
|
auditNote = #{auditNote},
|
|
auditNote = #{auditNote},
|
|
status = #{status},
|
|
status = #{status},
|
|
- clubInvitationStatus = #{clubInvitationStatus},
|
|
|
|
- recAddress = #{recAddress},
|
|
|
|
<if test="businessLicenseImage != null and businessLicenseImage != 'null' and businessLicenseImage != ''">
|
|
<if test="businessLicenseImage != null and businessLicenseImage != 'null' and businessLicenseImage != ''">
|
|
businessLicenseImage = #{businessLicenseImage},
|
|
businessLicenseImage = #{businessLicenseImage},
|
|
</if>
|
|
</if>
|
|
<if test="headpic != null and headpic != 'null' and headpic != ''">
|
|
<if test="headpic != null and headpic != 'null' and headpic != ''">
|
|
headpic = #{headpic},
|
|
headpic = #{headpic},
|
|
</if>
|
|
</if>
|
|
- sortIndex = #{sortIndex},
|
|
|
|
- recTownID = #{recTownID},
|
|
|
|
defaultServiceProviderID = #{defaultServiceProviderID},
|
|
defaultServiceProviderID = #{defaultServiceProviderID},
|
|
defaultServiceProviderUpdTime = #{defaultServiceProviderUpdTime},
|
|
defaultServiceProviderUpdTime = #{defaultServiceProviderUpdTime},
|
|
- firstServiceProviderFlag = #{firstServiceProviderFlag},
|
|
|
|
sname = #{sname},
|
|
sname = #{sname},
|
|
flag = #{flag},
|
|
flag = #{flag},
|
|
scanFlag =#{scanFlag},
|
|
scanFlag =#{scanFlag},
|
|
mainServiceProviderID = #{mainServiceProviderID},
|
|
mainServiceProviderID = #{mainServiceProviderID},
|
|
spID = #{spID},
|
|
spID = #{spID},
|
|
- agreement = #{agreement},
|
|
|
|
- scale = #{scale},
|
|
|
|
- empnum = #{empnum},
|
|
|
|
mainpro = #{mainpro},
|
|
mainpro = #{mainpro},
|
|
- remark = #{remark},
|
|
|
|
provinceID = #{provinceID},
|
|
provinceID = #{provinceID},
|
|
cityID = #{cityID},
|
|
cityID = #{cityID},
|
|
inviterName = #{inviterName},
|
|
inviterName = #{inviterName},
|
|
inviterBindID = #{inviterBindID},
|
|
inviterBindID = #{inviterBindID},
|
|
- scanTime = #{scanTime},
|
|
|
|
- checkTime = #{checkTime}
|
|
|
|
-
|
|
|
|
|
|
+ scanTime = #{scanTime}
|
|
WHERE clubid = #{id}
|
|
WHERE clubid = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|