|
@@ -35,7 +35,9 @@ type OrganizeModel struct {
|
|
|
func (this *OrganizesController) List() {
|
|
func (this *OrganizesController) List() {
|
|
|
page := this.GetPageInfoForm()
|
|
page := this.GetPageInfoForm()
|
|
|
svc := organize.GetOrganizeService(utils.DBE)
|
|
svc := organize.GetOrganizeService(utils.DBE)
|
|
|
- where := " ( Createuserid=" + this.User.Id + " or id = " + this.User.DepartmentId + ")"
|
|
|
|
|
|
|
+ topid := svc.GetMyUnitDepartmentId(this.User.DepartmentId)
|
|
|
|
|
+ depids := svc.GetAllChildById(topid)
|
|
|
|
|
+ where := "( Createuserid=" + this.User.Id + " or id in (" + depids + "))"
|
|
|
keyword := this.GetString("keyword")
|
|
keyword := this.GetString("keyword")
|
|
|
parentid := this.GetString("parentid")
|
|
parentid := this.GetString("parentid")
|
|
|
IsInnerOrganize := this.GetString("IsInnerOrganize")
|
|
IsInnerOrganize := this.GetString("IsInnerOrganize")
|
|
@@ -93,7 +95,9 @@ func (this *OrganizesController) Detailed() {
|
|
|
func (this *OrganizesController) Listbandparentname() {
|
|
func (this *OrganizesController) Listbandparentname() {
|
|
|
page := this.GetPageInfoForm()
|
|
page := this.GetPageInfoForm()
|
|
|
svc := organize.GetOrganizeService(utils.DBE)
|
|
svc := organize.GetOrganizeService(utils.DBE)
|
|
|
- where := "( a.Createuserid=" + this.User.Id + " or a.id = " + this.User.DepartmentId + ")"
|
|
|
|
|
|
|
+ topid := svc.GetMyUnitDepartmentId(this.User.DepartmentId)
|
|
|
|
|
+ depids := svc.GetAllChildById(topid)
|
|
|
|
|
+ where := "( a.Createuserid=" + this.User.Id + " or a.id in (" + depids + "))"
|
|
|
keyword := this.GetString("keyword")
|
|
keyword := this.GetString("keyword")
|
|
|
parentid := this.GetString("parentid")
|
|
parentid := this.GetString("parentid")
|
|
|
IsInnerOrganize := this.GetString("IsInnerOrganize")
|
|
IsInnerOrganize := this.GetString("IsInnerOrganize")
|