|
|
@@ -63,303 +63,6 @@
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <!--查询指定行数据-->
|
|
|
- <select id="findUserList" resultMap="UserMap">
|
|
|
- select
|
|
|
- <include refid="UserAllSql"/>
|
|
|
-
|
|
|
- from user
|
|
|
- <where>
|
|
|
- <if test="id != null and id != ''">
|
|
|
- and id = #{id}
|
|
|
- </if>
|
|
|
- <if test="mobile != null and mobile != ''">
|
|
|
- and mobile = #{mobile}
|
|
|
- </if>
|
|
|
- <if test="password != null and password != ''">
|
|
|
- and password = #{password}
|
|
|
- </if>
|
|
|
- <if test="nickname != null and nickname != ''">
|
|
|
- and nickname = #{nickname}
|
|
|
- </if>
|
|
|
- <if test="email != null and email != ''">
|
|
|
- and email = #{email}
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- and create_time = #{createTime}
|
|
|
- </if>
|
|
|
- <if test="number != null">
|
|
|
- and number = #{number}
|
|
|
- </if>
|
|
|
- <if test="lvl != null">
|
|
|
- and lvl = #{lvl}
|
|
|
- </if>
|
|
|
- <if test="type != null">
|
|
|
- and type = #{type}
|
|
|
- </if>
|
|
|
- <if test="aid != null and aid != ''">
|
|
|
- and aid = #{aid}
|
|
|
- </if>
|
|
|
- <if test="mid != null and mid != ''">
|
|
|
- and mid = #{mid}
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- and status = #{status}
|
|
|
- </if>
|
|
|
- <if test="source != null">
|
|
|
- and source = #{source}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- and update_time = #{updateTime}
|
|
|
- </if>
|
|
|
- <if test="companyLogoUrl != null and companyLogoUrl != ''">
|
|
|
- and company_logo_url = #{companyLogoUrl}
|
|
|
- </if>
|
|
|
- <if test="headPortraitUrl != null and headPortraitUrl != ''">
|
|
|
- and head_portrait_url = #{headPortraitUrl}
|
|
|
- </if>
|
|
|
- <if test="societyTag != null and societyTag != ''">
|
|
|
- and society_tag = #{societyTag}
|
|
|
- </if>
|
|
|
- <if test="introduction != null and introduction != ''">
|
|
|
- and introduction = #{introduction}
|
|
|
- </if>
|
|
|
- <if test="valueAddedTag != null and valueAddedTag != ''">
|
|
|
- and value_added_tag = #{valueAddedTag}
|
|
|
- </if>
|
|
|
- <if test="organizationId != null and organizationId != ''">
|
|
|
- and organization_id = #{organizationId}
|
|
|
- </if>
|
|
|
- <if test="shareType != null">
|
|
|
- and share_type = #{shareType}
|
|
|
- </if>
|
|
|
- <if test="identifyName != null and identifyName != ''">
|
|
|
- and identify_name = #{identifyName}
|
|
|
- </if>
|
|
|
- <if test="backgroundUrl != null and backgroundUrl != ''">
|
|
|
- and background_url = #{backgroundUrl}
|
|
|
- </if>
|
|
|
- <if test="auditStatus != null">
|
|
|
- and audit_status = #{auditStatus}
|
|
|
- </if>
|
|
|
- <if test="auditOpinion != null and auditOpinion != ''">
|
|
|
- and audit_opinion = #{auditOpinion}
|
|
|
- </if>
|
|
|
- <if test="transferTime != null">
|
|
|
- and transfer_time = #{transferTime}
|
|
|
- </if>
|
|
|
- <if test="informationMaintainer != null and informationMaintainer != ''">
|
|
|
- and information_maintainer = #{informationMaintainer}
|
|
|
- </if>
|
|
|
- <if test="coreTechnology != null and coreTechnology != ''">
|
|
|
- and core_technology = #{coreTechnology}
|
|
|
- </if>
|
|
|
- <if test="accomplishSituation != null and accomplishSituation != ''">
|
|
|
- and accomplish_situation = #{accomplishSituation}
|
|
|
- </if>
|
|
|
- <if test="intellectualProperty != null and intellectualProperty != ''">
|
|
|
- and intellectual_property = #{intellectualProperty}
|
|
|
- </if>
|
|
|
- <if test="creditRating != null">
|
|
|
- and credit_rating = #{creditRating}
|
|
|
- </if>
|
|
|
- <if test="level != null">
|
|
|
- and level = #{level}
|
|
|
- </if>
|
|
|
- <if test="authentication != null">
|
|
|
- and authentication = #{authentication}
|
|
|
- </if>
|
|
|
- <if test="username != null and username != ''">
|
|
|
- and username = #{username}
|
|
|
- </if>
|
|
|
- <if test="integrity != null">
|
|
|
- and integrity = #{integrity}
|
|
|
- </if>
|
|
|
- <if test="toInviteCode != null and toInviteCode != ''">
|
|
|
- and to_invite_code = #{toInviteCode}
|
|
|
- </if>
|
|
|
- <if test="beInviteCode != null and beInviteCode != ''">
|
|
|
- and be_invite_code = #{beInviteCode}
|
|
|
- </if>
|
|
|
- <if test="guidance != null">
|
|
|
- and guidance = #{guidance}
|
|
|
- </if>
|
|
|
- <if test="signBills != null">
|
|
|
- and sign_bills = #{signBills}
|
|
|
- </if>
|
|
|
- <if test="channel != null">
|
|
|
- and channel = #{channel}
|
|
|
- </if>
|
|
|
- <if test="newChannel != null">
|
|
|
- and new_channel = #{newChannel}
|
|
|
- </if>
|
|
|
- <if test="signTime != null">
|
|
|
- and sign_time = #{signTime}
|
|
|
- </if>
|
|
|
- <if test="callStatus != null">
|
|
|
- and call_status = #{callStatus}
|
|
|
- </if>
|
|
|
- <if test="clueStatus != null">
|
|
|
- and clue_status = #{clueStatus}
|
|
|
- </if>
|
|
|
- <if test="clueProcess != null">
|
|
|
- and clue_process = #{clueProcess}
|
|
|
- </if>
|
|
|
- <if test="clueTime != null">
|
|
|
- and clue_time = #{clueTime}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- <if test="page_sql != null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <!--统计总行数-->
|
|
|
- <select id="findUserCounts" resultType="java.lang.Integer">
|
|
|
- select count(1)
|
|
|
- from user
|
|
|
- <where>
|
|
|
- <if test="id != null and id != ''">
|
|
|
- and id = #{id}
|
|
|
- </if>
|
|
|
- <if test="mobile != null and mobile != ''">
|
|
|
- and mobile = #{mobile}
|
|
|
- </if>
|
|
|
- <if test="password != null and password != ''">
|
|
|
- and password = #{password}
|
|
|
- </if>
|
|
|
- <if test="nickname != null and nickname != ''">
|
|
|
- and nickname = #{nickname}
|
|
|
- </if>
|
|
|
- <if test="email != null and email != ''">
|
|
|
- and email = #{email}
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- and create_time = #{createTime}
|
|
|
- </if>
|
|
|
- <if test="number != null">
|
|
|
- and number = #{number}
|
|
|
- </if>
|
|
|
- <if test="lvl != null">
|
|
|
- and lvl = #{lvl}
|
|
|
- </if>
|
|
|
- <if test="type != null">
|
|
|
- and type = #{type}
|
|
|
- </if>
|
|
|
- <if test="aid != null and aid != ''">
|
|
|
- and aid = #{aid}
|
|
|
- </if>
|
|
|
- <if test="mid != null and mid != ''">
|
|
|
- and mid = #{mid}
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- and status = #{status}
|
|
|
- </if>
|
|
|
- <if test="source != null">
|
|
|
- and source = #{source}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- and update_time = #{updateTime}
|
|
|
- </if>
|
|
|
- <if test="companyLogoUrl != null and companyLogoUrl != ''">
|
|
|
- and company_logo_url = #{companyLogoUrl}
|
|
|
- </if>
|
|
|
- <if test="headPortraitUrl != null and headPortraitUrl != ''">
|
|
|
- and head_portrait_url = #{headPortraitUrl}
|
|
|
- </if>
|
|
|
- <if test="societyTag != null and societyTag != ''">
|
|
|
- and society_tag = #{societyTag}
|
|
|
- </if>
|
|
|
- <if test="introduction != null and introduction != ''">
|
|
|
- and introduction = #{introduction}
|
|
|
- </if>
|
|
|
- <if test="valueAddedTag != null and valueAddedTag != ''">
|
|
|
- and value_added_tag = #{valueAddedTag}
|
|
|
- </if>
|
|
|
- <if test="organizationId != null and organizationId != ''">
|
|
|
- and organization_id = #{organizationId}
|
|
|
- </if>
|
|
|
- <if test="shareType != null">
|
|
|
- and share_type = #{shareType}
|
|
|
- </if>
|
|
|
- <if test="identifyName != null and identifyName != ''">
|
|
|
- and identify_name = #{identifyName}
|
|
|
- </if>
|
|
|
- <if test="backgroundUrl != null and backgroundUrl != ''">
|
|
|
- and background_url = #{backgroundUrl}
|
|
|
- </if>
|
|
|
- <if test="auditStatus != null">
|
|
|
- and audit_status = #{auditStatus}
|
|
|
- </if>
|
|
|
- <if test="auditOpinion != null and auditOpinion != ''">
|
|
|
- and audit_opinion = #{auditOpinion}
|
|
|
- </if>
|
|
|
- <if test="transferTime != null">
|
|
|
- and transfer_time = #{transferTime}
|
|
|
- </if>
|
|
|
- <if test="informationMaintainer != null and informationMaintainer != ''">
|
|
|
- and information_maintainer = #{informationMaintainer}
|
|
|
- </if>
|
|
|
- <if test="coreTechnology != null and coreTechnology != ''">
|
|
|
- and core_technology = #{coreTechnology}
|
|
|
- </if>
|
|
|
- <if test="accomplishSituation != null and accomplishSituation != ''">
|
|
|
- and accomplish_situation = #{accomplishSituation}
|
|
|
- </if>
|
|
|
- <if test="intellectualProperty != null and intellectualProperty != ''">
|
|
|
- and intellectual_property = #{intellectualProperty}
|
|
|
- </if>
|
|
|
- <if test="creditRating != null">
|
|
|
- and credit_rating = #{creditRating}
|
|
|
- </if>
|
|
|
- <if test="level != null">
|
|
|
- and level = #{level}
|
|
|
- </if>
|
|
|
- <if test="authentication != null">
|
|
|
- and authentication = #{authentication}
|
|
|
- </if>
|
|
|
- <if test="username != null and username != ''">
|
|
|
- and username = #{username}
|
|
|
- </if>
|
|
|
- <if test="integrity != null">
|
|
|
- and integrity = #{integrity}
|
|
|
- </if>
|
|
|
- <if test="toInviteCode != null and toInviteCode != ''">
|
|
|
- and to_invite_code = #{toInviteCode}
|
|
|
- </if>
|
|
|
- <if test="beInviteCode != null and beInviteCode != ''">
|
|
|
- and be_invite_code = #{beInviteCode}
|
|
|
- </if>
|
|
|
- <if test="guidance != null">
|
|
|
- and guidance = #{guidance}
|
|
|
- </if>
|
|
|
- <if test="signBills != null">
|
|
|
- and sign_bills = #{signBills}
|
|
|
- </if>
|
|
|
- <if test="channel != null">
|
|
|
- and channel = #{channel}
|
|
|
- </if>
|
|
|
- <if test="newChannel != null">
|
|
|
- and new_channel = #{newChannel}
|
|
|
- </if>
|
|
|
- <if test="signTime != null">
|
|
|
- and sign_time = #{signTime}
|
|
|
- </if>
|
|
|
- <if test="callStatus != null">
|
|
|
- and call_status = #{callStatus}
|
|
|
- </if>
|
|
|
- <if test="clueStatus != null">
|
|
|
- and clue_status = #{clueStatus}
|
|
|
- </if>
|
|
|
- <if test="clueProcess != null">
|
|
|
- and clue_process = #{clueProcess}
|
|
|
- </if>
|
|
|
- <if test="clueTime != null">
|
|
|
- and clue_time = #{clueTime}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </select>
|
|
|
-
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
insert into user(mobile, password, nickname, email, create_time, number, lvl, type, aid, mid, status, source,
|
|
|
@@ -378,96 +81,6 @@
|
|
|
#{newChannel}, #{signTime}, #{callStatus}, #{clueStatus}, #{clueProcess}, #{clueTime})
|
|
|
</insert>
|
|
|
|
|
|
- <insert id="insertBatch">
|
|
|
- insert into user(mobile, password, nickname, email, create_time, number, lvl, type, aid, mid, status, source,
|
|
|
- update_time, company_logo_url, head_portrait_url, society_tag, introduction, value_added_tag, organization_id,
|
|
|
- share_type, identify_name, background_url, audit_status, audit_opinion, transfer_time, information_maintainer,
|
|
|
- core_technology, accomplish_situation, intellectual_property, credit_rating, level, authentication, username,
|
|
|
- integrity, to_invite_code, be_invite_code, guidance, sign_bills, channel, new_channel, sign_time, call_status,
|
|
|
- clue_status, clue_process, clue_time)
|
|
|
- values
|
|
|
- <foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.mobile}, #{entity.password}, #{entity.nickname}, #{entity.email}, #{entity.createTime},
|
|
|
- #{entity.number}, #{entity.lvl}, #{entity.type}, #{entity.aid}, #{entity.mid}, #{entity.status},
|
|
|
- #{entity.source}, #{entity.updateTime}, #{entity.companyLogoUrl}, #{entity.headPortraitUrl},
|
|
|
- #{entity.societyTag}, #{entity.introduction}, #{entity.valueAddedTag}, #{entity.organizationId},
|
|
|
- #{entity.shareType}, #{entity.identifyName}, #{entity.backgroundUrl}, #{entity.auditStatus},
|
|
|
- #{entity.auditOpinion}, #{entity.transferTime}, #{entity.informationMaintainer}, #{entity.coreTechnology},
|
|
|
- #{entity.accomplishSituation}, #{entity.intellectualProperty}, #{entity.creditRating}, #{entity.level},
|
|
|
- #{entity.authentication}, #{entity.username}, #{entity.integrity}, #{entity.toInviteCode},
|
|
|
- #{entity.beInviteCode}, #{entity.guidance}, #{entity.signBills}, #{entity.channel}, #{entity.newChannel},
|
|
|
- #{entity.signTime}, #{entity.callStatus}, #{entity.clueStatus}, #{entity.clueProcess}, #{entity.clueTime})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user(mobile, password, nickname, email, create_time, number, lvl, type, aid, mid, status, source,
|
|
|
- update_time, company_logo_url, head_portrait_url, society_tag, introduction, value_added_tag, organization_id,
|
|
|
- share_type, identify_name, background_url, audit_status, audit_opinion, transfer_time, information_maintainer,
|
|
|
- core_technology, accomplish_situation, intellectual_property, credit_rating, level, authentication, username,
|
|
|
- integrity, to_invite_code, be_invite_code, guidance, sign_bills, channel, new_channel, sign_time, call_status,
|
|
|
- clue_status, clue_process, clue_time)
|
|
|
- values
|
|
|
- <foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.mobile}, #{entity.password}, #{entity.nickname}, #{entity.email}, #{entity.createTime},
|
|
|
- #{entity.number}, #{entity.lvl}, #{entity.type}, #{entity.aid}, #{entity.mid}, #{entity.status},
|
|
|
- #{entity.source}, #{entity.updateTime}, #{entity.companyLogoUrl}, #{entity.headPortraitUrl},
|
|
|
- #{entity.societyTag}, #{entity.introduction}, #{entity.valueAddedTag}, #{entity.organizationId},
|
|
|
- #{entity.shareType}, #{entity.identifyName}, #{entity.backgroundUrl}, #{entity.auditStatus},
|
|
|
- #{entity.auditOpinion}, #{entity.transferTime}, #{entity.informationMaintainer}, #{entity.coreTechnology},
|
|
|
- #{entity.accomplishSituation}, #{entity.intellectualProperty}, #{entity.creditRating}, #{entity.level},
|
|
|
- #{entity.authentication}, #{entity.username}, #{entity.integrity}, #{entity.toInviteCode},
|
|
|
- #{entity.beInviteCode}, #{entity.guidance}, #{entity.signBills}, #{entity.channel}, #{entity.newChannel},
|
|
|
- #{entity.signTime}, #{entity.callStatus}, #{entity.clueStatus}, #{entity.clueProcess}, #{entity.clueTime})
|
|
|
- </foreach>
|
|
|
- on duplicate key update
|
|
|
- mobile = values(mobile),
|
|
|
- password = values(password),
|
|
|
- nickname = values(nickname),
|
|
|
- email = values(email),
|
|
|
- create_time = values(create_time),
|
|
|
- number = values(number),
|
|
|
- lvl = values(lvl),
|
|
|
- type = values(type),
|
|
|
- aid = values(aid),
|
|
|
- mid = values(mid),
|
|
|
- status = values(status),
|
|
|
- source = values(source),
|
|
|
- update_time = values(update_time),
|
|
|
- company_logo_url = values(company_logo_url),
|
|
|
- head_portrait_url = values(head_portrait_url),
|
|
|
- society_tag = values(society_tag),
|
|
|
- introduction = values(introduction),
|
|
|
- value_added_tag = values(value_added_tag),
|
|
|
- organization_id = values(organization_id),
|
|
|
- share_type = values(share_type),
|
|
|
- identify_name = values(identify_name),
|
|
|
- background_url = values(background_url),
|
|
|
- audit_status = values(audit_status),
|
|
|
- audit_opinion = values(audit_opinion),
|
|
|
- transfer_time = values(transfer_time),
|
|
|
- information_maintainer = values(information_maintainer),
|
|
|
- core_technology = values(core_technology),
|
|
|
- accomplish_situation = values(accomplish_situation),
|
|
|
- intellectual_property = values(intellectual_property),
|
|
|
- credit_rating = values(credit_rating),
|
|
|
- level = values(level),
|
|
|
- authentication = values(authentication),
|
|
|
- username = values(username),
|
|
|
- integrity = values(integrity),
|
|
|
- to_invite_code = values(to_invite_code),
|
|
|
- be_invite_code = values(be_invite_code),
|
|
|
- guidance = values(guidance),
|
|
|
- sign_bills = values(sign_bills),
|
|
|
- channel = values(channel),
|
|
|
- new_channel = values(new_channel),
|
|
|
- sign_time = values(sign_time),
|
|
|
- call_status = values(call_status),
|
|
|
- clue_status = values(clue_status),
|
|
|
- clue_process = values(clue_process),
|
|
|
- clue_time = values(clue_time)
|
|
|
- </insert>
|
|
|
-
|
|
|
<!--通过主键修改数据-->
|
|
|
<update id="update">
|
|
|
update user
|
|
|
@@ -1895,7 +1508,7 @@
|
|
|
and datediff(now(),if(u.transfer_time < um.last_follow_time,um.last_follow_time,u.transfer_time))>30
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectUserClueList" resultType="com.goafanti.customer.bo.OutUserClueBo">
|
|
|
+ <select id="selectUserClueList" resultType="com.goafanti.customer.bo.OutUserClueList">
|
|
|
select a.id,a.nickname ,b.contacts ,b.contact_mobile contactMobile,c.name adminName,
|
|
|
a.clue_process clueProcess,a.clue_time clueTime
|
|
|
from `user` a left join organization_identity b on a.id =b.uid
|