This commit is contained in:
hayu 2026-01-22 15:31:14 +08:00
parent d83f760625
commit c2a91cd37f
3 changed files with 14 additions and 14 deletions

View File

@ -217,9 +217,9 @@ public class ComplexQueryController extends BaseController {
@ApiOperation(value = "综合查询--查询新购待入库设备详情") @ApiOperation(value = "综合查询--查询新购待入库设备详情")
@GetMapping("/getPurchaseRecordList") @GetMapping("/getPurchaseRecordList")
public AjaxResult getPurchaseRecordList(PurchaseInputInfo bean) { public AjaxResult getPurchaseRecordList(PurchaseInputInfo bean) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
bean.setCompanyId(deptId); bean.setCompanyId(deptId);
startPage();
List<PurchaseInputInfo> list = complexQueryService.getPurchaseRecordList(bean); List<PurchaseInputInfo> list = complexQueryService.getPurchaseRecordList(bean);
return AjaxResult.success(getDataTable(list)); return AjaxResult.success(getDataTable(list));
} }
@ -247,9 +247,9 @@ public class ComplexQueryController extends BaseController {
@ApiOperation(value = "综合查询--查询修饰待入库设备详情") @ApiOperation(value = "综合查询--查询修饰待入库设备详情")
@GetMapping("/getRepairInputList") @GetMapping("/getRepairInputList")
public AjaxResult getRepairInputList(RepairInputRecord bean) { public AjaxResult getRepairInputList(RepairInputRecord bean) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
bean.setCompanyId(deptId); bean.setCompanyId(deptId);
startPage();
List<RepairInputRecord> list = complexQueryService.getRepairInputList(bean); List<RepairInputRecord> list = complexQueryService.getRepairInputList(bean);
return AjaxResult.success(getDataTable(list)); return AjaxResult.success(getDataTable(list));
} }
@ -500,9 +500,9 @@ public class ComplexQueryController extends BaseController {
@ApiOperation(value = "综合查询--机具库存个人查询") @ApiOperation(value = "综合查询--机具库存个人查询")
@GetMapping("/getPersonNum") @GetMapping("/getPersonNum")
public AjaxResult getPersonNum(RetainedEquipmentInfo bean) { public AjaxResult getPersonNum(RetainedEquipmentInfo bean) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
bean.setCompanyId(Math.toIntExact(deptId)); bean.setCompanyId(Math.toIntExact(deptId));
startPage();
List<RetainedEquipmentInfo> pageList = complexQueryService.getPersonNum(bean); List<RetainedEquipmentInfo> pageList = complexQueryService.getPersonNum(bean);
return AjaxResult.success(getDataTable(pageList)); return AjaxResult.success(getDataTable(pageList));
} }

View File

@ -143,9 +143,9 @@ public class RepairAuditDetailsController extends BaseController {
@ApiOperation("查看维修记录") @ApiOperation("查看维修记录")
@GetMapping("/getRepairRecord") @GetMapping("/getRepairRecord")
public TableDataInfo getRepairRecord(RepairAuditDetails repairAuditDetails) { public TableDataInfo getRepairRecord(RepairAuditDetails repairAuditDetails) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
repairAuditDetails.setCompanyId(Math.toIntExact(deptId)); repairAuditDetails.setCompanyId(Math.toIntExact(deptId));
startPage();
List<RepairRecord> list = repairAuditDetailsService.getRepairRecord(repairAuditDetails); List<RepairRecord> list = repairAuditDetailsService.getRepairRecord(repairAuditDetails);
return getDataTable(list); return getDataTable(list);
} }
@ -156,9 +156,9 @@ public class RepairAuditDetailsController extends BaseController {
@ApiOperation("查看配件记录") @ApiOperation("查看配件记录")
@GetMapping("/getPartRecord") @GetMapping("/getPartRecord")
public TableDataInfo getPartRecord(RepairAuditDetails repairAuditDetails) { public TableDataInfo getPartRecord(RepairAuditDetails repairAuditDetails) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
repairAuditDetails.setCompanyId(Math.toIntExact(deptId)); repairAuditDetails.setCompanyId(Math.toIntExact(deptId));
startPage();
List<RepairPart> list = repairAuditDetailsService.getPartRecord(repairAuditDetails); List<RepairPart> list = repairAuditDetailsService.getPartRecord(repairAuditDetails);
return getDataTable(list); return getDataTable(list);
} }
@ -186,9 +186,9 @@ public class RepairAuditDetailsController extends BaseController {
@RequiresPermissions("repair:details:list") @RequiresPermissions("repair:details:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(RepairAuditDetails repairAuditDetails) { public TableDataInfo list(RepairAuditDetails repairAuditDetails) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
repairAuditDetails.setCompanyId(Math.toIntExact(deptId)); repairAuditDetails.setCompanyId(Math.toIntExact(deptId));
startPage();
List<RepairAuditDetails> list = repairAuditDetailsService.selectRepairAuditDetailsList(repairAuditDetails); List<RepairAuditDetails> list = repairAuditDetailsService.selectRepairAuditDetailsList(repairAuditDetails);
return getDataTable(list); return getDataTable(list);
} }

View File

