insert into cm_brand_auth (authUserId, authParty, provinceId, cityId, townId, address, lng, lat,
mobile, userMobile, linkMan, linkMobile, firstClubType, secondClubType,
medicalLicenseImage, empNum,
logo, customFlag, remarks, authCode, authDate, authImageLogo, authImage,
authImageType, status, createTime, createBy, createSource, auditBy,
auditTime, auditStatus, shopAuditBy, shopAuditTime, shopAuditStatus, checkFlag,
delFlag)
values (#{authUserId}, #{authParty}, #{provinceId}, #{cityId}, #{townId}, #{address}, #{lng}, #{lat},
#{mobile}, #{userMobile}, #{linkMan}, #{linkMobile}, #{firstClubType}, #{secondClubType},
#{medicalLicenseImage}, #{empNum},
#{logo}, #{customFlag}, #{remarks}, #{authCode}, #{authDate}, #{authImageLogo}, #{authImage},
#{authImageType}, #{status}, NOW(), #{createBy}, #{createSource}, #{auditBy},
#{auditTime}, #{auditStatus}, #{shopAuditBy}, #{shopAuditTime}, #{shopAuditStatus}, #{checkFlag},
#{delFlag})
insert into cm_brand_auth_banner (authId, banner)
VALUES (#{authId}, #{banner})
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},
linkMan = #{linkMan},
linkMobile = #{linkMobile},
firstClubType = #{firstClubType},
secondClubType = #{secondClubType},
medicalLicenseImage = #{medicalLicenseImage},
empNum = #{empNum},
logo = #{logo},
customFlag = #{customFlag},
remarks = #{remarks},
authCode = #{authCode},
authDate = #{authDate},
authImageLogo = #{authImageLogo},
authImage = #{authImage},
authImageType = #{authImageType},
status = #{status},
auditStatus = #{auditStatus},
shopAuditStatus = #{shopAuditStatus},
checkFlag = #{checkFlag},
relationId = #{relationId},
relationName = #{relationName}
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},
status = #{status},
auditStatus = #{shopAuditStatus},
shopInvalidReason = #{shopInvalidReason},
shopAuditBy = #{shopAuditBy},
shopAuditTime = #{shopAuditTime}
where id = #{authId}
update cm_brand_auth
set sendStatus = 1
where id = #{authId}
update cm_brand_auth
set authImage = #{authImage},
pcAuthImage = #{pcAuthImage},
appletsAuthImage = #{appletsAuthImage}
where id = #{id}
update cm_brand_auth
set checkFlag = 1
where id = #{authId}
update cm_brand_auth
set starFlag = #{starFlag},
starNum=#{starNum}
where id = #{authId}
update cm_brand_auth
set scanCount = scanCount + 1
where id = #{authId}
delete
from cm_brand_auth_banner
where authId = #{authId}