Bläddra i källkod

【数据库整理】订单相关

chao 3 år sedan
förälder
incheckning
47d5fa055e

+ 9 - 9
src/main/java/com/caimei/modules/order/entity/CmReturnedPurchase.java

@@ -26,7 +26,7 @@ public class CmReturnedPurchase extends DataEntity<CmReturnedPurchase> {
     private String status;        // 状态:1待审核、2审核通过、3审核不通过
     private String status;        // 状态:1待审核、2审核通过、3审核不通过
     private String returnedWay;        // 退款方式 1有支付有退款(退款方式可多选具体参考以上金额)、4未支付无退款(未支付发起退款)
     private String returnedWay;        // 退款方式 1有支付有退款(退款方式可多选具体参考以上金额)、4未支付无退款(未支付发起退款)
     private String payType;//付款方式 付款方式 1建设银行7297, 2中信银行0897, 3中信银行7172, 4广发银行0115, 5广发银行5461
     private String payType;//付款方式 付款方式 1建设银行7297, 2中信银行0897, 3中信银行7172, 4广发银行0115, 5广发银行5461
-    private String returnedBankInfo;        // 退款银行信息(银行名称、户名、开户行、银行账号)【V6.1.1版本已废弃拆分显示】
+    //private String returnedBankInfo;        // 退款银行信息(银行名称、户名、开户行、银行账号)【V6.1.1版本已废弃拆分显示】
     private String operatingOrderStatus;    //发起该操作时订单状态快照:0待确认,11待收待发,12待收部发,13待收全发,21部收待发,22部收部发,23部收全发,31已收待发,32已收部发,33已收全发,4交易完成,5订单完成,6已关闭,7交易全退
     private String operatingOrderStatus;    //发起该操作时订单状态快照:0待确认,11待收待发,12待收部发,13待收全发,21部收待发,22部收部发,23部收全发,31已收待发,32已收部发,33已收全发,4交易完成,5订单完成,6已关闭,7交易全退
     private Double returnedPurchaseFee;        // 退款(退货)总金额
     private Double returnedPurchaseFee;        // 退款(退货)总金额
     private Double refundFee;        // 退款总额(给买家)
     private Double refundFee;        // 退款总额(给买家)
@@ -150,14 +150,14 @@ public class CmReturnedPurchase extends DataEntity<CmReturnedPurchase> {
         this.returnedWay = returnedWay;
         this.returnedWay = returnedWay;
     }
     }
 
 
-    @Length(min = 0, max = 300, message = "退款银行信息(银行名称、户名、开户行、银行账号)长度必须介于 0 和 300 之间")
-    public String getReturnedBankInfo() {
-        return returnedBankInfo;
-    }
-
-    public void setReturnedBankInfo(String returnedBankInfo) {
-        this.returnedBankInfo = returnedBankInfo;
-    }
+//    @Length(min = 0, max = 300, message = "退款银行信息(银行名称、户名、开户行、银行账号)长度必须介于 0 和 300 之间")
+//    public String getReturnedBankInfo() {
+//        return returnedBankInfo;
+//    }
+//
+//    public void setReturnedBankInfo(String returnedBankInfo) {
+//        this.returnedBankInfo = returnedBankInfo;
+//    }
 
 
 
 
     public Double getReturnedPurchaseFee() {
     public Double getReturnedPurchaseFee() {

+ 8 - 8
src/main/java/com/caimei/modules/order/entity/CmReturnedPurchaseProduct.java

@@ -21,7 +21,7 @@ public class CmReturnedPurchaseProduct extends DataEntity<CmReturnedPurchaseProd
 	private Integer applicationCancelNum;		// 申请取消数量
 	private Integer applicationCancelNum;		// 申请取消数量
 	private Integer actualReturnedNum;		// 实际退货数量
 	private Integer actualReturnedNum;		// 实际退货数量
 	private Integer actualCancelNum;		// 实际取消数量
 	private Integer actualCancelNum;		// 实际取消数量
-	private String returnedReceiver;		// 退款接收方:1采美、2供应商、3采美及供应商
+//	private String returnedReceiver;		// 退款接收方:1采美、2供应商、3采美及供应商
 
 
 	private String status;	//退货状态	状态:1退货退款中、2已完成、3已取消
 	private String status;	//退货状态	状态:1退货退款中、2已完成、3已取消
 
 
@@ -134,13 +134,13 @@ public class CmReturnedPurchaseProduct extends DataEntity<CmReturnedPurchaseProd
 		this.status = status;
 		this.status = status;
 	}
 	}
 
 