@ -89,9 +89,9 @@ public class RepairController extends BaseController {
@GetMapping("/getDetailsList") @GetMapping("/getDetailsList")
//@RequiresPermissions(value = "repair:manage:list") //@RequiresPermissions(value = "repair:manage:list")
public TableDataInfo getDetailsList(RepairPartDetails bean) { public TableDataInfo getDetailsList(RepairPartDetails bean) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
bean.setCompanyId(deptId); bean.setCompanyId(deptId);
startPage();
List<RepairPartDetails> list = service.getDetailsList(bean); List<RepairPartDetails> list = service.getDetailsList(bean);
return getDataTable(list); return getDataTable(list);
} }
@ -106,9 +106,9 @@ public class RepairController extends BaseController {
@GetMapping("/getDetailsListApp") @GetMapping("/getDetailsListApp")
//@RequiresPermissions(value = "repair:manage:list") //@RequiresPermissions(value = "repair:manage:list")
public TableDataInfo getDetailsListApp(RepairPartDetails bean) { public TableDataInfo getDetailsListApp(RepairPartDetails bean) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
bean.setCompanyId(deptId); bean.setCompanyId(deptId);
startPage();
List<RepairPartDetails> list = service.getDetailsListApp(bean); List<RepairPartDetails> list = service.getDetailsListApp(bean);
return getDataTable(list); return getDataTable(list);
} }
@ -317,9 +317,9 @@ public class RepairController extends BaseController {
@GetMapping("getRepairedList") @GetMapping("getRepairedList")
//@RequiresPermissions("warehousing:repair:list") //@RequiresPermissions("warehousing:repair:list")
public TableDataInfo getRepairedList(RepairInputDetailsVo dto) { public TableDataInfo getRepairedList(RepairInputDetailsVo dto) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
dto.setCompanyId(deptId); dto.setCompanyId(deptId);
startPage();
List<RepairInputDetailsVo> list = service.getRepairedList(dto); List<RepairInputDetailsVo> list = service.getRepairedList(dto);
return getDataTable(list); return getDataTable(list);
} }
@ -328,9 +328,9 @@ public class RepairController extends BaseController {
@GetMapping("getRepairedDetailList") @GetMapping("getRepairedDetailList")
//@RequiresPermissions("warehousing:repair:list") //@RequiresPermissions("warehousing:repair:list")
public TableDataInfo getRepairedDetailList(RepairInputDetailsVo dto) { public TableDataInfo getRepairedDetailList(RepairInputDetailsVo dto) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
dto.setCompanyId(deptId); dto.setCompanyId(deptId);
startPage();
List<RepairInputDetailsVo> list = service.getRepairedDetailList(dto); List<RepairInputDetailsVo> list = service.getRepairedDetailList(dto);
return getDataTable(list); return getDataTable(list);
} }
@ -416,9 +416,9 @@ public class RepairController extends BaseController {
@GetMapping("/getRepairInspection") @GetMapping("/getRepairInspection")
public TableDataInfo getRepairInspection(RepairInspection dto) { public TableDataInfo getRepairInspection(RepairInspection dto) {
try { try {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
dto.setCompanyId(deptId); dto.setCompanyId(deptId);
startPage();
List<RepairInspection> list = service.getRepairInspection(dto); List<RepairInspection> list = service.getRepairInspection(dto);
return getDataTable(list); return getDataTable(list);
} catch (Exception e) { } catch (Exception e) {
@ -447,9 +447,9 @@ public class RepairController extends BaseController {
@GetMapping("/getTestRecord") @GetMapping("/getTestRecord")
public TableDataInfo getTestRecord(TestRecord dto) { public TableDataInfo getTestRecord(TestRecord dto) {
try { try {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
dto.setCompanyId(deptId); dto.setCompanyId(deptId);
startPage();
List<TestRecord> list = service.getTestRecord(dto); List<TestRecord> list = service.getTestRecord(dto);
return getDataTable(list); return getDataTable(list);
} catch (Exception e) { } catch (Exception e) {
@ -494,9 +494,9 @@ public class RepairController extends BaseController {
@ApiOperation(value = "查询在修工程维修列表") @ApiOperation(value = "查询在修工程维修列表")
@GetMapping("/getRepairProjectList") @GetMapping("/getRepairProjectList")
public AjaxResult getRepairProjectList(RepairProjectInfo bean) { public AjaxResult getRepairProjectList(RepairProjectInfo bean) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
bean.setCompanyId(deptId); bean.setCompanyId(deptId);
startPage();
List<RepairProjectInfo> list = service.getRepairProjectList(bean); List<RepairProjectInfo> list = service.getRepairProjectList(bean);
return AjaxResult.success(getDataTable(list)); return AjaxResult.success(getDataTable(list));
} }
@ -525,9 +525,9 @@ public class RepairController extends BaseController {
@ApiOperation(value = "获取配件查询列表--分页") @ApiOperation(value = "获取配件查询列表--分页")
@GetMapping("/getPartUsingList") @GetMapping("/getPartUsingList")
public TableDataInfo getPartUsingList(PartDetails bean) { public TableDataInfo getPartUsingList(PartDetails bean) {
startPage();
Long deptId = typeService.getUserDeptId(); Long deptId = typeService.getUserDeptId();
bean.setCompanyId(deptId); bean.setCompanyId(deptId);
startPage();
List<PartDetails> list = service.getPartUsingList(bean); List<PartDetails> list = service.getPartUsingList(bean);
return getDataTable(list); return getDataTable(list);
} }