paramMap.put("result", ObjectUtils.defaultIfNull(refundOrder.getResult(), "")); // 退款结果 paramMap.put("clientIp", ObjectUtils.defaultIfNull(refundOrder.getClientIp(), "")); // 客户端IP paramMap.put("device", ObjectUtils.defaultIfNull(refundOrder.getDevice(), "")); // 设备 paramMap.put("channelOrderNo", ObjectUtils.defaultIfNull(refundOrder.getChannelOrderNo(), "")); // 渠道订单号 paramMap.put("param1", ObjectUtils.defaultIfNull(refundOrder.getParam1(), "")); // 扩展参数1 paramMap.put("device", URLEncoder.encode(ObjectUtils.defaultIfNull(refundOrder.getDevice(), ""), PayConstant.RESP_UTF8)); paramMap.put("param1", URLEncoder.encode(ObjectUtils.defaultIfNull(refundOrder.getParam1(), ""), PayConstant.RESP_UTF8)); paramMap.put("param2", URLEncoder.encode(ObjectUtils.defaultIfNull(refundOrder.getParam2(), ""), PayConstant.RESP_UTF8));
result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode()); result = prime * result + ((getClientIp() == null) ? 0 : getClientIp().hashCode()); result = prime * result + ((getDevice() == null) ? 0 : getDevice().hashCode()); result = prime * result + ((getRemarkInfo() == null) ? 0 : getRemarkInfo().hashCode()); result = prime * result + ((getChannelUser() == null) ? 0 : getChannelUser().hashCode());
/** * 构建微信退款请求数据 * @param refundOrder * @param wxPayConfig * @return */ WxPayRefundRequest buildWxPayRefundRequest(RefundOrder refundOrder, WxPayConfig wxPayConfig) { // 微信退款请求对象 WxPayRefundRequest request = new WxPayRefundRequest(); request.setTransactionId(refundOrder.getChannelPayOrderNo()); request.setOutTradeNo(refundOrder.getPayOrderId()); request.setDeviceInfo(refundOrder.getDevice()); request.setOutRefundNo(refundOrder.getRefundOrderId()); request.setRefundDesc(refundOrder.getRemarkInfo()); request.setRefundFee(refundOrder.getRefundAmount().intValue()); request.setRefundFeeType("CNY"); request.setTotalFee(refundOrder.getPayAmount().intValue()); return request; }
&& (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult())) && (this.getClientIp() == null ? other.getClientIp() == null : this.getClientIp().equals(other.getClientIp())) && (this.getDevice() == null ? other.getDevice() == null : this.getDevice().equals(other.getDevice())) && (this.getRemarkInfo() == null ? other.getRemarkInfo() == null : this.getRemarkInfo().equals(other.getRemarkInfo())) && (this.getChannelUser() == null ? other.getChannelUser() == null : this.getChannelUser().equals(other.getChannelUser()))