| | |
| | | import com.dy.pipIrrGlobal.voSe.VoOrders; |
| | | import com.dy.pipIrrGlobal.voSe.VoVcRecharge; |
| | | import com.dy.pipIrrGlobal.voSe.VoVirtualCard; |
| | | import com.dy.pipIrrWechat.virtualCard.dto.DtoVcRecharge; |
| | | import com.dy.pipIrrWechat.result.WechatResultCode; |
| | | import com.dy.pipIrrWechat.virtualCard.dto.DtoVirtualCard; |
| | | import com.dy.pipIrrWechat.virtualCard.enums.LastOperateENUM; |
| | | import com.dy.pipIrrWechat.virtualCard.enums.OrderStateENUM; |
| | | import com.dy.pipIrrWechat.result.WechatResultCode; |
| | | import com.dy.pipIrrWechat.virtualCard.qo.QoVcRecharge; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.dubbo.common.utils.PojoUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public Long insertVirtualCard(SeVirtualCard po) { |
| | | seVirtualCardMapper.insert(po); |
| | | return po.getId(); |
| | | } |
| | | |
| | | /** |
| | | * 根据农户ID及虚拟卡ID获取正常状态的虚拟卡对象 |
| | | * @param clientId |
| | | * @param vcId |
| | | * @return |
| | | */ |
| | | public SeVirtualCard getVcByClientIdAndVcId (Long clientId, Long vcId) { |
| | | return seVirtualCardMapper.getVcByClientIdAndVcId(clientId, vcId); |
| | | } |
| | | |
| | | /** |
| | | * 根据虚拟卡ID注销虚拟卡 |
| | | * @param clientId |
| | | * @param vcId |
| | | * @return |
| | | */ |
| | | public Integer cancelVc(Long clientId, Long vcId) { |
| | | return seVirtualCardMapper.cancelVc(clientId, vcId); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param dtoVcRecharge |
| | | * @return |
| | | */ |
| | | public QueryResultVo<List<VoVcRecharge>> getVcRechargeRecords(DtoVcRecharge dtoVcRecharge){ |
| | | public QueryResultVo<List<VoVcRecharge>> getVcRechargeRecords(QoVcRecharge dtoVcRecharge){ |
| | | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(dtoVcRecharge); |
| | | Long itemTotal = seVirtualCardMapper.getRechargeRecordCount(params); |
| | | |