|
@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="realName" column="real_name" />
|
|
<result property="realName" column="real_name" />
|
|
<result property="loanApplicationId" column="loan_application_id" />
|
|
<result property="loanApplicationId" column="loan_application_id" />
|
|
<result property="loanApplicationNumber" column="loan_application_number" />
|
|
<result property="loanApplicationNumber" column="loan_application_number" />
|
|
|
|
+ <result property="loanApplicationName" column="loan_application_name" />
|
|
<result property="isConference" column="is_conference" />
|
|
<result property="isConference" column="is_conference" />
|
|
<result property="reason" column="reason" />
|
|
<result property="reason" column="reason" />
|
|
<result property="conferenceTime" column="conference_time" />
|
|
<result property="conferenceTime" column="conference_time" />
|
|
@@ -26,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysUserConferenceVo">
|
|
<sql id="selectSysUserConferenceVo">
|
|
- select conference_id, user_id, id_card, real_name, loan_application_id, loan_application_number, is_conference, reason,conference_time,voting_result,line_guarantee,guarantee_period,argument, create_by, create_time, update_by, update_time, remark from sys_user_conference
|
|
|
|
|
|
+ select conference_id, user_id, id_card, real_name, loan_application_id, loan_application_number,loan_application_name, is_conference, reason,conference_time,voting_result,line_guarantee,guarantee_period,argument, create_by, create_time, update_by, update_time, remark from sys_user_conference
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysUserConferenceList" parameterType="SysUserConference" resultMap="SysUserConferenceResult">
|
|
<select id="selectSysUserConferenceList" parameterType="SysUserConference" resultMap="SysUserConferenceResult">
|
|
@@ -37,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
|
|
<if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
|
|
<if test="loanApplicationId != null "> and loan_application_id = #{loanApplicationId}</if>
|
|
<if test="loanApplicationId != null "> and loan_application_id = #{loanApplicationId}</if>
|
|
<if test="loanApplicationNumber != null and loanApplicationNumber != ''"> and loan_application_number = #{loanApplicationNumber}</if>
|
|
<if test="loanApplicationNumber != null and loanApplicationNumber != ''"> and loan_application_number = #{loanApplicationNumber}</if>
|
|
|
|
+ <if test="loanApplicationName != null "> and loan_application_name = #{loanApplicationName}</if>
|
|
<if test="isConference != null and isConference != ''"> and is_conference = #{isConference}</if>
|
|
<if test="isConference != null and isConference != ''"> and is_conference = #{isConference}</if>
|
|
<if test="reason != null and reason != ''"> and reason = #{reason}</if>
|
|
<if test="reason != null and reason != ''"> and reason = #{reason}</if>
|
|
|
|
|
|
@@ -62,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="realName != null and realName != ''">real_name,</if>
|
|
<if test="realName != null and realName != ''">real_name,</if>
|
|
<if test="loanApplicationId != null">loan_application_id,</if>
|
|
<if test="loanApplicationId != null">loan_application_id,</if>
|
|
<if test="loanApplicationNumber != null">loan_application_number,</if>
|
|
<if test="loanApplicationNumber != null">loan_application_number,</if>
|
|
|
|
+ <if test="loanApplicationName != null "> loan_application_name ,</if>
|
|
<if test="isConference != null">is_conference,</if>
|
|
<if test="isConference != null">is_conference,</if>
|
|
<if test="reason != null">reason,</if>
|
|
<if test="reason != null">reason,</if>
|
|
<if test="conferenceTime != null ">conference_time ,</if>
|
|
<if test="conferenceTime != null ">conference_time ,</if>
|
|
@@ -81,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="realName != null and realName != ''">#{realName},</if>
|
|
<if test="realName != null and realName != ''">#{realName},</if>
|
|
<if test="loanApplicationId != null">#{loanApplicationId},</if>
|
|
<if test="loanApplicationId != null">#{loanApplicationId},</if>
|
|
<if test="loanApplicationNumber != null">#{loanApplicationNumber},</if>
|
|
<if test="loanApplicationNumber != null">#{loanApplicationNumber},</if>
|
|
|
|
+ <if test="loanApplicationName != null "> #{loanApplicationName},</if>
|
|
<if test="isConference != null">#{isConference},</if>
|
|
<if test="isConference != null">#{isConference},</if>
|
|
<if test="reason != null">#{reason},</if>
|
|
<if test="reason != null">#{reason},</if>
|
|
<if test="conferenceTime != null ">#{conferenceTime},</if>
|
|
<if test="conferenceTime != null ">#{conferenceTime},</if>
|
|
@@ -110,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="realName != null and realName != ''">real_name = #{realName},</if>
|
|
<if test="realName != null and realName != ''">real_name = #{realName},</if>
|
|
<if test="loanApplicationId != null">loan_application_id = #{loanApplicationId},</if>
|
|
<if test="loanApplicationId != null">loan_application_id = #{loanApplicationId},</if>
|
|
<if test="loanApplicationNumber != null">loan_application_number = #{loanApplicationNumber},</if>
|
|
<if test="loanApplicationNumber != null">loan_application_number = #{loanApplicationNumber},</if>
|
|
|
|
+ <if test="loanApplicationName != null "> loan_application_name = #{loanApplicationName},</if>
|
|
<if test="isConference != null">is_conference = #{isConference},</if>
|
|
<if test="isConference != null">is_conference = #{isConference},</if>
|
|
<if test="reason != null">reason = #{reason},</if>
|
|
<if test="reason != null">reason = #{reason},</if>
|
|
<if test="conferenceTime != null ">conference_time = #{conferenceTime},</if>
|
|
<if test="conferenceTime != null ">conference_time = #{conferenceTime},</if>
|
|
@@ -125,6 +130,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
where conference_id = #{conferenceId}
|
|
where conference_id = #{conferenceId}
|
|
</update>
|
|
</update>
|
|
|
|
+ <update id="updateSysUserConferenceByUserId" parameterType="SysUserConference">
|
|
|
|
+ update sys_user_conference
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="idCard != null">id_card = #{idCard},</if>
|
|
|
|
+ <if test="realName != null and realName != ''">real_name = #{realName},</if>
|
|
|
|
+ <if test="isConference != null">is_conference = #{isConference},</if>
|
|
|
|
+ <if test="reason != null">reason = #{reason},</if>
|
|
|
|
+ <if test="votingResult != null ">voting_result = #{votingResult},</if>
|
|
|
|
+ <if test="lineGuarantee != null ">line_guarantee = #{lineGuarantee},</if>
|
|
|
|
+ <if test="guaranteePeriod != null ">guarantee_period = #{guaranteePeriod},</if>
|
|
|
|
+ <if test="argument != null ">argument = #{argument},</if>
|
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ where user_id = #{userId} and loan_application_id = #{loanApplicationId} and conference_time = #{conferenceTime}
|
|
|
|
+ </update>
|
|
|
|
|
|
<delete id="deleteSysUserConferenceByConferenceId" parameterType="Long">
|
|
<delete id="deleteSysUserConferenceByConferenceId" parameterType="Long">
|
|
delete from sys_user_conference where conference_id = #{conferenceId}
|
|
delete from sys_user_conference where conference_id = #{conferenceId}
|