123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <?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.mofangchuxing.aska.dao.mapper.AskaPlatformMapper">
- <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaPlatform">
- <id property="id" column="id" jdbcType="INTEGER"/>
- <result property="name" column="name" jdbcType="CHAR"/>
- <result property="address" column="address" jdbcType="VARCHAR"/>
- <result property="note" column="note" jdbcType="VARCHAR"/>
- <result property="account" column="account" jdbcType="VARCHAR"/>
- <result property="accountName" column="accountName" jdbcType="VARCHAR"/>
- <result property="accountType" column="accountType" jdbcType="CHAR"/>
- <result property="apiv3" column="apiv3" jdbcType="VARCHAR"/>
- <result property="certPath" column="certPath" jdbcType="VARCHAR"/>
- <result property="status" column="status" jdbcType="CHAR"/>
- <result property="totalIncome" column="totalIncome" jdbcType="INTEGER"/>
- <result property="totalRefund" column="totalRefund" jdbcType="INTEGER"/>
- <result property="totalRetailSplit" column="totalRetailSplit" jdbcType="INTEGER"/>
- <result property="totalRetailAccounting" column="totalRetailAccounting" jdbcType="INTEGER"/>
- <result property="totalRetailSplitRefund" column="totalRetailSplitRefund" jdbcType="INTEGER"/>
- <result property="totalRetailAccountingRefund" column="totalRetailAccountingRefund" jdbcType="INTEGER"/>
- <result property="totalChannelSplit" column="totalChannelSplit" jdbcType="INTEGER"/>
- <result property="totalChannelAccounting" column="totalChannelAccounting" jdbcType="INTEGER"/>
- <result property="totalChannelSplitRefund" column="totalChannelSplitRefund" jdbcType="INTEGER"/>
- <result property="totalChannelAccountingRefund" column="totalChannelAccountingRefund" jdbcType="INTEGER"/>
- <result property="totalCashOut" column="totalCashOut" jdbcType="INTEGER"/>
- <result property="balance" column="balance" jdbcType="INTEGER"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,name,address,
- note,account,accountName,
- accountType,apiv3,certPath,
- status,totalIncome,totalRefund,
- totalRetailSplit,totalRetailAccounting,totalRetailSplitRefund,
- totalRetailAccountingRefund,totalChannelSplit,totalChannelAccounting,
- totalChannelSplitRefund,totalChannelAccountingRefund,totalCashOut,
- balance
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from aska_platform
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from aska_platform
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaPlatform" useGeneratedKeys="true">
- insert into aska_platform
- ( id,name,address
- ,note,account,accountName
- ,accountType,apiv3,certPath
- ,status,totalIncome,totalRefund
- ,totalRetailSplit,totalRetailAccounting,totalRetailSplitRefund
- ,totalRetailAccountingRefund,totalChannelSplit,totalChannelAccounting
- ,totalChannelSplitRefund,totalChannelAccountingRefund,totalCashOut
- ,balance)
- values (#{id,jdbcType=INTEGER},#{name,jdbcType=CHAR},#{address,jdbcType=VARCHAR}
- ,#{note,jdbcType=VARCHAR},#{account,jdbcType=VARCHAR},#{accountName,jdbcType=VARCHAR}
- ,#{accountType,jdbcType=CHAR},#{apiv3,jdbcType=VARCHAR},#{certPath,jdbcType=VARCHAR}
- ,#{status,jdbcType=CHAR},#{totalIncome,jdbcType=INTEGER},#{totalRefund,jdbcType=INTEGER}
- ,#{totalRetailSplit,jdbcType=INTEGER},#{totalRetailAccounting,jdbcType=INTEGER},#{totalRetailSplitRefund,jdbcType=INTEGER}
- ,#{totalRetailAccountingRefund,jdbcType=INTEGER},#{totalChannelSplit,jdbcType=INTEGER},#{totalChannelAccounting,jdbcType=INTEGER}
- ,#{totalChannelSplitRefund,jdbcType=INTEGER},#{totalChannelAccountingRefund,jdbcType=INTEGER},#{totalCashOut,jdbcType=INTEGER}
- ,#{balance,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaPlatform" useGeneratedKeys="true">
- insert into aska_platform
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="name != null">name,</if>
- <if test="address != null">address,</if>
- <if test="note != null">note,</if>
- <if test="account != null">account,</if>
- <if test="accountName != null">accountName,</if>
- <if test="accountType != null">accountType,</if>
- <if test="apiv3 != null">apiv3,</if>
- <if test="certPath != null">certPath,</if>
- <if test="status != null">status,</if>
- <if test="totalIncome != null">totalIncome,</if>
- <if test="totalRefund != null">totalRefund,</if>
- <if test="totalRetailSplit != null">totalRetailSplit,</if>
- <if test="totalRetailAccounting != null">totalRetailAccounting,</if>
- <if test="totalRetailSplitRefund != null">totalRetailSplitRefund,</if>
- <if test="totalRetailAccountingRefund != null">totalRetailAccountingRefund,</if>
- <if test="totalChannelSplit != null">totalChannelSplit,</if>
- <if test="totalChannelAccounting != null">totalChannelAccounting,</if>
- <if test="totalChannelSplitRefund != null">totalChannelSplitRefund,</if>
- <if test="totalChannelAccountingRefund != null">totalChannelAccountingRefund,</if>
- <if test="totalCashOut != null">totalCashOut,</if>
- <if test="balance != null">balance,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id,jdbcType=INTEGER},</if>
- <if test="name != null">#{name,jdbcType=CHAR},</if>
- <if test="address != null">#{address,jdbcType=VARCHAR},</if>
- <if test="note != null">#{note,jdbcType=VARCHAR},</if>
- <if test="account != null">#{account,jdbcType=VARCHAR},</if>
- <if test="accountName != null">#{accountName,jdbcType=VARCHAR},</if>
- <if test="accountType != null">#{accountType,jdbcType=CHAR},</if>
- <if test="apiv3 != null">#{apiv3,jdbcType=VARCHAR},</if>
- <if test="certPath != null">#{certPath,jdbcType=VARCHAR},</if>
- <if test="status != null">#{status,jdbcType=CHAR},</if>
- <if test="totalIncome != null">#{totalIncome,jdbcType=INTEGER},</if>
- <if test="totalRefund != null">#{totalRefund,jdbcType=INTEGER},</if>
- <if test="totalRetailSplit != null">#{totalRetailSplit,jdbcType=INTEGER},</if>
- <if test="totalRetailAccounting != null">#{totalRetailAccounting,jdbcType=INTEGER},</if>
- <if test="totalRetailSplitRefund != null">#{totalRetailSplitRefund,jdbcType=INTEGER},</if>
- <if test="totalRetailAccountingRefund != null">#{totalRetailAccountingRefund,jdbcType=INTEGER},</if>
- <if test="totalChannelSplit != null">#{totalChannelSplit,jdbcType=INTEGER},</if>
- <if test="totalChannelAccounting != null">#{totalChannelAccounting,jdbcType=INTEGER},</if>
- <if test="totalChannelSplitRefund != null">#{totalChannelSplitRefund,jdbcType=INTEGER},</if>
- <if test="totalChannelAccountingRefund != null">#{totalChannelAccountingRefund,jdbcType=INTEGER},</if>
- <if test="totalCashOut != null">#{totalCashOut,jdbcType=INTEGER},</if>
- <if test="balance != null">#{balance,jdbcType=INTEGER},</if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaPlatform">
- update aska_platform
- <set>
- <if test="name != null">
- name = #{name,jdbcType=CHAR},
- </if>
- <if test="address != null">
- address = #{address,jdbcType=VARCHAR},
- </if>
- <if test="note != null">
- note = #{note,jdbcType=VARCHAR},
- </if>
- <if test="account != null">
- account = #{account,jdbcType=VARCHAR},
- </if>
- <if test="accountName != null">
- accountName = #{accountName,jdbcType=VARCHAR},
- </if>
- <if test="accountType != null">
- accountType = #{accountType,jdbcType=CHAR},
- </if>
- <if test="apiv3 != null">
- apiv3 = #{apiv3,jdbcType=VARCHAR},
- </if>
- <if test="certPath != null">
- certPath = #{certPath,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=CHAR},
- </if>
- <if test="totalIncome != null">
- totalIncome = #{totalIncome,jdbcType=INTEGER},
- </if>
- <if test="totalRefund != null">
- totalRefund = #{totalRefund,jdbcType=INTEGER},
- </if>
- <if test="totalRetailSplit != null">
- totalRetailSplit = #{totalRetailSplit,jdbcType=INTEGER},
- </if>
- <if test="totalRetailAccounting != null">
- totalRetailAccounting = #{totalRetailAccounting,jdbcType=INTEGER},
- </if>
- <if test="totalRetailSplitRefund != null">
- totalRetailSplitRefund = #{totalRetailSplitRefund,jdbcType=INTEGER},
- </if>
- <if test="totalRetailAccountingRefund != null">
- totalRetailAccountingRefund = #{totalRetailAccountingRefund,jdbcType=INTEGER},
- </if>
- <if test="totalChannelSplit != null">
- totalChannelSplit = #{totalChannelSplit,jdbcType=INTEGER},
- </if>
- <if test="totalChannelAccounting != null">
- totalChannelAccounting = #{totalChannelAccounting,jdbcType=INTEGER},
- </if>
- <if test="totalChannelSplitRefund != null">
- totalChannelSplitRefund = #{totalChannelSplitRefund,jdbcType=INTEGER},
- </if>
- <if test="totalChannelAccountingRefund != null">
- totalChannelAccountingRefund = #{totalChannelAccountingRefund,jdbcType=INTEGER},
- </if>
- <if test="totalCashOut != null">
- totalCashOut = #{totalCashOut,jdbcType=INTEGER},
- </if>
- <if test="balance != null">
- balance = #{balance,jdbcType=INTEGER},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaPlatform">
- update aska_platform
- set
- name = #{name,jdbcType=CHAR},
- address = #{address,jdbcType=VARCHAR},
- note = #{note,jdbcType=VARCHAR},
- account = #{account,jdbcType=VARCHAR},
- accountName = #{accountName,jdbcType=VARCHAR},
- accountType = #{accountType,jdbcType=CHAR},
- apiv3 = #{apiv3,jdbcType=VARCHAR},
- certPath = #{certPath,jdbcType=VARCHAR},
- status = #{status,jdbcType=CHAR},
- totalIncome = #{totalIncome,jdbcType=INTEGER},
- totalRefund = #{totalRefund,jdbcType=INTEGER},
- totalRetailSplit = #{totalRetailSplit,jdbcType=INTEGER},
- totalRetailAccounting = #{totalRetailAccounting,jdbcType=INTEGER},
- totalRetailSplitRefund = #{totalRetailSplitRefund,jdbcType=INTEGER},
- totalRetailAccountingRefund = #{totalRetailAccountingRefund,jdbcType=INTEGER},
- totalChannelSplit = #{totalChannelSplit,jdbcType=INTEGER},
- totalChannelAccounting = #{totalChannelAccounting,jdbcType=INTEGER},
- totalChannelSplitRefund = #{totalChannelSplitRefund,jdbcType=INTEGER},
- totalChannelAccountingRefund = #{totalChannelAccountingRefund,jdbcType=INTEGER},
- totalCashOut = #{totalCashOut,jdbcType=INTEGER},
- balance = #{balance,jdbcType=INTEGER}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|