|
|
@ -25,6 +25,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.logpm.basic.entity.BasicMaterialEntity; |
|
|
|
import com.logpm.basic.entity.BasicMaterialEntity; |
|
|
|
import com.logpm.basic.feign.IBasicMaterialClient; |
|
|
|
import com.logpm.basic.feign.IBasicMaterialClient; |
|
|
|
import com.logpm.basicdata.entity.BasicdataClientEntity; |
|
|
|
import com.logpm.basicdata.entity.BasicdataClientEntity; |
|
|
|
|
|
|
|
import com.logpm.basicdata.entity.BasicdataClientUserEntity; |
|
|
|
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
|
|
|
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
|
|
|
import com.logpm.basicdata.feign.IBasicdataClientClient; |
|
|
|
import com.logpm.basicdata.feign.IBasicdataClientClient; |
|
|
|
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
|
|
|
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
|
|
@ -366,10 +367,10 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi |
|
|
|
DistributionStockListEntity distributionStockListEntity = JSONObject.parseObject(JSONObject.toJSONString(distributionStockList), DistributionStockListEntity.class); |
|
|
|
DistributionStockListEntity distributionStockListEntity = JSONObject.parseObject(JSONObject.toJSONString(distributionStockList), DistributionStockListEntity.class); |
|
|
|
|
|
|
|
|
|
|
|
// 得到当前登录用户的Id
|
|
|
|
// 得到当前登录用户的Id
|
|
|
|
List<BasicdataClientEntity> basicdataClientUserEntityListByUserIds = basicdataClientClient.getBasicdataClientUserEntityListByUserId(AuthUtil.getUserId()); |
|
|
|
List<BasicdataClientUserEntity> basicdataClientUserEntityListByUserIds = basicdataClientClient.getBasicdataClientUserEntityListByUserId(AuthUtil.getUserId()); |
|
|
|
List clientIds =null; |
|
|
|
List clientIds =null; |
|
|
|
if(Func.isNotEmpty(basicdataClientUserEntityListByUserIds)){ |
|
|
|
if(Func.isNotEmpty(basicdataClientUserEntityListByUserIds)){ |
|
|
|
clientIds = basicdataClientUserEntityListByUserIds.stream().map(BaseEntity::getId).collect(Collectors.toList()); |
|
|
|
clientIds = basicdataClientUserEntityListByUserIds.stream().map(BasicdataClientUserEntity::getClientId).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
IPage<DistributionStockListVO> page1= baseMapper.pageClinet(page,distributionStockListEntity,clientIds); |
|
|
|
IPage<DistributionStockListVO> page1= baseMapper.pageClinet(page,distributionStockListEntity,clientIds); |
|
|
|
return page1; |
|
|
|
return page1; |
|
|
|