zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.changhong;
 
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
 
import com.changhong.autoform.core.mapper.BaseMapper;
import com.changhong.autoform.entity.sql.Where;
import com.changhong.autoform.entity.sql.Where.Conditions;
import com.changhong.autoform.entity.sql.Where.Type;
import com.changhong.autoform.entity.sql.select.Select;
import com.changhong.autoformtest.Application;
 
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class Test extends BaseMapper{
 
    @org.junit.Test
    public void test(){
        Select s = new Select("test", new Where(new Conditions("id", Type.EQ, "1")), "name", "password");
        System.err.println(selectOne(s));
    }
    
}