Commit 04e9860d authored by hezhen's avatar hezhen

123

parent 88cb4079
...@@ -172,7 +172,11 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{ ...@@ -172,7 +172,11 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{
MyWallet wallet=new MyWallet(); MyWallet wallet=new MyWallet();
wallet.setUserId(userId); wallet.setUserId(userId);
wallet=selectOne(wallet); wallet=selectOne(wallet);
BeanUtils.copyProperties(wallet,dto); if (wallet!=null){
BeanUtils.copyProperties(wallet,dto);
}else {
dto.setBalance(BigDecimal.ZERO);
}
return ObjectRestResponse.succ(dto); return ObjectRestResponse.succ(dto);
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
......
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