给时间参数传空值
SqlParameter parm2 = new SqlParameter()
{
ParameterName = "@CompletedTime",
SqlDbType = SqlDbType.DateTime,
Value = isCompleted ? System.DateTime.Now : (object)DBNull.Value
};