|
|
@@ -0,0 +1,326 @@
|
|
|
+<?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.OthreceiptsMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Othreceipts" >
|
|
|
+ <id column="or_id" property="orId" jdbcType="INTEGER" />
|
|
|
+ <result column="or_code" property="orCode" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_date" property="orDate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="or_custid" property="orCustid" jdbcType="INTEGER" />
|
|
|
+ <result column="or_custcode" property="orCustcode" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_custname" property="orCustname" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_bankcode" property="orBankcode" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_bankid" property="orBankid" jdbcType="INTEGER" />
|
|
|
+ <result column="or_bankname" property="orBankname" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_amount" property="orAmount" jdbcType="DOUBLE" />
|
|
|
+ <result column="or_recorderid" property="orRecorderid" jdbcType="INTEGER" />
|
|
|
+ <result column="or_recorder" property="orRecorder" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_recorddate" property="orRecorddate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="or_status" property="orStatus" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_statuscode" property="orStatuscode" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_remark" property="orRemark" jdbcType="VARCHAR" />
|
|
|
+ <result column="companyId" property="companyid" jdbcType="INTEGER" />
|
|
|
+ <result column="updaterId" property="updaterid" jdbcType="INTEGER" />
|
|
|
+ <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="or_text1" property="orText1" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_text2" property="orText2" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_text3" property="orText3" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_text4" property="orText4" jdbcType="VARCHAR" />
|
|
|
+ <result column="or_text5" property="orText5" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ or_id, or_code, or_date, or_custid, or_custcode, or_custname, or_bankcode, or_bankid,
|
|
|
+ or_bankname, or_amount, or_recorderid, or_recorder, or_recorddate, or_status, or_statuscode,
|
|
|
+ or_remark, companyId, updaterId, updatedate, or_text1, or_text2, or_text3, or_text4,
|
|
|
+ or_text5
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from othreceipts
|
|
|
+ where or_id = #{orId,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectList" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from othreceipts
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ delete from othreceipts
|
|
|
+ where or_id = #{orId,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.money.po.Othreceipts" >
|
|
|
+ insert into othreceipts (or_id, or_code, or_date,
|
|
|
+ or_custid, or_custcode, or_custname,
|
|
|
+ or_bankcode, or_bankid, or_bankname,
|
|
|
+ or_amount, or_recorderid, or_recorder,
|
|
|
+ or_recorddate, or_status, or_statuscode,
|
|
|
+ or_remark, companyId, updaterId,
|
|
|
+ updatedate, or_text1, or_text2,
|
|
|
+ or_text3, or_text4, or_text5
|
|
|
+ )
|
|
|
+ values (#{orId,jdbcType=INTEGER}, #{orCode,jdbcType=VARCHAR}, #{orDate,jdbcType=TIMESTAMP},
|
|
|
+ #{orCustid,jdbcType=INTEGER}, #{orCustcode,jdbcType=VARCHAR}, #{orCustname,jdbcType=VARCHAR},
|
|
|
+ #{orBankcode,jdbcType=VARCHAR}, #{orBankid,jdbcType=INTEGER}, #{orBankname,jdbcType=VARCHAR},
|
|
|
+ #{orAmount,jdbcType=DOUBLE}, #{orRecorderid,jdbcType=INTEGER}, #{orRecorder,jdbcType=VARCHAR},
|
|
|
+ #{orRecorddate,jdbcType=TIMESTAMP}, #{orStatus,jdbcType=INTEGER}, #{orStatuscode,jdbcType=DECIMAL},
|
|
|
+ #{orRemark,jdbcType=VARCHAR}, #{companyid,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER},
|
|
|
+ #{updatedate,jdbcType=TIMESTAMP}, #{orText1,jdbcType=VARCHAR}, #{orText2,jdbcType=VARCHAR},
|
|
|
+ #{orText3,jdbcType=VARCHAR}, #{orText4,jdbcType=VARCHAR}, #{orText5,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Othreceipts" >
|
|
|
+ insert into othreceipts
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="orId != null" >
|
|
|
+ or_id,
|
|
|
+ </if>
|
|
|
+ <if test="orCode != null" >
|
|
|
+ or_code,
|
|
|
+ </if>
|
|
|
+ <if test="orDate != null" >
|
|
|
+ or_date,
|
|
|
+ </if>
|
|
|
+ <if test="orCustid != null" >
|
|
|
+ or_custid,
|
|
|
+ </if>
|
|
|
+ <if test="orCustcode != null" >
|
|
|
+ or_custcode,
|
|
|
+ </if>
|
|
|
+ <if test="orCustname != null" >
|
|
|
+ or_custname,
|
|
|
+ </if>
|
|
|
+ <if test="orBankcode != null" >
|
|
|
+ or_bankcode,
|
|
|
+ </if>
|
|
|
+ <if test="orBankid != null" >
|
|
|
+ or_bankid,
|
|
|
+ </if>
|
|
|
+ <if test="orBankname != null" >
|
|
|
+ or_bankname,
|
|
|
+ </if>
|
|
|
+ <if test="orAmount != null" >
|
|
|
+ or_amount,
|
|
|
+ </if>
|
|
|
+ <if test="orRecorderid != null" >
|
|
|
+ or_recorderid,
|
|
|
+ </if>
|
|
|
+ <if test="orRecorder != null" >
|
|
|
+ or_recorder,
|
|
|
+ </if>
|
|
|
+ <if test="orRecorddate != null" >
|
|
|
+ or_recorddate,
|
|
|
+ </if>
|
|
|
+ <if test="orStatus != null" >
|
|
|
+ or_status,
|
|
|
+ </if>
|
|
|
+ <if test="orStatuscode != null" >
|
|
|
+ or_statuscode,
|
|
|
+ </if>
|
|
|
+ <if test="orRemark != null" >
|
|
|
+ or_remark,
|
|
|
+ </if>
|
|
|
+ <if test="companyid != null" >
|
|
|
+ companyId,
|
|
|
+ </if>
|
|
|
+ <if test="updaterid != null" >
|
|
|
+ updaterId,
|
|
|
+ </if>
|
|
|
+ <if test="updatedate != null" >
|
|
|
+ updatedate,
|
|
|
+ </if>
|
|
|
+ <if test="orText1 != null" >
|
|
|
+ or_text1,
|
|
|
+ </if>
|
|
|
+ <if test="orText2 != null" >
|
|
|
+ or_text2,
|
|
|
+ </if>
|
|
|
+ <if test="orText3 != null" >
|
|
|
+ or_text3,
|
|
|
+ </if>
|
|
|
+ <if test="orText4 != null" >
|
|
|
+ or_text4,
|
|
|
+ </if>
|
|
|
+ <if test="orText5 != null" >
|
|
|
+ or_text5,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="orId != null" >
|
|
|
+ #{orId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orCode != null" >
|
|
|
+ #{orCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orDate != null" >
|
|
|
+ #{orDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="orCustid != null" >
|
|
|
+ #{orCustid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orCustcode != null" >
|
|
|
+ #{orCustcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orCustname != null" >
|
|
|
+ #{orCustname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orBankcode != null" >
|
|
|
+ #{orBankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orBankid != null" >
|
|
|
+ #{orBankid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orBankname != null" >
|
|
|
+ #{orBankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orAmount != null" >
|
|
|
+ #{orAmount,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="orRecorderid != null" >
|
|
|
+ #{orRecorderid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orRecorder != null" >
|
|
|
+ #{orRecorder,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orRecorddate != null" >
|
|
|
+ #{orRecorddate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="orStatus != null" >
|
|
|
+ #{orStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orStatuscode != null" >
|
|
|
+ #{orStatuscode,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="orRemark != null" >
|
|
|
+ #{orRemark,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>
|
|
|
+ <if test="orText1 != null" >
|
|
|
+ #{orText1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orText2 != null" >
|
|
|
+ #{orText2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orText3 != null" >
|
|
|
+ #{orText3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orText4 != null" >
|
|
|
+ #{orText4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orText5 != null" >
|
|
|
+ #{orText5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Othreceipts" >
|
|
|
+ update othreceipts
|
|
|
+ <set >
|
|
|
+ <if test="orCode != null" >
|
|
|
+ or_code = #{orCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orDate != null" >
|
|
|
+ or_date = #{orDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="orCustid != null" >
|
|
|
+ or_custid = #{orCustid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orCustcode != null" >
|
|
|
+ or_custcode = #{orCustcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orCustname != null" >
|
|
|
+ or_custname = #{orCustname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orBankcode != null" >
|
|
|
+ or_bankcode = #{orBankcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orBankid != null" >
|
|
|
+ or_bankid = #{orBankid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orBankname != null" >
|
|
|
+ or_bankname = #{orBankname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orAmount != null" >
|
|
|
+ or_amount = #{orAmount,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="orRecorderid != null" >
|
|
|
+ or_recorderid = #{orRecorderid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orRecorder != null" >
|
|
|
+ or_recorder = #{orRecorder,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orRecorddate != null" >
|
|
|
+ or_recorddate = #{orRecorddate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="orStatus != null" >
|
|
|
+ or_status = #{orStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="orStatuscode != null" >
|
|
|
+ or_statuscode = #{orStatuscode,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="orRemark != null" >
|
|
|
+ or_remark = #{orRemark,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>
|
|
|
+ <if test="orText1 != null" >
|
|
|
+ or_text1 = #{orText1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orText2 != null" >
|
|
|
+ or_text2 = #{orText2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orText3 != null" >
|
|
|
+ or_text3 = #{orText3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orText4 != null" >
|
|
|
+ or_text4 = #{orText4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orText5 != null" >
|
|
|
+ or_text5 = #{orText5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where or_id = #{orId,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Othreceipts" >
|
|
|
+ update othreceipts
|
|
|
+ set or_code = #{orCode,jdbcType=VARCHAR},
|
|
|
+ or_date = #{orDate,jdbcType=TIMESTAMP},
|
|
|
+ or_custid = #{orCustid,jdbcType=INTEGER},
|
|
|
+ or_custcode = #{orCustcode,jdbcType=VARCHAR},
|
|
|
+ or_custname = #{orCustname,jdbcType=VARCHAR},
|
|
|
+ or_bankcode = #{orBankcode,jdbcType=VARCHAR},
|
|
|
+ or_bankid = #{orBankid,jdbcType=INTEGER},
|
|
|
+ or_bankname = #{orBankname,jdbcType=VARCHAR},
|
|
|
+ or_amount = #{orAmount,jdbcType=DOUBLE},
|
|
|
+ or_recorderid = #{orRecorderid,jdbcType=INTEGER},
|
|
|
+ or_recorder = #{orRecorder,jdbcType=VARCHAR},
|
|
|
+ or_recorddate = #{orRecorddate,jdbcType=TIMESTAMP},
|
|
|
+ or_status = #{orStatus,jdbcType=INTEGER},
|
|
|
+ or_statuscode = #{orStatuscode,jdbcType=DECIMAL},
|
|
|
+ or_remark = #{orRemark,jdbcType=VARCHAR},
|
|
|
+ companyId = #{companyid,jdbcType=INTEGER},
|
|
|
+ updaterId = #{updaterid,jdbcType=INTEGER},
|
|
|
+ updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ or_text1 = #{orText1,jdbcType=VARCHAR},
|
|
|
+ or_text2 = #{orText2,jdbcType=VARCHAR},
|
|
|
+ or_text3 = #{orText3,jdbcType=VARCHAR},
|
|
|
+ or_text4 = #{orText4,jdbcType=VARCHAR},
|
|
|
+ or_text5 = #{orText5,jdbcType=VARCHAR}
|
|
|
+ where or_id = #{orId,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|