...
|
...
|
@@ -18,7 +18,6 @@ |
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```
|
|
|
<select id="selectTagsCount" resultType="java.lang.Integer" >
|
|
|
select
|
|
|
IFNULL(count(1),0)
|
...
|
...
|
@@ -35,23 +34,22 @@ |
|
|
</select>
|
|
|
|
|
|
<select id="selectByNameAndClassifyAndHot" resultMap="BaseResultMap" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from article_tags where 1 = 1
|
|
|
<if test="tagName != null and tagName != ''" >
|
|
|
and tag_name like concat('%', #{tagName, jdbcType=VARCHAR}, '%')
|
|
|
</if>
|
|
|
<if test="classifyId != null and classifyId != ''" >
|
|
|
and classify_id = #{classifyId,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="isHot != null and isHot != ''" >
|
|
|
and is_hot = #{isHot,jdbcType=TINYINT}
|
|
|
</if>
|
|
|
order by id desc
|
|
|
limit #{offset},#{size}
|
|
|
</select>
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from article_tags where 1 = 1
|
|
|
<if test="tagName != null and tagName != ''" >
|
|
|
and tag_name like concat('%', #{tagName, jdbcType=VARCHAR}, '%')
|
|
|
</if>
|
|
|
<if test="classifyId != null and classifyId != ''" >
|
|
|
and classify_id = #{classifyId,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="isHot != null and isHot != ''" >
|
|
|
and is_hot = #{isHot,jdbcType=TINYINT}
|
|
|
</if>
|
|
|
order by id desc
|
|
|
limit #{offset},#{size}
|
|
|
</select>
|
|
|
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
...
|
...
|
|