From 2b81088b319758337cb7caf8b8916b5f66f957af Mon Sep 17 00:00:00 2001 From: pw52ag3q9 <2861084142@qq.com> Date: Sat, 29 Apr 2023 21:02:16 +0800 Subject: [PATCH] Update OrderItemMapper.xml --- src/main/resources/mapper/OrderItemMapper.xml | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/src/main/resources/mapper/OrderItemMapper.xml b/src/main/resources/mapper/OrderItemMapper.xml index 12bbf74..e4824bf 100644 --- a/src/main/resources/mapper/OrderItemMapper.xml +++ b/src/main/resources/mapper/OrderItemMapper.xml @@ -1 +1,131 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, pid, oid, uid, number + + + + + delete from orderitem + where id = #{id,jdbcType=INTEGER} + + + insert into orderitem (pid, oid, uid, + number) + values (#{pid,jdbcType=INTEGER}, #{oid,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, + #{number,jdbcType=INTEGER}) + + + insert into orderitem + + + pid, + + + oid, + + + uid, + + + number, + + + + + #{pid,jdbcType=INTEGER}, + + + #{oid,jdbcType=INTEGER}, + + + #{uid,jdbcType=INTEGER}, + + + #{number,jdbcType=INTEGER}, + + + + + update orderitem + + + pid = #{pid,jdbcType=INTEGER}, + + + oid = #{oid,jdbcType=INTEGER}, + + + uid = #{uid,jdbcType=INTEGER}, + + + number = #{number,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=INTEGER} + + + update orderitem + set pid = #{pid,jdbcType=INTEGER}, + oid = #{oid,jdbcType=INTEGER}, + uid = #{uid,jdbcType=INTEGER}, + number = #{number,jdbcType=INTEGER} + where id = #{id,jdbcType=INTEGER} + +