pang.jiabao
2025-03-07 dcdb2b8cf1b0c5d05900acec72c80caf3bb5616c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.zy.asrs.wms.asrs.strategy;
 
import com.zy.asrs.wms.asrs.entity.LocDetl;
import com.zy.asrs.wms.asrs.entity.Mat;
 
public class WithdrawalService {
    private WithdrawalStrategy strategy;
 
    public WithdrawalService(WithdrawalStrategy strategy) {
        this.strategy = strategy;
    }
 
    public Mat withdrawProduct(LocDetl storageLocation) {
        return strategy.selectMatStrategy(storageLocation);
    }
}