Pu Zhibing
3 天以前 7477b1e8cbe8d656452c5a79cc1b46b2285ff4ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//package com.stylefeng.guns;
//
//import com.baomidou.mybatisplus.mapper.EntityWrapper;
//import com.stylefeng.guns.modular.system.model.AssignOrder;
//import com.stylefeng.guns.modular.system.model.Company;
//import com.stylefeng.guns.modular.system.service.IAssignOrderService;
//import com.stylefeng.guns.modular.system.service.ICompanyCityService;
//import com.stylefeng.guns.modular.system.util.RedisUtil;
//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.SpringRunner;
//
//import javax.annotation.Resource;
//
//
//@RunWith(SpringRunner.class)
//@SpringBootTest
//public class GunsApplicationTest {
//
//    @Autowired
//    private ICompanyCityService companyCityService;
//
//    @Autowired
//    private IAssignOrderService assignOrderService;
//
//    @Test
//    public void test(){
//        try {
//            Company query = companyCityService.query("104.2350778537", "28.1113837348");
//            AssignOrder assignOrder = assignOrderService.selectOne(new EntityWrapper<AssignOrder>().eq("companyId", query.getId()).eq("type", 1));
//            System.err.println(assignOrder);
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//    }
//}