|
|
@@ -180,13 +180,13 @@ func (s *OrganizeService) GetAllThirdChildByTopId(topid, uid string) (entitys []
|
|
|
}
|
|
|
|
|
|
//获得category为unit的父节点
|
|
|
-func (s *OrganizeService) GetMyUnitThirdDepartmentId(topid string) string {
|
|
|
+func (s *OrganizeService) GetMyThrUnitDepartmentId(topid string) string {
|
|
|
var entity Base_Organize
|
|
|
ids := s.GetAllParentByTopAccCode(topid, "")
|
|
|
if len(ids) <= 0 { //没有父节点
|
|
|
return topid
|
|
|
}
|
|
|
- sql := "select * from Base_Organize where id in (" + ids + ") and Category='unitthird'"
|
|
|
+ sql := "select * from Base_Organize where id in (" + ids + ") and Category='ThrUnit'"
|
|
|
s.DBE.Sql(sql).Get(&entity)
|
|
|
if &entity == nil || entity.Id <= 0 { //没有category为unit的父节点
|
|
|
return topid
|