From 3b8b1c99fb424a141c2034cc90377351d49a6d20 Mon Sep 17 00:00:00 2001 From: pw52ag3q9 <2861084142@qq.com> Date: Sat, 29 Apr 2023 21:01:51 +0800 Subject: [PATCH] Update CategoryMapper.xml --- src/main/resources/mapper/CategoryMapper.xml | 95 ++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/src/main/resources/mapper/CategoryMapper.xml b/src/main/resources/mapper/CategoryMapper.xml index 12bbf74..5fbeb27 100644 --- a/src/main/resources/mapper/CategoryMapper.xml +++ b/src/main/resources/mapper/CategoryMapper.xml @@ -1 +1,96 @@ + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name + + + + + delete from category + where id = #{id,jdbcType=INTEGER} + + + insert into category (name) + values (#{name,jdbcType=VARCHAR}) + + + insert into category + + + name, + + + + + #{name,jdbcType=VARCHAR}, + + + + + update category + + + name = #{name,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update category + set name = #{name,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + +