insert into cm_visitor_remarks(questionManId, serviceProviderId, remarks, addTime, questionMan, concactTime)
values (#{questionManId}, #{serviceProviderId}, #{remarks}, now(), #{questionMan}, #{concactTime})
insert into cm_club_remarks(clubId, serviceProviderId, remarks, addTime, questionMan, concactTime, consultType,
clubType, pinceSensitve, satisfied, followup, extra, productID, reportID)
values (#{clubId}, #{serviceProviderId}, #{remarks}, #{addTime}, #{questionMan}, now(), #{consult}, #{clubType},
#{pinceSensitve}, #{satisfied}, #{followup}, #{extra}, #{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 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},
fax = #{fax},
info = #{profile},
lastModify = NOW()
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}