Commit e3b6a67f authored by unset's avatar unset

添加意见反馈添加信息

parent 5b971842
......@@ -95,8 +95,11 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
//报名费回调路径
//临时处理
Map<String, Dictionary> dictionaryMap = dictionaryBiz.getAll4Map();
Integer demotion = Integer.valueOf(dictionaryMap.get(UNIVERSAL_PAY + "_" + PAY_DEMOTION).getDetail());
Dictionary dictionaryMap = dictionaryBiz.findDictionaryByTypeAndCode(UNIVERSAL_PAY, PAY_DEMOTION);
Integer demotion = 0;
if (dictionaryMap != null && StringUtils.isNotBlank(dictionaryMap.getDetail())) {
demotion = Integer.parseInt(dictionaryMap.getDetail());
}
amount = amount / demotion;
if (amount <= 0) {
amount = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment