|
|
|
|
@ -140,12 +140,13 @@ public class MoldTicketManagementController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getInspectionByMoldId")
|
|
|
|
|
@Operation(summary = "根据模具Id获得点检历史记录")
|
|
|
|
|
@Parameter(name = "moldId", description = "模具Id", required = true, example = "1024")
|
|
|
|
|
@Parameter(name = "moldId", description = "模具Id", required = false, example = "1024")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:mold-ticket-management:query')")
|
|
|
|
|
public CommonResult< List<MoldTicketResultsDO>> getInspectionByMoldId(@RequestParam("moldId") Long moldId,
|
|
|
|
|
public CommonResult< List<MoldTicketResultsDO>> getInspectionByMoldId(@RequestParam(value = "moldId", required = false) Long moldId,
|
|
|
|
|
@RequestParam(value = "code", required = false) String code,
|
|
|
|
|
@RequestParam(name = "startTime",required = false) String startTime,
|
|
|
|
|
@RequestParam(name = "endTime",required = false) String endTime) {
|
|
|
|
|
List<MoldTicketResultsDO> moldTicketResultsDOList = moldticketManagementService.getInspectionByMoldId(moldId,startTime,endTime,"");
|
|
|
|
|
List<MoldTicketResultsDO> moldTicketResultsDOList = moldticketManagementService.getInspectionByMoldId(moldId, code, startTime, endTime, "");
|
|
|
|
|
return success(moldTicketResultsDOList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -160,7 +161,7 @@ public class MoldTicketManagementController {
|
|
|
|
|
HttpServletResponse response) throws IOException {
|
|
|
|
|
|
|
|
|
|
// 查询数据
|
|
|
|
|
List<MoldTicketResultsDO> results = moldticketManagementService.getInspectionByMoldId(moldId, startTime, endTime, ids);
|
|
|
|
|
List<MoldTicketResultsDO> results = moldticketManagementService.getInspectionByMoldId(moldId, null, startTime, endTime, ids);
|
|
|
|
|
|
|
|
|
|
// 转换为VO并处理数据
|
|
|
|
|
List<MoldTicketInspectionExportVO> exportVos = results.stream()
|
|
|
|
|
@ -179,12 +180,13 @@ public class MoldTicketManagementController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getMaintenanceByMoldId")
|
|
|
|
|
@Operation(summary = "根据模具Id获得保养历史记录")
|
|
|
|
|
@Parameter(name = "moldId", description = "模具Id", required = true, example = "1024")
|
|
|
|
|
@Parameter(name = "moldId", description = "模具Id", required = false, example = "1024")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:mold_ticket-management:query')")
|
|
|
|
|
public CommonResult<List<MoldTicketResultsDO>> getMaintenanceByMoldId(@RequestParam("moldId") Long moldId,
|
|
|
|
|
public CommonResult<List<MoldTicketResultsDO>> getMaintenanceByMoldId(@RequestParam(value = "moldId", required = false) Long moldId,
|
|
|
|
|
@RequestParam(value = "code", required = false) String code,
|
|
|
|
|
@RequestParam(name = "startTime",required = false) String startTime,
|
|
|
|
|
@RequestParam(name = "endTime",required = false) String endTime) {
|
|
|
|
|
List<MoldTicketResultsDO> moldticketResultsDOList = moldticketManagementService.getMaintenanceByMoldId(moldId,startTime,endTime,"");
|
|
|
|
|
List<MoldTicketResultsDO> moldticketResultsDOList = moldticketManagementService.getMaintenanceByMoldId(moldId, code, startTime, endTime, "");
|
|
|
|
|
return success(moldticketResultsDOList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -200,7 +202,7 @@ public class MoldTicketManagementController {
|
|
|
|
|
HttpServletResponse response) throws IOException {
|
|
|
|
|
|
|
|
|
|
// 查询数据
|
|
|
|
|
List<MoldTicketResultsDO> results = moldticketManagementService.getMaintenanceByMoldId(moldId, startTime, endTime, ids);
|
|
|
|
|
List<MoldTicketResultsDO> results = moldticketManagementService.getMaintenanceByMoldId(moldId, null, startTime, endTime, ids);
|
|
|
|
|
|
|
|
|
|
// 转换为VO并处理数据
|
|
|
|
|
List<MoldTicketInspectionExportVO> exportVos = results.stream()
|
|
|
|
|
@ -276,4 +278,4 @@ public class MoldTicketManagementController {
|
|
|
|
|
|
|
|
|
|
return vo;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|