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`, cmShopId, `mobile`, `password`, `linkMan`, `userIdentity`, `shopType`, `logo`, `qrCodeImage`, `wxAccountType`, `appId`, `appSecret`, `createTime`,
`createBy`,`status`)
values (#{name}, #{cmShopId}, #{mobile}, #{password}, #{linkMan}, #{userIdentity}, #{shopType}, #{logo}, #{qrCodeImage}, #{wxAccountType}, #{appId}, #{appSecret}, #{createTime}, #{createBy}, #{status});
insert into cm_brand_auth_shop_info (authUserId, brandName, brandLogo, producePlace, manufacturer)
values (#{authUserId}, #{brandName}, #{brandLogo}, #{producePlace}, #{manufacturer})
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 cmShopId = #{cmShopId},
name = #{name},
shopType = #{shopType},
`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
set brandName = #{brandName},
brandLogo = #{brandLogo},
producePlace = #{producePlace},
manufacturer = #{manufacturer}
where id = #{infoId}
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}
update cm_brand_auth_user
set linkMan = #{linkMan}
where authUserId = #{authUserId}
update cm_brand_auth_user
set logo = #{logo}
where authUserId = #{authUserId}
delete from cm_brand_auth_file where id = #{id}
delete from cm_brand_auth_shop_info where id = #{infoId}