第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

struts2 java

struts2 java

_天蝎座的你_0 2017-07-21 10:43:37
public String getBrokerReward() throws Exception { ? ? ?User user = (User) session("user"); ? ? ?Long userId = user.getId();// 獲得用戶編號 ? ? ?pageBean.setPageNum(1); ? ? ?pageBean.setPageSize(12); ? ? ?myHomeService.getEveryMonthReward(pageBean, userId); ? ? ?List<Map<String, Object>> list = pageBean.getPage(); ? ? ? ? ? ?List<Map<String, Object>> resultList = new ArrayList<Map<String, Object>>(); ? ? ?DateFormat dateFormat = new SimpleDateFormat("yyyy-MM");for (int i = 0; i < 12; i++) { ? String month = dateFormat.format(DateUtil.dateAddMonth(new Date(), ? ? ? ? i - 12)); ? Map<String, Object> map = new HashMap<String, Object>(); ? map.put("month", month); ? map.put("reward", 0.00); ? map.put("rewardFormat", "0.00"); ? ? for(Map<String, Object> reward : list){ ? ? ?if(month.equals((String)reward.get("month"))){ ? ? ? ? map.put("reward", reward.get("reward")); ? ? ? ? map.put("rewardFormat", reward.get("rewardFormat")); ? ? ? ? ? ? ? ? list.remove(reward); ? ? ? ? break; ? ? ?} ? } ? resultList.add(map);}Map<String, Object> resultMap = new HashMap<String, Object>();resultMap.put("result", resultList);JSONUtils.printObject(resultMap); ? ? ?return null; ?}這是后臺給的數(shù)據(jù),什么意思
查看完整描述

1 回答

已采納
?
Finit

TA貢獻222條經(jīng)驗 獲得超80個贊

后臺給的數(shù)據(jù)沒貼出來啊

查看完整回答
反對 回復 2017-07-21
  • _天蝎座的你_0
    _天蝎座的你_0
    <action name="getBrokerReward" class="frontMyHomeAction" method="getBrokerReward"/> 怎么用ajax調用這個json數(shù)據(jù)呢
  • 1 回答
  • 0 關注
  • 1336 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號