|
|
@@ -629,6 +629,41 @@ and layer=#{0}
|
|
|
and home_index=#{1}
|
|
|
order by sort
|
|
|
</select>
|
|
|
-
|
|
|
+ <!-- 按品类名称层级计数 -->
|
|
|
+ <select id="getCountBySome" resultType="java.lang.Integer" parameterType="com.goafanti.common.model.JtBusinessCategory">
|
|
|
+ select count(0) from jt_business_category
|
|
|
+ where 1=1
|
|
|
+ <if test="name != null">
|
|
|
+ and name = #{name,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="summary != null">
|
|
|
+ and summary = #{summary,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="number != null">
|
|
|
+ and number = #{number,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="superId != null">
|
|
|
+ and super_id = #{superId,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="imgUrl != null">
|
|
|
+ and img_url = #{imgUrl,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="layer != null">
|
|
|
+ and layer = #{layer,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="sort != null">
|
|
|
+ and sort = #{sort,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="pcIndex != null">
|
|
|
+ and pc_index = #{pcIndex,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="appIndex != null">
|
|
|
+ and app_index = #{appIndex,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="homeIndex != null">
|
|
|
+ and home_index = #{homeIndex,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|