From e8f8d89a4248cd4d0a7138cc2e5a36ea9b136699 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Tue, 11 Feb 2025 17:03:01 +0800
Subject: [PATCH] feat(mall): 添加订单一键发货和取消发货功能

---
 src/test/java/cc/mrbird/febs/AgentTest.java |   70 +++++------------------------------
 1 files changed, 10 insertions(+), 60 deletions(-)

diff --git a/src/test/java/cc/mrbird/febs/AgentTest.java b/src/test/java/cc/mrbird/febs/AgentTest.java
index 1ba4792..38d8b6f 100644
--- a/src/test/java/cc/mrbird/febs/AgentTest.java
+++ b/src/test/java/cc/mrbird/febs/AgentTest.java
@@ -1,76 +1,26 @@
 package cc.mrbird.febs;
 
-import cc.mrbird.febs.common.enumerates.AgentLevelEnum;
-import cc.mrbird.febs.mall.entity.AgentInfo;
-import cc.mrbird.febs.mall.entity.DataDictionaryCustom;
-import cc.mrbird.febs.mall.mapper.DataDictionaryCustomMapper;
-import cc.mrbird.febs.mall.service.IAgentService;
-import cc.mrbird.febs.rabbit.producter.AgentProducer;
-import com.alibaba.fastjson.JSONObject;
+import cc.mrbird.febs.mall.dto.ApiCheckTraceInfoDto;
+import cn.hutool.json.JSONUtil;
+import com.best.javaSdk.ClientParamEnum;
+import com.best.javaSdk.ClientParamService;
+import com.best.javaSdk.kdTraceQuery.response.KdTraceQueryRsp;
 import lombok.extern.slf4j.Slf4j;
-import org.aspectj.weaver.loadtime.Agent;
 import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 
-import java.math.BigDecimal;
-
-/**
- * @author wzy
- * @date 2021-09-25
- **/
 @Slf4j
 @SpringBootTest
 public class AgentTest {
 
-    @Autowired
-    private AgentProducer agentProducer;
-
-    @Autowired
-    private DataDictionaryCustomMapper dataDictionaryCustomMapper;
-
-    @Autowired
-    private IAgentService agentService;
-
     @Test
-    public void agentTest() {
-//        agentProducer.sendDelayMsg(1L, 10000L);
+    public void refundJob() {
+        ApiCheckTraceInfoDto apiCheckTraceInfoDto = new ApiCheckTraceInfoDto();
+        apiCheckTraceInfoDto.setTraceNo("60850712015414");
+        KdTraceQueryRsp traceQueryRsp = ClientParamService.getInstance(ClientParamEnum.PRD.name()).checkTraceInfo(apiCheckTraceInfoDto);
+        log.info("traceQueryRsp:{}", JSONUtil.parseObj(traceQueryRsp));
     }
 
-    @Test
-    public void insertAgentTest() {
-        AgentInfo agentInfo = new AgentInfo();
-        agentInfo.setOrderType(2);
-        agentInfo.setOrderCnt(2000);
-        agentInfo.setLastCnt(3);
-        agentInfo.setDirectIncome(BigDecimal.valueOf(50));
-        agentInfo.setTeamIncome(BigDecimal.valueOf(15));
-        agentInfo.setTeamIncomeType(2);
 
-        DataDictionaryCustom data = new DataDictionaryCustom();
-        data.setType("AGENT_LEVEL_REQUIRE");
-        data.setCode(AgentLevelEnum.FOUR_LEVEL.name());
-        data.setValue(JSONObject.toJSONString(agentInfo));
-        dataDictionaryCustomMapper.insert(data);
-    }
 
-    @Test
-    public void insertData() {
-        int i = 1;
-        for (AgentLevelEnum value : AgentLevelEnum.values()) {
-            DataDictionaryCustom data = new DataDictionaryCustom();
-            data.setType("AGENT_LEVEL");
-            data.setDescription(value.getName());
-            data.setCode(value.name());
-            data.setValue(String.valueOf(i));
-            dataDictionaryCustomMapper.insert(data);
-        }
-
-    }
-
-    @Test
-    public void autoLevelUp() {
-        // agentService.autoUpAgentLevel(3L);
-        agentProducer.sendAutoLevelUpMsg(3L);
-    }
 }

--
Gitblit v1.9.1