|
@@ -13,6 +13,7 @@ import com.fire.admin.service.ChannelProductService;
|
|
|
import com.fire.admin.service.SupplierService;
|
|
|
import com.fire.common.exception.BaseException;
|
|
|
import com.fire.dto.ChannelInfo;
|
|
|
+import com.fire.dto.ChannelSupplier;
|
|
|
import com.fire.dto.FireProductInfo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -42,7 +43,7 @@ public class ChannelInfoServiceImpl extends ServiceImpl<ChannelInfoMapper, Chann
|
|
|
public IPage<ChannelInfo> getChannelList(ChannelPageParam channelPageParam) {
|
|
|
LambdaQueryWrapper<ChannelInfo> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
lambdaQueryWrapper.eq(channelPageParam.getChannelId() != null, ChannelInfo::getChannelId, channelPageParam.getChannelId())
|
|
|
- .eq(channelPageParam.getSupplierId() != null, ChannelInfo::getSupplierId, channelPageParam.getSupplierId())
|
|
|
+ .eq(channelPageParam.getRelationId() != null, ChannelInfo::getRelationId, channelPageParam.getRelationId())
|
|
|
.like(channelPageParam.getChannelName() != null, ChannelInfo::getChannelName, channelPageParam.getChannelName())
|
|
|
.eq(ChannelInfo::getIsDelete, 0);
|
|
|
IPage<ChannelInfo> channelInfoList = baseMapper.selectPage(channelPageParam, lambdaQueryWrapper);
|
|
@@ -56,6 +57,11 @@ public class ChannelInfoServiceImpl extends ServiceImpl<ChannelInfoMapper, Chann
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<ChannelSupplier> getSupplierInfo() {
|
|
|
+ return supplierService.getSupplierInfo();
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<FireProductInfo> getChannelProduct(Integer operator) {
|
|
|
List<FireProductInfo> fireProductInfos = new LambdaQueryChainWrapper<>(fireProductMapper).eq(operator != null, FireProductInfo::getOperator, operator).list();
|
|
@@ -89,6 +95,7 @@ public class ChannelInfoServiceImpl extends ServiceImpl<ChannelInfoMapper, Chann
|
|
|
if (result > 0) {
|
|
|
// TODO: 2021/5/24 向MQ推送消息
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|