更新0926
This commit is contained in:
parent
b5771bd801
commit
1982dde0d3
@ -1,6 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.inspection.controller.admin;
|
package cn.iocoder.yudao.module.inspection.controller.admin;
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.iocoder.yudao.common.SystemEnum;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
import cn.iocoder.yudao.module.inspection.entity.InspectionBusinessChannel;
|
import cn.iocoder.yudao.module.inspection.entity.InspectionBusinessChannel;
|
||||||
import cn.iocoder.yudao.module.inspection.service.InspectionBusinessChannelService;
|
import cn.iocoder.yudao.module.inspection.service.InspectionBusinessChannelService;
|
||||||
@ -27,6 +28,7 @@ public class InspectionBusinessChannelController {
|
|||||||
return CommonResult.success(inspectionBusinessChannelService.list(Wrappers.<InspectionBusinessChannel>lambdaQuery()
|
return CommonResult.success(inspectionBusinessChannelService.list(Wrappers.<InspectionBusinessChannel>lambdaQuery()
|
||||||
.eq(ObjectUtil.isNotEmpty(channel.getType()), InspectionBusinessChannel::getType, channel.getType())
|
.eq(ObjectUtil.isNotEmpty(channel.getType()), InspectionBusinessChannel::getType, channel.getType())
|
||||||
.like(ObjectUtil.isNotEmpty(channel.getName()), InspectionBusinessChannel::getName, channel.getName())
|
.like(ObjectUtil.isNotEmpty(channel.getName()), InspectionBusinessChannel::getName, channel.getName())
|
||||||
|
.eq(InspectionBusinessChannel::getSystemCode, SystemEnum.INSPECTION.getCode())
|
||||||
.orderByAsc(InspectionBusinessChannel::getSort)));
|
.orderByAsc(InspectionBusinessChannel::getSort)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.inspection.service.impl;
|
package cn.iocoder.yudao.module.inspection.service.impl;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.common.SystemEnum;
|
||||||
import cn.iocoder.yudao.module.inspection.entity.InspectionBusinessChannel;
|
import cn.iocoder.yudao.module.inspection.entity.InspectionBusinessChannel;
|
||||||
import cn.iocoder.yudao.module.inspection.mapper.InspectionBusinessChannelMapper;
|
import cn.iocoder.yudao.module.inspection.mapper.InspectionBusinessChannelMapper;
|
||||||
import cn.iocoder.yudao.module.inspection.service.InspectionBusinessChannelService;
|
import cn.iocoder.yudao.module.inspection.service.InspectionBusinessChannelService;
|
||||||
@ -18,7 +19,8 @@ public class InspectionBusinessChannelServiceImpl extends ServiceImpl<Inspection
|
|||||||
@Override
|
@Override
|
||||||
public List<InspectionBusinessChannel> getChannelTree() {
|
public List<InspectionBusinessChannel> getChannelTree() {
|
||||||
// 查询所有业务渠道(父节点)
|
// 查询所有业务渠道(父节点)
|
||||||
return this.list();
|
return this.list(Wrappers.<InspectionBusinessChannel>lambdaQuery()
|
||||||
|
.eq(InspectionBusinessChannel::getSystemCode, SystemEnum.INSPECTION.getCode()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user