@@ -23,6 +23,7 @@ import cn.com.taiji.core.repo.request.invw.InvwCardDetailsPageRequest; | |||
import cn.com.taiji.invw.dto.card.*; | |||
import cn.com.taiji.invw.dto.comm.CommExcelFileResponseDTO; | |||
import cn.com.taiji.invw.manager.AbstractInvwManager; | |||
import cn.com.taiji.invw.model.MyFinals; | |||
import cn.com.taiji.invw.model.card.InvwCardDetailsExcelModel; | |||
import cn.com.taiji.invw.tools.SourceTargetMapper; | |||
import org.apache.commons.lang3.ObjectUtils; | |||
@@ -65,7 +66,7 @@ public class InvwCardDetailsManagerImpl extends AbstractInvwManager implements I | |||
Staff staff = staffRepo.findByOpenId(findOpenIdByToken(dto.getAccessToken())); | |||
if (ObjectUtils.isNotEmpty(staff)){ | |||
pageRequest.setAgencyId(staff.getAgencyId()); | |||
if ("MANAGER".equals(staff.getIdentityType()) || "52010106004".equals(staff.getAgencyId())){ | |||
if ("MANAGER".equals(staff.getIdentityType()) || MyFinals.QTZL_AGENCY_ID.equals(staff.getAgencyId())){ | |||
pageRequest.setAgencyId(null); | |||
} | |||
} |
@@ -19,6 +19,7 @@ import cn.com.taiji.invw.dto.obu.InvwObuDetailsExportRequestDTO; | |||
import cn.com.taiji.invw.dto.comm.CommExcelFileResponseDTO; | |||
import cn.com.taiji.invw.dto.obu.*; | |||
import cn.com.taiji.invw.manager.AbstractInvwManager; | |||
import cn.com.taiji.invw.model.MyFinals; | |||
import cn.com.taiji.invw.model.obu.InvwObuDetailsExcelModel; | |||
import cn.com.taiji.invw.tools.SourceTargetMapper; | |||
import org.apache.commons.lang3.ObjectUtils; | |||
@@ -63,7 +64,7 @@ public class InvwObuDetailsManagerImpl extends AbstractInvwManager implements In | |||
Staff staff = staffRepo.findByOpenId(findOpenIdByToken(dto.getAccessToken())); | |||
if (ObjectUtils.isNotEmpty(staff)){ | |||
pageRequest.setAgencyId(staff.getAgencyId()); | |||
if ("MANAGER".equals(staff.getIdentityType()) || "52010106004".equals(staff.getAgencyId())){ | |||
if ("MANAGER".equals(staff.getIdentityType()) || MyFinals.QTZL_AGENCY_ID.equals(staff.getAgencyId())){ | |||
pageRequest.setAgencyId(null); | |||
} | |||
} |
@@ -17,4 +17,5 @@ public class MyFinals extends SysFinals { | |||
public final static int LOGIN_FAILED_EXPIRE = 5;// 分钟 | |||
public static final String TOKEN_HEADER = "Authorization"; | |||
public static final int EXPIRE_TIME_SECOND = 60; | |||
public static String QTZL_AGENCY_ID = "52010106004"; | |||
} |