|
@@ -17,12 +17,14 @@ import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.common.util.RedisUtil;
|
|
import org.jeecg.common.util.RedisUtil;
|
|
import org.jeecg.common.util.TokenUtils;
|
|
import org.jeecg.common.util.TokenUtils;
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
|
+import org.jeecg.modules.equipmentDisposal.deviceTransfer.dto.DeviceTransferItemQuery;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.entity.DeviceTransfer;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.entity.DeviceTransfer;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.entity.TransferAttachments;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.entity.TransferAttachments;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.entity.TransferItem;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.entity.TransferItem;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.service.IDeviceTransferService;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.service.IDeviceTransferService;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.service.ITransferAttachmentsService;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.service.ITransferAttachmentsService;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.service.ITransferItemService;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.service.ITransferItemService;
|
|
|
|
+import org.jeecg.modules.equipmentDisposal.deviceTransfer.vo.DeviceTransferItemVO;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.vo.DeviceTransferPage;
|
|
import org.jeecg.modules.equipmentDisposal.deviceTransfer.vo.DeviceTransferPage;
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
@@ -338,4 +340,27 @@ public class DeviceTransferController {
|
|
IPage<TransferItem> pageList = transferItemService.page(page, queryWrapper);
|
|
IPage<TransferItem> pageList = transferItemService.page(page, queryWrapper);
|
|
return Result.OK(pageList);
|
|
return Result.OK(pageList);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "设备调拨记录-调拨列表信息与设备信息组合查询", notes = "设备调拨记录-调拨列表信息与设备信息组合查询")
|
|
|
|
+ @GetMapping("/listTransferItems")
|
|
|
|
+ public Result<IPage<DeviceTransferItemVO>> listTransferItems(
|
|
|
|
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
|
+ DeviceTransferItemQuery query) {
|
|
|
|
+
|
|
|
|
+ // 禁用自动 searchCount
|
|
|
|
+ Page<DeviceTransferItemVO> page = new Page<>(pageNo, pageSize, false); // false 表示不自动 count
|
|
|
|
+
|
|
|
|
+ // 查询当前页数据
|
|
|
|
+ IPage<DeviceTransferItemVO> pagedTransferItems = deviceTransferService.getPagedTransferItems(page, query);
|
|
|
|
+
|
|
|
|
+ // 手动查询总数
|
|
|
|
+ long total = deviceTransferService.getTransferItemsCount(query);
|
|
|
|
+
|
|
|
|
+ // 设置数据与总数
|
|
|
|
+ page.setRecords(pagedTransferItems.getRecords());
|
|
|
|
+ page.setTotal(total);
|
|
|
|
+
|
|
|
|
+ return Result.OK(page);
|
|
|
|
+ }
|
|
}
|
|
}
|