From dc90f9745fa2c3bff7c73a2c38fe1bc66bfd3db7 Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Mon, 25 Oct 2021 14:24:52 +0800 Subject: [PATCH] 删除mq引用 --- zq-erp/src/test/java/com/matrix/SourceFlowTests.java | 33 ++++++++++++++++++++++++++++++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/zq-erp/src/test/java/com/matrix/SourceFlowTests.java b/zq-erp/src/test/java/com/matrix/SourceFlowTests.java index 6cc43c8..9583c8c 100644 --- a/zq-erp/src/test/java/com/matrix/SourceFlowTests.java +++ b/zq-erp/src/test/java/com/matrix/SourceFlowTests.java @@ -1,11 +1,11 @@ package com.matrix; +import com.matrix.component.wechat.externalInterface.weixinUtil.WeixinServiceUtil; import com.matrix.core.tools.StringUtils; -import com.matrix.system.constance.Dictionary; +import com.matrix.system.fenxiao.dao.ShopSalesmanApplyDao; import com.matrix.system.hive.bean.*; import com.matrix.system.hive.dao.*; import com.matrix.system.hive.service.CodeService; -import com.matrix.system.hive.service.SysOrderService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -48,7 +48,29 @@ @Autowired private SysVipInfoDao vipInfoDao; +@Autowired +WeixinServiceUtil weixinServiceUtil; + /** + * 企业付款到个人 + * @throws InterruptedException + */ + @Test + public void testPay() throws InterruptedException { + weixinServiceUtil.comPay("提现","TX123",1,"oJkRK4yelehsY4S7I6Ee1ydWtQMI",36L); + } + + + + /** + * 发送订阅消息 + * @throws InterruptedException + */ + @Test + public void testTopic() throws InterruptedException { + // rabiitMqTemplate.sendTopicMsg(RabbitMqConfig.MQ_EXCHANGE_TOPIC +"dev", MQTaskRouting.CREATE_ORDER+"dev", "123"); + Thread.sleep(10000); + } @Test @Transactional @@ -124,7 +146,7 @@ for (SysOrder sysOrder : sysOrders) { sysOrder.setCashPay(sysOrder.getZkTotal()); - sysOrder.setCardPay(0); + sysOrder.setCardPay(0D); sysOrderDao.update(sysOrder); List<SysOrderItem> items = sysOrderItemDao.selectByOrderId(sysOrder.getId()); @@ -171,4 +193,9 @@ } } + @Autowired + private ShopSalesmanApplyDao salesmanApplyDao; + + + } -- Gitblit v1.9.1