ADD file via upload

master
moec42frf 2 years ago
parent 296d91c51c
commit 66ab52f209

@ -0,0 +1,21 @@
<?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="org.sang.mapper.CategoryMapper">
<select id="getAllCategories" resultType="org.sang.bean.Category">
SELECT * FROM category
</select>
<delete id="deleteCategoryByIds">
DELETE FROM category WHERE id IN
<foreach collection="ids" separator="," open="(" close=")" item="id">
#{id}
</foreach>
</delete>
<update id="updateCategoryById" parameterType="org.sang.bean.Category">
UPDATE category SET cateName=#{cateName} WHERE id=#{id}
</update>
<insert id="addCategory" parameterType="org.sang.bean.Category">
INSERT INTO category SET date=#{date},cateName=#{cateName}
</insert>
</mapper>
Loading…
Cancel
Save