insert into sys_services_topic
topic_id,
uid,
content,
topic_type,
create_time,
img,
#{topicId},
#{uid},
#{content},
#{topicType},
#{createTime},
#{img, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler},
insert into sys_services_topic_status (topic_id, uid, role, `read`, create_time, update_time) values
(#{status.topicId}, #{status.uid}, #{status.role}, #{status.read}, now(), now())
update sys_services_topic_status
`read` = #{read},
update_time = now(),
id = ${id}
role != #{role} and
role = 'customer' and
topic_id = #{topicId}
insert into sys_services_topic_reply
id,
comment_id,
reply_id,
reply_type,
content,
from_uid,
to_uid,
img,
from_role,
to_role,
create_time,
#{id},
#{commentId},
#{replyId},
#{replyType},
#{content},
#{fromUid},
#{toUid},
#{img, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler},
#{fromRole},
#{toRole},
now(),