Browse Source

'卡号转换'

yq 2 years ago
parent
commit
e0fe72abc4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/java/com/usky/dxtop/service/impl/StaffServiceImpl.java

+ 1 - 0
src/main/java/com/usky/dxtop/service/impl/StaffServiceImpl.java

@@ -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"));