refactor(location): 重命名binService变量以提高代码可读性

- 将binService重命名为wmsBinService以符合命名规范
- 更新服务调用以使用新的变量名
- 保持原有业务逻辑不变
This commit is contained in:
曹鹏飞 2026-03-03 09:34:36 +08:00
parent 31b7c35127
commit 258508a7cf
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class LocationTransferController extends BaseController {
private IWmsQrCodeMasterService qrCodeMasterService; private IWmsQrCodeMasterService qrCodeMasterService;
@Resource @Resource
private IWmsBinService binService; private IWmsBinService wmsBinService;
@Resource @Resource
private IWmsWarehouseService warehouseService; private IWmsWarehouseService warehouseService;
@ -122,7 +122,7 @@ public class LocationTransferController extends BaseController {
.collect(Collectors.toList()).size(); .collect(Collectors.toList()).size();
VUtil.trueThrowBusinessError(count > 0).throwMessage("存在相同储位的二维码"); VUtil.trueThrowBusinessError(count > 0).throwMessage("存在相同储位的二维码");
WmsBin wmsBin = binService.lambdaQuery().eq(WmsBin::getNo, request.getBinLocation()) WmsBin wmsBin = wmsBinService.lambdaQuery().eq(WmsBin::getNo, request.getBinLocation())
.one(); .one();
VUtil.trueThrowBusinessError(ObjectUtil.isNull(wmsBin)).throwMessage("无效的储位"); VUtil.trueThrowBusinessError(ObjectUtil.isNull(wmsBin)).throwMessage("无效的储位");
WmsWarehouse wmsWarehouse = warehouseService.lambdaQuery().eq(WmsWarehouse::getId, wmsBin.getWarehouseId()) WmsWarehouse wmsWarehouse = warehouseService.lambdaQuery().eq(WmsWarehouse::getId, wmsBin.getWarehouseId())