-	public String getReturnedReceiver() {
-		return returnedReceiver;
-	}
-
-	public void setReturnedReceiver(String returnedReceiver) {
-		this.returnedReceiver = returnedReceiver;
-	}
+//	public String getReturnedReceiver() {
+//		return returnedReceiver;
+//	}
+//
+//	public void setReturnedReceiver(String returnedReceiver) {
+//		this.returnedReceiver = returnedReceiver;
+//	}
 
 
 	public static long getSerialVersionUID() {
 	public static long getSerialVersionUID() {
 		return serialVersionUID;
 		return serialVersionUID;

+ 8 - 8
src/main/java/com/caimei/modules/order/entity/NewOrderProduct.java

@@ -44,7 +44,7 @@ public class NewOrderProduct extends DataEntity<NewOrderProduct> {
     private Double singleOtherFee;//   decimal(20,6) comment '单个应付第三方金额',
     private Double singleOtherFee;//   decimal(20,6) comment '单个应付第三方金额',
     private Double singleCmFee;//   decimal(20,6) comment '单个应付采美金额',
     private Double singleCmFee;//   decimal(20,6) comment '单个应付采美金额',
     private Double shouldPayFee;//   decimal(20,6) comment '应付金额',
     private Double shouldPayFee;//   decimal(20,6) comment '应付金额',
-    private String commentFlag;//        national char(1) comment '是否已评论:1是,空或0未评论',
+    //private String commentFlag;//        national char(1) comment '是否已评论:1是,空或0未评论',
     private Double price0;//   float(10,2),
     private Double price0;//   float(10,2),
     private Double price1;//   float comment '普通会员价',
     private Double price1;//   float comment '普通会员价',
     private Double totalFee;//   float comment '总价',
     private Double totalFee;//   float comment '总价',
@@ -397,13 +397,13 @@ public class NewOrderProduct extends DataEntity<NewOrderProduct> {
         this.shouldPayFee = shouldPayFee;
         this.shouldPayFee = shouldPayFee;
     }
     }
 
 
-    public String getCommentFlag() {
-        return commentFlag;
-    }
-
-    public void setCommentFlag(String commentFlag) {
-        this.commentFlag = commentFlag;
-    }
+//    public String getCommentFlag() {
+//        return commentFlag;
+//    }
+//
+//    public void setCommentFlag(String commentFlag) {
+//        this.commentFlag = commentFlag;
+//    }
 
 
     public Double getNormalPrice() {
     public Double getNormalPrice() {
         return normalPrice;
         return normalPrice;

+ 1 - 1
src/main/java/com/caimei/modules/order/service/CmReturnedPurchaseService.java

@@ -381,7 +381,7 @@ public class CmReturnedPurchaseService extends CrudService<CmReturnedPurchaseDao
                         shopOrderReturned.setShopName(item.getShopName());
                         shopOrderReturned.setShopName(item.getShopName());
                         shopOrderReturned.setShopID(item.getShopID());
                         shopOrderReturned.setShopID(item.getShopID());
                         shopOrderReturned.setShopOrderID(item.getShopOrderID());
                         shopOrderReturned.setShopOrderID(item.getShopOrderID());
-                        shopOrderReturned.setReturnedReceiver(item.getReturnedReceiver());
+                        //shopOrderReturned.setReturnedReceiver(item.getReturnedReceiver());
                         shopOrderReturned.setCommercialCode(item.getCommercialCode());
                         shopOrderReturned.setCommercialCode(item.getCommercialCode());
                         NewShopOrder shopOrder = newShopOrderService.findByShopOrderID(item.getShopOrderID());
                         NewShopOrder shopOrder = newShopOrderService.findByShopOrderID(item.getShopOrderID());
                         if (null != shopOrder) {
                         if (null != shopOrder) {

+ 0 - 1
src/main/java/com/caimei/modules/order/service/NewOrderService.java

@@ -210,7 +210,6 @@ public class NewOrderService extends CrudService<NewOrderDao, NewOrder> {
                 o.setShopProductAmount(copCostPrice * o.getNum());
                 o.setShopProductAmount(copCostPrice * o.getNum());
                 discountFee += (o.getDiscountFee() == null ? 0 : o.getDiscountFee()); //主订单统计经理折扣
                 discountFee += (o.getDiscountFee() == null ? 0 : o.getDiscountFee()); //主订单统计经理折扣
                 preferential += (o.getPreferential() == null ? 0 : o.getPreferential()); //主订单统计优惠
                 preferential += (o.getPreferential() == null ? 0 : o.getPreferential()); //主订单统计优惠
-                o.setCommentFlag("0");//未评论
                 o.setUseBalanceAmount(0D);//余额
                 o.setUseBalanceAmount(0D);//余额
                 o.setIsGiftProduct("0");//【旧】赠品标识
                 o.setIsGiftProduct("0");//【旧】赠品标识
                 Product product = productDao.get(o.getProductID() + "");
                 Product product = productDao.get(o.getProductID() + "");

+ 8 - 8
src/main/java/com/caimei/modules/product/entity/CmOrderProduct.java

@@ -23,7 +23,7 @@ public class CmOrderProduct extends DataEntity<CmOrderProduct>{
     private Float fee; //
     private Float fee; //
     private String note; //
     private String note; //
     private String status; //
     private String status; //
-    private String commentFlag; //
+    //private String commentFlag; //
     private Float normalPrice; //
     private Float normalPrice; //
     private Float price0; // 普通价
     private Float price0; // 普通价
     private Float price1; // 会员价
     private Float price1; // 会员价
@@ -157,13 +157,13 @@ public class CmOrderProduct extends DataEntity<CmOrderProduct>{
         this.status = status;
         this.status = status;
     }
     }
 
 
-    public String getCommentFlag() {
-        return commentFlag;
-    }
-
-    public void setCommentFlag(String commentFlag) {
-        this.commentFlag = commentFlag;
-    }
+//    public String getCommentFlag() {
+//        return commentFlag;
+//    }
+//
+//    public void setCommentFlag(String commentFlag) {
+//        this.commentFlag = commentFlag;
+//    }
 
 
     public Float getNormalPrice() {
     public Float getNormalPrice() {
         return normalPrice;
         return normalPrice;

+ 1 - 190
src/main/resources/mappings/modules/bulkpurchase/CmClubMapper.xml

@@ -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>
 
 

+ 0 - 6
src/main/resources/mappings/modules/order/CmReturnedPurchaseMapper.xml

@@ -11,7 +11,6 @@
 		a.returnedWay AS "returnedWay",
 		a.returnedWay AS "returnedWay",
 		a.payType AS "payType",
 		a.payType AS "payType",
 		a.operatingOrderStatus AS "operatingOrderStatus",
 		a.operatingOrderStatus AS "operatingOrderStatus",
-		a.returnedBankInfo AS "returnedBankInfo",
 		a.returnedPurchaseFee AS "returnedPurchaseFee",
 		a.returnedPurchaseFee AS "returnedPurchaseFee",
 		a.refundFee AS "refundFee",
 		a.refundFee AS "refundFee",
 		a.image1 AS "image1",
 		a.image1 AS "image1",
@@ -196,7 +195,6 @@
 			returnedWay,
 			returnedWay,
 			payType,
 			payType,
 			operatingOrderStatus,
 			operatingOrderStatus,
-			returnedBankInfo,
 			bankAccountName,
 			bankAccountName,
 			bankAccountNo,
 			bankAccountNo,
 			openBank,
 			openBank,
@@ -225,7 +223,6 @@
 			#{returnedWay},
 			#{returnedWay},
 			#{payType},
 			#{payType},
 			#{operatingOrderStatus},
 			#{operatingOrderStatus},
-			#{returnedBankInfo},
 			#{bankAccountName},
 			#{bankAccountName},
 			#{bankAccountNo},
 			#{bankAccountNo},
 			#{openBank},
 			#{openBank},
@@ -291,9 +288,6 @@
 			<if test="operatingOrderStatus != null and operatingOrderStatus != ''" >
 			<if test="operatingOrderStatus != null and operatingOrderStatus != ''" >
 				operatingOrderStatus = #{operatingOrderStatus},
 				operatingOrderStatus = #{operatingOrderStatus},
 			</if>
 			</if>
-            <if test="returnedBankInfo != null and returnedBankInfo != ''" >
-                returnedBankInfo = #{returnedBankInfo},
-            </if>
 			<if test="bankAccountName != null and bankAccountName != ''" >
 			<if test="bankAccountName != null and bankAccountName != ''" >
 				bankAccountName = #{bankAccountName},
 				bankAccountName = #{bankAccountName},
 			</if>
 			</if>

+ 0 - 4
src/main/resources/mappings/modules/order/CmReturnedPurchaseProductMapper.xml

@@ -78,7 +78,6 @@
 			orderProductID,
 			orderProductID,
 			shopID,
 			shopID,
 			shopOrderID,
 			shopOrderID,
-			returnedReceiver,
 			applicationReturnedNum,
 			applicationReturnedNum,
 			applicationCancelNum,
 			applicationCancelNum,
 			actualReturnedNum,
 			actualReturnedNum,
@@ -90,7 +89,6 @@
 			#{orderProductID},
 			#{orderProductID},
 			#{shopID},
 			#{shopID},
 			#{shopOrderID},
 			#{shopOrderID},
-			#{returnedReceiver},
 			#{applicationReturnedNum},
 			#{applicationReturnedNum},
 			#{applicationCancelNum},
 			#{applicationCancelNum},
 			#{actualReturnedNum},
 			#{actualReturnedNum},
@@ -104,7 +102,6 @@
 			productID = #{productID},
 			productID = #{productID},
 			orderProductID = #{orderProductID},
 			orderProductID = #{orderProductID},
 			shopID = #{shopID},
 			shopID = #{shopID},
-			returnedReceiver = #{returnedReceiver},
 			applicationReturnedNum = #{applicationReturnedNum},
 			applicationReturnedNum = #{applicationReturnedNum},
 			applicationCancelNum = #{applicationCancelNum},
 			applicationCancelNum = #{applicationCancelNum},
 			actualReturnedNum = #{actualReturnedNum},
 			actualReturnedNum = #{actualReturnedNum},
@@ -114,7 +111,6 @@
 
 
     <update id="updateApply" parameterType="CmReturnedPurchaseProduct">
     <update id="updateApply" parameterType="CmReturnedPurchaseProduct">
         UPDATE cm_returned_purchase_product SET
         UPDATE cm_returned_purchase_product SET
-			returnedReceiver = #{returnedReceiver},
 			actualReturnedNum = #{actualReturnedNum},
 			actualReturnedNum = #{actualReturnedNum},
 			actualCancelNum = #{actualCancelNum}
 			actualCancelNum = #{actualCancelNum}
         WHERE id = #{id}
         WHERE id = #{id}

+ 0 - 17
src/main/resources/mappings/modules/order/OrderMapper.xml

@@ -24,15 +24,11 @@
 		a.note AS note,
 		a.note AS note,
 		a.clubID AS clubID,
 		a.clubID AS clubID,
 		a.clubScanTime AS clubScanTime,
 		a.clubScanTime AS clubScanTime,
-		a.payWay AS payWay,
 		a.orderSource AS orderSource,
 		a.orderSource AS orderSource,
 		a.orderTime AS orderTime,
 		a.orderTime AS orderTime,
 		a.confirmTime AS confirmTime,
 		a.confirmTime AS confirmTime,
 		a.productCount AS productCount,
 		a.productCount AS productCount,
 		a.presentCount AS presentCount,
 		a.presentCount AS presentCount,
-		a.cooFreeFlag AS cooFreeFlag,
-		a.cooFreeRate AS cooFreeRate,
-		a.cooFreeAmount AS cooFreeAmount,
 		a.confirmFlag AS confirmFlag,
 		a.confirmFlag AS confirmFlag,
 		a.clauseID AS clauseID,
 		a.clauseID AS clauseID,
 		a.clauseContent AS clauseContent,
 		a.clauseContent AS clauseContent,
@@ -84,7 +80,6 @@
         <result column="alreadyReceipt" property="alreadyReceipt"/>
         <result column="alreadyReceipt" property="alreadyReceipt"/>
         <result column="unReceipt" property="unReceipt"/>
         <result column="unReceipt" property="unReceipt"/>
         <result column="payTotalFee" property="payTotalFee"/>
         <result column="payTotalFee" property="payTotalFee"/>
-        <result column="payWay" property="payWay"/>
         <result column="status" property="status"/>
         <result column="status" property="status"/>
         <collection property="newShopOrders" ofType="com.caimei.modules.order.entity.NewShopOrder"
         <collection property="newShopOrders" ofType="com.caimei.modules.order.entity.NewShopOrder"
                     select="loadShopOrders" column="orderNo" fetchType="eager">
                     select="loadShopOrders" column="orderNo" fetchType="eager">
@@ -482,9 +477,6 @@
 			<if test="clubScanTime != null" >
 			<if test="clubScanTime != null" >
 				clubScanTime = #{clubScanTime,jdbcType=VARCHAR},
 				clubScanTime = #{clubScanTime,jdbcType=VARCHAR},
 			</if>
 			</if>
-			<if test="payWay != null" >
-				payWay = #{payWay,jdbcType=INTEGER},
-			</if>
 			<if test="orderSource != null" >
 			<if test="orderSource != null" >
 				orderSource = #{orderSource,jdbcType=CHAR},
 				orderSource = #{orderSource,jdbcType=CHAR},
 			</if>
 			</if>
@@ -497,15 +489,6 @@
 			<if test="presentCount != null" >
 			<if test="presentCount != null" >
 				presentCount = #{presentCount,jdbcType=INTEGER},
 				presentCount = #{presentCount,jdbcType=INTEGER},
 			</if>
 			</if>
-			<if test="cooFreeFlag != null" >
-				cooFreeFlag = #{cooFreeFlag,jdbcType=CHAR},
-			</if>
-			<if test="cooFreeRate != null" >
-				cooFreeRate = #{cooFreeRate,jdbcType=INTEGER},
-			</if>
-			<if test="cooFreeAmount != null" >
-				cooFreeAmount = #{cooFreeAmount,jdbcType=DECIMAL},
-			</if>
 			<if test="confirmFlag != null" >
 			<if test="confirmFlag != null" >
 				confirmFlag = #{confirmFlag,jdbcType=CHAR},
 				confirmFlag = #{confirmFlag,jdbcType=CHAR},
 			</if>
 			</if>

+ 0 - 5
src/main/resources/mappings/modules/order/OrderProductMapper.xml

@@ -61,7 +61,6 @@
 		  a.`singleOtherFee` AS `singleOtherFee`,
 		  a.`singleOtherFee` AS `singleOtherFee`,
 		  a.`singleCmFee` AS `singleCmFee`,
 		  a.`singleCmFee` AS `singleCmFee`,
 		  a.`status` AS `status`,
 		  a.`status` AS `status`,
-		  a.`commentFlag` AS `commentFlag`,
 		  a.`totalBeans` AS `totalBeans`,
 		  a.`totalBeans` AS `totalBeans`,
 		  a.`useBalanceAmount` AS `useBalanceAmount`,
 		  a.`useBalanceAmount` AS `useBalanceAmount`,
 		  a.`useBeanAmount` AS `useBeanAmount`,
 		  a.`useBeanAmount` AS `useBeanAmount`,
@@ -82,7 +81,6 @@
 		  a.`preferential` AS `preferential`,
 		  a.`preferential` AS `preferential`,
 		  (select mainImage from product p where p.productID = a.productID) AS image,
 		  (select mainImage from product p where p.productID = a.productID) AS image,
 		  a.`discountFee` AS `discountFee`,
 		  a.`discountFee` AS `discountFee`,
-		  (select cso.status from cm_shop_order cso where cso.shopOrderID = a.shopOrderID) AS status,
 		  a.`productUnit` AS `productUnit`,
 		  a.`productUnit` AS `productUnit`,
 		  a.`productImage` AS `productImage`,
 		  a.`productImage` AS `productImage`,
 		  a.`shopName` AS `shopName`,
 		  a.`shopName` AS `shopName`,
@@ -242,7 +240,6 @@
 			singleOtherFee,
 			singleOtherFee,
 			singleCmFee,
 			singleCmFee,
 			shouldPayFee,
 			shouldPayFee,
-			commentFlag,
 			normalPrice,
 			normalPrice,
 			totalFee,
 			totalFee,
 			totalBeans,
 			totalBeans,
@@ -306,7 +303,6 @@
 			#{singleOtherFee},
 			#{singleOtherFee},
 			#{singleCmFee},
 			#{singleCmFee},
 			#{shouldPayFee},
 			#{shouldPayFee},
-			#{commentFlag},
 			#{normalPrice},
 			#{normalPrice},
 			#{totalFee},
 			#{totalFee},
 			#{totalBeans},
 			#{totalBeans},
@@ -387,7 +383,6 @@
 		singleOtherFee = #{singleOtherFee,jdbcType=DECIMAL},
 		singleOtherFee = #{singleOtherFee,jdbcType=DECIMAL},
 		singleCmFee = #{singleCmFee,jdbcType=DECIMAL},
 		singleCmFee = #{singleCmFee,jdbcType=DECIMAL},
 		shouldPayFee = #{shouldPayFee,jdbcType=DECIMAL},
 		shouldPayFee = #{shouldPayFee,jdbcType=DECIMAL},
-		commentFlag = #{commentFlag,jdbcType=CHAR},
 		totalFee = #{totalFee,jdbcType=REAL},
 		totalFee = #{totalFee,jdbcType=REAL},
 		totalBeans = #{totalBeans,jdbcType=DECIMAL},
 		totalBeans = #{totalBeans,jdbcType=DECIMAL},
 		useBalanceAmount = #{useBalanceAmount,jdbcType=VARCHAR},
 		useBalanceAmount = #{useBalanceAmount,jdbcType=VARCHAR},

+ 0 - 43
src/main/resources/mappings/modules/order/ShopOrderMapper.xml

@@ -13,7 +13,6 @@
 			a.itemCount  AS itemCount,
 			a.itemCount  AS itemCount,
 			a.townID  AS townID,
 			a.townID  AS townID,
 			a.productAmount  AS productAmount,
 			a.productAmount  AS productAmount,
-			a.fee  AS fee,
 			a.discountAmount AS  discountAmount,
 			a.discountAmount AS  discountAmount,
 			a.accountAmount AS  accountAmount,
 			a.accountAmount AS  accountAmount,
 			a.totalAmount AS  totalAmount,
 			a.totalAmount AS  totalAmount,
@@ -48,7 +47,6 @@
 			a.preferential AS preferential,
 			a.preferential AS preferential,
 			a.outStoreNum AS outStoreNum,
 			a.outStoreNum AS outStoreNum,
 			IFNULL(a.outStoreTimes, 0) AS outStoreTimes,
 			IFNULL(a.outStoreTimes, 0) AS outStoreTimes,
-			a.discountFee AS discountFee,
 			a.splitFlag AS splitFlag,
 			a.splitFlag AS splitFlag,
 			a.autoReceiveTimeMills AS autoReceiveTimeMills,
 			a.autoReceiveTimeMills AS autoReceiveTimeMills,
 			a.autoOverTimeMills AS autoOverTimeMills,
 			a.autoOverTimeMills AS autoOverTimeMills,
@@ -94,14 +92,12 @@
 			itemCount,
 			itemCount,
 			townID,
 			townID,
 			productAmount,
 			productAmount,
-			fee,
 			discountAmount,
 			discountAmount,
 			accountAmount,
 			accountAmount,
 			totalAmount,
 			totalAmount,
 			payFlag,
 			payFlag,
 			payTime,
 			payTime,
 			finishTime,
 			finishTime,
-			status,
 			refundStatus,
 			refundStatus,
 			needPayAmount,
 			needPayAmount,
 			canRefundAmount,
 			canRefundAmount,
@@ -128,7 +124,6 @@
 			deliveryTimeMills,
 			deliveryTimeMills,
 			presentNum,
 			presentNum,
 			preferential,
 			preferential,
-			discountFee,
 			splitFlag,
 			splitFlag,
 			autoReceiveTimeMills,
 			autoReceiveTimeMills,
 			autoOverTimeMills,
 			autoOverTimeMills,
@@ -150,14 +145,12 @@
 			#{itemCount},
 			#{itemCount},
 			#{townID},
 			#{townID},
 			#{productAmount},
 			#{productAmount},
-			#{fee},
 			#{discountAmount},
 			#{discountAmount},
 			#{accountAmount},
 			#{accountAmount},
 			#{totalAmount},
 			#{totalAmount},
 			#{payFlag},
 			#{payFlag},
 			#{payTime},
 			#{payTime},
 			#{finishTime},
 			#{finishTime},
-			#{status},
 			#{refundStatus},
 			#{refundStatus},
 			#{needPayAmount},
 			#{needPayAmount},
 			#{canRefundAmount},
 			#{canRefundAmount},
@@ -184,7 +177,6 @@
 			#{deliveryTimeMills},
 			#{deliveryTimeMills},
 			#{presentNum},
 			#{presentNum},
 			#{preferential},
 			#{preferential},
-			#{discountFee},
 			#{splitFlag},
 			#{splitFlag},
 			#{autoReceiveTimeMills},
 			#{autoReceiveTimeMills},
 			#{autoOverTimeMills},
 			#{autoOverTimeMills},
@@ -226,9 +218,6 @@
 			<if test="shopID != null and itemCount != ''" >
 			<if test="shopID != null and itemCount != ''" >
 				AND a.shopID = #{shopID}
 				AND a.shopID = #{shopID}
 			</if>
 			</if>
-			<if test="status != null and itemCount != ''" >
-				AND a.status = #{status}
-			</if>
 			<if test="payFlag != null and itemCount != ''" >
 			<if test="payFlag != null and itemCount != ''" >
 				AND a.payFlag = #{payFlag}
 				AND a.payFlag = #{payFlag}
 			</if>
 			</if>
@@ -278,9 +267,6 @@
 			<if test="productAmount != null and productAmount != ''" >
 			<if test="productAmount != null and productAmount != ''" >
 				productAmount = #{productAmount},
 				productAmount = #{productAmount},
 			</if>
 			</if>
-			<if test="fee != null and fee != ''" >
-				fee = #{fee},
-			</if>
 			<if test="discountAmount != null and discountAmount != ''" >
 			<if test="discountAmount != null and discountAmount != ''" >
 				discountAmount = #{discountAmount},
 				discountAmount = #{discountAmount},
 			</if>
 			</if>
@@ -299,9 +285,6 @@
 			<if test="finishTime != null and finishTime != ''" >
 			<if test="finishTime != null and finishTime != ''" >
 				finishTime = #{finishTime},
 				finishTime = #{finishTime},
 			</if>
 			</if>
-			<if test="status != null and status != ''" >
-				status = #{status},
-			</if>
 			<if test="refundStatus != null and refundStatus != ''" >
 			<if test="refundStatus != null and refundStatus != ''" >
 				refundStatus = #{refundStatus},
 				refundStatus = #{refundStatus},
 			</if>
 			</if>
@@ -386,9 +369,6 @@
 			<if test="outStoreTimes != null and outStoreTimes != ''" >
 			<if test="outStoreTimes != null and outStoreTimes != ''" >
 				outStoreTimes = #{outStoreTimes},
 				outStoreTimes = #{outStoreTimes},
 			</if>
 			</if>
-            <if test="discountFee != null and discountFee != ''" >
-                discountFee = #{discountFee},
-            </if>
 			<if test="splitFlag != null and splitFlag != ''" >
 			<if test="splitFlag != null and splitFlag != ''" >
 				splitFlag = #{splitFlag},
 				splitFlag = #{splitFlag},
 			</if>
 			</if>
@@ -476,16 +456,6 @@
 		DELETE FROM cm_shop_order WHERE shopOrderID = #{shopOrderID}
 		DELETE FROM cm_shop_order WHERE shopOrderID = #{shopOrderID}
 	</delete>
 	</delete>
 
 
-	<update id="updateStatusByOrderID">
-		update cm_shop_order set
-		status = #{status} where orderID = #{orderID}
-	</update>
-
-	<update id="updateStatusByShopOrderID">
-		update cm_shop_order set
-		status = #{status} where shopOrderID = #{shopOrderID}
-	</update>
-
 	<insert id="shopOrderBak" parameterType="NewShopOrder"  keyProperty="shopOrderBakID" useGeneratedKeys="true">
 	<insert id="shopOrderBak" parameterType="NewShopOrder"  keyProperty="shopOrderBakID" useGeneratedKeys="true">
 		INSERT INTO cm_shop_order_bak(
 		INSERT INTO cm_shop_order_bak(
 			orderID,
 			orderID,
@@ -496,14 +466,12 @@
 			itemCount,
 			itemCount,
 			townID,
 			townID,
 			productAmount,
 			productAmount,
-			fee,
 			discountAmount,
 			discountAmount,
 			accountAmount,
 			accountAmount,
 			totalAmount,
 			totalAmount,
 			payFlag,
 			payFlag,
 			payTime,
 			payTime,
 			finishTime,
 			finishTime,
-			status,
 			refundStatus,
 			refundStatus,
 			needPayAmount,
 			needPayAmount,
 			canRefundAmount,
 			canRefundAmount,
@@ -539,14 +507,12 @@
 			#{itemCount},
 			#{itemCount},
 			#{townID},
 			#{townID},
 			#{productAmount},
 			#{productAmount},
-			#{fee},
 			#{discountAmount},
 			#{discountAmount},
 			#{accountAmount},
 			#{accountAmount},
 			#{totalAmount},
 			#{totalAmount},
 			#{payFlag},
 			#{payFlag},
 			#{payTime},
 			#{payTime},
 			#{finishTime},
 			#{finishTime},
-			#{status},
 			#{refundStatus},
 			#{refundStatus},
 			#{needPayAmount},
 			#{needPayAmount},
 			#{canRefundAmount},
 			#{canRefundAmount},
@@ -619,9 +585,6 @@
 			<if test="productAmount != null and productAmount != ''" >
 			<if test="productAmount != null and productAmount != ''" >
 				productAmount = #{productAmount},
 				productAmount = #{productAmount},
 			</if>
 			</if>
-			<if test="fee != null and fee != ''" >
-				fee = #{fee},
-			</if>
 			<if test="discountAmount != null and discountAmount != ''" >
 			<if test="discountAmount != null and discountAmount != ''" >
 				discountAmount = #{discountAmount},
 				discountAmount = #{discountAmount},
 			</if>
 			</if>
@@ -640,9 +603,6 @@
 			<if test="finishTime != null and finishTime != ''" >
 			<if test="finishTime != null and finishTime != ''" >
 				finishTime = #{finishTime},
 				finishTime = #{finishTime},
 			</if>
 			</if>
-			<if test="status != null and status != ''" >
-				status = #{status},
-			</if>
 			<if test="refundStatus != null and refundStatus != ''" >
 			<if test="refundStatus != null and refundStatus != ''" >
 				refundStatus = #{refundStatus},
 				refundStatus = #{refundStatus},
 			</if>
 			</if>
@@ -727,9 +687,6 @@
 			<if test="outStoreTimes != null and outStoreTimes != ''" >
 			<if test="outStoreTimes != null and outStoreTimes != ''" >
 				outStoreTimes = #{outStoreTimes},
 				outStoreTimes = #{outStoreTimes},
 			</if>
 			</if>
-			<if test="discountFee != null and discountFee != ''" >
-				discountFee = #{discountFee},
-			</if>
 			<if test="splitFlag != null and splitFlag != ''" >
 			<if test="splitFlag != null and splitFlag != ''" >
 				splitFlag = #{splitFlag},
 				splitFlag = #{splitFlag},
 			</if>
 			</if>

+ 0 - 2
src/main/resources/mappings/modules/product/CmOrderProductMapper.xml

@@ -15,7 +15,6 @@
 		a.fee as "fee",
 		a.fee as "fee",
 		a.note as "note",
 		a.note as "note",
 		a.status as "status",
 		a.status as "status",
-		a.commentFlag as "commentFlag",
 		a.normalPrice as "normalPrice",
 		a.normalPrice as "normalPrice",
 		a.price0 as "price0",
 		a.price0 as "price0",
 		a.price1 as "price1",
 		a.price1 as "price1",
@@ -102,7 +101,6 @@
 		fee = #{fee},
 		fee = #{fee},
 		note = #{note},
 		note = #{note},
 		status = #{status},
 		status = #{status},
-		commentFlag = #{commentFlag},
 		normalPrice = #{normalPrice},
 		normalPrice = #{normalPrice},
 		price0 = #{price0},
 		price0 = #{price0},
 		price1 = #{price1},
 		price1 = #{price1},

+ 38 - 38
src/main/resources/mappings/modules/user/NewCmClubMapper.xml

@@ -4,44 +4,44 @@
 
 
 	<sql id="newCmClubColumns">
 	<sql id="newCmClubColumns">
 		a.clubID AS "clubID",
 		a.clubID AS "clubID",
-			a.userID AS "userID",
-			u.name AS "name",
-			a.sname AS "sname",
-			a.logo AS "logo",
-			a.legalPerson AS "legalPerson",
-			a.provinceID AS "provinceID",
-			a.cityID AS "cityID",
-			a.townID AS "townID",
-			a.flag AS "flag",
-			a.inviterBindID AS "inviterBindID",
-			a.inviterName AS "inviterName",
-			a.spID AS "spID",
-			a.mainServiceProviderID AS "mainServiceProviderID",
-			a.scanTime AS "scanTime",
-			a.address AS "address",
-			a.linkMan AS "linkMan",
-			a.linkManIdentity AS "linkManIdentity",
-			a.contractPhone AS "contractPhone",
-			a.contractMobile AS "contractMobile",
-			a.contractEmail AS "contractEmail",
-			a.fax AS "fax",
-			a.info AS "info",
-			a.addTime AS "addTime",
-			a.auditTime AS "auditTime",
-			a.auditNote AS "auditNote",
-			a.status AS "status",
-			a.businessLicenseImage AS "businessLicenseImage",
-			a.defaultServiceProviderID AS "defaultServiceProviderID",
-			a.defaultServiceProviderUpdTime AS "defaultServiceProviderUpdTime",
-			a.mainpro AS "mainpro",
-			a.scanFlag AS "scanFlag",
-			a.headpic AS "headpic",
-			a.socialCreditCode AS "socialCreditCode",
-			a.lastModify AS "lastModify",
-			a.firstClubType AS "firstClubType",
-			a.secondClubType AS "secondClubType",
-			a.department AS "department",
-			a.medicalPracticeLicenseImg AS "medicalPracticeLicenseImg"
+		a.userID AS "userID",
+		u.name AS "name",
+		a.sname AS "sname",
+		a.logo AS "logo",
+		a.legalPerson AS "legalPerson",
+		a.provinceID AS "provinceID",
+		a.cityID AS "cityID",
+		a.townID AS "townID",
+		a.flag AS "flag",
+		a.inviterBindID AS "inviterBindID",
+		a.inviterName AS "inviterName",
+		a.spID AS "spID",
+		a.mainServiceProviderID AS "mainServiceProviderID",
+		a.scanTime AS "scanTime",
+		a.address AS "address",
+		a.linkMan AS "linkMan",
+		a.linkManIdentity AS "linkManIdentity",
+		a.contractPhone AS "contractPhone",
+		a.contractMobile AS "contractMobile",
+		a.contractEmail AS "contractEmail",
+		a.fax AS "fax",
+		a.info AS "info",
+		a.addTime AS "addTime",
+		a.auditTime AS "auditTime",
+		a.auditNote AS "auditNote",
+		a.status AS "status",
+		a.businessLicenseImage AS "businessLicenseImage",
+		a.defaultServiceProviderID AS "defaultServiceProviderID",
+		a.defaultServiceProviderUpdTime AS "defaultServiceProviderUpdTime",
+		a.mainpro AS "mainpro",
+		a.scanFlag AS "scanFlag",
+		a.headpic AS "headpic",
+		a.socialCreditCode AS "socialCreditCode",
+		a.lastModify AS "lastModify",
+		a.firstClubType AS "firstClubType",
+		a.secondClubType AS "secondClubType",
+		a.department AS "department",
+		a.medicalPracticeLicenseImg AS "medicalPracticeLicenseImg"
 	</sql>
 	</sql>
 
 
 	<sql id="otherColumns">
 	<sql id="otherColumns">