添加新的代码生成器
parent
8f580900b4
commit
b1762b1b82
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
||||
package com.sztzjy.block_finance.mappers;
|
||||
|
||||
import com.sztzjy.block_finance.entity.stuJoinNode;
|
||||
import com.sztzjy.block_finance.entity.stuJoinNodeExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface stuJoinNodeMapper {
|
||||
long countByExample(stuJoinNodeExample example);
|
||||
|
||||
int deleteByExample(stuJoinNodeExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(stuJoinNode record);
|
||||
|
||||
int insertSelective(stuJoinNode record);
|
||||
|
||||
List<stuJoinNode> selectByExample(stuJoinNodeExample example);
|
||||
|
||||
stuJoinNode selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") stuJoinNode record, @Param("example") stuJoinNodeExample example);
|
||||
|
||||
int updateByExample(@Param("record") stuJoinNode record, @Param("example") stuJoinNodeExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(stuJoinNode record);
|
||||
|
||||
int updateByPrimaryKey(stuJoinNode record);
|
||||
}
|
@ -0,0 +1,451 @@
|
||||
<?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.sztzjy.block_finance.mappers.stuJoinNodeMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.block_finance.entity.stuJoinNode">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="module" jdbcType="INTEGER" property="module" />
|
||||
<result column="user_name" jdbcType="VARCHAR" property="userName" />
|
||||
<result column="tax_identify_number" jdbcType="VARCHAR" property="taxIdentifyNumber" />
|
||||
<result column="tel_number" jdbcType="VARCHAR" property="telNumber" />
|
||||
<result column="base_account" jdbcType="VARCHAR" property="baseAccount" />
|
||||
<result column="bank_of_deposit" jdbcType="VARCHAR" property="bankOfDeposit" />
|
||||
<result column="reg_auth" jdbcType="VARCHAR" property="regAuth" />
|
||||
<result column="reg_address" jdbcType="VARCHAR" property="regAddress" />
|
||||
<result column="node_address" jdbcType="VARCHAR" property="nodeAddress" />
|
||||
<result column="public_key" jdbcType="VARCHAR" property="publicKey" />
|
||||
<result column="private_key" jdbcType="VARCHAR" property="privateKey" />
|
||||
<result column="account_receive" jdbcType="VARCHAR" property="accountReceive" />
|
||||
<result column="account_pay" jdbcType="VARCHAR" property="accountPay" />
|
||||
<result column="token_asset" jdbcType="VARCHAR" property="tokenAsset" />
|
||||
<result column="factor_finance_amount" jdbcType="VARCHAR" property="factorFinanceAmount" />
|
||||
<result column="factor_interest_income" jdbcType="VARCHAR" property="factorInterestIncome" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</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">
|
||||
id, module, user_name, tax_identify_number, tel_number, base_account, bank_of_deposit,
|
||||
reg_auth, reg_address, node_address, public_key, private_key, account_receive, account_pay,
|
||||
token_asset, factor_finance_amount, factor_interest_income, user_id, create_time,
|
||||
update_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.block_finance.entity.stuJoinNodeExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_join_node
|
||||
<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 stu_join_node
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_join_node
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.block_finance.entity.stuJoinNodeExample">
|
||||
delete from stu_join_node
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.block_finance.entity.stuJoinNode">
|
||||
insert into stu_join_node (id, module, user_name,
|
||||
tax_identify_number, tel_number, base_account,
|
||||
bank_of_deposit, reg_auth, reg_address,
|
||||
node_address, public_key, private_key,
|
||||
account_receive, account_pay, token_asset,
|
||||
factor_finance_amount, factor_interest_income,
|
||||
user_id, create_time, update_time
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{module,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR},
|
||||
#{taxIdentifyNumber,jdbcType=VARCHAR}, #{telNumber,jdbcType=VARCHAR}, #{baseAccount,jdbcType=VARCHAR},
|
||||
#{bankOfDeposit,jdbcType=VARCHAR}, #{regAuth,jdbcType=VARCHAR}, #{regAddress,jdbcType=VARCHAR},
|
||||
#{nodeAddress,jdbcType=VARCHAR}, #{publicKey,jdbcType=VARCHAR}, #{privateKey,jdbcType=VARCHAR},
|
||||
#{accountReceive,jdbcType=VARCHAR}, #{accountPay,jdbcType=VARCHAR}, #{tokenAsset,jdbcType=VARCHAR},
|
||||
#{factorFinanceAmount,jdbcType=VARCHAR}, #{factorInterestIncome,jdbcType=VARCHAR},
|
||||
#{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.block_finance.entity.stuJoinNode">
|
||||
insert into stu_join_node
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module,
|
||||
</if>
|
||||
<if test="userName != null">
|
||||
user_name,
|
||||
</if>
|
||||
<if test="taxIdentifyNumber != null">
|
||||
tax_identify_number,
|
||||
</if>
|
||||
<if test="telNumber != null">
|
||||
tel_number,
|
||||
</if>
|
||||
<if test="baseAccount != null">
|
||||
base_account,
|
||||
</if>
|
||||
<if test="bankOfDeposit != null">
|
||||
bank_of_deposit,
|
||||
</if>
|
||||
<if test="regAuth != null">
|
||||
reg_auth,
|
||||
</if>
|
||||
<if test="regAddress != null">
|
||||
reg_address,
|
||||
</if>
|
||||
<if test="nodeAddress != null">
|
||||
node_address,
|
||||
</if>
|
||||
<if test="publicKey != null">
|
||||
public_key,
|
||||
</if>
|
||||
<if test="privateKey != null">
|
||||
private_key,
|
||||
</if>
|
||||
<if test="accountReceive != null">
|
||||
account_receive,
|
||||
</if>
|
||||
<if test="accountPay != null">
|
||||
account_pay,
|
||||
</if>
|
||||
<if test="tokenAsset != null">
|
||||
token_asset,
|
||||
</if>
|
||||
<if test="factorFinanceAmount != null">
|
||||
factor_finance_amount,
|
||||
</if>
|
||||
<if test="factorInterestIncome != null">
|
||||
factor_interest_income,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
#{module,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userName != null">
|
||||
#{userName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taxIdentifyNumber != null">
|
||||
#{taxIdentifyNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="telNumber != null">
|
||||
#{telNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="baseAccount != null">
|
||||
#{baseAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankOfDeposit != null">
|
||||
#{bankOfDeposit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="regAuth != null">
|
||||
#{regAuth,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="regAddress != null">
|
||||
#{regAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="nodeAddress != null">
|
||||
#{nodeAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="publicKey != null">
|
||||
#{publicKey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="privateKey != null">
|
||||
#{privateKey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="accountReceive != null">
|
||||
#{accountReceive,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="accountPay != null">
|
||||
#{accountPay,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tokenAsset != null">
|
||||
#{tokenAsset,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="factorFinanceAmount != null">
|
||||
#{factorFinanceAmount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="factorInterestIncome != null">
|
||||
#{factorInterestIncome,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.block_finance.entity.stuJoinNodeExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_join_node
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_join_node
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.module != null">
|
||||
module = #{record.module,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.userName != null">
|
||||
user_name = #{record.userName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.taxIdentifyNumber != null">
|
||||
tax_identify_number = #{record.taxIdentifyNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.telNumber != null">
|
||||
tel_number = #{record.telNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.baseAccount != null">
|
||||
base_account = #{record.baseAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.bankOfDeposit != null">
|
||||
bank_of_deposit = #{record.bankOfDeposit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.regAuth != null">
|
||||
reg_auth = #{record.regAuth,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.regAddress != null">
|
||||
reg_address = #{record.regAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.nodeAddress != null">
|
||||
node_address = #{record.nodeAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.publicKey != null">
|
||||
public_key = #{record.publicKey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.privateKey != null">
|
||||
private_key = #{record.privateKey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.accountReceive != null">
|
||||
account_receive = #{record.accountReceive,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.accountPay != null">
|
||||
account_pay = #{record.accountPay,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.tokenAsset != null">
|
||||
token_asset = #{record.tokenAsset,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.factorFinanceAmount != null">
|
||||
factor_finance_amount = #{record.factorFinanceAmount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.factorInterestIncome != null">
|
||||
factor_interest_income = #{record.factorInterestIncome,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.updateTime != null">
|
||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_join_node
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
module = #{record.module,jdbcType=INTEGER},
|
||||
user_name = #{record.userName,jdbcType=VARCHAR},
|
||||
tax_identify_number = #{record.taxIdentifyNumber,jdbcType=VARCHAR},
|
||||
tel_number = #{record.telNumber,jdbcType=VARCHAR},
|
||||
base_account = #{record.baseAccount,jdbcType=VARCHAR},
|
||||
bank_of_deposit = #{record.bankOfDeposit,jdbcType=VARCHAR},
|
||||
reg_auth = #{record.regAuth,jdbcType=VARCHAR},
|
||||
reg_address = #{record.regAddress,jdbcType=VARCHAR},
|
||||
node_address = #{record.nodeAddress,jdbcType=VARCHAR},
|
||||
public_key = #{record.publicKey,jdbcType=VARCHAR},
|
||||
private_key = #{record.privateKey,jdbcType=VARCHAR},
|
||||
account_receive = #{record.accountReceive,jdbcType=VARCHAR},
|
||||
account_pay = #{record.accountPay,jdbcType=VARCHAR},
|
||||
token_asset = #{record.tokenAsset,jdbcType=VARCHAR},
|
||||
factor_finance_amount = #{record.factorFinanceAmount,jdbcType=VARCHAR},
|
||||
factor_interest_income = #{record.factorInterestIncome,jdbcType=VARCHAR},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.block_finance.entity.stuJoinNode">
|
||||
update stu_join_node
|
||||
<set>
|
||||
<if test="module != null">
|
||||
module = #{module,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userName != null">
|
||||
user_name = #{userName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taxIdentifyNumber != null">
|
||||
tax_identify_number = #{taxIdentifyNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="telNumber != null">
|
||||
tel_number = #{telNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="baseAccount != null">
|
||||
base_account = #{baseAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankOfDeposit != null">
|
||||
bank_of_deposit = #{bankOfDeposit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="regAuth != null">
|
||||
reg_auth = #{regAuth,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="regAddress != null">
|
||||
reg_address = #{regAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="nodeAddress != null">
|
||||
node_address = #{nodeAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="publicKey != null">
|
||||
public_key = #{publicKey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="privateKey != null">
|
||||
private_key = #{privateKey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="accountReceive != null">
|
||||
account_receive = #{accountReceive,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="accountPay != null">
|
||||
account_pay = #{accountPay,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tokenAsset != null">
|
||||
token_asset = #{tokenAsset,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="factorFinanceAmount != null">
|
||||
factor_finance_amount = #{factorFinanceAmount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="factorInterestIncome != null">
|
||||
factor_interest_income = #{factorInterestIncome,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.block_finance.entity.stuJoinNode">
|
||||
update stu_join_node
|
||||
set module = #{module,jdbcType=INTEGER},
|
||||
user_name = #{userName,jdbcType=VARCHAR},
|
||||
tax_identify_number = #{taxIdentifyNumber,jdbcType=VARCHAR},
|
||||
tel_number = #{telNumber,jdbcType=VARCHAR},
|
||||
base_account = #{baseAccount,jdbcType=VARCHAR},
|
||||
bank_of_deposit = #{bankOfDeposit,jdbcType=VARCHAR},
|
||||
reg_auth = #{regAuth,jdbcType=VARCHAR},
|
||||
reg_address = #{regAddress,jdbcType=VARCHAR},
|
||||
node_address = #{nodeAddress,jdbcType=VARCHAR},
|
||||
public_key = #{publicKey,jdbcType=VARCHAR},
|
||||
private_key = #{privateKey,jdbcType=VARCHAR},
|
||||
account_receive = #{accountReceive,jdbcType=VARCHAR},
|
||||
account_pay = #{accountPay,jdbcType=VARCHAR},
|
||||
token_asset = #{tokenAsset,jdbcType=VARCHAR},
|
||||
factor_finance_amount = #{factorFinanceAmount,jdbcType=VARCHAR},
|
||||
factor_interest_income = #{factorInterestIncome,jdbcType=VARCHAR},
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue