@@ -40,7 +40,7 @@ public class SatisfactionManagerImpl extends AbstractCommManager implements Sati | |||
Staff staff = staffRepo.findByOpenId(findOpenIdByToken(dto.getAccessToken())); | |||
if (staff != null){ | |||
pageRequest.setAgencyId(staff.getAgencyId()); | |||
if ("SUPER_MANAGER".equals(staff.getIdentityType())){ | |||
if ("MANAGER".equals(staff.getIdentityType())){ | |||
pageRequest.setAgencyId(null); | |||
} | |||
} |
@@ -90,7 +90,7 @@ public class IssueOrderExaminePageRequest extends JpaPageableDataRequest<IssueOr | |||
if (pass == 3){//审核不通过 | |||
hql.append(" and orderStep = :orderStep", IssueOrderStep.AUDIT_FAIL); | |||
} | |||
if (!"SUPER_MANAGER".equals(identityType)){//不是超级管理员根据自己的机构查询 | |||
if (!"MANAGER".equals(identityType)){//不是管理员根据自己的机构查询 | |||
hql.append(" and agencyId = :agencyId", agencyId); | |||
} | |||
hql.append(" and insertTime >= :startTime", startTime); |
@@ -96,7 +96,7 @@ public class IssueOrderPageRequest extends JpaPageableDataRequest<IssueOrderinfo | |||
hql.append(" and insertTime <= :endTime", endTime); | |||
hql.append(" and orderStep = :orderStep", orderStep); | |||
hql.append(" and orderStatus = :orderStatus", orderStatus); | |||
if (!"SUPER_MANAGER".equals(identityType)){//不是超级管理员根据自己的机构查询 | |||
if (!"MANAGER".equals(identityType)){//不是管理员根据自己的机构查询 | |||
hql.append(" and agencyId = :agencyId", agencyId); | |||
} | |||
return hql; |