|
|
@@ -171,12 +171,12 @@ func (this *LimsCustomerpositionController) CustomerpositionTree() {
|
|
|
|
|
|
organizeSvc := organize.GetOrganizeService(utils.DBE)
|
|
|
thrunitId := organizeSvc.GetMyThrUnitDepartmentId(this.User.DepartmentId)
|
|
|
- if thrunitId == this.User.DepartmentId {
|
|
|
+ if thrunitId != strconv.Itoa(this.User.UintThirdId) {
|
|
|
Uidstring := strconv.Itoa(this.User.UnitId)
|
|
|
listorganize = organizeSvc.GetAllThirdChildByTopId(Uidstring,this.User.Id)
|
|
|
} else {
|
|
|
- where = where + " and Id = '" + thrunitId + "'"
|
|
|
- svc.GetEntitysByOrderbyWhere("Base_Organize", where, "SortCode, Id asc", &listorganize)
|
|
|
+ whereOrg := " 1=1 and Id = '" + thrunitId + "'"
|
|
|
+ svc.GetEntitysByOrderbyWhere("Base_Organize", whereOrg, "SortCode, Id asc", &listorganize)
|
|
|
}
|
|
|
|
|
|
for _, value := range listorganize {
|