|
@@ -27,6 +27,7 @@ import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.wrapper.IWrapper;
|
|
|
import com.ruoyi.system.service.ISysUserService;
|
|
|
+import com.ruoyi.system.utils.UserUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -65,10 +66,7 @@ public class PackDetailServiceImpl extends ServiceImpl<PackDetailMapper, PackDet
|
|
|
@Override
|
|
|
public Page<PackDetailVo> getPage(PackDetailSelectDto dto) {
|
|
|
IWrapper<PackDetail> 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{
|
|
@@ -76,7 +74,7 @@ public class PackDetailServiceImpl extends ServiceImpl<PackDetailMapper, PackDet
|
|
|
if (authIdList.size() == 0) {
|
|
|
return new Page<>();
|
|
|
}
|
|
|
- wrapper.in("t1", Contract::getBuyCorporationId, authIdList);
|
|
|
+ wrapper.in("pd.customerIds", authIdList);
|
|
|
return pageCommon(dto, wrapper);
|
|
|
}
|
|
|
}
|