| | |
| | | package com.taoke.autopay.service.impl; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.taoke.autopay.dao.KeyOrderMapper; |
| | | import com.taoke.autopay.dao.WxUserSettingsMapper; |
| | | import com.taoke.autopay.dto.ChannelOrderStatistic; |
| | |
| | | order.setOrderNo(orderDto.getOrder_id()); |
| | | } |
| | | |
| | | order.setIp(keyInfo.getIp()); |
| | | if(keyInfo.getIpInfo()!=null) { |
| | | order.setIpInfo(new Gson().toJson(keyInfo.getIpInfo())); |
| | | } |
| | | keyOrderMapper.insertSelective(order); |
| | | |
| | | |
| | | return order; |
| | | } |
| | | |
| | |
| | | daoQuery.minCreateTime = minCreateTime; |
| | | return keyOrderMapper.count(daoQuery); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public void rejectPay(String id, String rejectMsg) { |
| | | KeyOrder keyOrder=new KeyOrder(); |
| | | keyOrder.setId(id); |
| | | keyOrder.setState(KeyOrder.STATE_REJECT_PAY); |
| | | keyOrder.setStateDesc(rejectMsg); |
| | | update(keyOrder); |
| | | } |
| | | } |