|
@@ -58,6 +58,7 @@ public class StaffServiceImpl extends ServiceImpl<StaffMapper, Staff> implements
|
|
|
|
|
|
@Override
|
|
|
public BigDecimal getBalance(String card) {
|
|
|
+ card = new BigDecimal(card).toString();
|
|
|
Staff staff = this.one(null, null, card);
|
|
|
Optional.ofNullable(staff).orElseThrow(() -> new CustomException("用户信息不存在"));
|
|
|
return Optional.ofNullable(staff.getBalance()).orElse(new BigDecimal("0.00"));
|