skyouc
2025-07-07 2a24c69b830d9dc97a8673f5f69418e9f95f3e1b
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/strategy/WithdrawalService.java
@@ -1,16 +1,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);
    }
}
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);
    }
}