You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
181 lines
6.2 KiB
181 lines
6.2 KiB
<?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.ncda.dao.AccountBillMapper">
|
|
<resultMap id="BaseResultMap" type="com.ncda.entity.AccountBill">
|
|
<!--
|
|
WARNING - @mbggenerated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Fri Aug 20 17:06:38 CST 2021.
|
|
-->
|
|
<id column="ID" jdbcType="INTEGER" property="id" />
|
|
<result column="DATE" jdbcType="DATE" property="date" />
|
|
<result column="MONEY" jdbcType="DECIMAL" property="money" />
|
|
<result column="MONEY_STATE" jdbcType="CHAR" property="moneyState" />
|
|
<result column="TYPE" jdbcType="INTEGER" property="type" />
|
|
<result column="COMMENT" jdbcType="VARCHAR" property="comment" />
|
|
<result column="DEL_STATE" jdbcType="CHAR" property="delState" />
|
|
<result column="ITEM_NAME" jdbcType="VARCHAR" property="itemName" />
|
|
<result column="USER_ID" jdbcType="INTEGER" property="userId" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<!--
|
|
WARNING - @mbggenerated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Fri Aug 20 17:06:38 CST 2021.
|
|
-->
|
|
ID, DATE, MONEY, MONEY_STATE, TYPE, COMMENT, DEL_STATE, ITEM_NAME, USER_ID
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
<!--
|
|
WARNING - @mbggenerated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Fri Aug 20 17:06:38 CST 2021.
|
|
-->
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from account_bill
|
|
where ID = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
<!--
|
|
WARNING - @mbggenerated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Fri Aug 20 17:06:38 CST 2021.
|
|
-->
|
|
delete from account_bill
|
|
where ID = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.ncda.entity.AccountBill">
|
|
<!--
|
|
WARNING - @mbggenerated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Fri Aug 20 17:06:38 CST 2021.
|
|
-->
|
|
insert into account_bill (ID, DATE, MONEY,
|
|
MONEY_STATE, TYPE, COMMENT,
|
|
DEL_STATE, ITEM_NAME, USER_ID
|
|
)
|
|
values (#{id,jdbcType=INTEGER}, #{date,jdbcType=DATE}, #{money,jdbcType=DECIMAL},
|
|
#{moneyState,jdbcType=CHAR}, #{type,jdbcType=INTEGER}, #{comment,jdbcType=VARCHAR},
|
|
#{delState,jdbcType=CHAR}, #{itemName,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}
|
|
)
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.ncda.entity.AccountBill">
|
|
<!--
|
|
WARNING - @mbggenerated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Fri Aug 20 17:06:38 CST 2021.
|
|
-->
|
|
insert into account_bill
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
ID,
|
|
</if>
|
|
<if test="date != null">
|
|
DATE,
|
|
</if>
|
|
<if test="money != null">
|
|
MONEY,
|
|
</if>
|
|
<if test="moneyState != null">
|
|
MONEY_STATE,
|
|
</if>
|
|
<if test="type != null">
|
|
TYPE,
|
|
</if>
|
|
<if test="comment != null">
|
|
COMMENT,
|
|
</if>
|
|
<if test="delState != null">
|
|
DEL_STATE,
|
|
</if>
|
|
<if test="itemName != null">
|
|
ITEM_NAME,
|
|
</if>
|
|
<if test="userId != null">
|
|
USER_ID,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="date != null">
|
|
#{date,jdbcType=DATE},
|
|
</if>
|
|
<if test="money != null">
|
|
#{money,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="moneyState != null">
|
|
#{moneyState,jdbcType=CHAR},
|
|
</if>
|
|
<if test="type != null">
|
|
#{type,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="comment != null">
|
|
#{comment,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="delState != null">
|
|
#{delState,jdbcType=CHAR},
|
|
</if>
|
|
<if test="itemName != null">
|
|
#{itemName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="userId != null">
|
|
#{userId,jdbcType=INTEGER},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ncda.entity.AccountBill">
|
|
<!--
|
|
WARNING - @mbggenerated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Fri Aug 20 17:06:38 CST 2021.
|
|
-->
|
|
update account_bill
|
|
<set>
|
|
<if test="date != null">
|
|
DATE = #{date,jdbcType=DATE},
|
|
</if>
|
|
<if test="money != null">
|
|
MONEY = #{money,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="moneyState != null">
|
|
MONEY_STATE = #{moneyState,jdbcType=CHAR},
|
|
</if>
|
|
<if test="type != null">
|
|
TYPE = #{type,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="comment != null">
|
|
COMMENT = #{comment,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="delState != null">
|
|
DEL_STATE = #{delState,jdbcType=CHAR},
|
|
</if>
|
|
<if test="itemName != null">
|
|
ITEM_NAME = #{itemName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="userId != null">
|
|
USER_ID = #{userId,jdbcType=INTEGER},
|
|
</if>
|
|
</set>
|
|
where ID = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.ncda.entity.AccountBill">
|
|
<!--
|
|
WARNING - @mbggenerated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Fri Aug 20 17:06:38 CST 2021.
|
|
-->
|
|
update account_bill
|
|
set DATE = #{date,jdbcType=DATE},
|
|
MONEY = #{money,jdbcType=DECIMAL},
|
|
MONEY_STATE = #{moneyState,jdbcType=CHAR},
|
|
TYPE = #{type,jdbcType=INTEGER},
|
|
COMMENT = #{comment,jdbcType=VARCHAR},
|
|
DEL_STATE = #{delState,jdbcType=CHAR},
|
|
ITEM_NAME = #{itemName,jdbcType=VARCHAR},
|
|
USER_ID = #{userId,jdbcType=INTEGER}
|
|
where ID = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</mapper> |