|
|
@@ -1,76 +0,0 @@
|
|
|
-<?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.goafanti.common.dao.AmbInvestLogMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.AmbInvestLog">
|
|
|
- <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
- <result column="amount" jdbcType="DECIMAL" property="amount" />
|
|
|
- <result column="comment" jdbcType="VARCHAR" property="comment" />
|
|
|
- <result column="operator" jdbcType="VARCHAR" property="operator" />
|
|
|
- </resultMap>
|
|
|
- <sql id="Base_Column_List">
|
|
|
- id, amount, `comment`, `operator`
|
|
|
- </sql>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from amb_invest_log
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
- delete from amb_invest_log
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </delete>
|
|
|
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AmbInvestLog" useGeneratedKeys="true">
|
|
|
- insert into amb_invest_log (amount, `comment`, `operator`
|
|
|
- )
|
|
|
- values (#{amount,jdbcType=DECIMAL}, #{comment,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AmbInvestLog" useGeneratedKeys="true">
|
|
|
- insert into amb_invest_log
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="amount != null">
|
|
|
- amount,
|
|
|
- </if>
|
|
|
- <if test="comment != null">
|
|
|
- `comment`,
|
|
|
- </if>
|
|
|
- <if test="operator != null">
|
|
|
- `operator`,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="amount != null">
|
|
|
- #{amount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="comment != null">
|
|
|
- #{comment,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="operator != null">
|
|
|
- #{operator,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.AmbInvestLog">
|
|
|
- update amb_invest_log
|
|
|
- <set>
|
|
|
- <if test="amount != null">
|
|
|
- amount = #{amount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="comment != null">
|
|
|
- `comment` = #{comment,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="operator != null">
|
|
|
- `operator` = #{operator,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.AmbInvestLog">
|
|
|
- update amb_invest_log
|
|
|
- set amount = #{amount,jdbcType=DECIMAL},
|
|
|
- `comment` = #{comment,jdbcType=VARCHAR},
|
|
|
- `operator` = #{operator,jdbcType=VARCHAR}
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
-</mapper>
|