Commit 73418625 by 陶然

优化

parent d0dc4d10
...@@ -61,6 +61,7 @@ namespace Njzj.Ngstc ...@@ -61,6 +61,7 @@ namespace Njzj.Ngstc
if (conn.Exists<Settlement>(o => o.OffsetKvid == Guid.Empty && o.BizId == Item.BizId)) throw new Exception("存在重复结算的对象!"); if (conn.Exists<Settlement>(o => o.OffsetKvid == Guid.Empty && o.BizId == Item.BizId)) throw new Exception("存在重复结算的对象!");
var depart = Item.OwnerName.GetOrganization(); var depart = Item.OwnerName.GetOrganization();
if (depart == null) throw new Exception("未找到部门信息!");
if (depart != null) if (depart != null)
{ {
Item.OwnerName = depart.FullName; Item.OwnerName = depart.FullName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment