|
|
|
@ -2,31 +2,31 @@
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.sztzjy.money_management.mapper.SynthesisPlanClientMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.SynthesisPlanClient">
|
|
|
|
|
<id column="stu_client_id" jdbcType="VARCHAR" property="stuClientId" />
|
|
|
|
|
<result column="caseid" jdbcType="VARCHAR" property="caseid" />
|
|
|
|
|
<result column="userid" jdbcType="VARCHAR" property="userid" />
|
|
|
|
|
<result column="source" jdbcType="VARCHAR" property="source" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="client_number" jdbcType="VARCHAR" property="clientNumber" />
|
|
|
|
|
<result column="proposal_name" jdbcType="VARCHAR" property="proposalName" />
|
|
|
|
|
<result column="proposal_number" jdbcType="VARCHAR" property="proposalNumber" />
|
|
|
|
|
<result column="get_status" jdbcType="VARCHAR" property="getStatus" />
|
|
|
|
|
<result column="get_time" jdbcType="TIMESTAMP" property="getTime" />
|
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
|
<result column="namepy" jdbcType="VARCHAR" property="namepy" />
|
|
|
|
|
<result column="age" jdbcType="INTEGER" property="age" />
|
|
|
|
|
<result column="year_income" jdbcType="DECIMAL" property="yearIncome" />
|
|
|
|
|
<result column="idcard" jdbcType="VARCHAR" property="idcard" />
|
|
|
|
|
<result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" />
|
|
|
|
|
<result column="job" jdbcType="VARCHAR" property="job" />
|
|
|
|
|
<result column="addr" jdbcType="VARCHAR" property="addr" />
|
|
|
|
|
<result column="telephone" jdbcType="VARCHAR" property="telephone" />
|
|
|
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
|
|
|
<result column="job_place" jdbcType="VARCHAR" property="jobPlace" />
|
|
|
|
|
<result column="manage_money_matters_type" jdbcType="VARCHAR" property="manageMoneyMattersType" />
|
|
|
|
|
<result column="submit_status" jdbcType="CHAR" property="submitStatus" />
|
|
|
|
|
<result column="use_time" jdbcType="DECIMAL" property="useTime" />
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
<id column="stu_client_id" jdbcType="VARCHAR" property="stuClientId"/>
|
|
|
|
|
<result column="caseid" jdbcType="VARCHAR" property="caseid"/>
|
|
|
|
|
<result column="userid" jdbcType="VARCHAR" property="userid"/>
|
|
|
|
|
<result column="source" jdbcType="VARCHAR" property="source"/>
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
|
|
<result column="client_number" jdbcType="VARCHAR" property="clientNumber"/>
|
|
|
|
|
<result column="proposal_name" jdbcType="VARCHAR" property="proposalName"/>
|
|
|
|
|
<result column="proposal_number" jdbcType="VARCHAR" property="proposalNumber"/>
|
|
|
|
|
<result column="get_status" jdbcType="VARCHAR" property="getStatus"/>
|
|
|
|
|
<result column="get_time" jdbcType="TIMESTAMP" property="getTime"/>
|
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name"/>
|
|
|
|
|
<result column="namepy" jdbcType="VARCHAR" property="namepy"/>
|
|
|
|
|
<result column="age" jdbcType="INTEGER" property="age"/>
|
|
|
|
|
<result column="year_income" jdbcType="DECIMAL" property="yearIncome"/>
|
|
|
|
|
<result column="idcard" jdbcType="VARCHAR" property="idcard"/>
|
|
|
|
|
<result column="phone_number" jdbcType="VARCHAR" property="phoneNumber"/>
|
|
|
|
|
<result column="job" jdbcType="VARCHAR" property="job"/>
|
|
|
|
|
<result column="addr" jdbcType="VARCHAR" property="addr"/>
|
|
|
|
|
<result column="telephone" jdbcType="VARCHAR" property="telephone"/>
|
|
|
|
|
<result column="email" jdbcType="VARCHAR" property="email"/>
|
|
|
|
|
<result column="job_place" jdbcType="VARCHAR" property="jobPlace"/>
|
|
|
|
|
<result column="manage_money_matters_type" jdbcType="VARCHAR" property="manageMoneyMattersType"/>
|
|
|
|
|
<result column="submit_status" jdbcType="CHAR" property="submitStatus"/>
|
|
|
|
|
<result column="use_time" jdbcType="DECIMAL" property="useTime"/>
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -46,7 +46,8 @@
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
@ -75,7 +76,8 @@
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
@ -87,20 +89,22 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
stu_client_id, caseid, userid, source, create_time, client_number, proposal_name,
|
|
|
|
|
stu_client_id
|
|
|
|
|
, caseid, userid, source, create_time, client_number, proposal_name,
|
|
|
|
|
proposal_number, get_status, get_time, name, namepy, age, year_income, idcard, phone_number,
|
|
|
|
|
job, addr, telephone, email, job_place, manage_money_matters_type, submit_status,
|
|
|
|
|
use_time, school_id
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample" resultMap="BaseResultMap">
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample"
|
|
|
|
|
resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
from synthesis_plan_client
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
@ -108,18 +112,19 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
from synthesis_plan_client
|
|
|
|
|
where stu_client_id = #{stuClientId,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
delete from synthesis_plan_client
|
|
|
|
|
delete
|
|
|
|
|
from synthesis_plan_client
|
|
|
|
|
where stu_client_id = #{stuClientId,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample">
|
|
|
|
|
delete from synthesis_plan_client
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient">
|
|
|
|
@ -299,10 +304,11 @@
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample" resultType="java.lang.Long">
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample"
|
|
|
|
|
resultType="java.lang.Long">
|
|
|
|
|
select count(*) from synthesis_plan_client
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
@ -385,7 +391,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
@ -416,7 +422,7 @@
|
|
|
|
|
use_time = #{record.useTime,jdbcType=DECIMAL},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient">
|
|
|
|
@ -529,9 +535,10 @@
|
|
|
|
|
<select id="getPotentialCustomerList" resultMap="BaseResultMap">
|
|
|
|
|
SELECT * FROM synthesis_plan_client
|
|
|
|
|
WHERE get_status = 'true'
|
|
|
|
|
AND (submit_status IN ('未提交', '未审核') OR submit_status IS NULL)
|
|
|
|
|
<if test="keyWord !=null and keyWord !=''">
|
|
|
|
|
AND submit_status is not '已审核'
|
|
|
|
|
AND name LIKE CONCAT ('%',#{keyWord},'%')
|
|
|
|
|
AND
|
|
|
|
|
name LIKE CONCAT ('%',#{keyWord},'%')
|
|
|
|
|
OR idcard LIKE CONCAT ('%',#{keyWord},'%')
|
|
|
|
|
OR client_number LIKE CONCAT ('%',#{keyWord},'%')
|
|
|
|
|
</if>
|
|
|
|
|