ADD file via upload

pull/4/head
pkratnch4 2 years ago
parent 5dce8cb59e
commit f1ae4450a7

@ -0,0 +1,27 @@
<?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.forum.dao.LinkDao">
<insert id="saveLink" parameterType="Link">
insert into link(name ,address,create_time) values (#{name},#{address},#{createTime});
</insert>
<delete id="deleteLink">
delete from link where id = #{id}
</delete>
<select id="getAllLink" resultType="Link">
select id,name,address,create_time from link
</select>
<select id="countLink" resultType="java.lang.Integer">
select count(*) from link
</select>
</mapper>
Loading…
Cancel
Save