Browse Source

Merge remote-tracking branch 'origin/dev' into dev

dist.1.3.0
zhaoqiaobo 6 months ago
parent
commit
c6529578ca
  1. 10
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseUpdownGoodsLogMapper.xml
  2. 28
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownGoodsLogServiceImpl.java

10
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseUpdownGoodsLogMapper.xml

@ -68,19 +68,23 @@
<where>
lwup.is_deleted = 0
<if test="param.warehouseName!=null and param.warehouseName!=''">
and ldpl.warehouse like concat('%',#{param.warehouseName},'%')
and ldpl.warehouse like concat(#{param.warehouseName},'%')
</if>
<if test="param.orderCode!=null and param.orderCode!=''">
and ldpl.order_code like concat('%',#{param.orderCode},'%')
and ldpl.order_code like concat(#{param.orderCode},'%')
</if>
<if test="param.warehouseIdList != null and @org.apache.commons.collections4.CollectionUtils@isNotEmpty(param.warehouseIdList)">
and lwup.warehouse_id in
<foreach collection="param.warehouseIdList" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
AND ldpl.warehouse_id IN
<foreach collection="param.warehouseIdList" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="param.orderPackageCode!=null and param.orderPackageCode!=''">
and ldpl.order_package_code like concat('%',#{param.orderPackageCode},'%')
and ldpl.order_package_code like concat(#{param.orderPackageCode},'%')
</if>
<if test="param.bindingType!=null and param.bindingType!=''">
and lwup.binding_type = #{param.bindingType}

28
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownGoodsLogServiceImpl.java

@ -62,17 +62,23 @@ public class WarehouseUpdownGoodsLogServiceImpl extends BaseServiceImpl<Warehous
@Override
public IPage<WarehouseUpdownGoodsLogVO> selectWarehouseUpdownGoodsLogPage(IPage<WarehouseUpdownGoodsLogVO> page, WarehouseUpdownGoodsLogVO warehouseUpdownGoodsLog) {
//获取当前登录人仓库
List<BasicdataWarehouseEntity> myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse();
List<Long> collect = myWatchWarehouse.stream()
.map(BasicdataWarehouseEntity::getId)
.collect(Collectors.toList());
warehouseUpdownGoodsLog.setWarehouseIdList(collect);
//查询操作员
// if (null != warehouseUpdownGoodsLog.getCreateUserName()){
// R<List<User>> listR = userSearchClient.listByName(warehouseUpdownGoodsLog.getCreateUserName());
// log.info("listR>>>>{}",listR);
// }
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse();
if(ObjectUtils.isEmpty(myCurrentWarehouse)){
List<BasicdataWarehouseEntity> myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse();
List<Long> collect = myWatchWarehouse.stream()
.map(BasicdataWarehouseEntity::getId)
.collect(Collectors.toList());
warehouseUpdownGoodsLog.setWarehouseIdList(collect);
}else{
//获取当前登录人仓库
List<Long> collect = Arrays.asList(myCurrentWarehouse.getId());
warehouseUpdownGoodsLog.setWarehouseIdList(collect);
}
List<WarehouseUpdownGoodsLogVO> warehouseUpdownGoodsLogVOS = baseMapper.selectWarehouseUpdownGoodsLogPage(page, warehouseUpdownGoodsLog);
return page.setRecords(warehouseUpdownGoodsLogVOS);
}

Loading…
Cancel
Save