修改BUG:部门描述为空时,后台抛出异常
This commit is contained in:
parent
446fac5073
commit
89c494549a
|
@ -44,7 +44,7 @@ namespace Bootstrap.DataAccess
|
||||||
{
|
{
|
||||||
ID = (int)reader[0],
|
ID = (int)reader[0],
|
||||||
GroupName = (string)reader[1],
|
GroupName = (string)reader[1],
|
||||||
Description = LgbConvert.ReadValue(reader[2], string.Empty)
|
Description = reader.IsDBNull(2) ? string.Empty : (string)reader[2]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@ namespace Bootstrap.DataAccess
|
||||||
{
|
{
|
||||||
ID = (int)reader[0],
|
ID = (int)reader[0],
|
||||||
GroupName = (string)reader[1],
|
GroupName = (string)reader[1],
|
||||||
Description = (string)reader[2],
|
Description = reader.IsDBNull(2) ? string.Empty : (string)reader[2],
|
||||||
Checked = (string)reader[3]
|
Checked = (string)reader[3]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -216,7 +216,7 @@ namespace Bootstrap.DataAccess
|
||||||
{
|
{
|
||||||
ID = (int)reader[0],
|
ID = (int)reader[0],
|
||||||
GroupName = (string)reader[1],
|
GroupName = (string)reader[1],
|
||||||
Description = (string)reader[2],
|
Description = reader.IsDBNull(2) ? string.Empty : (string)reader[2],
|
||||||
Checked = (string)reader[3]
|
Checked = (string)reader[3]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue