|
@@ -1346,6 +1346,8 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
if (CollUtil.isNotEmpty(deviceIdGoodsMap)) {
|
|
|
List<GoodsDeviceDto.Vo> goodsDevice = deviceIdGoodsMap.get(dId);
|
|
|
if (CollUtil.isNotEmpty(goodsDevice)) {
|
|
|
+ //过滤商品id为1 和 2的商品
|
|
|
+ goodsDevice = goodsDevice.stream().filter(g -> g.getGoodsId() != 1 && g.getGoodsId() != 2).collect(Collectors.toList());
|
|
|
device.setOnSaleNum(goodsDevice.stream().mapToInt(GoodsDeviceDto.Vo::getStock).sum());
|
|
|
device.setFillNum(goodsDevice.stream().mapToInt(GoodsDeviceDto.Vo::getFillCount).sum());
|
|
|
}
|
|
@@ -1879,8 +1881,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
.eq(DeviceInfo::getActiveState, DeviceActiveStateEnum.TRUE.getCode())
|
|
|
.eq(DeviceInfo::getBusyState, EnumDeviceBusyStatus.N_1.getCode())
|
|
|
.eq(DeviceInfo::getShowStatus, true)
|
|
|
- .eq(DeviceInfo::getFreezeStatus, EnumDeviceFreezeStatus.N_1.getCode())
|
|
|
- ;
|
|
|
+ .eq(DeviceInfo::getFreezeStatus, EnumDeviceFreezeStatus.N_1.getCode());
|
|
|
List<DeviceInfo> list = list(lqw);
|
|
|
if (!Emptys.check(list)) {
|
|
|
return R.ok(new ArrayList<>());
|