insert into cm_brand_auth (authUserId, authParty, provinceId, cityId, townId, address, lng, lat,
mobile, userMobile, firstClubType, secondClubType, medicalLicenseImage, empNum,
logo, customFlag, remarks, status, createTime, createBy, auditStatus, shopAuditStatus, delFlag)
values (#{authUserId}, #{authParty}, #{provinceId}, #{cityId}, #{townId}, #{address}, #{lng}, #{lat},
#{mobile}, #{userMobile}, #{firstClubType}, #{secondClubType}, #{medicalLicenseImage}, #{empNum},
#{logo}, #{customFlag}, #{remarks}, #{status}, NOW(), #{createBy}, #{auditStatus}, #{shopAuditStatus}, #{delFlag})
insert into cm_brand_auth_banner (authId, banner)
VALUES (#{authId}, #{banner})
insert into logistics_information (type, authId, nu, state, logisticsCompanyName, logisticsCompanyCode,
updateDate, remarks, remarksImage)
values (#{type}, #{authId}, #{logisticsNumber}, #{state}, #{companyName}, #{companyCode}, #{updateDate},
#{remarks}, #{image})
update cm_brand_auth
set status = #{status}
where id = #{authId}
update cm_brand_auth
set authParty = #{authParty},
provinceId = #{provinceId},
cityId = #{cityId},
townId = #{townId},
address = #{address},
lng = #{lng},
lat = #{lat},
mobile = #{mobile},
userMobile = #{userMobile},
firstClubType = #{firstClubType},
secondClubType = #{secondClubType},
logo = #{logo},
customFlag = #{customFlag},
remarks = #{remarks},
status = #{status},
auditStatus = #{auditStatus},
shopAuditStatus = #{shopAuditStatus}
where id = #{id}
update cm_brand_auth
set status = #{status},
auditStatus = #{auditStatus},
invalidReason = #{invalidReason},
auditBy = #{auditBy},
auditTime = #{auditTime}
where id = #{authId}
update cm_brand_auth set delFlag = 1 where id = #{authId}
update ldm_latest_club_id set ldmClubId = #{ldmLatestClubId} where id = 1;
update cm_brand_auth
set shopAuditStatus = #{shopAuditStatus},
shopInvalidReason = #{shopInvalidReason},
shopAuditTime = #{shopAuditTime}
where id = #{authId}
update cm_brand_auth
set sendStatus = 1
where id = #{authId}
delete from cm_brand_auth_banner where authId = #{authId}