refactor whereConsPara from dynamic to DynamicParameters
change delete methon and fix delete error
update test case