|
|
@@ -832,6 +832,27 @@
|
|
|
</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>
|
|
|
</mapper>
|