INSERT INTO bpm_task_signdata (id_,def_id_,inst_id_,act_inst_id_,execute_id_,node_id_,task_id_,qualified_id_,qualified_name_,create_time_,vote_result_,vote_id_,voter_,vote_time_,index_,IS_ACTIVE_,TYPE_) VALUES (#{id,jdbcType=VARCHAR}, #{defId,jdbcType=VARCHAR}, #{instId,jdbcType=VARCHAR}, #{actInstId,jdbcType=VARCHAR},#{executeId,jdbcType=VARCHAR}, #{nodeId,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR}, #{qualifiedId,jdbcType=VARCHAR}, #{qualifiedName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{voteResult,jdbcType=VARCHAR}, #{voteId,jdbcType=VARCHAR}, #{voter,jdbcType=VARCHAR}, #{voteTime,jdbcType=TIMESTAMP}, #{index,jdbcType=NUMERIC},#{isActive,jdbcType=NUMERIC},#{type,jdbcType=VARCHAR}) DELETE FROM bpm_task_signdata WHERE id_=#{id} DELETE FROM bpm_task_signdata WHERE execute_id_=#{executeId} and node_id_=#{nodeId} and IS_ACTIVE_=0 update bpm_task_signdata set IS_ACTIVE_=0 WHERE execute_id_=#{executeId} and node_id_=#{nodeId} DELETE FROM bpm_task_signdata where inst_id_ in #{instId} DELETE FROM bpm_task_signdata WHERE inst_id_=#{instId} and node_id_=#{nodeId} and vote_result_='no' update bpm_task_signdata set IS_ACTIVE_=1, index_=-1 WHERE inst_id_=#{instId} and node_id_=#{nodeId}