|
@@ -200,7 +200,7 @@ public class SysUserCashAccountServiceImpl extends BaseServiceImpl<Integer, SysU
|
|
|
|
|
|
sysUserCashAccountDao.update(cashAccount);
|
|
|
|
|
|
- if (amount.compareTo(cashAccount.getCourseBalance())!=0) {
|
|
|
+ if (amount.compareTo(BigDecimal.ZERO) !=0 ) {
|
|
|
SysUserCoursesAccountDetail sysUserCoursesAccountDetail = new SysUserCoursesAccountDetail();
|
|
|
sysUserCoursesAccountDetail.setUserId(userId);
|
|
|
sysUserCoursesAccountDetail.setAmount(amount);
|