VehicleMapperTest.java
1.16 KB
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
package cn.com.glsx.admin.modules.mapper;
import cn.com.glsx.Application;
import cn.com.glsx.admin.common.constants.Constants;
import cn.com.glsx.admin.modules.entity.Vehicle;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
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;
/**
* @Desc:
* @Author huangxc
* @Date 2021/5/27
*/
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class VehicleMapperTest {
@Autowired
private VehicleMapper vehicleMapper;
@Test
public void searchTrialDriveTest() {
Vehicle selectCondition = new Vehicle();
selectCondition.setVin("K4343FSDFS2323222");
selectCondition.setWorkOrderId(32213L);
selectCondition.setDelFlag(Constants.NORMAL_FLAG);
Vehicle result = vehicleMapper.selectVehicleUnique(selectCondition);
log.info("===" + JSONObject.toJSONString(result));
}
}