insert into cm_brand_auth_file (`authUserId`, `brandId`, `name`, `ossName`, `md5Hex`, `uploadTime`)
values (#{authUserId}, #{brandId}, #{name}, #{ossName}, #{md5Hex}, #{uploadTime})
insert into cm_brand_auth_user (`name`, `mobile`, `password`, `linkMan`, `userIdentity`, `shopType`, `logo`, `qrCodeImage`, `wxAccountType`, `appId`, `appSecret`, `createTime`,
`createBy`,`status`)
values (#{name}, #{mobile}, #{password}, #{linkMan}, #{userIdentity}, #{shopType}, #{logo}, #{qrCodeImage}, #{wxAccountType}, #{appId}, #{appSecret}, #{createTime}, #{createBy}, #{status});
insert into cm_brand_auth_shop_info
authUserId,brandId,countryId,securityLink,
statementType,
statementContent,
statementLink,
statementImage,
#{authUserId},#{brandId},#{countryId},#{securityLink},
#{statementType},
#{statementContent},
#{statementLink},
#{statementImage},
update cm_brand_auth_user
set status = #{status}
where authUserId = #{authUserId};
update cm_brand
set authLogo = #{brandAuthLogo}
where id = #{brandId}
update cm_brand_auth_file
set authUserId =#{authUserId}
where id = #{statementFileId};
update cm_brand_auth_user
set `mobile` = #{mobile},
`linkMan` = #{linkMan},
`status` = #{status},
`logo` = #{logo},
`qrCodeImage` = #{qrCodeImage},
`wxAccountType` = #{wxAccountType},
`appId` = #{appId},
`appSecret` = #{appSecret}
where authUserId = #{authUserId}
update cm_brand_auth_shop_info
countryId=#{countryId},securityLink = #{securityLink},
statementType = #{statementType},
statementContent = #{statementContent},
statementLink = #{statementLink},
statementImage = #{statementImage},
where authUserId = #{authUserId} and brandId = #{brandId}
update cm_brand_club_feedback
set handleResult = #{handleResult},
handleStatus = 1,
handleTime = NOW()
where id = #{feedbackId}
update cm_brand_auth_user
set mobile = #{newMobile}
where authUserId = #{authUserId}
update cm_brand_auth_user
set loginAccount = #{loginAccount}
where authUserId = #{authUserId}
delete from cm_brand_auth_file where id = #{id}
delete from cm_brand_auth_shop_info where id = #{infoId}