|
|
@@ -209,12 +209,12 @@
|
|
|
|
|
|
<select id="selectUserDownLoadBoByUserId" resultMap="UserDownLoadBo" parameterType="java.lang.String">
|
|
|
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}
|
|
|
+ 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">
|
|
|
@@ -235,30 +235,30 @@
|
|
|
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>
|
|
|
+ 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" resultType="java.lang.Integer" parameterType="String">
|
|
|
@@ -267,26 +267,26 @@
|
|
|
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>
|
|
|
+ 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">
|
|
|
@@ -296,38 +296,38 @@
|
|
|
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
|
|
|
+ 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>
|
|
|
+ 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" resultType="java.lang.Integer" parameterType="String">
|
|
|
@@ -336,29 +336,29 @@
|
|
|
ON u.id = o.uid
|
|
|
WHERE u.type = 1
|
|
|
<if test = "uid != null">
|
|
|
- and u.id = #{uid,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
+ 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>
|
|
|
+ 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">
|
|
|
@@ -377,7 +377,7 @@
|
|
|
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
|
|
|
+ LEFT JOIN user_identity i on u.id = i.uid
|
|
|
where u.type = 0
|
|
|
<if test="aid != null">
|
|
|
and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
@@ -405,8 +405,8 @@
|
|
|
</if>
|
|
|
order by u.number desc
|
|
|
<if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="findUserByAidWithParamsCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
@@ -414,7 +414,7 @@
|
|
|
count(1)
|
|
|
from user u
|
|
|
LEFT JOIN admin a on a.id = u.aid
|
|
|
- LEFT JOIN user_identity i on u.id = i.uid
|
|
|
+ LEFT JOIN user_identity i on u.id = i.uid
|
|
|
where u.type = 0
|
|
|
<if test="aid != null">
|
|
|
and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
@@ -459,7 +459,7 @@
|
|
|
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
|
|
|
+ LEFT JOIN organization_identity i on u.id = i.uid
|
|
|
where u.type = 1
|
|
|
<if test="aid != null">
|
|
|
and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
@@ -487,8 +487,8 @@
|
|
|
</if>
|
|
|
order by u.number desc
|
|
|
<if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="findOrgByAidWithParamsCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
@@ -496,7 +496,7 @@
|
|
|
count(1)
|
|
|
from user u
|
|
|
LEFT JOIN admin a on a.id = u.aid
|
|
|
- LEFT JOIN organization_identity i on u.id = i.uid
|
|
|
+ LEFT JOIN organization_identity i on u.id = i.uid
|
|
|
where u.type = 1
|
|
|
<if test="aid != null">
|
|
|
and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
@@ -572,44 +572,44 @@
|
|
|
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 collection="provinceList" item="plist" open="(" separator="," close=")">
|
|
|
- #{plist}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="cityList != null">
|
|
|
- and i.city in
|
|
|
- <foreach collection="cityList" item="clist" open="(" separator="," close=")">
|
|
|
- #{clist}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
-
|
|
|
- order by u.number desc
|
|
|
- <if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
+ 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 collection="provinceList" item="plist" open="(" separator="," close=")">
|
|
|
+ #{plist}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="cityList != null">
|
|
|
+ and i.city in
|
|
|
+ <foreach collection="cityList" item="clist" open="(" separator="," close=")">
|
|
|
+ #{clist}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+
|
|
|
+ order by u.number desc
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="findAreaManagerUserCount" resultType="java.lang.Integer" parameterType="String">
|
|
|
@@ -618,39 +618,39 @@
|
|
|
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 collection="provinceList" item="plist" open="(" separator="," close=")">
|
|
|
- #{plist}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="cityList != null">
|
|
|
- and i.city in
|
|
|
- <foreach collection="cityList" item="clist" open="(" separator="," close=")">
|
|
|
- #{clist}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
+ 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 collection="provinceList" item="plist" open="(" separator="," close=")">
|
|
|
+ #{plist}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="cityList != null">
|
|
|
+ and i.city in
|
|
|
+ <foreach collection="cityList" item="clist" open="(" separator="," close=")">
|
|
|
+ #{clist}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="findAreaManagerOrgListByPage" parameterType="String" resultType="com.goafanti.user.bo.OrgListBo">
|
|
|
@@ -668,48 +668,48 @@
|
|
|
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
|
|
|
+ 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 collection="provinceList" item="plist" open="(" separator="," close=")">
|
|
|
- #{plist}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="cityList != null">
|
|
|
- and o.licence_city in
|
|
|
- <foreach collection="cityList" item="clist" open="(" separator="," close=")">
|
|
|
- #{clist}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- order by u.number desc
|
|
|
- <if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
+ 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 collection="provinceList" item="plist" open="(" separator="," close=")">
|
|
|
+ #{plist}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="cityList != null">
|
|
|
+ and o.licence_city in
|
|
|
+ <foreach collection="cityList" item="clist" open="(" separator="," close=")">
|
|
|
+ #{clist}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ order by u.number desc
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="findAreaManagerOrgCount" resultType="java.lang.Integer" parameterType="String">
|
|
|
@@ -718,93 +718,93 @@
|
|
|
ON u.id = o.uid
|
|
|
WHERE u.type = 1
|
|
|
<if test = "uid != null">
|
|
|
- and u.id = #{uid,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
+ 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 collection="provinceList" item="plist" open="(" separator="," close=")">
|
|
|
- #{plist}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="cityList != null">
|
|
|
- and i.city in
|
|
|
- <foreach collection="cityList" item="clist" open="(" separator="," close=")">
|
|
|
- #{clist}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
+ 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 collection="provinceList" item="plist" open="(" separator="," close=")">
|
|
|
+ #{plist}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="cityList != null">
|
|
|
+ and i.city in
|
|
|
+ <foreach collection="cityList" item="clist" open="(" separator="," close=")">
|
|
|
+ #{clist}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="findUserPartnerDetail" parameterType="java.lang.String" resultType="com.goafanti.user.bo.UserPartnerDetailBo">
|
|
|
SELECT
|
|
|
u.number,
|
|
|
- ui.username,
|
|
|
- ui.province,
|
|
|
- ui.city,
|
|
|
- ui.area,
|
|
|
- uc.engaged_field AS engagedField,
|
|
|
- info.personal_profile AS personalProfile,
|
|
|
- u.lvl AS LEVEL,
|
|
|
- ua.ability_label AS abilityLabel,
|
|
|
- info.person_portrait_url AS personPortraitUrl,
|
|
|
- info.life_photo_url AS lifePhotoUrl,
|
|
|
- interest.id as interestId
|
|
|
- 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 user_ability ua ON ua.uid = u.id
|
|
|
- LEFT JOIN user_info info ON info.uid = u.id
|
|
|
- LEFT JOIN user_interest interest on interest.to_uid = u.id and interest.from_uid = #{tokenId,jdbcType=VARCHAR}
|
|
|
- WHERE
|
|
|
- u.type = 0
|
|
|
- and u.id = #{uid,jdbcType=VARCHAR}
|
|
|
+ ui.username,
|
|
|
+ ui.province,
|
|
|
+ ui.city,
|
|
|
+ ui.area,
|
|
|
+ uc.engaged_field AS engagedField,
|
|
|
+ info.personal_profile AS personalProfile,
|
|
|
+ u.lvl AS LEVEL,
|
|
|
+ ua.ability_label AS abilityLabel,
|
|
|
+ info.person_portrait_url AS personPortraitUrl,
|
|
|
+ info.life_photo_url AS lifePhotoUrl,
|
|
|
+ interest.id as interestId
|
|
|
+ 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 user_ability ua ON ua.uid = u.id
|
|
|
+ LEFT JOIN user_info info ON info.uid = u.id
|
|
|
+ LEFT JOIN user_interest interest on interest.to_uid = u.id and interest.from_uid = #{tokenId,jdbcType=VARCHAR}
|
|
|
+ WHERE
|
|
|
+ u.type = 0
|
|
|
+ and u.id = #{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="findOrgPartnerDetail" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgPartnerDetailBo">
|
|
|
SELECT
|
|
|
u.number,
|
|
|
- oi.unit_name AS unitName,
|
|
|
- oi.licence_province AS province,
|
|
|
- oi.licence_city AS city,
|
|
|
- oi.licence_area AS area,
|
|
|
- u.lvl AS LEVEL,
|
|
|
- ua.ability_label AS abilityLabel,
|
|
|
- info.logo_url AS logoUrl,
|
|
|
- info.company_introduction AS companyIntroduction,
|
|
|
- info.publicity_picture_url AS publicityPictureUrl,
|
|
|
- ot.search_area_category as field,
|
|
|
- interest.id as interestId
|
|
|
- FROM
|
|
|
- `user` u
|
|
|
- LEFT JOIN organization_identity oi ON oi.uid = u.id
|
|
|
- LEFT JOIN organization_info info ON info.uid = u.id
|
|
|
- LEFT JOIN organization_tech ot ON ot.uid = u.id
|
|
|
- LEFT JOIN user_ability ua ON ua.uid = u.id
|
|
|
- LEFT JOIN user_interest interest on interest.to_uid = u.id and interest.from_uid = #{tokenId,jdbcType=VARCHAR}
|
|
|
- WHERE
|
|
|
- u.type = 1
|
|
|
- and u.id = #{uid,jdbcType=VARCHAR}
|
|
|
+ oi.unit_name AS unitName,
|
|
|
+ oi.licence_province AS province,
|
|
|
+ oi.licence_city AS city,
|
|
|
+ oi.licence_area AS area,
|
|
|
+ u.lvl AS LEVEL,
|
|
|
+ ua.ability_label AS abilityLabel,
|
|
|
+ info.logo_url AS logoUrl,
|
|
|
+ info.company_introduction AS companyIntroduction,
|
|
|
+ info.publicity_picture_url AS publicityPictureUrl,
|
|
|
+ ot.search_area_category as field,
|
|
|
+ interest.id as interestId
|
|
|
+ FROM
|
|
|
+ `user` u
|
|
|
+ LEFT JOIN organization_identity oi ON oi.uid = u.id
|
|
|
+ LEFT JOIN organization_info info ON info.uid = u.id
|
|
|
+ LEFT JOIN organization_tech ot ON ot.uid = u.id
|
|
|
+ LEFT JOIN user_ability ua ON ua.uid = u.id
|
|
|
+ LEFT JOIN user_interest interest on interest.to_uid = u.id and interest.from_uid = #{tokenId,jdbcType=VARCHAR}
|
|
|
+ WHERE
|
|
|
+ u.type = 1
|
|
|
+ and u.id = #{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="findStarListByPage" parameterType="String" resultType="com.goafanti.user.bo.StarListBo">
|
|
|
@@ -838,9 +838,9 @@
|
|
|
and uc.work_unit like CONCAT('%',#{workUnit,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
ORDER BY adc.achievement_count DESC
|
|
|
- <if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
@@ -900,9 +900,9 @@
|
|
|
and uc.work_unit like CONCAT('%',#{workUnit,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
ORDER BY adc.achievement_count DESC
|
|
|
- <if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
|
|
|
</select>
|
|
|
|