Commit 6284ec5a by huluobin

decimal divide

parent 3fc75cd0
...@@ -100,7 +100,7 @@ public class AgentUserServiceImpl extends ServiceImpl<AgentUserMapper, AgentUser ...@@ -100,7 +100,7 @@ public class AgentUserServiceImpl extends ServiceImpl<AgentUserMapper, AgentUser
AgentUser agentUser = this.selectByPhone(customer.getPhone()); AgentUser agentUser = this.selectByPhone(customer.getPhone());
AgentConfig agentConfig = agentConfigMapper.selectByRechargeAmount(new BigDecimal(result.getTotalFee() / 100)); AgentConfig agentConfig = agentConfigMapper.selectByRechargeAmount(amount);
//首次充值 //首次充值
......
...@@ -106,6 +106,11 @@ public class Test { ...@@ -106,6 +106,11 @@ public class Test {
} }
} }
@org.junit.Test
public void testDivide() {
System.out.println(new BigDecimal(2 / 100));
}
@Resource @Resource
private LeisureDiscountConfigWeekMapper leisureDiscountConfigWeekMapper; private LeisureDiscountConfigWeekMapper leisureDiscountConfigWeekMapper;
@Resource @Resource
......
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