|
@@ -27,7 +27,7 @@ public class OrderFeeCalculatePlan1 extends DataFunction {
|
|
|
boolean isaccumulation;
|
|
boolean isaccumulation;
|
|
|
@Param(paramname = "分摊方式",issystem = true, remarks = "分摊方式(订货数量/订货金额,在组合计算方式下,在订单中同费用方案商品明细行中按比例分摊)")
|
|
@Param(paramname = "分摊方式",issystem = true, remarks = "分摊方式(订货数量/订货金额,在组合计算方式下,在订单中同费用方案商品明细行中按比例分摊)")
|
|
|
String apportiontype;
|
|
String apportiontype;
|
|
|
- @Param(paramname = "商品字段",issystem = true, remarks = "商品字段(订货数量、订货重量、订货金额)")
|
|
|
|
|
|
|
+ @Param(paramname = "计算依据",issystem = true, remarks = "计算依据(订货数量、订货重量、订货金额)")
|
|
|
String itemfield;
|
|
String itemfield;
|
|
|
@Param(paramname = "满足条件",issystem = true, remarks = "满足条件(数值,大于等于某个值时产生费用)")
|
|
@Param(paramname = "满足条件",issystem = true, remarks = "满足条件(数值,大于等于某个值时产生费用)")
|
|
|
String condition;
|
|
String condition;
|
|
@@ -41,15 +41,14 @@ public class OrderFeeCalculatePlan1 extends DataFunction {
|
|
|
@Override
|
|
@Override
|
|
|
public int action() throws YosException {
|
|
public int action() throws YosException {
|
|
|
|
|
|
|
|
- Rows rows = queryDataFunction(controller, sa_orderid, "OrderFeeCalculatePlan1");
|
|
|
|
|
|
|
+ Rows rows = queryDataFunction(controller, sa_orderid, this.getClass().getSimpleName());
|
|
|
if (rows.isEmpty()) {
|
|
if (rows.isEmpty()) {
|
|
|
return super.action();
|
|
return super.action();
|
|
|
}
|
|
}
|
|
|
for (Row row : rows) {
|
|
for (Row row : rows) {
|
|
|
System.err.println(row.getString("itemid"));
|
|
System.err.println(row.getString("itemid"));
|
|
|
}
|
|
}
|
|
|
- System.err.println("unitfee:" + unitfee);
|
|
|
|
|
- System.err.println("ordertype:" + ordertype);
|
|
|
|
|
|
|
+ System.err.println("siteid:" + siteid);
|
|
|
System.err.println("sa_orderid:" + sa_orderid);
|
|
System.err.println("sa_orderid:" + sa_orderid);
|
|
|
|
|
|
|
|
return super.action();
|
|
return super.action();
|