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} + +