新增退出时机表,完成投资报告页面接口

master
xiaoCJ 1 year ago
parent e361fabda8
commit 5184d8ef7c

@ -42,21 +42,21 @@
<!-- 需要生成的表 -->
<!-- <table tableName="allotment_object" domainObjectName="AllotmentObject" />-->
<!-- <table tableName="flow" domainObjectName="Flow" />-->
<!-- <table tableName="fundraising" domainObjectName="Fundraising" />-->
<!-- <table tableName="fundraising" domainObjectName="Fundraising" />-->
<!-- <table tableName="inquiry_participation" domainObjectName="InquiryParticipation" />-->
<!-- <table tableName="issuance_info" domainObjectName="IssuanceInfo" />-->
<!-- <table tableName="issuance_parameter_input" domainObjectName="IssuanceParameterInput" />-->
<!-- <table tableName="performance_score" domainObjectName="PerformanceScore" />-->
<!-- <table tableName="performance_score" domainObjectName="PerformanceScore" />-->
<!-- <table tableName="tea_class_score" domainObjectName="TeaClassScore" />-->
<!-- <table tableName="profit_distribution" domainObjectName="ProfitDistribution" />-->
<table tableName="profit_management" domainObjectName="ProfitManagement"/>
<!-- <table tableName="profit_distribution" domainObjectName="ProfitDistribution" />-->
<!-- <table tableName="profit_management" domainObjectName="ProfitManagement"/>-->
<!-- <table tableName="exit_time" domainObjectName="ExitTime"/>-->
<!-- <table tableName="question_answer" domainObjectName="QuestionAnswer" />-->
<!-- <table tableName="question_answer" domainObjectName="QuestionAnswer" />-->
<!-- <table tableName="sys_topics" domainObjectName="Topics" />-->
<!-- <table tableName="topic_record" domainObjectName="TopicRecord" />-->
<!-- <table tableName="topic_record" domainObjectName="TopicRecord" />-->
<!-- <table tableName="found_project" domainObjectName="FoundProject" />-->
<!-- <table tableName="training_report" domainObjectName="TrainingReport" />-->
<!-- <table tableName="user_table" domainObjectName="UserTable" />-->
<table tableName="wx_user" domainObjectName="User" />
</context>

