|
@@ -237,10 +237,7 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
@Override
|
|
|
public Page<ContractVo> getPage(ContractSelectDto dto) {
|
|
|
IWrapper<Contract> wrapper = getWrapper();
|
|
|
- SysUser sysUser = iSysUserService.getById(SecurityUtils.getUserId());
|
|
|
- if(ObjectUtil.isEmpty(sysUser)){
|
|
|
- throw new ServiceException("用户异常");
|
|
|
- }
|
|
|
+ SysUser sysUser = UserUtil.getUserInfo();
|
|
|
if(StringUtils.isEmpty(sysUser.getUserCode())){//不是业务员看所有
|
|
|
return pageCommon(dto, wrapper);
|
|
|
}else{//是业务员
|
|
@@ -1271,10 +1268,7 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
ContractDocumentaryBo bo = selectData.toJavaObject(ContractDocumentaryBo.class);
|
|
|
|
|
|
IWrapper<Contract> wrapper = IWrapper.getWrapper();
|
|
|
- SysUser sysUser = iSysUserService.getById(SecurityUtils.getUserId());
|
|
|
- if(ObjectUtil.isEmpty(sysUser)){
|
|
|
- throw new ServiceException("用户异常");
|
|
|
- }
|
|
|
+ SysUser sysUser = UserUtil.getUserInfo();
|
|
|
if(StringUtils.isNotEmpty(sysUser.getUserCode())){//是业务员
|
|
|
List<Long> authIdList = customerService.getAuthIdList();
|
|
|
if (authIdList.size() == 0) {
|