| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847 |
- <?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.goafanti.common.dao.UserMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.User">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- <id column="id" jdbcType="VARCHAR" property="id" />
- <result column="mobile" jdbcType="VARCHAR" property="mobile" />
- <result column="password" jdbcType="VARCHAR" property="password" />
- <result column="nickname" jdbcType="VARCHAR" property="nickname" />
- <result column="email" jdbcType="VARCHAR" property="email" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="number" jdbcType="BIGINT" property="number" />
- <result column="lvl" jdbcType="INTEGER" property="lvl" />
- <result column="type" jdbcType="INTEGER" property="type" />
- <result column="mid" jdbcType="VARCHAR" property="mid" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="source" jdbcType="INTEGER" property="source" />
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
- <result column="company_logo_url" jdbcType="VARCHAR" property="companyLogoUrl" />
- <result column="head_portrait_url" jdbcType="VARCHAR" property="headPortraitUrl" />
- <result column="society_tag" jdbcType="VARCHAR" property="societyTag" />
- <result column="introduction" jdbcType="VARCHAR" property="introduction" />
- <result column="value_added_tag" jdbcType="VARCHAR" property="valueAddedTag" />
- <result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
- <result column="identify_name" jdbcType="VARCHAR" property="identifyName" />
- <result column="background_url" jdbcType="VARCHAR" property="backgroundUrl" />
- <result column="audit_opinion" jdbcType="VARCHAR" property="auditOpinion" />
- <result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
- <result column="share_type" jdbcType="INTEGER" property="shareType" />
- <result column="aid" jdbcType="VARCHAR" property="aid" />
- <result column="transfer_time" jdbcType="TIMESTAMP" property="transferTime" />
- <result column="information_maintainer" jdbcType="VARCHAR" property="informationMaintainer" />
- <result column="core_technology" jdbcType="VARCHAR" property="coreTechnology" />
- <result column="accomplish_situation" jdbcType="VARCHAR" property="accomplishSituation" />
- <result column="intellectual_property" jdbcType="VARCHAR" property="intellectualProperty" />
- <result column="credit_rating" jdbcType="INTEGER" property="creditRating" />
- <result column="username" jdbcType="VARCHAR" property="username" />
- <result column="authentication" jdbcType="INTEGER" property="authentication" />
- <result column="level" jdbcType="INTEGER" property="level" />
- <result column="integrity" jdbcType="FLOAT" property="integrity" />
- <result column="sign_bills" jdbcType="INTEGER" property="signBills" />
- <result column="channel" jdbcType="INTEGER" property="channel" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- <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">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- <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">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- id, mobile, password, nickname, email, create_time, number, lvl, type, mid, status,
- source, update_time, company_logo_url, head_portrait_url, society_tag, introduction,
- value_added_tag, organization_id, identify_name, background_url, audit_opinion, audit_status,
- share_type, aid, transfer_time, information_maintainer, core_technology, accomplish_situation,
- intellectual_property, credit_rating, username, authentication, level,integrity,sign_bills,channel
- </sql>
- <select id="selectByExample" parameterType="com.goafanti.common.model.UserExample" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from user
- <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.String" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- select
- <include refid="Base_Column_List" />
- from user
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- delete from user
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.goafanti.common.model.UserExample">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- delete from user
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.User">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- insert into user (id, mobile, password,
- nickname, email, create_time,
- number, lvl, type, mid,
- status, source, update_time,
- company_logo_url, head_portrait_url, society_tag,
- introduction, value_added_tag, organization_id,
- identify_name, background_url, audit_opinion,
- audit_status, share_type, aid,
- transfer_time, information_maintainer,
- core_technology, accomplish_situation, intellectual_property,
- credit_rating, username, authentication,
- level,integrity)
- values (#{id,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
- #{nickname,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
- #{number,jdbcType=BIGINT}, #{lvl,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{mid,jdbcType=VARCHAR},
- #{status,jdbcType=INTEGER}, #{source,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP},
- #{companyLogoUrl,jdbcType=VARCHAR}, #{headPortraitUrl,jdbcType=VARCHAR}, #{societyTag,jdbcType=VARCHAR},
- #{introduction,jdbcType=VARCHAR}, #{valueAddedTag,jdbcType=VARCHAR}, #{organizationId,jdbcType=VARCHAR},
- #{identifyName,jdbcType=VARCHAR}, #{backgroundUrl,jdbcType=VARCHAR}, #{auditOpinion,jdbcType=VARCHAR},
- #{auditStatus,jdbcType=INTEGER}, #{shareType,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR},
- #{transferTime,jdbcType=TIMESTAMP}, #{informationMaintainer,jdbcType=VARCHAR},
- #{coreTechnology,jdbcType=VARCHAR}, #{accomplishSituation,jdbcType=VARCHAR}, #{intellectualProperty,jdbcType=VARCHAR},
- #{creditRating,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{authentication,jdbcType=INTEGER},
- #{level,jdbcType=INTEGER},#{integrity,jdbcType=FLOAT})
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.User">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- insert into user
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="mobile != null">
- mobile,
- </if>
- <if test="password != null">
- password,
- </if>
- <if test="nickname != null">
- nickname,
- </if>
- <if test="email != null">
- email,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- <if test="number != null">
- number,
- </if>
- <if test="lvl != null">
- lvl,
- </if>
- <if test="type != null">
- type,
- </if>
- <if test="mid != null">
- mid,
- </if>
- <if test="status != null">
- status,
- </if>
- <if test="source != null">
- source,
- </if>
- <if test="updateTime != null">
- update_time,
- </if>
- <if test="companyLogoUrl != null">
- company_logo_url,
- </if>
- <if test="headPortraitUrl != null">
- head_portrait_url,
- </if>
- <if test="societyTag != null">
- society_tag,
- </if>
- <if test="introduction != null">
- introduction,
- </if>
- <if test="valueAddedTag != null">
- value_added_tag,
- </if>
- <if test="organizationId != null">
- organization_id,
- </if>
- <if test="identifyName != null">
- identify_name,
- </if>
- <if test="backgroundUrl != null">
- background_url,
- </if>
- <if test="auditOpinion != null">
- audit_opinion,
- </if>
- <if test="auditStatus != null">
- audit_status,
- </if>
- <if test="shareType != null">
- share_type,
- </if>
- <if test="aid != null">
- aid,
- </if>
- <if test="transferTime != null">
- transfer_time,
- </if>
- <if test="informationMaintainer != null">
- information_maintainer,
- </if>
- <if test="coreTechnology != null">
- core_technology,
- </if>
- <if test="accomplishSituation != null">
- accomplish_situation,
- </if>
- <if test="intellectualProperty != null">
- intellectual_property,
- </if>
- <if test="creditRating != null">
- credit_rating,
- </if>
- <if test="username != null">
- username,
- </if>
- <if test="authentication != null">
- authentication,
- </if>
- <if test="level != null">
- level,
- </if>
- <if test="integrity != null">
- integrity,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="mobile != null">
- #{mobile,jdbcType=VARCHAR},
- </if>
- <if test="password != null">
- #{password,jdbcType=VARCHAR},
- </if>
- <if test="nickname != null">
- #{nickname,jdbcType=VARCHAR},
- </if>
- <if test="email != null">
- #{email,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="number != null">
- #{number,jdbcType=BIGINT},
- </if>
- <if test="lvl != null">
- #{lvl,jdbcType=INTEGER},
- </if>
- <if test="type != null">
- #{type,jdbcType=INTEGER},
- </if>
- <if test="mid != null">
- #{mid,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="source != null">
- #{source,jdbcType=INTEGER},
- </if>
- <if test="updateTime != null">
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="companyLogoUrl != null">
- #{companyLogoUrl,jdbcType=VARCHAR},
- </if>
- <if test="headPortraitUrl != null">
- #{headPortraitUrl,jdbcType=VARCHAR},
- </if>
- <if test="societyTag != null">
- #{societyTag,jdbcType=VARCHAR},
- </if>
- <if test="introduction != null">
- #{introduction,jdbcType=VARCHAR},
- </if>
- <if test="valueAddedTag != null">
- #{valueAddedTag,jdbcType=VARCHAR},
- </if>
- <if test="organizationId != null">
- #{organizationId,jdbcType=VARCHAR},
- </if>
- <if test="identifyName != null">
- #{identifyName,jdbcType=VARCHAR},
- </if>
- <if test="backgroundUrl != null">
- #{backgroundUrl,jdbcType=VARCHAR},
- </if>
- <if test="auditOpinion != null">
- #{auditOpinion,jdbcType=VARCHAR},
- </if>
- <if test="auditStatus != null">
- #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="shareType != null">
- #{shareType,jdbcType=INTEGER},
- </if>
- <if test="aid != null">
- #{aid,jdbcType=VARCHAR},
- </if>
- <if test="transferTime != null">
- #{transferTime,jdbcType=TIMESTAMP},
- </if>
- <if test="informationMaintainer != null">
- #{informationMaintainer,jdbcType=VARCHAR},
- </if>
- <if test="coreTechnology != null">
- #{coreTechnology,jdbcType=VARCHAR},
- </if>
- <if test="accomplishSituation != null">
- #{accomplishSituation,jdbcType=VARCHAR},
- </if>
- <if test="intellectualProperty != null">
- #{intellectualProperty,jdbcType=VARCHAR},
- </if>
- <if test="creditRating != null">
- #{creditRating,jdbcType=INTEGER},
- </if>
- <if test="username != null">
- #{username,jdbcType=VARCHAR},
- </if>
- <if test="authentication != null">
- #{authentication,jdbcType=INTEGER},
- </if>
- <if test="level != null">
- #{level,jdbcType=INTEGER},
- </if>
- <if test="integrity != null">
- #{integrity,jdbcType=FLOAT}
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.goafanti.common.model.UserExample" resultType="java.lang.Long">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- select count(*) from user
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- update user
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=VARCHAR},
- </if>
- <if test="record.mobile != null">
- mobile = #{record.mobile,jdbcType=VARCHAR},
- </if>
- <if test="record.password != null">
- password = #{record.password,jdbcType=VARCHAR},
- </if>
- <if test="record.nickname != null">
- nickname = #{record.nickname,jdbcType=VARCHAR},
- </if>
- <if test="record.email != null">
- email = #{record.email,jdbcType=VARCHAR},
- </if>
- <if test="record.createTime != null">
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.number != null">
- number = #{record.number,jdbcType=BIGINT},
- </if>
- <if test="record.lvl != null">
- lvl = #{record.lvl,jdbcType=INTEGER},
- </if>
- <if test="record.type != null">
- type = #{record.type,jdbcType=INTEGER},
- </if>
- <if test="record.mid != null">
- mid = #{record.mid,jdbcType=VARCHAR},
- </if>
- <if test="record.status != null">
- status = #{record.status,jdbcType=INTEGER},
- </if>
- <if test="record.source != null">
- source = #{record.source,jdbcType=INTEGER},
- </if>
- <if test="record.updateTime != null">
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.companyLogoUrl != null">
- company_logo_url = #{record.companyLogoUrl,jdbcType=VARCHAR},
- </if>
- <if test="record.headPortraitUrl != null">
- head_portrait_url = #{record.headPortraitUrl,jdbcType=VARCHAR},
- </if>
- <if test="record.societyTag != null">
- society_tag = #{record.societyTag,jdbcType=VARCHAR},
- </if>
- <if test="record.introduction != null">
- introduction = #{record.introduction,jdbcType=VARCHAR},
- </if>
- <if test="record.valueAddedTag != null">
- value_added_tag = #{record.valueAddedTag,jdbcType=VARCHAR},
- </if>
- <if test="record.organizationId != null">
- organization_id = #{record.organizationId,jdbcType=VARCHAR},
- </if>
- <if test="record.identifyName != null">
- identify_name = #{record.identifyName,jdbcType=VARCHAR},
- </if>
- <if test="record.backgroundUrl != null">
- background_url = #{record.backgroundUrl,jdbcType=VARCHAR},
- </if>
- <if test="record.auditOpinion != null">
- audit_opinion = #{record.auditOpinion,jdbcType=VARCHAR},
- </if>
- <if test="record.auditStatus != null">
- audit_status = #{record.auditStatus,jdbcType=INTEGER},
- </if>
- <if test="record.shareType != null">
- share_type = #{record.shareType,jdbcType=INTEGER},
- </if>
- <if test="record.aid != null">
- aid = #{record.aid,jdbcType=VARCHAR},
- </if>
- <if test="record.transferTime != null">
- transfer_time = #{record.transferTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.informationMaintainer != null">
- information_maintainer = #{record.informationMaintainer,jdbcType=VARCHAR},
- </if>
- <if test="record.coreTechnology != null">
- core_technology = #{record.coreTechnology,jdbcType=VARCHAR},
- </if>
- <if test="record.accomplishSituation != null">
- accomplish_situation = #{record.accomplishSituation,jdbcType=VARCHAR},
- </if>
- <if test="record.intellectualProperty != null">
- intellectual_property = #{record.intellectualProperty,jdbcType=VARCHAR},
- </if>
- <if test="record.creditRating != null">
- credit_rating = #{record.creditRating,jdbcType=INTEGER},
- </if>
- <if test="record.username != null">
- username = #{record.username,jdbcType=VARCHAR},
- </if>
- <if test="record.authentication != null">
- authentication = #{record.authentication,jdbcType=INTEGER},
- </if>
- <if test="record.level != null">
- level = #{record.level,jdbcType=INTEGER},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- update user
- set id = #{record.id,jdbcType=VARCHAR},
- mobile = #{record.mobile,jdbcType=VARCHAR},
- password = #{record.password,jdbcType=VARCHAR},
- nickname = #{record.nickname,jdbcType=VARCHAR},
- email = #{record.email,jdbcType=VARCHAR},
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- number = #{record.number,jdbcType=BIGINT},
- lvl = #{record.lvl,jdbcType=INTEGER},
- type = #{record.type,jdbcType=INTEGER},
- mid = #{record.mid,jdbcType=VARCHAR},
- status = #{record.status,jdbcType=INTEGER},
- source = #{record.source,jdbcType=INTEGER},
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- company_logo_url = #{record.companyLogoUrl,jdbcType=VARCHAR},
- head_portrait_url = #{record.headPortraitUrl,jdbcType=VARCHAR},
- society_tag = #{record.societyTag,jdbcType=VARCHAR},
- introduction = #{record.introduction,jdbcType=VARCHAR},
- value_added_tag = #{record.valueAddedTag,jdbcType=VARCHAR},
- organization_id = #{record.organizationId,jdbcType=VARCHAR},
- identify_name = #{record.identifyName,jdbcType=VARCHAR},
- background_url = #{record.backgroundUrl,jdbcType=VARCHAR},
- audit_opinion = #{record.auditOpinion,jdbcType=VARCHAR},
- audit_status = #{record.auditStatus,jdbcType=INTEGER},
- share_type = #{record.shareType,jdbcType=INTEGER},
- aid = #{record.aid,jdbcType=VARCHAR},
- transfer_time = #{record.transferTime,jdbcType=TIMESTAMP},
- information_maintainer = #{record.informationMaintainer,jdbcType=VARCHAR},
- core_technology = #{record.coreTechnology,jdbcType=VARCHAR},
- accomplish_situation = #{record.accomplishSituation,jdbcType=VARCHAR},
- intellectual_property = #{record.intellectualProperty,jdbcType=VARCHAR},
- credit_rating = #{record.creditRating,jdbcType=INTEGER},
- username = #{record.username,jdbcType=VARCHAR},
- authentication = #{record.authentication,jdbcType=INTEGER},
- level = #{record.level,jdbcType=INTEGER},
- integrity = #{integrity ,jdbcType=FLOAT}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.User">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- update user
- <set>
- <if test="mobile != null">
- mobile = #{mobile,jdbcType=VARCHAR},
- </if>
- <if test="password != null">
- password = #{password,jdbcType=VARCHAR},
- </if>
- <if test="nickname != null">
- nickname = #{nickname,jdbcType=VARCHAR},
- </if>
- <if test="email != null">
- email = #{email,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="number != null">
- number = #{number,jdbcType=BIGINT},
- </if>
- <if test="lvl != null">
- lvl = #{lvl,jdbcType=INTEGER},
- </if>
- <if test="type != null">
- type = #{type,jdbcType=INTEGER},
- </if>
- <if test="mid != null">
- mid = #{mid,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- status = #{status,jdbcType=INTEGER},
- </if>
- <if test="source != null">
- source = #{source,jdbcType=INTEGER},
- </if>
- <if test="updateTime != null">
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="companyLogoUrl != null">
- company_logo_url = #{companyLogoUrl,jdbcType=VARCHAR},
- </if>
- <if test="headPortraitUrl != null">
- head_portrait_url = #{headPortraitUrl,jdbcType=VARCHAR},
- </if>
- <if test="societyTag != null">
- society_tag = #{societyTag,jdbcType=VARCHAR},
- </if>
- <if test="introduction != null">
- introduction = #{introduction,jdbcType=VARCHAR},
- </if>
- <if test="valueAddedTag != null">
- value_added_tag = #{valueAddedTag,jdbcType=VARCHAR},
- </if>
- <if test="organizationId != null">
- organization_id = #{organizationId,jdbcType=VARCHAR},
- </if>
- <if test="identifyName != null">
- identify_name = #{identifyName,jdbcType=VARCHAR},
- </if>
- <if test="backgroundUrl != null">
- background_url = #{backgroundUrl,jdbcType=VARCHAR},
- </if>
- <if test="auditOpinion != null">
- audit_opinion = #{auditOpinion,jdbcType=VARCHAR},
- </if>
- <if test="auditStatus != null">
- audit_status = #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="shareType != null">
- share_type = #{shareType,jdbcType=INTEGER},
- </if>
- <if test="aid != null">
- aid = #{aid,jdbcType=VARCHAR},
- </if>
- <if test="transferTime != null">
- transfer_time = #{transferTime,jdbcType=TIMESTAMP},
- </if>
- <if test="informationMaintainer != null">
- information_maintainer = #{informationMaintainer,jdbcType=VARCHAR},
- </if>
- <if test="coreTechnology != null">
- core_technology = #{coreTechnology,jdbcType=VARCHAR},
- </if>
- <if test="accomplishSituation != null">
- accomplish_situation = #{accomplishSituation,jdbcType=VARCHAR},
- </if>
- <if test="intellectualProperty != null">
- intellectual_property = #{intellectualProperty,jdbcType=VARCHAR},
- </if>
- <if test="creditRating != null">
- credit_rating = #{creditRating,jdbcType=INTEGER},
- </if>
- <if test="username != null">
- username = #{username,jdbcType=VARCHAR},
- </if>
- <if test="authentication != null">
- authentication = #{authentication,jdbcType=INTEGER},
- </if>
- <if test="level != null">
- level = #{level,jdbcType=INTEGER},
- </if>
- <if test="integrity != null">
- integrity = #{integrity ,jdbcType=FLOAT}
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.User">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Tue Jun 26 10:23:14 CST 2018.
- -->
- update user
- set mobile = #{mobile,jdbcType=VARCHAR},
- password = #{password,jdbcType=VARCHAR},
- nickname = #{nickname,jdbcType=VARCHAR},
- email = #{email,jdbcType=VARCHAR},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- number = #{number,jdbcType=BIGINT},
- lvl = #{lvl,jdbcType=INTEGER},
- type = #{type,jdbcType=INTEGER},
- mid = #{mid,jdbcType=VARCHAR},
- status = #{status,jdbcType=INTEGER},
- source = #{source,jdbcType=INTEGER},
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- company_logo_url = #{companyLogoUrl,jdbcType=VARCHAR},
- head_portrait_url = #{headPortraitUrl,jdbcType=VARCHAR},
- society_tag = #{societyTag,jdbcType=VARCHAR},
- introduction = #{introduction,jdbcType=VARCHAR},
- value_added_tag = #{valueAddedTag,jdbcType=VARCHAR},
- organization_id = #{organizationId,jdbcType=VARCHAR},
- identify_name = #{identifyName,jdbcType=VARCHAR},
- background_url = #{backgroundUrl,jdbcType=VARCHAR},
- audit_opinion = #{auditOpinion,jdbcType=VARCHAR},
- audit_status = #{auditStatus,jdbcType=INTEGER},
- share_type = #{shareType,jdbcType=INTEGER},
- aid = #{aid,jdbcType=VARCHAR},
- transfer_time = #{transferTime,jdbcType=TIMESTAMP},
- information_maintainer = #{informationMaintainer,jdbcType=VARCHAR},
- core_technology = #{coreTechnology,jdbcType=VARCHAR},
- accomplish_situation = #{accomplishSituation,jdbcType=VARCHAR},
- intellectual_property = #{intellectualProperty,jdbcType=VARCHAR},
- credit_rating = #{creditRating,jdbcType=INTEGER},
- username = #{username,jdbcType=VARCHAR},
- authentication = #{authentication,jdbcType=INTEGER},
- level = #{level,jdbcType=INTEGER},
- integrity = #{integrity ,jdbcType=FLOAT}
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <resultMap id="UserPageHomeBo" type="com.goafanti.user.bo.UserPageHomeBo">
- <result column="uid" jdbcType="VARCHAR" property="uid" />
- <result column="lvl" jdbcType="INTEGER" property="lvl" />
- <result column="nickname" jdbcType="VARCHAR" property="nickname" />
- <result column="email" jdbcType="VARCHAR" property="email" />
- <result column="number" jdbcType="INTEGER" property="number" />
- <result column="type" jdbcType="INTEGER" property="type" />
- <result column="person_portrait_url" jdbcType="VARCHAR" property="personPortraitUrl" />
- <result column="logo_url" jdbcType="VARCHAR" property="logoUrl" />
- <result column="grade_name" jdbcType="VARCHAR" property="gradeName" />
- </resultMap>
-
- <resultMap id="UserDownLoadBo" type="com.goafanti.user.bo.UserDownLoadBo">
- <id column="id" jdbcType="VARCHAR" property="id" />
- <result column="diploma_url" jdbcType="VARCHAR" property="diplomaUrl" />
- <result column="degree_diploma_url" jdbcType="VARCHAR" property="degreeDiplomaUrl" />
- <result column="professional_certificate_url" jdbcType="VARCHAR" property="professionalCertificateUrl" />
- <result column="qualification_certificate_url" jdbcType="VARCHAR" property="qualificationCertificateUrl" />
- <result column="positive_id_url" jdbcType="VARCHAR" property="positiveIdUrl" />
- <result column="opposite_id_url" jdbcType="VARCHAR" property="oppositeIdUrl" />
- </resultMap>
-
- <select id="selectByMobieAndType" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from user
- where mobile = #{0} and type=#{1} and source = 0
- </select>
-
- <select id="selectUserPageHomeBoByUserId" parameterType="java.lang.String" resultMap="UserPageHomeBo">
- select
- u.lvl,mg.grade_name , u.nickname, u.email,
- u.number, u.type, u.head_portrait_url as person_portrait_url,
- u.company_logo_url as logo_url, u.id as uid, adc.achievement_count as achievementNum,
- adc.demand_count as demandNum
- from user u
- LEFT JOIN achievement_demand_count adc on adc.uid = u.id
- LEFT JOIN member_grade mg ON mg.member_rank=u.lvl
- where u.id = #{uid,jdbcType = VARCHAR}
- </select>
-
- <select id="selectUserDownLoadBoByUserId" parameterType="java.lang.String" resultMap="UserDownLoadBo">
- select u.id,i.positive_id_url ,i.opposite_id_url,c.professional_certificate_url,c.qualification_certificate_url,
- e.diploma_url, e.degree_diploma_url
- from user u
- LEFT JOIN user_identity i on u.id = i.uid
- LEFT JOIN user_career c on u.id = c.uid
- LEFT JOIN user_edu e on u.id = e.uid
- where u.id =#{id,jdbcType=VARCHAR}
- </select>
-
- <select id="findUserListByPage" parameterType="String" resultType="com.goafanti.user.bo.UserListBo">
- select
- u.id ,
- u.mobile,
- u.email,
- u.create_time as createTime,
- u.number ,
- i.username,
- i.audit_status as auditStatus,
- a.name as adminName,
- ad.name as managerName
- from user u
- LEFT JOIN admin a on a.id = u.aid
- LEFT JOIN admin ad on ad.id = u.mid
- LEFT JOIN user_identity i
- ON u.id = i.uid where u.type = 0
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="email != null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="pStart != null">
- and u.create_time <![CDATA[ > ]]> #{pStart,jdbcType=TIMESTAMP}
- </if>
- <if test="pEnd != null">
- and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
- </if>
- <if test=" number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="username != null">
- and i.username like CONCAT ('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="auditStatus != null">
- and i.audit_status= #{auditStatus,jdbcType=INTEGER}
- </if>
- order by u.number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findUserCount" parameterType="String" resultType="java.lang.Integer">
- select count(1)
- from user u LEFT JOIN user_identity i
- ON u.id = i.uid
- WHERE u.type = 0
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="email != null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="pStart != null">
- and u.create_time <![CDATA[ > ]]> #{pStart,jdbcType=TIMESTAMP}
- </if>
- <if test="pEnd != null">
- and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
- </if>
- <if test="number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="username != null">
- and i.username like CONCAT ('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="auditStatus != null">
- and i.audit_status= #{auditStatus,jdbcType=INTEGER}
- </if>
- </select>
-
- <select id="findOrgListByPage" parameterType="String" resultType="com.goafanti.user.bo.OrgListBo">
- select u.id ,u.mobile, u.email, u.create_time as createTime,
- u.number, o.audit_status as orgAuditStatus, a.name as adminName,
- o.unit_name as unitName, ad.name as managerName
- from user u
- LEFT JOIN admin a on a.id = u.aid
- LEFT JOIN admin ad on ad.id = u.mid
- LEFT JOIN organization_identity o
- ON u.id = o.uid
- WHERE u.type = 1
-
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="uid != null">
- and u.id = #{uid,jdbcType=VARCHAR}
- </if>
- <if test="email != null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="pStart != null">
- and u.create_time <![CDATA[ >= ]]> #{pStart,jdbcType=TIMESTAMP}
- </if>
- <if test="pEnd != null">
- and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
- </if>
- <if test=" number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="unitName != null">
- and o.unit_name = #{unitName,jdbcType=VARCHAR}
- </if>
- <if test="auditStatus != null">
- and o.audit_status= #{auditStatus,jdbcType=INTEGER}
- </if>
- order by u.number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findOrgCount" parameterType="String" resultType="java.lang.Integer">
- select count(1)
- from user u LEFT JOIN organization_identity o
- ON u.id = o.uid
- WHERE u.type = 1
- <if test="uid != null">
- and u.id = #{uid,jdbcType=VARCHAR}
- </if>
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="email != null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="pStart != null">
- and u.create_time <![CDATA[ >= ]]> #{pStart,jdbcType=TIMESTAMP}
- </if>
- <if test="pEnd != null">
- and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
- </if>
- <if test=" number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="unitName != null">
- and o.unit_name = #{unitName,jdbcType=VARCHAR}
- </if>
- <if test="auditStatus != null">
- and o.audit_status= #{auditStatus,jdbcType=INTEGER}
- </if>
- </select>
-
- <select id="findUserByAidWithParamsListByPage" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgListBo">
- select
- u.id ,
- u.mobile,
- u.email,
- u.create_time as createTime,
- u.number ,
- a.name as adminName,
- ma.name as managerName,
- u.type,
- i.username,
- i.audit_status as userAuditStatus
- from user u
- LEFT JOIN admin a on a.id = u.aid
- LEFT JOIN admin ma on ma.id = u.mid
- LEFT JOIN user_identity i on u.id = i.uid
- where u.type = 0
- <if test="aid != null">
- and u.aid = #{aid,jdbcType=VARCHAR}
- </if>
- <if test="number !=null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="mobile !=null">
- and u.mobile= #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="auditStatus !=null">
- and i.audit_status = #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="auditName !=null">
- and i.username like CONCAT('%',#{auditName,jdbcType=VARCHAR},'%')
- </if>
- <if test="email !=null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="startCreateTime !=null">
- and u.create_time <![CDATA[ >= ]]> #{startCreateTime,jdbcType=TIMESTAMP}
- </if>
- <if test="endCreateTime !=null">
- and u.create_time <![CDATA[ < ]]> #{endCreateTime,jdbcType=TIMESTAMP}
- </if>
- order by u.number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findUserByAidWithParamsCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from user u
- LEFT JOIN admin a on a.id = u.aid
- LEFT JOIN user_identity i on u.id = i.uid
- where u.type = 0
- <if test="aid != null">
- and u.aid = #{aid,jdbcType=VARCHAR}
- </if>
- <if test="number !=null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="mobile !=null">
- and u.mobile= #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="auditStatus !=null">
- and i.audit_status = #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="auditName !=null">
- and i.username like CONCAT('%',#{auditName,jdbcType=VARCHAR},'%')
- </if>
- <if test="email !=null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="startCreateTime !=null">
- and u.create_time <![CDATA[ >= ]]> #{startCreateTime,jdbcType=TIMESTAMP}
- </if>
- <if test="endCreateTime !=null">
- and u.create_time <![CDATA[ < ]]> #{endCreateTime,jdbcType=TIMESTAMP}
- </if>
- </select>
-
-
- <select id="findOrgByAidWithParamsListByPage" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgListBo">
- select
- u.id ,
- u.mobile,
- u.email,
- u.create_time as createTime,
- u.number ,
- a.name as adminName,
- ma.name as managerName,
- u.type,
- i.unit_name as unitName,
- i.audit_status as orgAuditStatus
- from user u
- LEFT JOIN admin a on a.id = u.aid
- LEFT JOIN admin ma on ma.id = u.mid
- LEFT JOIN organization_identity i on u.id = i.uid
- where u.type = 1
- <if test="aid != null">
- and u.aid = #{aid,jdbcType=VARCHAR}
- </if>
- <if test="number !=null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="mobile !=null">
- and u.mobile= #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="auditStatus !=null">
- and i.audit_status = #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="auditName !=null">
- and i.unit_name like CONCAT('%',#{auditName,jdbcType=VARCHAR},'%')
- </if>
- <if test="email !=null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="startCreateTime !=null">
- and u.create_time <![CDATA[ >= ]]> #{startCreateTime,jdbcType=TIMESTAMP}
- </if>
- <if test="endCreateTime !=null">
- and u.create_time <![CDATA[ < ]]> #{endCreateTime,jdbcType=TIMESTAMP}
- </if>
- order by u.number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findOrgByAidWithParamsCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from user u
- LEFT JOIN admin a on a.id = u.aid
- LEFT JOIN organization_identity i on u.id = i.uid
- where u.type = 1
- <if test="aid != null">
- and u.aid = #{aid,jdbcType=VARCHAR}
- </if>
- <if test="number !=null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="mobile !=null">
- and u.mobile= #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="auditStatus !=null">
- and i.audit_status = #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="auditName !=null">
- and i.unit_name like CONCAT('%',#{auditName,jdbcType=VARCHAR},'%')
- </if>
- <if test="email !=null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="startCreateTime !=null">
- and u.create_time <![CDATA[ >= ]]> #{startCreateTime,jdbcType=TIMESTAMP}
- </if>
- <if test="endCreateTime !=null">
- and u.create_time <![CDATA[ < ]]> #{endCreateTime,jdbcType=TIMESTAMP}
- </if>
- </select>
-
-
-
- <select id="findUserByNameAndMobile" resultType="java.lang.String">
- select
- ui.username
- from user u
- left join user_identity ui on u.id = ui.uid
- where u.lvl > 0 and u.type = 0 and ui.audit_status = 5
- <if test="name != null">
- and ui.username = #{name,jdbcType=VARCHAR}
- </if>
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- </select>
-
- <select id="findOrgByNameAndMobile" resultType="java.lang.String">
- select
- oi.unit_name
- from user u
- left join organization_identity oi on u.id = oi.uid
- where u.lvl > 0 and u.type = 1 and oi.audit_status = 5
- <if test="name != null">
- and oi.unit_name = #{name,jdbcType=VARCHAR}
- </if>
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- </select>
-
- <select id="findAreaManagerUserListByPage" parameterType="String" resultType="com.goafanti.user.bo.UserListBo">
- select
- u.id ,
- u.mobile,
- u.email,
- u.create_time as createTime,
- u.number ,
- i.audit_status as auditStatus,
- i.username,
- a.name as adminName,
- ad.name as managerName
- from user u
- LEFT JOIN admin a on a.id = u.aid
- LEFT JOIN admin ad on ad.id = u.mid
- LEFT JOIN user_identity i on u.id = i.uid
- where u.type = 0
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="email != null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="pStart != null">
- and u.create_time <![CDATA[ > ]]> #{pStart,jdbcType=TIMESTAMP}
- </if>
- <if test="pEnd != null">
- and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
- </if>
- <if test=" number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="username != null">
- and i.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="auditStatus != null">
- and i.audit_status= #{auditStatus,jdbcType=INTEGER}
- </if>
-
- <if test="provinceList != null">
- and i.province in
- <foreach close=")" collection="provinceList" item="plist" open="(" separator=",">
- #{plist}
- </foreach>
- </if>
- <if test="cityList != null">
- and i.city in
- <foreach close=")" collection="cityList" item="clist" open="(" separator=",">
- #{clist}
- </foreach>
- </if>
-
- order by u.number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findAreaManagerUserCount" parameterType="String" resultType="java.lang.Integer">
- select count(1)
- from user u LEFT JOIN user_identity i
- ON u.id = i.uid
- WHERE u.type = 0
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="email != null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="pStart != null">
- and u.create_time <![CDATA[ > ]]> #{pStart,jdbcType=TIMESTAMP}
- </if>
- <if test="pEnd != null">
- and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
- </if>
- <if test="number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="username != null">
- and i.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="auditStatus != null">
- and i.audit_status= #{auditStatus,jdbcType=INTEGER}
- </if>
-
- <if test="provinceList != null">
- and i.province in
- <foreach close=")" collection="provinceList" item="plist" open="(" separator=",">
- #{plist}
- </foreach>
- </if>
- <if test="cityList != null">
- and i.city in
- <foreach close=")" collection="cityList" item="clist" open="(" separator=",">
- #{clist}
- </foreach>
- </if>
- </select>
-
- <select id="findAreaManagerOrgListByPage" parameterType="String" resultType="com.goafanti.user.bo.OrgListBo">
- select
- u.id ,
- u.mobile,
- u.email,
- u.create_time as createTime,
- u.number ,
- o.audit_status as orgAuditStatus,
- a.name as adminName,
- o.unit_name as unitName,
- ad.name as managerName
- from user u
- LEFT JOIN admin a on a.id = u.aid
- LEFT JOIN admin ad on ad.id = u.mid
- LEFT JOIN organization_identity o on u.id = o.uid
- WHERE u.type = 1
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="uid != null">
- and u.id = #{uid,jdbcType=VARCHAR}
- </if>
- <if test="email != null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="pStart != null">
- and u.create_time <![CDATA[ >= ]]> #{pStart,jdbcType=TIMESTAMP}
- </if>
- <if test="pEnd != null">
- and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
- </if>
- <if test=" number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="unitName != null">
- and o.unit_name like '%'#{unitName,jdbcType=VARCHAR}'%'
- </if>
- <if test="auditStatus != null">
- and o.audit_status= #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="provinceList != null">
- and o.licence_province in
- <foreach close=")" collection="provinceList" item="plist" open="(" separator=",">
- #{plist}
- </foreach>
- </if>
- <if test="cityList != null">
- and o.licence_city in
- <foreach close=")" collection="cityList" item="clist" open="(" separator=",">
- #{clist}
- </foreach>
- </if>
- order by u.number desc
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findAreaManagerOrgCount" parameterType="String" resultType="java.lang.Integer">
- select count(1)
- from user u LEFT JOIN organization_identity o
- ON u.id = o.uid
- WHERE u.type = 1
- <if test="uid != null">
- and u.id = #{uid,jdbcType=VARCHAR}
- </if>
- <if test="mobile != null">
- and u.mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="email != null">
- and u.email = #{email,jdbcType=VARCHAR}
- </if>
- <if test="pStart != null">
- and u.create_time <![CDATA[ >= ]]> #{pStart,jdbcType=TIMESTAMP}
- </if>
- <if test="pEnd != null">
- and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
- </if>
- <if test=" number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="unitName != null">
- and o.unit_name like '%'#{unitName,jdbcType=VARCHAR}'%'
- </if>
- <if test="auditStatus != null">
- and o.audit_status= #{auditStatus,jdbcType=INTEGER}
- </if>
- <if test="provinceList != null">
- and i.province in
- <foreach close=")" collection="provinceList" item="plist" open="(" separator=",">
- #{plist}
- </foreach>
- </if>
- <if test="cityList != null">
- and i.city in
- <foreach close=")" collection="cityList" item="clist" open="(" separator=",">
- #{clist}
- </foreach>
- </if>
- </select>
-
- <select id="findUserPartnerDetail" parameterType="java.lang.String" resultType="com.goafanti.user.bo.UserPartnerDetailBo">
- select
- u.id,i.username,i.work_unit as workUnit,i.professional_title as position,u.introduction as achievement,
- u.head_portrait_url as personPortraitUrl,
- i.province,
- u.introduction as personalProfile,
- ua.ability_label as abilityLabel,i.qualification,
- i.graduate_school,i.major_category,i.work_unit as workUnit,
- ic.name as engagedField
- from `user` u
- left join user_identity i on u.id=i.uid
- left join
- user_career c on u.id=c.uid
- <!-- left join user_info info on u.id=info.uid -->
- left join user_ability ua on u.id=ua.uid
- left join user_edu e on u.id=e.uid
- left join industry_category ic on i.industry=ic.id
- WHERE
- u.type = 0
- <if test="_parameter!= null">
- and u.id= #{_parameter,jdbcType=VARCHAR}
- </if>
- </select>
-
- <select id="findOrgPartnerDetail" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgPartnerDetailBo">
- select
- u.id,i.username,c.work_unit as work_unit,c.position,c.achievement,
- u.head_portrait_url as personPortraitUrl,
- i.province,u.introduction as personalProfile,
- ua.ability_label as abilityLabel
- from `user` u
- left join user_identity i on u.id=i.uid
- left join
- user_career c on u.id=c.uid
- <!-- left join user_info info on u.id=info.uid -->
- left join user_ability ua on u.id=ua.uid
- WHERE
- u.type = 1
- <if test="_parameter!= null">
- and u.id= #{_parameter,jdbcType=VARCHAR}
- </if>
- </select>
-
- <select id="findStarListByPage" parameterType="String" resultType="com.goafanti.user.bo.StarListBo">
- select
- u.id as uid,
- u.number,
- ui.username,
- uc.engaged_field as engagedField,
- uc.professional_title as professionalTitle,
- uc.work_unit as workUnit,
- adc.achievement_count as achievementNum
- from user u
- left join user_identity ui on ui.uid = u.id
- left join user_career uc on uc.uid = u.id
- left join achievement_demand_count adc on adc.uid = u.id
- where
- ui.celebrity = 1
- <if test="number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="engagedField != null">
- and uc.engaged_field like CONCAT(#{engagedField,jdbcType=VARCHAR},'%')
- </if>
- <if test="username != null">
- and ui.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="professionalTitle != null">
- and uc.professional_title like CONCAT('%',#{professionalTitle,jdbcType=VARCHAR},'%')
- </if>
- <if test="workUnit != null">
- and uc.work_unit like CONCAT('%',#{workUnit,jdbcType=VARCHAR},'%')
- </if>
- ORDER BY adc.achievement_count DESC
- <if test="page_sql!=null">
- ${page_sql}
- </if>
-
- </select>
-
- <select id="findStarCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from user u
- left join user_identity ui on ui.uid = u.id
- left join user_career uc on uc.uid = u.id
- where
- ui.celebrity = 1
- <if test="number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="engagedField != null">
- and uc.engaged_field like CONCAT(#{engagedField,jdbcType=VARCHAR},'%')
- </if>
- <if test="username != null">
- and ui.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="professionalTitle != null">
- and uc.professional_title like CONCAT('%',#{professionalTitle,jdbcType=VARCHAR},'%')
- </if>
- <if test="workUnit != null">
- and uc.work_unit like CONCAT('%',#{workUnit,jdbcType=VARCHAR},'%')
- </if>
- </select>
-
- <select id="findStarAndExpertListByPage" parameterType="String" resultType="com.goafanti.user.bo.StarAndExpertListBo">
- select
- u.id as uid,
- u.number,
- ui.username,
- uc.engaged_field as engagedField,
- uc.professional_title as professionalTitle,
- uc.work_unit as workUnit,
- adc.achievement_count as achievementNum
- from user u
- left join user_identity ui on ui.uid = u.id
- left join user_career uc on uc.uid = u.id
- left join achievement_demand_count adc on adc.uid = u.id
- where
- (ui.celebrity = 1 or ui.expert = 1)
- <if test="number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="engagedField != null">
- and uc.engaged_field like CONCAT(#{engagedField,jdbcType=VARCHAR},'%')
- </if>
- <if test="username != null">
- and ui.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="professionalTitle != null">
- and uc.professional_title like CONCAT('%',#{professionalTitle,jdbcType=VARCHAR},'%')
- </if>
- <if test="workUnit != null">
- and uc.work_unit like CONCAT('%',#{workUnit,jdbcType=VARCHAR},'%')
- </if>
- ORDER BY adc.achievement_count DESC
- <if test="page_sql!=null">
- ${page_sql}
- </if>
-
- </select>
-
- <select id="findStarAndExpertCount" parameterType="String" resultType="java.lang.Integer">
- select
- count(1)
- from user u
- left join user_identity ui on ui.uid = u.id
- left join user_career uc on uc.uid = u.id
- where
- (ui.celebrity = 1 or ui.expert = 1)
- <if test="number != null">
- and u.number = #{number,jdbcType=INTEGER}
- </if>
- <if test="engagedField != null">
- and uc.engaged_field like CONCAT(#{engagedField,jdbcType=VARCHAR},'%')
- </if>
- <if test="username != null">
- and ui.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')
- </if>
- <if test="professionalTitle != null">
- and uc.professional_title like CONCAT('%',#{professionalTitle,jdbcType=VARCHAR},'%')
- </if>
- <if test="workUnit != null">
- and uc.work_unit like CONCAT('%',#{workUnit,jdbcType=VARCHAR},'%')
- </if>
- </select>
-
- <select id="selectNumberByPrimaryKey" parameterType="String" resultType="java.lang.Long">
- select number
- from user
- where id = #{id,jdbcType=VARCHAR}
- </select>
-
- <select id="findUserPartner" parameterType="String" resultType="com.goafanti.user.bo.UserPartnerDetailBo">
- select
- u.id,i.username,c.work_unit as work_unit,c.position,c.achievement,
- u.head_portrait_url as personPortraitUrl,
- i.province,
- u.introduction as personalProfile,
- ua.ability_label as abilityLabel,i.uid,u.type
- from `user` u
- left join user_identity i on u.id=i.uid
- left join
- user_career c on u.id=c.uid
- <!-- left join user_info info on u.id=info.uid -->
- left join user_ability ua on u.id=ua.uid
- WHERE
- u.type = 0
- limit 0,50
- </select>
-
- <select id="checkUser" resultMap="BaseResultMap">
- select
- id
- from
- user
- where status <![CDATA[!= ]]> 1
- <if test="id != null and id != ''">
- and id = #{id,jdbcType=VARCHAR}
- </if>
- <if test="identifyName != null and identifyName != ''">
- and identify_name = #{identifyName,jdbcType=VARCHAR}
- </if>
- <if test="mobile != null and mobile !=''">
- and mobile = #{mobile,jdbcType=VARCHAR}
- </if>
- <if test="type != null">
- and type = #{type,jdbcType=INTEGER}
- </if>
- <if test="source != null">
- and source = #{source,jdbcType=INTEGER}
- </if>
- <if test="nickname != null and nickname != ''">
- and nickname = #{nickname,jdbcType=INTEGER}
- </if>
-
- </select>
- <select id="userInterest" resultType="com.goafanti.user.bo.UserInterestBo">
- select
- t.to_uid as id,y.username as name,y.work_unit as workUnit,y.professional_title as professionalTitle,t.create_time as createTime
- from user_interest t
- LEFT join user_identity y on t.to_uid=y.uid
- LEFT join user u on t.to_uid=u.id
- where t.from_uid=#{uid,jdbcType=VARCHAR}
- </select>
- <select id="selectBaseInfo" parameterType="java.lang.String" resultType="com.goafanti.app.bo.UserBasicInfo">
- select
- a.id,
- a.mobile,
- a.nickname,
- a.email,
- a.number,
- a.type,
- a.company_logo_url as companyLogoUrl,
- a.head_portrait_url as headPortraitUrl,
- a.introduction,
- b.registration_id as registrationId,
- b.easemob_name as easemobName,
- b.easemob_pass as easemobPass
- from user a left join jpush_easemob_account b
- on a.id = b.uid
- where
- a.id = #{id,jdbcType=VARCHAR}
- </select>
-
- <select id="selectByNumber" parameterType="java.lang.String" resultMap="BaseResultMap">
- select nickname,head_portrait_url from user where number = #{easemobName,jdbcType=VARCHAR}
- </select>
-
- <update id="updateEnteringAudit" parameterType="com.goafanti.common.model.User">
- update user
- <set>
- <if test="auditStatus != null">
- audit_status = #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="auditOpinion != null">
- audit_opinion = #{auditOpinion,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <select id="selectUserByRoleName" parameterType="java.lang.String" resultMap="BaseResultMap">
- select c.id from role a left join user_role b on a.id = b.rid left join admin c on b.uid = c.id where a.role_name in(#{roleName1},#{roleName2})
- </select>
- <update id="updateDimissionTransfer">
- update user
- set aid=#{transferId,jdbcType=VARCHAR},
- information_maintainer=#{transferId,jdbcType=VARCHAR},
- source=3
- where aid=#{aid,jdbcType=VARCHAR}
- </update>
- <select id="getAidAndUser" resultType="java.lang.Integer">
- select count(*) from `user`
- where aid=#{aid,jdbcType=VARCHAR} and id=#{uid,jdbcType=VARCHAR}
- </select>
- <update id="pushUserGuidance">
- update user set guidance=#{guidance} where id=#{id}
- </update>
- <update id="updateList">
- update user
- <set>
- <if test="source != null">
- source = #{source,jdbcType=INTEGER},
- </if>
- <if test="level != null">
- level= #{level,jdbcType=INTEGER},
- </if>
- <if test="aid != null">
- aid = #{aid,jdbcType=VARCHAR},
- </if>
- <if test="transferTime != null">
- transfer_time = #{transferTime,jdbcType=TIMESTAMP},
- </if>
- <if test="shareType != null">
- share_type = #{shareType,jdbcType=VARCHAR}
- </if>
- </set>
- where id in
- <foreach item="item" collection="list" separator="," open="(" close=")" index="">
- #{item}
- </foreach>
- </update>
- <select id="selectByName" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from user
- where nickname = #{name} limit 1
- </select>
- <select id="selectPrivateOrganizationCustomerList" resultType="com.goafanti.customer.bo.CustomerListOut">
- select a.id uid,a.aid,a.nickname name,a.society_tag societyTag,a.`level`,b.name aName,dg1.name as province,dg2.name as city,
- a.guidance, dg3.name as area,
- date_format(um.last_sign_time,'%Y-%m-%d %H:%i:%S') lastSignTime,
- date_format(a.transfer_time,'%Y-%m-%d %H:%i:%S') as transferTime,
- date_format(a.create_time,'%Y-%m-%d %H:%i:%S') as createTime,
- date_format(um.last_follow_time,'%Y-%m-%d %H:%i:%S') lastFollowTime,
- if(a.transfer_time < um.last_follow_time,um.last_follow_time,a.transfer_time) as orderTime
- from user a left join admin b on a.aid=b.id left join organization_identity d on a.id = d.uid
- left join district_glossory dg1 on d.location_province = dg1.id
- left join district_glossory dg2 on d.location_city = dg2.id
- left join district_glossory dg3 on d.location_area = dg3.id
- left join user_mid um on um.aid=a.aid and um.uid=a.id
- where a.type= 1 and a.source in(1,2,3) and a.share_type = 0
- <if test="power ==0">
- and a.aid = #{aid,jdbcType=VARCHAR}
- </if>
- <if test="power ==1 or power ==2">
- and a.aid
- <if test="alist != null">
- in
- <foreach item="item" collection="alist" separator="," open="(" close=")" index="">
- #{item}
- </foreach>
- </if>
- <if test="alist == null">
- is null
- </if>
- </if>
- <if test="name != null and name != ''">
- and a.nickname like concat('%',#{name},'%')
- </if>
- <if test="startDate != null and startDate != ''">
- and a.transfer_time > #{startDate}
- </if>
- <if test="endDate != null and endDate != ''">
- and a.transfer_time < #{endDate}
- </if>
- <if test="province != null">
- and d.location_province = #{province,jdbcType=INTEGER}
- </if>
- <if test="city != null">
- and d.location_city = #{city,jdbcType=INTEGER}
- </if>
- <if test="area != null">
- and d.location_area = #{area,jdbcType=INTEGER}
- </if>
- <if test="level != null">
- and a.level = #{level,jdbcType=INTEGER}
- </if>
- <if test="sort != 1">
- order by orderTime
- </if>
- <if test="sort == 1">
- order by a.create_time
- </if>
- <if test="sortType == 1">
- desc
- </if>
- ,a.transfer_time desc
- <if test="page_sql != null">
- ${page_sql}
- </if>
- </select>
- <select id="selectPrivateOrganizationCustomerCount" resultType="java.lang.Integer">
- select count(*)
- from user a left join admin b on a.aid=b.id left join organization_identity d on a.id = d.uid
- left join district_glossory dg1 on d.location_province = dg1.id
- left join district_glossory dg2 on d.location_city = dg2.id
- left join district_glossory dg3 on d.location_area = dg3.id
- left join user_mid um on um.aid=a.aid and um.uid=a.id
- /*inner join (select aid,uid from user_follow uf group by aid,uid) t0
- on a.id=t0.uid and a.aid =t0.aid*/
- where a.type= 1 and a.source in(1,2,3) and a.share_type = 0
- <if test="power ==0">
- and a.aid = #{aid,jdbcType=VARCHAR}
- </if>
- <if test="power ==1 or power ==2">
- and a.aid
- <if test="alist != null">
- in
- <foreach item="item" collection="alist" separator="," open="(" close=")" index="">
- #{item}
- </foreach>
- </if>
- <if test="alist == null">
- is null
- </if>
- </if>
- <if test="name != null and name != ''">
- and a.nickname like concat('%',#{name},'%')
- </if>
- <if test="startDate != null and startDate != ''">
- and a.transfer_time > #{startDate}
- </if>
- <if test="endDate != null and endDate != ''">
- and a.transfer_time < #{endDate}
- </if>
- <if test="province != null">
- and d.location_province = #{province,jdbcType=INTEGER}
- </if>
- <if test="city != null">
- and d.location_city = #{city,jdbcType=INTEGER}
- </if>
- <if test="area != null">
- and d.location_area = #{area,jdbcType=INTEGER}
- </if>
- <if test="level != null">
- and a.level = #{level,jdbcType=INTEGER}
- </if>
- </select>
- <select id="findMainProductsList" resultType="com.goafanti.customer.bo.OutUserMianProducts">
- select oi.id ,u.id uid, u.nickname userName, oi.business_scope businessScope,
- um.update_name updateName,um.update_aid updateAid,
- <if test="shiroType ==2">
- a.name adminName,d.name depName,u.share_type shareType,dg.name province,
- </if>
- date_format(u.transfer_time ,'%Y-%m-%d %H:%i:%s')transferTimes,
- date_format(um.date_update_time,'%Y-%m-%d %H:%i:%s')dateUpdateTimes
- from `user` u
- <if test="shiroType==0">
- left join (select b.buyer_id from t_order_task a left join t_order_new b
- on a.order_no = b.order_no where a.main = 1 and a.split_status in (0, 1)
- and a.task_receiver = #{aid} group by b.buyer_id) t0 on t0.buyer_id = u.id
- </if>
- left join organization_identity oi on u.id = oi.uid left join user_mid um on u.id=um.uid
- <if test="shiroType==2">
- left join admin a on u.aid=a.id left join department d on a.department_id =d.id
- left join district_glossory dg on oi.location_province =dg.id
- </if>
- where u.share_type in (0, 2, 3) and u.source in(1,2,3)
- <if test="shiroType==1">
- and u.information_maintainer = #{aid}
- </if>
- <if test="shiroType==2">
- <if test="adminName !=null">
- and a.name like concat('%', #{adminName},'%')
- </if>
- <if test="depId !=null">
- and d.id= #{depId}
- </if>
- <if test="shareType !=null">
- and u.share_type = #{shareType}
- </if>
- </if>
- <if test="userName != null">
- and u.nickname like concat('%',#{userName},'%')
- </if>
- <if test="key !=null">
- and oi.business_scope like concat('%',#{key},'%')
- </if>
- <if test="startTime !=null and endTime !=null">
- and u.transfer_time between #{startTime} and #{endTime}
- </if>
- </select>
- <select id="findMainProductsCount" resultType="java.lang.Integer">
- select count(*) from `user` u
- <if test="shiroType==0">
- left join (select b.buyer_id from t_order_task a left join t_order_new b
- on a.order_no = b.order_no where a.main = 1 and a.split_status in (0, 1)
- and a.task_receiver = #{aid} group by b.buyer_id) t0 on t0.buyer_id = u.id
- </if>
- left join organization_identity oi on u.id = oi.uid
- <if test="shiroType==2">
- left join admin a on u.aid=a.id left join department d on a.department_id =d.id
- </if>
- where u.share_type in (0, 2, 3) and u.source in(1,2,3)
- <if test="shiroType==1">
- and u.information_maintainer = #{aid}
- </if>
- <if test="shiroType==2">
- <if test="adminName !=null">
- and a.name like concat('%', #{adminName},'%')
- </if>
- <if test="depId !=null">
- and d.id= #{depId}
- </if>
- <if test="shareType !=null">
- and u.share_type = #{shareType}
- </if>
- </if>
- <if test="userName != null">
- and u.nickname like concat('%',#{userName},'%')
- </if>
- <if test="key !=null">
- and oi.business_scope like concat('%',#{key},'%')
- </if>
- <if test="startTime !=null and endTime !=null">
- and u.transfer_time between #{startTime} and #{endTime}
- </if>
- </select>
- </mapper>
|