移除优惠劵的使用逻辑
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
package cn.iocoder.mall.order.biz.service;
|
||||
|
||||
import cn.iocoder.mall.order.api.OrderCommentService;
|
||||
import cn.iocoder.mall.order.api.bo.OrderCommentTimeOutBO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderCommentTimeOutPageDTO;
|
||||
import cn.iocoder.mall.order.biz.OrderApplicationTest;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 订单评论自动好评任务测试
|
||||
*
|
||||
* @author wtz
|
||||
* @time 2019-06-17 19:09
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = OrderApplicationTest.class)
|
||||
@ActiveProfiles("dev")
|
||||
public class OrderCommentJobTest {
|
||||
|
||||
@Autowired
|
||||
private OrderCommentService orderCommentService;
|
||||
|
||||
@Test
|
||||
public void createOrderCommentJob(){
|
||||
OrderCommentTimeOutPageDTO orderCommentTimeOutPageDTO=new OrderCommentTimeOutPageDTO();
|
||||
orderCommentTimeOutPageDTO.setCommentState(0);
|
||||
orderCommentTimeOutPageDTO.setPageNo(0);
|
||||
orderCommentTimeOutPageDTO.setPageSize(10);
|
||||
orderCommentTimeOutPageDTO.setOverDay(7);
|
||||
List<OrderCommentTimeOutBO> orderCommentTimeOutBOList = orderCommentService.getOrderCommentTimeOutPage(orderCommentTimeOutPageDTO);
|
||||
|
||||
|
||||
orderCommentService.updateBatchOrderCommentState(orderCommentTimeOutBOList);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
package cn.iocoder.mall.pay.biz.service;
|
||||
|
||||
import cn.iocoder.mall.pay.api.PayRefundService;
|
||||
import cn.iocoder.mall.pay.api.dto.refund.PayRefundSubmitDTO;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE)
|
||||
public class PayRefundServiceImplTest {
|
||||
|
||||
@Autowired
|
||||
private PayRefundService payRefundService;
|
||||
|
||||
@Test
|
||||
public void testSubmitRefund() {
|
||||
PayRefundSubmitDTO payRefundSubmitDTO = new PayRefundSubmitDTO()
|
||||
.setAppId("POd4RC6a")
|
||||
.setCreateIp("127.0.0.1")
|
||||
.setOrderId("13500000")
|
||||
.setOrderDescription("测试下退款")
|
||||
.setPrice(1);
|
||||
payRefundService.submitRefund(payRefundSubmitDTO);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user