package cn.freemud.controller;

import cn.freemud.OrderApplication;
import cn.freemud.service.Orderservice;
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.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = OrderApplication.class)
public class EvaluationTest {

@Autowired
private Orderservice orderservice;

//    @Test
//    public void addEvaluationDetail() {
//        AddUserOrderEvaluationRequestVo insertEvaluationReqVo = new AddUserOrderEvaluationRequestVo();
//        insertEvaluationReqVo.setCustomer_name("MaxPeng");
//        insertEvaluationReqVo.setCustomer_mobile("1376174249");
//        insertEvaluationReqVo.setCustomer_photo_url("www.baidu.com");
//        insertEvaluationReqVo.setCreate_order_time("2018-09-28 10:56:00");
//        insertEvaluationReqVo.setDelivery_speed(4);
//        insertEvaluationReqVo.setHealth(4);
//        insertEvaluationReqVo.setService(4);
//        insertEvaluationReqVo.setDelivery_speed(4);
//        insertEvaluationReqVo.setSurroundings(4);
//        insertEvaluationReqVo.setTaste(4);
//        insertEvaluationReqVo.setEvaluation_content("very nice");
//        insertEvaluationReqVo.setCreate_order_time("2018-09-28 10:57:00");
//        insertEvaluationReqVo.setModify_time("2018-09-28 11:59:00");
//        insertEvaluationReqVo.setCreate_time("2018-09-28 11:59:00");
//        insertEvaluationReqVo.setStore_name("非码星店");
//        insertEvaluationReqVo.setOrder_id("2223");
//        insertEvaluationReqVo.setOrder_type(1);
//
//        AddProductEvaluationReqDto addProductEvaluationReqDto=new AddProductEvaluationReqDto();
//        addProductEvaluationReqDto.setProduct_id("222222");
//        addProductEvaluationReqDto.setProduct_name("韩红版充气娃娃");
//        addProductEvaluationReqDto.setProduct_qty(1);
//        addProductEvaluationReqDto.setIs_call(1);
//        List<AddProductEvaluationReqDto> productList =new ArrayList<>();
//        productList.add(addProductEvaluationReqDto);
//        //insertEvaluationReqVo.setProductEvaluationList(productList);
//        orderservice.userOrderEvaluation(insertEvaluationReqVo);
//    }
}
