select cc.comment_id, cc.contract_id, cc.dept_id, cc.user_id, u.nick_name, cc.comment, cc.document, cc.comment_time from cmc_contract_comment as cc
left join sys_user as u on u.user_id = cc.user_id
insert into cmc_contract_comment
comment_id,contract_id,dept_id,user_id,comment,document,comment_time,#{commentId},#{contractId},#{deptId},#{userId},#{comment},#{document},#{commentTime},
update cmc_contract_comment
contract_id = #{contractId},dept_id = #{deptId},user_id = #{userId},comment = #{comment},document = #{document},comment_time = #{commentTime},
where comment_id = #{commentId}
delete from cmc_contract_comment where contract_id = #{contractId}
delete from cmc_contract_comment where contract_id in
#{contractId}