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;
}