|
|
@ -58,12 +58,21 @@ public class StorageController { |
|
|
|
return ApiResponse.success(caseService.readyIntoCase(tid,caseName,barcode,page)); |
|
|
|
} |
|
|
|
|
|
|
|
// 第一版本 已入库盒列表 防止业务回滚 注释不删 |
|
|
|
// @ApiOperation("已入库盒列表") |
|
|
|
// @GetMapping("/alReadyInto") |
|
|
|
// public ApiResponse<Object> alReadyInto( |
|
|
|
// String caseName,String archiveNo,String title,String location, Pageable page |
|
|
|
// ){ |
|
|
|
// return ApiResponse.success(caseService.alReadyInto(caseName,archiveNo,title,location,page)); |
|
|
|
// } |
|
|
|
|
|
|
|
@ApiOperation("已入库盒列表") |
|
|
|
@GetMapping("/alReadyInto") |
|
|
|
public ApiResponse<Object> alReadyInto( |
|
|
|
String caseName,String archiveNo,String title,String location, Pageable page |
|
|
|
String tid, String caseName,String barcode, Pageable page |
|
|
|
){ |
|
|
|
return ApiResponse.success(caseService.alReadyInto(caseName,archiveNo,title,location,page)); |
|
|
|
return ApiResponse.success(caseService.alReadyInto(tid,caseName,barcode,page)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("初始化档案装盒信息") |
|
|
@ -81,10 +90,14 @@ public class StorageController { |
|
|
|
){ |
|
|
|
DeviceArchivesTag deviceArchivesTag = deviceArchivesTagService.findByDeviceInfoIdAndPosition(deviceId,position); |
|
|
|
if(null == deviceArchivesTag) |
|
|
|
return ApiResponse.error(ResponseStatus.Shelf_IS_NULL); |
|
|
|
return ApiResponse.error(ResponseStatus.SHEIF_IS_NULL); |
|
|
|
if(1==deviceType) |
|
|
|
ApiResponse.success(true); |
|
|
|
return ApiResponse.success(archivesService.isShelfOccupy(deviceArchivesTag.getId())); |
|
|
|
return ApiResponse.success(deviceArchivesTag); |
|
|
|
if(archivesService.isShelfOccupy(deviceArchivesTag.getId())){ |
|
|
|
return ApiResponse.success(deviceArchivesTag); |
|
|
|
}else{ |
|
|
|
return ApiResponse.error(ResponseStatus.SHEIF_OCCUPY); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("入库") |
|
|
@ -184,9 +197,12 @@ public class StorageController { |
|
|
|
@ApiOperation("外部回调-确认出入库") |
|
|
|
@AnonymousPostMapping("/externalCallback") |
|
|
|
public ApiResponse<Object> externalCallback( |
|
|
|
@Validated @RequestBody List<String> archivesIds |
|
|
|
@Validated @RequestBody String json |
|
|
|
){ |
|
|
|
return ApiResponse.success(caseService.grantConfirm(archivesIds)); |
|
|
|
JSONObject jsonObject = JSONObject.parseObject(json); |
|
|
|
String caseId = jsonObject.get("id") +""; |
|
|
|
String storageType = jsonObject.get("type")+""; |
|
|
|
return ApiResponse.success(caseService.externalCallback(caseId,storageType)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("出入库记录") |
|
|
|