|
|
@@ -0,0 +1,139 @@
|
|
|
+<?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.usoftchina.saas.document.mapper.FundinouttypeMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Fundinouttype" >
|
|
|
+ <id column="ft_id" property="id" jdbcType="INTEGER" />
|
|
|
+ <result column="ft_name" property="ft_name" jdbcType="VARCHAR" />
|
|
|
+ <result column="ft_kind" property="ft_kind" jdbcType="VARCHAR" />
|
|
|
+ <result column="ft_recordid" property="ft_recordid" jdbcType="INTEGER" />
|
|
|
+ <result column="ft_recorder" property="ft_recorder" jdbcType="VARCHAR" />
|
|
|
+ <result column="ft_date" property="ft_date" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="companyId" property="companyId" jdbcType="INTEGER" />
|
|
|
+ <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
+ <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ ft_id, ft_name, ft_kind, ft_recordid, ft_recorder, ft_date, companyId, updaterId,
|
|
|
+ updateTime
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from fundinouttype
|
|
|
+ where ft_id = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
|
|
+ delete from fundinouttype
|
|
|
+ where ft_id = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Fundinouttype" >
|
|
|
+ insert into fundinouttype (ft_name, ft_kind,
|
|
|
+ ft_recordid, ft_recorder, ft_date,
|
|
|
+ companyId, updaterId, updateTime
|
|
|
+ )
|
|
|
+ values (#{ft_name,jdbcType=VARCHAR}, #{ft_kind,jdbcType=VARCHAR},
|
|
|
+ #{ft_recordid,jdbcType=INTEGER}, #{ft_recorder,jdbcType=VARCHAR}, #{ft_date,jdbcType=TIMESTAMP},
|
|
|
+ #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Fundinouttype" >
|
|
|
+ insert into fundinouttype
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="ft_name != null" >
|
|
|
+ ft_name,
|
|
|
+ </if>
|
|
|
+ <if test="ft_kind != null" >
|
|
|
+ ft_kind,
|
|
|
+ </if>
|
|
|
+ <if test="ft_recordid != null" >
|
|
|
+ ft_recordid,
|
|
|
+ </if>
|
|
|
+ <if test="ft_recorder != null" >
|
|
|
+ ft_recorder,
|
|
|
+ </if>
|
|
|
+ <if test="ft_date != null" >
|
|
|
+ ft_date,
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId,
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null" >
|
|
|
+ updaterId,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ updateTime,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="ft_name != null" >
|
|
|
+ #{ft_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ft_kind != null" >
|
|
|
+ #{ft_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ft_recordid != null" >
|
|
|
+ #{ft_recordid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ft_recorder != null" >
|
|
|
+ #{ft_recorder,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ft_date != null" >
|
|
|
+ #{ft_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null" >
|
|
|
+ #{companyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null" >
|
|
|
+ #{updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Fundinouttype" >
|
|
|
+ update fundinouttype
|
|
|
+ <set >
|
|
|
+ <if test="ft_name != null" >
|
|
|
+ ft_name = #{ft_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ft_kind != null" >
|
|
|
+ ft_kind = #{ft_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ft_recordid != null" >
|
|
|
+ ft_recordid = #{ft_recordid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ft_recorder != null" >
|
|
|
+ ft_recorder = #{ft_recorder,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ft_date != null" >
|
|
|
+ ft_date = #{ft_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId = #{companyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null" >
|
|
|
+ updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where ft_id = #{id}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Fundinouttype" >
|
|
|
+ update fundinouttype
|
|
|
+ set ft_name = #{ft_name,jdbcType=VARCHAR},
|
|
|
+ ft_kind = #{ft_kind,jdbcType=VARCHAR},
|
|
|
+ ft_recordid = #{ft_recordid,jdbcType=INTEGER},
|
|
|
+ ft_recorder = #{ft_recorder,jdbcType=VARCHAR},
|
|
|
+ ft_date = #{ft_date,jdbcType=TIMESTAMP},
|
|
|
+ companyId = #{companyId,jdbcType=INTEGER},
|
|
|
+ updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
+ updateTime = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
+ where ft_id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap">
|
|
|
+ SELECT * FROM FUNDINOUTTYPE
|
|
|
+ </select>
|
|
|
+</mapper>
|