@ -14,6 +14,10 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
<result column="school_name" jdbcType="VARCHAR" property="schoolName" />
<result column="un" jdbcType="VARCHAR" property="un" />
<result column="dis" jdbcType="VARCHAR" property="dis" />
<result column="access_token" jdbcType="VARCHAR" property="accessToken" />
<result column="login_type" jdbcType="INTEGER" property="loginType" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -74,9 +78,17 @@
</where>
</sql>
<sql id="Base_Column_List">
userid, name, student_id, class_name, class_id, username, password, phone, role_id,
create_time, school_id, school_name
userid, name, student_id, class_name, class_id, username, password, phone, role_id,
create_time, school_id, school_name, un, dis, access_token, login_type
</sql>
<select id="selectByUn" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from wx_user
where un = #{un,jdbcType=VARCHAR}
</select>
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.UserExample" resultMap="BaseResultMap">
select
<if test="distinct">
@ -92,7 +104,7 @@
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
select
<include refid="Base_Column_List" />
from wx_user
where userid = #{userid,jdbcType=VARCHAR}
@ -108,16 +120,18 @@
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.User">
insert into wx_user (userid, name, student_id,
class_name, class_id, username,
password, phone, role_id,
create_time, school_id, school_name
)
values (#{userid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR},
#{className,jdbcType=VARCHAR}, #{classId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{roleId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=VARCHAR}, #{schoolName,jdbcType=VARCHAR}
)
insert into wx_user (userid, name, student_id,
class_name, class_id, username,
password, phone, role_id,
create_time, school_id, school_name,
un, dis, access_token,
login_type)
values (#{userid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR},
#{className,jdbcType=VARCHAR}, #{classId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{roleId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=VARCHAR}, #{schoolName,jdbcType=VARCHAR},
#{un,jdbcType=VARCHAR}, #{dis,jdbcType=VARCHAR}, #{accessToken,jdbcType=VARCHAR},
#{loginType,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.User">
insert into wx_user
@ -158,6 +172,18 @@
<if test="schoolName != null">
school_name,
</if>
<if test="un != null">
un,
</if>
<if test="dis != null">
dis,
</if>
<if test="accessToken != null">
access_token,
</if>
<if test="loginType != null">
login_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userid != null">
@ -196,6 +222,18 @@
<if test="schoolName != null">
#{schoolName,jdbcType=VARCHAR},
</if>
<if test="un != null">
#{un,jdbcType=VARCHAR},
</if>
<if test="dis != null">
#{dis,jdbcType=VARCHAR},
</if>
<if test="accessToken != null">
#{accessToken,jdbcType=VARCHAR},
</if>
<if test="loginType != null">
#{loginType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.UserExample" resultType="java.lang.Long">
@ -243,6 +281,18 @@
<if test="record.schoolName != null">
school_name = #{record.schoolName,jdbcType=VARCHAR},
</if>
<if test="record.un != null">
un = #{record.un,jdbcType=VARCHAR},
</if>
<if test="record.dis != null">
dis = #{record.dis,jdbcType=VARCHAR},
</if>
<if test="record.accessToken != null">
access_token = #{record.accessToken,jdbcType=VARCHAR},
</if>
<if test="record.loginType != null">
login_type = #{record.loginType,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -251,17 +301,21 @@
<update id="updateByExample" parameterType="map">
update wx_user
set userid = #{record.userid,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
student_id = #{record.studentId,jdbcType=VARCHAR},
class_name = #{record.className,jdbcType=VARCHAR},
class_id = #{record.classId,jdbcType=VARCHAR},
username = #{record.username,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
role_id = #{record.roleId,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
school_id = #{record.schoolId,jdbcType=VARCHAR},
school_name = #{record.schoolName,jdbcType=VARCHAR}
name = #{record.name,jdbcType=VARCHAR},
student_id = #{record.studentId,jdbcType=VARCHAR},
class_name = #{record.className,jdbcType=VARCHAR},
class_id = #{record.classId,jdbcType=VARCHAR},
username = #{record.username,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
role_id = #{record.roleId,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
school_id = #{record.schoolId,jdbcType=VARCHAR},
school_name = #{record.schoolName,jdbcType=VARCHAR},
un = #{record.un,jdbcType=VARCHAR},
dis = #{record.dis,jdbcType=VARCHAR},
access_token = #{record.accessToken,jdbcType=VARCHAR},
login_type = #{record.loginType,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -302,22 +356,38 @@
<if test="schoolName != null">
school_name = #{schoolName,jdbcType=VARCHAR},
</if>
<if test="un != null">
un = #{un,jdbcType=VARCHAR},
</if>
<if test="dis != null">
dis = #{dis,jdbcType=VARCHAR},
</if>
<if test="accessToken != null">
access_token = #{accessToken,jdbcType=VARCHAR},
</if>
<if test="loginType != null">
login_type = #{loginType,jdbcType=INTEGER},
</if>
</set>
where userid = #{userid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.User">
update wx_user
set name = #{name,jdbcType=VARCHAR},
student_id = #{studentId,jdbcType=VARCHAR},
class_name = #{className,jdbcType=VARCHAR},
class_id = #{classId,jdbcType=VARCHAR},
username = #{username,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
role_id = #{roleId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
school_id = #{schoolId,jdbcType=VARCHAR},
school_name = #{schoolName,jdbcType=VARCHAR}
student_id = #{studentId,jdbcType=VARCHAR},
class_name = #{className,jdbcType=VARCHAR},
class_id = #{classId,jdbcType=VARCHAR},
username = #{username,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
role_id = #{roleId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
school_id = #{schoolId,jdbcType=VARCHAR},
school_name = #{schoolName,jdbcType=VARCHAR},
un = #{un,jdbcType=VARCHAR},
dis = #{dis,jdbcType=VARCHAR},
access_token = #{accessToken,jdbcType=VARCHAR},
login_type = #{loginType,jdbcType=INTEGER}
where userid = #{userid,jdbcType=VARCHAR}
</update>
</mapper>
Loading…
Cancel
Save