diff --git a/demo/pom.xml b/demo/pom.xml index 7059f29..9ac5294 100644 --- a/demo/pom.xml +++ b/demo/pom.xml @@ -24,11 +24,33 @@ spring-boot-starter + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 1.3.2 + + + org.springframework.boot + spring-boot-starter-data-jpa + org.springframework.boot spring-boot-starter-test test + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-test + test + + + mysql + mysql-connector-java + diff --git a/demo/src/test/java/com/example/demo/Dao/auditMapper.java b/demo/src/test/java/com/example/demo/Dao/auditMapper.java new file mode 100644 index 0000000..a2df9fc --- /dev/null +++ b/demo/src/test/java/com/example/demo/Dao/auditMapper.java @@ -0,0 +1,35 @@ +package com.example.demo.Dao; + +import com.example.demo.bean.audio; +import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.Insert; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.Update; + +import java.util.List; + +@Mapper +public interface auditMapper { + @Select("select * from audio where checkNum = #{checkNum}") + public audio selectAudioByCheckNum(int checkNum); + + @Select("select * from audio") + public List