对比新文件 |
| | |
| | | <?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> |