| | |
| | | import com.by4cloud.platformx.device.constant.MaxSizeContant; |
| | | import com.by4cloud.platformx.device.entity.Device; |
| | | import com.by4cloud.platformx.device.entity.DeviceInventory; |
| | | import com.by4cloud.platformx.device.entity.InvestmentPlan; |
| | | import com.by4cloud.platformx.device.service.DeviceInventoryService; |
| | | import com.by4cloud.platformx.device.service.DeviceService; |
| | | import com.by4cloud.platformx.device.service.JcMaxSizeService; |
| | |
| | | wrapper.eq(Device::getReqStatus,1); |
| | | wrapper.like(StrUtil.isNotBlank(device.getNumber()),Device::getNumber,device.getNumber()); |
| | | wrapper.like(StrUtil.isNotBlank(device.getName()),Device::getName,device.getName()); |
| | | wrapper.orderByDesc(Device::getCreateTime); |
| | | Page<Device> page1 = deviceService.page(page, wrapper); |
| | | for (Device device1 : page1.getRecords()) { |
| | | QueryWrapper<DeviceInventory> wrapper1 = new QueryWrapper<>(); |
| | |
| | | public List<Device> export(Device device,Long[] ids) { |
| | | return deviceService.list(Wrappers.lambdaQuery(device).in(ArrayUtil.isNotEmpty(ids), Device::getId, ids)); |
| | | } |
| | | |
| | | /** |
| | | * 所有设备下拉 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getDropdowmList" ) |
| | | public R getDeviceList() { |
| | | return R.ok(deviceService.list()); |
| | | } |
| | | } |