|
@@ -73,7 +73,9 @@ public class DiscountBillFormPlugin extends AbstractFormPlugin implements Plugin
|
|
|
JoinDataSet joinDataSet = planDataSet.join(comDataSet, JoinType.INNER).on("customer", "customer").select(new String[]{"customer", "planQty"}, new String[]{"qty"});
|
|
|
DataSet qtyDataSet = joinDataSet.finish();
|
|
|
|
|
|
- DataSet qtyDataSet1 = qtyDataSet.select("customer,qty as actualqty,planqty,case when round(qty / planqty, 2) >= "+completeRate+" then round(qty / planqty, 2) else 0 end as completerate");
|
|
|
+
|
|
|
+
|
|
|
+ DataSet qtyDataSet1 = qtyDataSet.select("customer, qty as actualqty, planqty, case when round(qty / planqty, 2) >= 1 then 1 else round(qty / planqty, 2) end as completerate");
|
|
|
|
|
|
|
|
|
DataSet policyDataSet_nofilter = util.getPolicyDataSet();
|