Commit 095fbb6d by huluobin

update

parent 142ee58c
......@@ -181,6 +181,7 @@ public class CustomerBalanceServiceImpl extends ServiceImpl<CustomerBalanceMappe
CustomerBalance targetCustomerBalance = customerBalanceMapper.getByCustomerId(targetCustomer.getId());
if (targetCustomerBalance == null) {
targetCustomerBalance = new CustomerBalance();
targetCustomerBalance.setBalance(0);
targetCustomerBalance.setCustomerId(targetCustomer.getId());
customerBalanceMapper.insert(targetCustomerBalance);
}
......
......@@ -28,7 +28,6 @@ public class CustomerBalanceServiceImplTest {
@org.junit.Test
public void transferBalance() {
customerBalanceService.transferBalance("18021011577", "18221011577");
customerBalanceService.transferBalance("14714400703", "59347034");
customerBalanceService.transferBalance("96827361", "18559161648");
}
}
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