springmvc返回的json字段覆写

private List<OrderRefundLog> orderRefundLogs;
	
	@ApiModelProperty(value = "退款日志")
	public List<OrderRefundLog> getOrderRefundLogs(){
		if(!(status==OrderStatus.DONENEEDPAY||status==OrderStatus.DONE)) {
			for(OrderRefundLog log:orderRefundLogs) {
				log.setMessage(log.getMessage()+"(退款将在确认收货后到账)");
			}
		}
		return orderRefundLogs;
	}

posted @ 2018-04-07 17:07  車輪の唄  阅读(6)  评论(0编辑  收藏  举报  来源