功能优化

This commit is contained in:
mashuai 2025-01-23 09:50:35 +08:00
parent 6a66e48eab
commit 44a4c0d4a1
1 changed files with 7 additions and 2 deletions

View File

@ -38,6 +38,10 @@ public class ComplexQueryController extends BaseController {
@GetMapping("/getRetainedEquipmentList")
public AjaxResult getRetainedEquipmentList(RetainedEquipmentInfo bean) {
bean.setIsExport(1);
if (bean.getIsApp() != null && bean.getIsApp() == 1) {
List<RetainedEquipmentInfo> pageList = complexQueryService.getRetainedEquipmentList(bean);
return AjaxResult.success(pageList);
}
startPage();
List<RetainedEquipmentInfo> pageList = complexQueryService.getRetainedEquipmentList(bean);
return AjaxResult.success(getDataTable(pageList));
@ -93,9 +97,10 @@ public class ComplexQueryController extends BaseController {
@ApiOperation(value = "综合查询--查询在库机具设备详情")
@GetMapping("/getStorageInfoList")
public AjaxResult getStorageInfoList(StorageInfo bean) {
startPage();
Integer pageIndex = Convert.toInt(ServletUtils.getParameter("pageNum"), 1);
Integer pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10);
List<StorageInfo> list = complexQueryService.getMaCodeList(bean);
return AjaxResult.success(getDataTable(list));
return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, list));
}
/**