parent
d35fffea20
commit
225b01b1e7
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="SqlDialectMappings">
|
<component name="SqlDialectMappings">
|
||||||
<file url="file://$PROJECT_DIR$/src/main/resources/com/keafmd/dao/IUserDao.xml" dialect="GenericSQL" />
|
<file url="file://$PROJECT_DIR$/src/main/resources/com/keafmd/dao/IDataDao.xml" dialect="GenericSQL" />
|
||||||
<file url="PROJECT" dialect="Oracle" />
|
<file url="PROJECT" dialect="Oracle" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.keafmd.dao;
|
||||||
|
|
||||||
|
import com.keafmd.domain.Drugs;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface IDrugDao {
|
||||||
|
List<Drugs> find_drugs();
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.keafmd.domain;
|
||||||
|
|
||||||
|
public class Drugs {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.keafmd.dao.IUserDao">
|
||||||
|
|
||||||
|
<select id="find_User" resultType="com.keafmd.domain.User">
|
||||||
|
select * from T_User
|
||||||
|
<if test = "ID != null">
|
||||||
|
AND ID like #{ID}
|
||||||
|
</if>
|
||||||
|
<if test = "name != null">
|
||||||
|
AND name like #{name}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue