|
|
|
@ -69,15 +69,17 @@ public class StorageController {
|
|
|
|
|
@Operation(summary = "更新入/出库")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('biz:storage:update')")
|
|
|
|
|
public CommonResult<Boolean> updateStorage(@Valid @RequestBody StorageSaveReqVO updateReqVO) {
|
|
|
|
|
try {
|
|
|
|
|
storageService.updateStorage(updateReqVO);
|
|
|
|
|
return success(true);
|
|
|
|
|
}catch (UnexpectedRollbackException ex){
|
|
|
|
|
return success(true);
|
|
|
|
|
}catch (Exception ex){
|
|
|
|
|
throw ex;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// try {
|
|
|
|
|
// storageService.updateStorage(updateReqVO);
|
|
|
|
|
// return success(true);
|
|
|
|
|
// }catch (UnexpectedRollbackException ex){
|
|
|
|
|
// return success(true);
|
|
|
|
|
// }catch (Exception ex){
|
|
|
|
|
// throw ex;
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
storageService.updateStorage(updateReqVO);
|
|
|
|
|
return success(true);
|
|
|
|
|
}
|
|
|
|
|
@PutMapping("/update-status")
|
|
|
|
|
@Operation(summary = "更新入/出库")
|
|
|
|
|