@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getChannelId() == null) ? 0 : getChannelId().hashCode()); result = prime * result + ((getChannelName() == null) ? 0 : getChannelName().hashCode()); result = prime * result + ((getChannelMchId() == null) ? 0 : getChannelMchId().hashCode()); result = prime * result + ((getMchId() == null) ? 0 : getMchId().hashCode()); result = prime * result + ((getState() == null) ? 0 : getState().hashCode()); result = prime * result + ((getParam() == null) ? 0 : getParam().hashCode()); result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); return result; } }
PayChannel payChannel = new PayChannel(); Integer id = po.getInteger("id"); payChannel.setChannelId(channelId); payChannel.setMchId(po.getString("mchId")); payChannel.setChannelName(po.getString("channelName")); payChannel.setChannelMchId(po.getString("channelMchId")); payChannel.setState((byte) ("on".equalsIgnoreCase(po.getString("state")) ? 1 : 0)); payChannel.setParam(param); payChannel.setRemark(po.getString("remark")); int result; if(id == null) { }else { payChannel.setId(id); result = payChannelService.updatePayChannel(payChannel);
void setCriteria(PayChannelExample.Criteria criteria, PayChannel payChannel) { if(payChannel != null) { if(StringUtils.isNotBlank(payChannel.getMchId())) criteria.andMchIdEqualTo(payChannel.getMchId()); if(StringUtils.isNotBlank(payChannel.getChannelId())) criteria.andChannelIdEqualTo(payChannel.getChannelId()); } }
verify_result = AlipaySignature.rsaCheckV1(params, alipayConfig.init(payChannel.getParam()).getAlipay_public_key(), AlipayConfig.CHARSET, "RSA2"); } catch (AlipayApiException e) { _log.error(e, "AlipaySignature.rsaCheckV1 error");
@RequestMapping("/list") @ResponseBody public String list(@ModelAttribute PayChannel payChannel, Integer pageIndex, Integer pageSize) { PageModel pageModel = new PageModel(); int count = payChannelService.count(payChannel); if(count <= 0) return JSON.toJSONString(pageModel); List<PayChannel> payChannelList = payChannelService.getPayChannelList((pageIndex-1)*pageSize, pageSize, payChannel); if(!CollectionUtils.isEmpty(payChannelList)) { JSONArray array = new JSONArray(); for(PayChannel pc : payChannelList) { JSONObject object = (JSONObject) JSONObject.toJSON(pc); object.put("createTime", DateUtil.date2Str(pc.getCreateTime())); array.add(object); } pageModel.setList(array); } pageModel.setCount(count); pageModel.setMsg("ok"); pageModel.setRel(true); return JSON.toJSONString(pageModel); }
@RequestMapping("/view.html") public String viewInput(String id, ModelMap model) { PayChannel item = null; if(StringUtils.isNotBlank(id) && NumberUtils.isNumber(id)) { item = payChannelService.selectPayChannel(Integer.parseInt(id)); } if(item == null) item = new PayChannel(); model.put("item", item); return "pay_channel/view"; }
verify_result = AlipaySignature.rsaCheckV1(params, alipayConfig.init(payChannel.getParam()).getAlipay_public_key(), AlipayConfig.CHARSET, "RSA2"); } catch (AlipayApiException e) { _log.error(e, "AlipaySignature.rsaCheckV1 error");
@RequestMapping("/edit.html") public String editInput(String id, ModelMap model) { PayChannel item = null; if(StringUtils.isNotBlank(id) && NumberUtils.isNumber(id)) { item = payChannelService.selectPayChannel(Integer.parseInt(id)); } if(item == null) item = new PayChannel(); model.put("item", item); return "pay_channel/edit"; }
@Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } PayChannel other = (PayChannel) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getChannelId() == null ? other.getChannelId() == null : this.getChannelId().equals(other.getChannelId())) && (this.getChannelName() == null ? other.getChannelName() == null : this.getChannelName().equals(other.getChannelName())) && (this.getChannelMchId() == null ? other.getChannelMchId() == null : this.getChannelMchId().equals(other.getChannelMchId())) && (this.getMchId() == null ? other.getMchId() == null : this.getMchId().equals(other.getMchId())) && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState())) && (this.getParam() == null ? other.getParam() == null : this.getParam().equals(other.getParam())) && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())); }
verify_result = AlipaySignature.rsaCheckV1(params, alipayConfig.init(payChannel.getParam()).getAlipay_public_key(), AlipayConfig.CHARSET, "RSA2"); } catch (AlipayApiException e) { _log.error(e, "AlipaySignature.rsaCheckV1 error");
return false; payContext.put("wxPayConfig", WxPayUtil.getWxPayConfig(payChannel.getParam()));
return false; payContext.put("wxPayConfig", WxPayUtil.getWxPayConfig(payChannel.getParam()));
return false; payContext.put("wxPayConfig", WxPayUtil.getWxPayConfig(payChannel.getParam()));
if("".equals(resKey)) return XXPayUtil.makeRetFail(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_FAIL, "", PayConstant.RETURN_VALUE_FAIL, PayEnum.ERR_0001)); PayChannel payChannel = payChannelService.selectPayChannel(channelId, mchId); WxPayConfig wxPayConfig = WxPayUtil.getWxPayConfig(payChannel.getParam(), tradeType, wxPayProperties.getCertRootPath(), wxPayProperties.getNotifyUrl()); WxPayService wxPayService = new WxPayServiceImpl(); wxPayService.setConfig(wxPayConfig);
String channelId = payOrder.getChannelId(); PayChannel payChannel = super.baseSelectPayChannel(mchId, channelId); WxPayConfig wxPayConfig = WxPayUtil.getWxPayConfig(payChannel.getParam(), tradeType, wxPayProperties.getCertRootPath(), wxPayProperties.getNotifyUrl()); WxPayService wxPayService = new WxPayServiceImpl(); wxPayService.setConfig(wxPayConfig);
String channelId = payOrder.getChannelId(); PayChannel payChannel = super.baseSelectPayChannel(mchId, channelId); WxPayConfig wxPayConfig = WxPayUtil.getWxPayConfig(payChannel.getParam(), tradeType, wxPayProperties.getCertRootPath(), wxPayProperties.getNotifyUrl()); WxPayService wxPayService = new WxPayServiceImpl(); wxPayService.setConfig(wxPayConfig);
String channelId = refundOrder.getChannelId(); PayChannel payChannel = super.baseSelectPayChannel(mchId, channelId); WxPayConfig wxPayConfig = WxPayUtil.getWxPayConfig(payChannel.getParam(), "", wxPayProperties.getCertRootPath(), wxPayProperties.getNotifyUrl()); WxPayService wxPayService = new WxPayServiceImpl(); wxPayService.setConfig(wxPayConfig);
if("".equals(resKey)) return XXPayUtil.makeRetFail(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_FAIL, "", PayConstant.RETURN_VALUE_FAIL, PayEnum.ERR_0001)); PayChannel payChannel = payChannelService.selectPayChannel(channelId, mchId); alipayConfig.init(payChannel.getParam()); AlipayClient client = new DefaultAlipayClient(alipayConfig.getUrl(), alipayConfig.getApp_id(), alipayConfig.getRsa_private_key(), AlipayConfig.FORMAT, AlipayConfig.CHARSET, alipayConfig.getAlipay_public_key(), AlipayConfig.SIGNTYPE); AlipayTradePrecreateRequest alipay_request = new AlipayTradePrecreateRequest();
String channelId = transOrder.getChannelId(); PayChannel payChannel = super.baseSelectPayChannel(mchId, channelId); WxPayConfig wxPayConfig = WxPayUtil.getWxPayConfig(payChannel.getParam(), "", wxPayProperties.getCertRootPath(), wxPayProperties.getNotifyUrl()); WxPayService wxPayService = new WxPayServiceImpl(); wxPayService.setConfig(wxPayConfig);
String channelId = transOrder.getChannelId(); PayChannel payChannel = super.baseSelectPayChannel(mchId, channelId); WxPayConfig wxPayConfig = WxPayUtil.getWxPayConfig(payChannel.getParam(), "", wxPayProperties.getCertRootPath(), wxPayProperties.getNotifyUrl()); WxPayService wxPayService = new WxPayServiceImpl(); wxPayService.setConfig(wxPayConfig);