| | |
| | | public List<Device> findIdAndNameList(Device param) { |
| | | LambdaQueryWrapper<Device> wrapper = new LambdaQueryWrapper<>(param); |
| | | wrapper.select(Device::getId, Device::getName, Device::getDoorName,Device::getRegionPathName, Device::getRegionName); |
| | | if(null != param.getType() && null != param.getIsdeleted() && null != param.getHkStatus()) { |
| | | wrapper.eq(Device::getType,param.getType()) |
| | | .eq(Device::getIsdeleted,param.getIsdeleted()) |
| | | .eq(Device::getHkStatus,param.getHkStatus()); |
| | | } |
| | | wrapper.eq(null != param.getType(),Device::getType,param.getType()) |
| | | .eq(null !=param.getIsdeleted(),Device::getIsdeleted,param.getIsdeleted()) |
| | | .eq(null != param.getHkStatus(),Device::getHkStatus,param.getHkStatus()); |
| | | return deviceMapper.selectList(wrapper); |
| | | } |
| | | |