|
|
@@ -0,0 +1,832 @@
|
|
|
+<?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.money.mapper.BanksubledgerMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ <id column="bl_id" jdbcType="INTEGER" property="bl_id" />
|
|
|
+ <result column="bl_ym" jdbcType="INTEGER" property="bl_ym" />
|
|
|
+ <result column="bl_bankid" jdbcType="INTEGER" property="bl_bankid" />
|
|
|
+ <result column="bl_bankcode" jdbcType="VARCHAR" property="bl_bankcode" />
|
|
|
+ <result column="bl_bankname" jdbcType="VARCHAR" property="bl_bankname" />
|
|
|
+ <result column="bl_code" jdbcType="VARCHAR" property="bl_code" />
|
|
|
+ <result column="bl_kind" jdbcType="VARCHAR" property="bl_kind" />
|
|
|
+ <result column="bl_date" jdbcType="TIMESTAMP" property="bl_date" />
|
|
|
+ <result column="bl_asstype" jdbcType="VARCHAR" property="bl_asstype" />
|
|
|
+ <result column="bl_asscode" jdbcType="VARCHAR" property="bl_asscode" />
|
|
|
+ <result column="bl_assname" jdbcType="VARCHAR" property="bl_assname" />
|
|
|
+ <result column="bl_income" jdbcType="DOUBLE" property="bl_income" />
|
|
|
+ <result column="bl_spending" jdbcType="DOUBLE" property="bl_spending" />
|
|
|
+ <result column="bl_manname" jdbcType="VARCHAR" property="bl_manname" />
|
|
|
+ <result column="bl_remark" jdbcType="VARCHAR" property="bl_remark" />
|
|
|
+ <result column="companyid" jdbcType="INTEGER" property="companyid" />
|
|
|
+ <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
|
|
|
+ <result column="updatedate" jdbcType="TIMESTAMP" property="updatedate" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ bl_id, bl_ym, bl_bankid, bl_bankcode, bl_bankname, bl_code, bl_kind, bl_date, bl_asstype,
|
|
|
+ bl_asscode, bl_assname, bl_income, bl_spending, bl_manname, bl_remark, companyid,
|
|
|
+ updaterId, updatedate
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from banksubledger
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from banksubledger
|
|
|
+ where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ delete from banksubledger
|
|
|
+ where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample">
|
|
|
+ delete from banksubledger
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ insert into banksubledger (bl_id, bl_ym, bl_bankid,
|
|
|
+ bl_bankcode, bl_bankname, bl_code,
|
|
|
+ bl_kind, bl_date, bl_asstype,
|
|
|
+ bl_asscode, bl_assname, bl_income,
|
|
|
+ bl_spending, bl_manname, bl_remark,
|
|
|
+ companyid, updaterId, updatedate
|
|
|
+ )
|
|
|
+ values (#{bl_id,jdbcType=INTEGER}, #{bl_ym,jdbcType=INTEGER}, #{bl_bankid,jdbcType=INTEGER},
|
|
|
+ #{bl_bankcode,jdbcType=VARCHAR}, #{bl_bankname,jdbcType=VARCHAR}, #{bl_code,jdbcType=VARCHAR},
|
|
|
+ #{bl_kind,jdbcType=VARCHAR}, #{bl_date,jdbcType=TIMESTAMP}, #{bl_asstype,jdbcType=VARCHAR},
|
|
|
+ #{bl_asscode,jdbcType=VARCHAR}, #{bl_assname,jdbcType=VARCHAR}, #{bl_income,jdbcType=DOUBLE},
|
|
|
+ #{bl_spending,jdbcType=DOUBLE}, #{bl_manname,jdbcType=VARCHAR}, #{bl_remark,jdbcType=VARCHAR},
|
|
|
+ #{companyid,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ insert into banksubledger
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="bl_id != null">
|
|
|
+ bl_id,
|
|
|
+ </if>
|
|
|
+ <if test="bl_ym != null">
|
|
|
+ bl_ym,
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankid != null">
|
|
|
+ bl_bankid,
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankcode != null">
|
|
|
+ bl_bankcode,
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankname != null">
|
|
|
+ bl_bankname,
|
|
|
+ </if>
|
|
|
+ <if test="bl_code != null">
|
|
|
+ bl_code,
|
|
|
+ </if>
|
|
|
+ <if test="bl_kind != null">
|
|
|
+ bl_kind,
|
|
|
+ </if>
|
|
|
+ <if test="bl_date != null">
|
|
|
+ bl_date,
|
|
|
+ </if>
|
|
|
+ <if test="bl_asstype != null">
|
|
|
+ bl_asstype,
|
|
|
+ </if>
|
|
|
+ <if test="bl_asscode != null">
|
|
|
+ bl_asscode,
|
|
|
+ </if>
|
|
|
+ <if test="bl_assname != null">
|
|
|
+ bl_assname,
|
|
|
+ </if>
|
|
|
+ <if test="bl_income != null">
|
|
|
+ bl_income,
|
|
|
+ </if>
|
|
|
+ <if test="bl_spending != null">
|
|
|
+ bl_spending,
|
|
|
+ </if>
|
|
|
+ <if test="bl_manname != null">
|
|
|
+ bl_manname,
|
|
|
+ </if>
|
|
|
+ <if test="bl_remark != null">
|
|
|
+ bl_remark,
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null">
|
|
|
+ companyid,
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null">
|
|
|
+ updaterId,
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null">
|
|
|
+ updatedate,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="bl_id != null">
|
|
|
+ #{bl_id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_ym != null">
|
|
|
+ #{bl_ym,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankid != null">
|
|
|
+ #{bl_bankid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankcode != null">
|
|
|
+ #{bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankname != null">
|
|
|
+ #{bl_bankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_code != null">
|
|
|
+ #{bl_code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_kind != null">
|
|
|
+ #{bl_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_date != null">
|
|
|
+ #{bl_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bl_asstype != null">
|
|
|
+ #{bl_asstype,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_asscode != null">
|
|
|
+ #{bl_asscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_assname != null">
|
|
|
+ #{bl_assname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_income != null">
|
|
|
+ #{bl_income,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bl_spending != null">
|
|
|
+ #{bl_spending,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bl_manname != null">
|
|
|
+ #{bl_manname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_remark != null">
|
|
|
+ #{bl_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null">
|
|
|
+ #{companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null">
|
|
|
+ #{updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null">
|
|
|
+ #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultType="java.lang.Integer">
|
|
|
+ select count(*) from banksubledger
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update banksubledger
|
|
|
+ <set>
|
|
|
+ <if test="record.bl_id != null">
|
|
|
+ bl_id = #{record.bl_id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_ym != null">
|
|
|
+ bl_ym = #{record.bl_ym,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_bankid != null">
|
|
|
+ bl_bankid = #{record.bl_bankid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_bankcode != null">
|
|
|
+ bl_bankcode = #{record.bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_bankname != null">
|
|
|
+ bl_bankname = #{record.bl_bankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_code != null">
|
|
|
+ bl_code = #{record.bl_code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_kind != null">
|
|
|
+ bl_kind = #{record.bl_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_date != null">
|
|
|
+ bl_date = #{record.bl_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_asstype != null">
|
|
|
+ bl_asstype = #{record.bl_asstype,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_asscode != null">
|
|
|
+ bl_asscode = #{record.bl_asscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_assname != null">
|
|
|
+ bl_assname = #{record.bl_assname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_income != null">
|
|
|
+ bl_income = #{record.bl_income,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_spending != null">
|
|
|
+ bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_manname != null">
|
|
|
+ bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_remark != null">
|
|
|
+ bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.companyid != null">
|
|
|
+ companyid = #{record.companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.updaterId != null">
|
|
|
+ updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.updatedate != null">
|
|
|
+ updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update banksubledger
|
|
|
+ set bl_id = #{record.bl_id,jdbcType=INTEGER},
|
|
|
+ bl_ym = #{record.bl_ym,jdbcType=INTEGER},
|
|
|
+ bl_bankid = #{record.bl_bankid,jdbcType=INTEGER},
|
|
|
+ bl_bankcode = #{record.bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ bl_bankname = #{record.bl_bankname,jdbcType=VARCHAR},
|
|
|
+ bl_code = #{record.bl_code,jdbcType=VARCHAR},
|
|
|
+ bl_kind = #{record.bl_kind,jdbcType=VARCHAR},
|
|
|
+ bl_date = #{record.bl_date,jdbcType=TIMESTAMP},
|
|
|
+ bl_asstype = #{record.bl_asstype,jdbcType=VARCHAR},
|
|
|
+ bl_asscode = #{record.bl_asscode,jdbcType=VARCHAR},
|
|
|
+ bl_assname = #{record.bl_assname,jdbcType=VARCHAR},
|
|
|
+ bl_income = #{record.bl_income,jdbcType=DOUBLE},
|
|
|
+ bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
|
|
|
+ bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
|
|
|
+ bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
|
|
|
+ companyid = #{record.companyid,jdbcType=INTEGER},
|
|
|
+ updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
|
+ updatedate = #{record.updatedate,jdbcType=TIMESTAMP}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ update banksubledger
|
|
|
+ <set>
|
|
|
+ <if test="bl_ym != null">
|
|
|
+ bl_ym = #{bl_ym,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankid != null">
|
|
|
+ bl_bankid = #{bl_bankid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankcode != null">
|
|
|
+ bl_bankcode = #{bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankname != null">
|
|
|
+ bl_bankname = #{bl_bankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_code != null">
|
|
|
+ bl_code = #{bl_code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_kind != null">
|
|
|
+ bl_kind = #{bl_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_date != null">
|
|
|
+ bl_date = #{bl_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bl_asstype != null">
|
|
|
+ bl_asstype = #{bl_asstype,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_asscode != null">
|
|
|
+ bl_asscode = #{bl_asscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_assname != null">
|
|
|
+ bl_assname = #{bl_assname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_income != null">
|
|
|
+ bl_income = #{bl_income,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bl_spending != null">
|
|
|
+ bl_spending = #{bl_spending,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bl_manname != null">
|
|
|
+ bl_manname = #{bl_manname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_remark != null">
|
|
|
+ bl_remark = #{bl_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null">
|
|
|
+ companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null">
|
|
|
+ updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null">
|
|
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ update banksubledger
|
|
|
+ set bl_ym = #{bl_ym,jdbcType=INTEGER},
|
|
|
+ bl_bankid = #{bl_bankid,jdbcType=INTEGER},
|
|
|
+ bl_bankcode = #{bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ bl_bankname = #{bl_bankname,jdbcType=VARCHAR},
|
|
|
+ bl_code = #{bl_code,jdbcType=VARCHAR},
|
|
|
+ bl_kind = #{bl_kind,jdbcType=VARCHAR},
|
|
|
+ bl_date = #{bl_date,jdbcType=TIMESTAMP},
|
|
|
+ bl_asstype = #{bl_asstype,jdbcType=VARCHAR},
|
|
|
+ bl_asscode = #{bl_asscode,jdbcType=VARCHAR},
|
|
|
+ bl_assname = #{bl_assname,jdbcType=VARCHAR},
|
|
|
+ bl_income = #{bl_income,jdbcType=DOUBLE},
|
|
|
+ bl_spending = #{bl_spending,jdbcType=DOUBLE},
|
|
|
+ bl_manname = #{bl_manname,jdbcType=VARCHAR},
|
|
|
+ bl_remark = #{bl_remark,jdbcType=VARCHAR},
|
|
|
+ companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP}
|
|
|
+ where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ <id column="bl_id" jdbcType="INTEGER" property="bl_id" />
|
|
|
+ <result column="bl_ym" jdbcType="INTEGER" property="bl_ym" />
|
|
|
+ <result column="bl_bankid" jdbcType="INTEGER" property="bl_bankid" />
|
|
|
+ <result column="bl_bankcode" jdbcType="VARCHAR" property="bl_bankcode" />
|
|
|
+ <result column="bl_bankname" jdbcType="VARCHAR" property="bl_bankname" />
|
|
|
+ <result column="bl_code" jdbcType="VARCHAR" property="bl_code" />
|
|
|
+ <result column="bl_kind" jdbcType="VARCHAR" property="bl_kind" />
|
|
|
+ <result column="bl_date" jdbcType="TIMESTAMP" property="bl_date" />
|
|
|
+ <result column="bl_asstype" jdbcType="VARCHAR" property="bl_asstype" />
|
|
|
+ <result column="bl_asscode" jdbcType="VARCHAR" property="bl_asscode" />
|
|
|
+ <result column="bl_assname" jdbcType="VARCHAR" property="bl_assname" />
|
|
|
+ <result column="bl_income" jdbcType="DOUBLE" property="bl_income" />
|
|
|
+ <result column="bl_spending" jdbcType="DOUBLE" property="bl_spending" />
|
|
|
+ <result column="bl_manname" jdbcType="VARCHAR" property="bl_manname" />
|
|
|
+ <result column="bl_remark" jdbcType="VARCHAR" property="bl_remark" />
|
|
|
+ <result column="companyid" jdbcType="INTEGER" property="companyid" />
|
|
|
+ <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
|
|
|
+ <result column="updatedate" jdbcType="TIMESTAMP" property="updatedate" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ bl_id, bl_ym, bl_bankid, bl_bankcode, bl_bankname, bl_code, bl_kind, bl_date, bl_asstype,
|
|
|
+ bl_asscode, bl_assname, bl_income, bl_spending, bl_manname, bl_remark, companyid,
|
|
|
+ updaterId, updatedate
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from banksubledger
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from banksubledger
|
|
|
+ where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ delete from banksubledger
|
|
|
+ where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample">
|
|
|
+ delete from banksubledger
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ insert into banksubledger (bl_id, bl_ym, bl_bankid,
|
|
|
+ bl_bankcode, bl_bankname, bl_code,
|
|
|
+ bl_kind, bl_date, bl_asstype,
|
|
|
+ bl_asscode, bl_assname, bl_income,
|
|
|
+ bl_spending, bl_manname, bl_remark,
|
|
|
+ companyid, updaterId, updatedate
|
|
|
+ )
|
|
|
+ values (#{bl_id,jdbcType=INTEGER}, #{bl_ym,jdbcType=INTEGER}, #{bl_bankid,jdbcType=INTEGER},
|
|
|
+ #{bl_bankcode,jdbcType=VARCHAR}, #{bl_bankname,jdbcType=VARCHAR}, #{bl_code,jdbcType=VARCHAR},
|
|
|
+ #{bl_kind,jdbcType=VARCHAR}, #{bl_date,jdbcType=TIMESTAMP}, #{bl_asstype,jdbcType=VARCHAR},
|
|
|
+ #{bl_asscode,jdbcType=VARCHAR}, #{bl_assname,jdbcType=VARCHAR}, #{bl_income,jdbcType=DOUBLE},
|
|
|
+ #{bl_spending,jdbcType=DOUBLE}, #{bl_manname,jdbcType=VARCHAR}, #{bl_remark,jdbcType=VARCHAR},
|
|
|
+ #{companyid,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ insert into banksubledger
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="bl_id != null">
|
|
|
+ bl_id,
|
|
|
+ </if>
|
|
|
+ <if test="bl_ym != null">
|
|
|
+ bl_ym,
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankid != null">
|
|
|
+ bl_bankid,
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankcode != null">
|
|
|
+ bl_bankcode,
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankname != null">
|
|
|
+ bl_bankname,
|
|
|
+ </if>
|
|
|
+ <if test="bl_code != null">
|
|
|
+ bl_code,
|
|
|
+ </if>
|
|
|
+ <if test="bl_kind != null">
|
|
|
+ bl_kind,
|
|
|
+ </if>
|
|
|
+ <if test="bl_date != null">
|
|
|
+ bl_date,
|
|
|
+ </if>
|
|
|
+ <if test="bl_asstype != null">
|
|
|
+ bl_asstype,
|
|
|
+ </if>
|
|
|
+ <if test="bl_asscode != null">
|
|
|
+ bl_asscode,
|
|
|
+ </if>
|
|
|
+ <if test="bl_assname != null">
|
|
|
+ bl_assname,
|
|
|
+ </if>
|
|
|
+ <if test="bl_income != null">
|
|
|
+ bl_income,
|
|
|
+ </if>
|
|
|
+ <if test="bl_spending != null">
|
|
|
+ bl_spending,
|
|
|
+ </if>
|
|
|
+ <if test="bl_manname != null">
|
|
|
+ bl_manname,
|
|
|
+ </if>
|
|
|
+ <if test="bl_remark != null">
|
|
|
+ bl_remark,
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null">
|
|
|
+ companyid,
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null">
|
|
|
+ updaterId,
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null">
|
|
|
+ updatedate,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="bl_id != null">
|
|
|
+ #{bl_id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_ym != null">
|
|
|
+ #{bl_ym,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankid != null">
|
|
|
+ #{bl_bankid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankcode != null">
|
|
|
+ #{bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankname != null">
|
|
|
+ #{bl_bankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_code != null">
|
|
|
+ #{bl_code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_kind != null">
|
|
|
+ #{bl_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_date != null">
|
|
|
+ #{bl_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bl_asstype != null">
|
|
|
+ #{bl_asstype,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_asscode != null">
|
|
|
+ #{bl_asscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_assname != null">
|
|
|
+ #{bl_assname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_income != null">
|
|
|
+ #{bl_income,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bl_spending != null">
|
|
|
+ #{bl_spending,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bl_manname != null">
|
|
|
+ #{bl_manname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_remark != null">
|
|
|
+ #{bl_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null">
|
|
|
+ #{companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null">
|
|
|
+ #{updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null">
|
|
|
+ #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultType="java.lang.Integer">
|
|
|
+ select count(*) from banksubledger
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update banksubledger
|
|
|
+ <set>
|
|
|
+ <if test="record.bl_id != null">
|
|
|
+ bl_id = #{record.bl_id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_ym != null">
|
|
|
+ bl_ym = #{record.bl_ym,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_bankid != null">
|
|
|
+ bl_bankid = #{record.bl_bankid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_bankcode != null">
|
|
|
+ bl_bankcode = #{record.bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_bankname != null">
|
|
|
+ bl_bankname = #{record.bl_bankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_code != null">
|
|
|
+ bl_code = #{record.bl_code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_kind != null">
|
|
|
+ bl_kind = #{record.bl_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_date != null">
|
|
|
+ bl_date = #{record.bl_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_asstype != null">
|
|
|
+ bl_asstype = #{record.bl_asstype,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_asscode != null">
|
|
|
+ bl_asscode = #{record.bl_asscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_assname != null">
|
|
|
+ bl_assname = #{record.bl_assname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_income != null">
|
|
|
+ bl_income = #{record.bl_income,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_spending != null">
|
|
|
+ bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_manname != null">
|
|
|
+ bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bl_remark != null">
|
|
|
+ bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.companyid != null">
|
|
|
+ companyid = #{record.companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.updaterId != null">
|
|
|
+ updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.updatedate != null">
|
|
|
+ updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update banksubledger
|
|
|
+ set bl_id = #{record.bl_id,jdbcType=INTEGER},
|
|
|
+ bl_ym = #{record.bl_ym,jdbcType=INTEGER},
|
|
|
+ bl_bankid = #{record.bl_bankid,jdbcType=INTEGER},
|
|
|
+ bl_bankcode = #{record.bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ bl_bankname = #{record.bl_bankname,jdbcType=VARCHAR},
|
|
|
+ bl_code = #{record.bl_code,jdbcType=VARCHAR},
|
|
|
+ bl_kind = #{record.bl_kind,jdbcType=VARCHAR},
|
|
|
+ bl_date = #{record.bl_date,jdbcType=TIMESTAMP},
|
|
|
+ bl_asstype = #{record.bl_asstype,jdbcType=VARCHAR},
|
|
|
+ bl_asscode = #{record.bl_asscode,jdbcType=VARCHAR},
|
|
|
+ bl_assname = #{record.bl_assname,jdbcType=VARCHAR},
|
|
|
+ bl_income = #{record.bl_income,jdbcType=DOUBLE},
|
|
|
+ bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
|
|
|
+ bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
|
|
|
+ bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
|
|
|
+ companyid = #{record.companyid,jdbcType=INTEGER},
|
|
|
+ updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
|
+ updatedate = #{record.updatedate,jdbcType=TIMESTAMP}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ update banksubledger
|
|
|
+ <set>
|
|
|
+ <if test="bl_ym != null">
|
|
|
+ bl_ym = #{bl_ym,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankid != null">
|
|
|
+ bl_bankid = #{bl_bankid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankcode != null">
|
|
|
+ bl_bankcode = #{bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_bankname != null">
|
|
|
+ bl_bankname = #{bl_bankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_code != null">
|
|
|
+ bl_code = #{bl_code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_kind != null">
|
|
|
+ bl_kind = #{bl_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_date != null">
|
|
|
+ bl_date = #{bl_date,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bl_asstype != null">
|
|
|
+ bl_asstype = #{bl_asstype,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_asscode != null">
|
|
|
+ bl_asscode = #{bl_asscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_assname != null">
|
|
|
+ bl_assname = #{bl_assname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_income != null">
|
|
|
+ bl_income = #{bl_income,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bl_spending != null">
|
|
|
+ bl_spending = #{bl_spending,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="bl_manname != null">
|
|
|
+ bl_manname = #{bl_manname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bl_remark != null">
|
|
|
+ bl_remark = #{bl_remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null">
|
|
|
+ companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null">
|
|
|
+ updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null">
|
|
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
+ update banksubledger
|
|
|
+ set bl_ym = #{bl_ym,jdbcType=INTEGER},
|
|
|
+ bl_bankid = #{bl_bankid,jdbcType=INTEGER},
|
|
|
+ bl_bankcode = #{bl_bankcode,jdbcType=VARCHAR},
|
|
|
+ bl_bankname = #{bl_bankname,jdbcType=VARCHAR},
|
|
|
+ bl_code = #{bl_code,jdbcType=VARCHAR},
|
|
|
+ bl_kind = #{bl_kind,jdbcType=VARCHAR},
|
|
|
+ bl_date = #{bl_date,jdbcType=TIMESTAMP},
|
|
|
+ bl_asstype = #{bl_asstype,jdbcType=VARCHAR},
|
|
|
+ bl_asscode = #{bl_asscode,jdbcType=VARCHAR},
|
|
|
+ bl_assname = #{bl_assname,jdbcType=VARCHAR},
|
|
|
+ bl_income = #{bl_income,jdbcType=DOUBLE},
|
|
|
+ bl_spending = #{bl_spending,jdbcType=DOUBLE},
|
|
|
+ bl_manname = #{bl_manname,jdbcType=VARCHAR},
|
|
|
+ bl_remark = #{bl_remark,jdbcType=VARCHAR},
|
|
|
+ companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP}
|
|
|
+ where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|