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