From bd014bc7bfbc43a071f682f25b473a1cf103027e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 25 七月 2024 12:41:52 +0800
Subject: [PATCH] 代理新功能完善

---
 src/test/java/com/taoke/autopay/AutopayApplicationTests.java |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/test/java/com/taoke/autopay/AutopayApplicationTests.java b/src/test/java/com/taoke/autopay/AutopayApplicationTests.java
index ad21154..8aecd15 100644
--- a/src/test/java/com/taoke/autopay/AutopayApplicationTests.java
+++ b/src/test/java/com/taoke/autopay/AutopayApplicationTests.java
@@ -3,6 +3,8 @@
 import com.taoke.autopay.dao.ClientInfoMapper;
 import com.taoke.autopay.dao.KeyOrderMapper;
 import com.taoke.autopay.entity.ClientInfo;
+import com.taoke.autopay.entity.KeyOrder;
+import com.taoke.autopay.entity.OrderCountTypeEnum;
 import com.taoke.autopay.entity.OrderDistributeCountInfo;
 import com.taoke.autopay.exception.KeyOrderException;
 import com.taoke.autopay.service.ClientInfoService;
@@ -58,6 +60,24 @@
     }
 
     @Test
+    void testOrder(){
+        String id="63f06977c49d0c5ec2b4c556010cea4b";
+        KeyOrder old = keyOrderMapper.selectByPrimaryKeyForUpdate(id);
+        if(old==null){
+            return;
+        }
+
+        KeyOrder orderUpdate = new KeyOrder();
+        orderUpdate.setId(id);
+        orderUpdate.setState(KeyOrder.STATE_PAY);
+        orderUpdate.setStateDesc("鏀粯鎴愬姛");
+        if(old.getPayTime()==null){
+            orderUpdate.setPayTime(new Date());
+        }
+        keyOrderService.update(orderUpdate);
+    }
+
+    @Test
     void contextLoads() {
         ClientInfo info = new ClientInfo();
         info.setName("瓒呯骇绠$悊鍛�");

--
Gitblit v1.8.0