BalanceAction.java
873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.cjs.site.action.user.fund;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cjs.site.biz.user.fund.FundBiz;
import com.cjs.site.model.user.account.UserInfo;
import com.cjs.site.util.web.ActionUtil;
/**
* 用户余额
*
* @author tongyufu
*
*/
@Controller
public class BalanceAction {
@Autowired
private FundBiz fundBiz;
/**余额查询~ajax*/
@ResponseBody
@RequestMapping("/fund/balance")
public Map<String, Object> balanceAjax() {
UserInfo user = ActionUtil.getUser();
if (user == null) {
return null;
}
return fundBiz.balance(user.getClient_id());
}
}