insert into cm_visitor_remarks(questionManId, serviceProviderId, remarks, addTime, questionMan, concactTime, createServiceProviderId)
values (#{questionManId}, #{serviceProviderId}, #{remarks}, now(), #{questionMan}, #{concactTime}, #{serviceProviderId})
update club
set newDeal = 2
where clubId = #{clubId}
insert into cm_club_remarks(clubId, serviceProviderId, remarks, addTime, questionMan, concactTime, consultType,
clubType, pinceSensitve, satisfied, followup, extra, createServiceProviderId, productID, reportID)
values (#{clubId}, #{serviceProviderId}, #{remarks}, #{addTime}, #{questionMan}, now(), #{consult}, #{clubType},
#{pinceSensitve}, #{satisfied}, #{followup}, #{extra},#{serviceProviderId}, #{productId}, #{reportId})
INSERT INTO clubchangesprecord(clubID,
oldSpID,
newSpID,
applyTime,
checkTime,
checkStatus,
checkMark,
checkUserID,
choseServiceId)
VALUES (#{clubID},
#{oldSpID},
#{newSpID},
#{applyTime},
#{checkTime},
#{checkStatus},
#{checkMark},
#{checkUserID},
#{choseServiceId})
update user set
name = #{name},
email = #{email},
userName = #{userName}
where userID = #{userId}
update user set
name = #{name},
email = #{email},
userName = #{userName},
clubStatus = 1
where userID = #{userId}
INSERT INTO operational_logs
(institutionName,
Contact,
operationtype,
Actioncontent,
Operator,
Operationtime)
VALUES (#{institutionName},
#{contact},
#{operationType},
#{actionContent},
#{operator},
#{operationTime})
update club set
name = #{name},
sname = #{shortName},
contractEmail = #{contractEmail},
contractPhone = #{contractPhone},
linkMan = #{linkMan},
linkManIdentity = #{linkManIdentity},
provinceID = #{provinceId}, cityID = #{cityId}, townID = #{townId}, address = #{address},
headpic = #{shopPhoto},
businessLicenseImage = #{businessLicense},
socialCreditCode = #{socialCreditCode},
firstClubType = #{firstClubType},
secondClubType = #{secondClubType}, department = #{department},
medicalPracticeLicenseImg = #{medicalPracticeLicense},
mainpro = #{mainProduct},
lastModify = #{lastModify},
fax = #{fax},
info = #{profile}
where clubID = #{clubId}
UPDATE USER
SET userBeans = #{userBeans}
WHERE userID = #{userId}
UPDATE user_beans_history
SET pushStatus = 1
WHERE userId = #{userId}
update cm_visitor_remarks
set questionMan = #{questionMan}
where questionManId = #{questionManId}
and serviceProviderId = #{serviceProviderId}
update cm_visitor_remarks
set clubId = #{clubId},
concactTime = now()
where questionManId = #{questionManId}
update cm_club_report
set clubId = #{clubId},
questionManId=null
where questionManId = #{questionManId}
update club
set spID=#{spId},
scanFlag=2
where clubID = #{clubId}
UPDATE cm_club_report
SET serviceProviderId=#{spId}
WHERE clubId = #{clubId}
AND serviceProviderId = #{oldSpId}
insert into cm_user_search_frequency(fromSearch, serviceProviderId, keyword, frequency, trueStatus, dynamicStatus, addTime)
values (4, #{serviceProviderId}, #{keyword}, 0, #{trueStatus}, #{dynamicStatus}, now())
insert into cm_provider_record (spId, clubId, operator, isOneself, createTime)
values (#{spId}, #{clubId}, #{operator}, #{isOneself}, now())