From 59e91a4e9ddaf23cebb12993c774aa899ab22d16 Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: Mon, 19 Jun 2023 14:22:45 +0800
Subject: [PATCH] 描述
---
src/main/java/com/gk/firework/Mapper/mybatis/ProductPriceInfoMapper.xml | 80 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 80 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/ProductPriceInfoMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/ProductPriceInfoMapper.xml
new file mode 100644
index 0000000..cdf4f3b
--- /dev/null
+++ b/src/main/java/com/gk/firework/Mapper/mybatis/ProductPriceInfoMapper.xml
@@ -0,0 +1,80 @@
+<?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.gk.firework.Mapper.ProductPriceInfoMapper" >
+ <resultMap id="BaseResultMap" type="com.gk.firework.Domain.ProductPriceInfo" >
+ <!-- -->
+ <id column="id" property="id" jdbcType="BIGINT" />
+ <result column="companynumber" property="companynumber" jdbcType="VARCHAR" />
+ <result column="itemcode" property="itemcode" jdbcType="VARCHAR" />
+ <result column="price" property="price" jdbcType="DECIMAL" />
+ <result column="updated" property="updated" jdbcType="TIMESTAMP" />
+ <result column="updator" property="updator" jdbcType="VARCHAR" />
+ </resultMap>
+ <sql id="Base_Column_List" >
+ <!-- -->
+ id, companynumber, itemcode, price, updated, updator
+ </sql>
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
+ <!-- -->
+ select
+ <include refid="Base_Column_List" />
+ from productprice
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <select id="selectByCode" resultType="com.gk.firework.Domain.ProductPriceInfo">
+ select
+ *
+ from productprice
+ where companynumber = #{companynumber}
+ and itemcode = #{directionCode}
+ </select>
+ <select id="selectByCodes" resultType="com.gk.firework.Domain.ProductPriceInfo">
+ select
+ *
+ from productprice
+ where companynumber = #{companynumber}
+ and itemcode in
+ <foreach collection="list" item="item" open="(" close=")">
+ #{item}
+ </foreach>
+
+
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
+ <!-- -->
+ delete from productprice
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.ProductPriceInfo" >
+ <!-- -->
+ update productprice
+ <set >
+ <if test="companynumber != null" >
+ companynumber = #{companynumber,jdbcType=VARCHAR},
+ </if>
+ <if test="itemcode != null" >
+ itemcode = #{itemcode,jdbcType=VARCHAR},
+ </if>
+ <if test="price != null" >
+ price = #{price,jdbcType=DECIMAL},
+ </if>
+ <if test="updated != null" >
+ updated = #{updated,jdbcType=TIMESTAMP},
+ </if>
+ <if test="updator != null" >
+ updator = #{updator,jdbcType=VARCHAR},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.ProductPriceInfo" >
+ <!-- -->
+ update productprice
+ set companynumber = #{companynumber,jdbcType=VARCHAR},
+ itemcode = #{itemcode,jdbcType=VARCHAR},
+ price = #{price,jdbcType=DECIMAL},
+ updated = #{updated,jdbcType=TIMESTAMP},
+ updator = #{updator,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+</mapper>
--
Gitblit v1.9.2