refactor(service): 将NoScanningBaseControllerService中的方法访问权限从protected改为public
- 修改existsQrCode方法的访问权限为public - 修改quantityConsistencyCheck方法的访问权限为public - 修改qrCodeCreateTask方法的访问权限为public - 保持原有业务逻辑不变,仅调整方法可见性以支持外部调用
This commit is contained in:
parent
abdfe65261
commit
f9364cbaee
|
|
@ -24,7 +24,7 @@ public class NoScanningBaseControllerService {
|
|||
* @param materialNo 物料编号
|
||||
* @return 是否生成过二维码
|
||||
*/
|
||||
protected boolean existsQrCode(String materialNo) {
|
||||
public boolean existsQrCode(String materialNo) {
|
||||
return qrCodeMasterService.lambdaQuery()
|
||||
.eq(WmsQrCodeMaster::getMaterialCode, materialNo)
|
||||
.exists();
|
||||
|
|
@ -37,7 +37,7 @@ public class NoScanningBaseControllerService {
|
|||
* @param warehouseNo 仓库编号
|
||||
* @return 数量是否一致
|
||||
*/
|
||||
protected boolean quantityConsistencyCheck(String materialNo, String factoryNo, String warehouseNo) {
|
||||
public boolean quantityConsistencyCheck(String materialNo, String factoryNo, String warehouseNo) {
|
||||
BigDecimal quantityQr = qrCodeMasterService.lambdaQuery()
|
||||
.select(WmsQrCodeMaster::getQuantity)
|
||||
.eq(WmsQrCodeMaster::getMaterialCode, materialNo)
|
||||
|
|
@ -66,7 +66,7 @@ public class NoScanningBaseControllerService {
|
|||
* @param factoryNo 工厂编号
|
||||
* @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)) {
|
||||
//TODO 给仓库负责人创建补码的待办任务
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue