md
This commit is contained in:
parent
bf91ab29ab
commit
a42263827c
@ -1328,18 +1328,28 @@ public class EmisCommissionProfitServiceImpl extends EmisBaseService implements
|
|||||||
|
|
||||||
String calcExprStr="";
|
String calcExprStr="";
|
||||||
for (EmisCommissionExpression exprItem : exprList) {
|
for (EmisCommissionExpression exprItem : exprList) {
|
||||||
log.info("计算项目表达式:" + JSONObject.toJSONString(exprItem));
|
|
||||||
String calcExp = exprItem.getCalculateExpression();
|
|
||||||
double profitMoney = 0.0D;
|
double profitMoney = 0.0D;
|
||||||
// 按柜内票数
|
|
||||||
if ("5".equals(quoteItem.getCalcType())) {
|
if (exprItem.getStartWeight().doubleValue() < siteBatch.getTotalWaybillQty().doubleValue()
|
||||||
calcExprStr = calcExp.replaceAll("w", siteBatch.getTotalWaybillQty().toString())
|
&& exprItem.getEndWeight().doubleValue() >= siteBatch.getTotalWaybillQty().doubleValue()
|
||||||
.replaceAll("s", exprItem.getInitialWeight().toString())
|
) {
|
||||||
.replaceAll("d", exprItem.getAdditionalWeight().toString());
|
log.info("计算项目表达式:" + JSONObject.toJSONString(exprItem));
|
||||||
log.info("按柜内票数:计算公式:" + calcExprStr + ",按柜内票数:"+siteBatch.getTotalWaybillQty());
|
String calcExp = exprItem.getCalculateExpression();
|
||||||
profitMoney = Double.valueOf(AviatorEvaluator.execute(calcExprStr).toString());
|
|
||||||
|
// 按柜内票数
|
||||||
|
if ("5".equals(quoteItem.getCalcType())) {
|
||||||
|
calcExprStr = calcExp.replaceAll("w", siteBatch.getTotalWaybillQty().toString())
|
||||||
|
.replaceAll("s", exprItem.getInitialWeight().toString())
|
||||||
|
.replaceAll("d", exprItem.getAdditionalWeight().toString());
|
||||||
|
log.info("按柜内票数:计算公式:" + calcExprStr + ",按柜内票数:"+siteBatch.getTotalWaybillQty());
|
||||||
|
profitMoney = Double.valueOf(AviatorEvaluator.execute(calcExprStr).toString());
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 插入参与分成人员
|
// 插入参与分成人员
|
||||||
String empName=quoteItem.getEmpName();
|
String empName=quoteItem.getEmpName();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user