| | |
| | | package com.taoke.autopay; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.taoke.autopay.dao.KeyOrderMapper; |
| | | import com.taoke.autopay.dto.DYOrderDto; |
| | | import com.taoke.autopay.entity.KeyOrder; |
| | |
| | | import com.taoke.autopay.exception.KeyVerifyException; |
| | | import com.taoke.autopay.exception.WxOrderCountException; |
| | | import com.taoke.autopay.manager.OrderPayFailProcessor; |
| | | import com.taoke.autopay.manager.PayCountVerifyManager; |
| | | import com.taoke.autopay.service.*; |
| | | import com.taoke.autopay.utils.AlipayOrderUtil; |
| | | import com.taoke.autopay.utils.Constant; |
| | | import com.taoke.autopay.utils.JsonUtil; |
| | | import com.taoke.autopay.utils.TimeUtil; |
| | | import com.taoke.autopay.vo.SubmitKeyInfo; |
| | | import org.junit.jupiter.api.Test; |
| | |
| | | import java.util.Collections; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author hxh |
| | |
| | | } |
| | | |
| | | |
| | | @Test |
| | | public void testOrderCount(){ |
| | | long wxUid = 15834L; |
| | | long notProcessCount = keyOrderService.countUserNotDoOrder(wxUid, new Date(System.currentTimeMillis() - 1000*60*300)); |
| | | System.out.println(notProcessCount); |
| | | } |
| | | |
| | | @Resource |
| | | private PayCountVerifyManager payCountVerifyManager; |
| | | |
| | | @Test |
| | | public void test4(){ |
| | | Long uid = 2L; |
| | | Map<Integer,Long> map = payCountVerifyManager.computeUserLeftPayCount(uid); |
| | | System.out.println(new Gson().toJson(map)); |
| | | } |
| | | |
| | | |
| | | } |