refactor(location): 重命名binService变量以提高代码可读性
- 将binService重命名为wmsBinService以符合命名规范 - 更新服务调用以使用新的变量名 - 保持原有业务逻辑不变
This commit is contained in:
parent
31b7c35127
commit
258508a7cf
|
|
@ -45,7 +45,7 @@ public class LocationTransferController extends BaseController {
|
|||
private IWmsQrCodeMasterService qrCodeMasterService;
|
||||
|
||||
@Resource
|
||||
private IWmsBinService binService;
|
||||
private IWmsBinService wmsBinService;
|
||||
|
||||
@Resource
|
||||
private IWmsWarehouseService warehouseService;
|
||||
|
|
@ -122,7 +122,7 @@ public class LocationTransferController extends BaseController {
|
|||
.collect(Collectors.toList()).size();
|
||||
VUtil.trueThrowBusinessError(count > 0).throwMessage("存在相同储位的二维码");
|
||||
|
||||
WmsBin wmsBin = binService.lambdaQuery().eq(WmsBin::getNo, request.getBinLocation())
|
||||
WmsBin wmsBin = wmsBinService.lambdaQuery().eq(WmsBin::getNo, request.getBinLocation())
|
||||
.one();
|
||||
VUtil.trueThrowBusinessError(ObjectUtil.isNull(wmsBin)).throwMessage("无效的储位");
|
||||
WmsWarehouse wmsWarehouse = warehouseService.lambdaQuery().eq(WmsWarehouse::getId, wmsBin.getWarehouseId())
|
||||
|
|
|
|||
Loading…
Reference in New Issue