@RequestMapping("income")
@ResponseBody
public List<Map<String, String>> Income(HttpServletResponse response,HttpServletRequest request){
List<Map<String, String>> lm = new ArrayList<Map<String,String>>();
List<XphIncome> xphIncome = walletService.getIncomeByUserID(memId);
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
for (XphIncome xi : xphIncome) {
if (xi.getMissionType()==1) {
if (xi.getShareState()!=0) {
Map<String, String> map = new HashMap<String, String>();
map.put("way", "分享"+xi.getMissionTitle());
map.put("money", xi.getShareGetMoney().toString());
map.put("time", format.format(xi.getShareTime()));
lm.add(map);
}
}else {
if (xi.getShareState()!=0) {
Map<String, String> map = new HashMap<String, String>();
map.put("way", "分享"+xi.getMissionTitle());
map.put("money", xi.getShareGetMoney().toString());
map.put("time", format.format(xi.getShareTime()));
lm.add(map);
}
Map<String, String> map = new HashMap<String, String>();
map.put("way", xi.getMissionTitle());
map.put("money", xi.getPrice().toString());
map.put("time", format.format(xi.getGrabTime()));
lm.add(map);
}
}
return lm;
}