提交 f1a7c1a9 编写于 作者: zhouweidong's avatar zhouweidong

add

上级 4b1fe03b
......@@ -17,4 +17,10 @@ INSERT INTO T_PUBLISHER (publisherid, publishername) VALUES
INSERT INTO T_BOOK (bookid, bookname,publisherid,pubyearisbn) VALUES
(1, 'java程序设计',1,'2017-12'),
(2, 'c语言程序设计',1,'2018-12'),
(3, 'pythod从入门到精通',2,'2019-2');
\ No newline at end of file
(3, 'python从入门到精通',2,'2019-2');
INSERT INTO T_ACTOR (actorid, actorname,sex) VALUES
(1, '张三','男'),
(2, '李四','女'),
(3, '王五','男');
\ No newline at end of file
......@@ -10,8 +10,6 @@ create table IF NOT EXISTS T_CATEGORY
categoryname VARCHAR2(200),
updatedate DATE
);
create table IF NOT EXISTS T_PUBLISHER
(
publisherid VARCHAR2(100) not null,
......@@ -21,8 +19,6 @@ create table IF NOT EXISTS T_PUBLISHER
publishername VARCHAR2(200),
updatedate DATE
);
create table IF NOT EXISTS T_BOOK
(
bookid VARCHAR2(100) not null,
......@@ -34,4 +30,18 @@ create table IF NOT EXISTS T_BOOK
publisherid VARCHAR2(200),
price NUMBER,
pubyearisbn VARCHAR2(200)
);
create table IF NOT EXISTS T_ACTOR
(
actorid VARCHAR2(100) not null,
actorname VARCHAR2(200),
createman VARCHAR2(60),
updateman VARCHAR2(60),
createdate DATE,
updatedate DATE,
pseudonym VARCHAR2(200),
sex VARCHAR2(200),
school VARCHAR2(200),
education VARCHAR2(200),
birthday VARCHAR2(200)
);
\ No newline at end of file
<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
import cn.ibizhub.demo.demoMain;
import cn.ibizhub.demo.dycond.domain.ACTOR;
import cn.ibizhub.demo.dycond.mapper.ACTORMapper;
import cn.ibizhub.demo.dycond.service.ACTORService;
import cn.ibizhub.demo.dycond.service.dto.ACTORSearchFilter;
import cn.ibizhub.demo.relations.domain.PUBLISHER;
import cn.ibizhub.demo.relations.mapper.PUBLISHERMapper;
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 java.util.List;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = demoMain.class)
public class DyCondTest {
@Autowired
private ACTORService actorService;
@Test
public void testMain() {
System.out.println(("----- selectAll method test ------"));
ACTORSearchFilter actorSearchFilter=new ACTORSearchFilter();
actorSearchFilter.setN_sex_eq("男");
List<ACTOR> actorList = actorService.listDefault(actorSearchFilter);
actorList.forEach(System.out::println);
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册