refactor(service): 将NoScanningBaseControllerService中的方法访问权限从protected改为public

- 修改existsQrCode方法的访问权限为public
- 修改quantityConsistencyCheck方法的访问权限为public
- 修改qrCodeCreateTask方法的访问权限为public
- 保持原有业务逻辑不变,仅调整方法可见性以支持外部调用
This commit is contained in:
曹鹏飞 2026-06-01 08:13:50 +08:00
parent abdfe65261
commit f9364cbaee
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ public class NoScanningBaseControllerService {
* @param materialNo 物料编号 * @param materialNo 物料编号
* @return 是否生成过二维码 * @return 是否生成过二维码
*/ */
protected boolean existsQrCode(String materialNo) { public boolean existsQrCode(String materialNo) {
return qrCodeMasterService.lambdaQuery() return qrCodeMasterService.lambdaQuery()
.eq(WmsQrCodeMaster::getMaterialCode, materialNo) .eq(WmsQrCodeMaster::getMaterialCode, materialNo)
.exists(); .exists();
@ -37,7 +37,7 @@ public class NoScanningBaseControllerService {
* @param warehouseNo 仓库编号 * @param warehouseNo 仓库编号
* @return 数量是否一致 * @return 数量是否一致
*/ */
protected boolean quantityConsistencyCheck(String materialNo, String factoryNo, String warehouseNo) { public boolean quantityConsistencyCheck(String materialNo, String factoryNo, String warehouseNo) {
BigDecimal quantityQr = qrCodeMasterService.lambdaQuery() BigDecimal quantityQr = qrCodeMasterService.lambdaQuery()
.select(WmsQrCodeMaster::getQuantity) .select(WmsQrCodeMaster::getQuantity)
.eq(WmsQrCodeMaster::getMaterialCode, materialNo) .eq(WmsQrCodeMaster::getMaterialCode, materialNo)
@ -66,7 +66,7 @@ public class NoScanningBaseControllerService {
* @param factoryNo 工厂编号 * @param factoryNo 工厂编号
* @param warehouseNo 仓库编号 * @param warehouseNo 仓库编号
*/ */
protected void qrCodeCreateTask(String materialNo,String factoryNo, String warehouseNo){ public void qrCodeCreateTask(String materialNo,String factoryNo, String warehouseNo){
if (!quantityConsistencyCheck(materialNo, factoryNo, warehouseNo)) { if (!quantityConsistencyCheck(materialNo, factoryNo, warehouseNo)) {
//TODO 给仓库负责人创建补码的待办任务 //TODO 给仓库负责人创建补码的待办任务
} }