Commit 51466f21 authored by libin's avatar libin

会员

parent 25f5b42e
...@@ -104,5 +104,4 @@ public class MyWalletDetail implements Serializable { ...@@ -104,5 +104,4 @@ public class MyWalletDetail implements Serializable {
@ApiModelProperty(value = "操作时间", hidden = true ) @ApiModelProperty(value = "操作时间", hidden = true )
private Long crtTime; private Long crtTime;
} }
...@@ -36,4 +36,8 @@ public class AppletWalletVo { ...@@ -36,4 +36,8 @@ public class AppletWalletVo {
*/ */
@ApiModelProperty(value = "今日收益(元)") @ApiModelProperty(value = "今日收益(元)")
private BigDecimal todayAmount; private BigDecimal todayAmount;
@ApiModelProperty(value = "未入账金额")
private BigDecimal unbooked;
} }
...@@ -46,7 +46,11 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> { ...@@ -46,7 +46,11 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
List<MyWallet> wallets = mapper.selectByExample(example); List<MyWallet> wallets = mapper.selectByExample(example);
MyWallet myWallet = wallets.get(0); MyWallet myWallet = wallets.get(0);
BeanUtils.copyProperties(myWallet, appletWalletVo); appletWalletVo.setBalance(myWallet.getBalance()==null?new BigDecimal(0):myWallet.getBalance());
appletWalletVo.setTodayAmount(myWallet.getTodayAmount()==null?new BigDecimal(0):myWallet.getTodayAmount());
appletWalletVo.setTotalAmount(myWallet.getTotalAmount()==null?new BigDecimal(0):myWallet.getTotalAmount());
appletWalletVo.setUnbooked(myWallet.getUnbooked()==null?new BigDecimal(0):myWallet.getUnbooked());
appletWalletVo.setUserId(myWallet.getUserId());
return appletWalletVo; return appletWalletVo;
} }
......
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