update ${tableName} set apply_status = #{applyStatus}, result = #{result}, complete_time = #{completeTime} , opinion_str = #{opinionStr} where id = #{id} update ${tableName} set apply_status = #{applyStatus}, state = #{state}, result = #{result}, complete_time = #{completeTime} , opinion_str = #{opinionStr} where id = #{id} update zshb_contact set state = #{state} where id = #{id} and (select count(0) from zshb_contact_problem WHERE PARENT_ID = #{id}) = (select count(0) from zshb_contact_problem WHERE PARENT_ID = #{id} and STATE =#{state})