|
|
|
|
@ -0,0 +1,43 @@
|
|
|
|
|
package 订单折扣与日志系统;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author hp
|
|
|
|
|
* @version 1.0
|
|
|
|
|
* @created 23-10月-2025 19:02:20
|
|
|
|
|
*/
|
|
|
|
|
public class FixedDiscount implements DiscountStrategy {
|
|
|
|
|
|
|
|
|
|
private double fixedAmount;
|
|
|
|
|
|
|
|
|
|
public FixedDiscount(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void finalize() throws Throwable {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @param fixedAmount
|
|
|
|
|
*/
|
|
|
|
|
public void FixedDiscount(fixedAmount:double fixedAmount){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @param Order order
|
|
|
|
|
*/
|
|
|
|
|
public double calculateDiscount(order:Order Order order){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @param s
|
|
|
|
|
*/
|
|
|
|
|
public double calculateDiscount(order:Order s){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}//end FixedDiscount
|