insert into cm_brand_auth (authUserId, authParty, provinceId, cityId, townId, address, lng, lat,
mobile, userMobile, firstClubType, secondClubType, medicalLicenseImage, empNum,
logo, customFlag, remarks, authCode, authDate, authImageLogo, authImage,
authImageType, status, createTime, createBy, createSource, auditBy,
auditTime, auditStatus, shopAuditBy, shopAuditTime, shopAuditStatus, delFlag)
values (#{authUserId}, #{authParty}, #{provinceId}, #{cityId}, #{townId}, #{address}, #{lng}, #{lat},
#{mobile}, #{userMobile}, #{firstClubType}, #{secondClubType}, #{medicalLicenseImage}, #{empNum},
#{logo}, #{customFlag}, #{remarks}, #{authCode}, #{authDate}, #{authImageLogo}, #{authImage},
#{authImageType}, #{status}, NOW(), #{createBy}, #{createSource}, #{auditBy},
#{auditTime}, #{auditStatus}, #{shopAuditBy}, #{shopAuditTime}, #{shopAuditStatus}, #{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},
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}
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}
delete from cm_brand_auth_banner where authId = #{authId}