@RequestMapping("/list") @ResponseBody public String list(@ModelAttribute RefundOrder refundOrder, Integer pageIndex, Integer pageSize) { PageModel pageModel = new PageModel(); int count = refundOrderService.count(refundOrder); if(count <= 0) return JSON.toJSONString(pageModel); List<RefundOrder> refundOrderList = refundOrderService.getRefundOrderList((pageIndex-1)*pageSize, pageSize, refundOrder); if(!CollectionUtils.isEmpty(refundOrderList)) { JSONArray array = new JSONArray(); for(RefundOrder po : refundOrderList) { JSONObject object = (JSONObject) JSONObject.toJSON(po); if(po.getCreateTime() != null) object.put("createTime", DateUtil.date2Str(po.getCreateTime())); if(po.getRefundAmount() != null) object.put("amount", AmountUtil.convertCent2Dollar(po.getRefundAmount()+"")); array.add(object); } pageModel.setList(array); } pageModel.setCount(count); pageModel.setMsg("ok"); pageModel.setRel(true); return JSON.toJSONString(pageModel); }
result = prime * result + ((getExpireTime() == null) ? 0 : getExpireTime().hashCode()); result = prime * result + ((getRefundSuccTime() == null) ? 0 : getRefundSuccTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); return result;
&& (this.getExpireTime() == null ? other.getExpireTime() == null : this.getExpireTime().equals(other.getExpireTime())) && (this.getRefundSuccTime() == null ? other.getRefundSuccTime() == null : this.getRefundSuccTime().equals(other.getRefundSuccTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));