| | |
| | | SELECT * FROM yeshi_ec_brand_info d
|
| | | WHERE d.`bf_state` = 1 AND d.bf_goods_total <![CDATA[>=]]> 3 AND d.bf_shop_total <![CDATA[>]]> 0
|
| | | <if test="cid != null">AND d.`bf_cid` = #{cid} </if>
|
| | | ORDER BY d.`bf_weight` DESC,d.bf_id
|
| | | ORDER BY d.`bf_weight`
|
| | | LIMIT ${start},${count}
|
| | | </select>
|
| | |
|
| | |
| | | SELECT * FROM yeshi_ec_brand_info d
|
| | | WHERE d.`bf_state` = 1 AND d.`bf_cid` = #{cid} AND d.bf_goods_total <![CDATA[>=]]>3
|
| | | AND d.bf_shop_total <![CDATA[>]]> 0
|
| | | ORDER BY d.`bf_weight` DESC
|
| | | ORDER BY d.`bf_weight`
|
| | | </select>
|
| | |
|
| | | <select id="countValidByCid" resultType="Long">
|
| | |
| | | <if test="cid != null">
|
| | | AND bf_cid = #{cid}
|
| | | </if>
|
| | | ORDER BY bf_weight DESC
|
| | | ORDER BY bf_weight
|
| | | LIMIT ${start},${count}
|
| | | </select>
|
| | |
|
| | |
| | | AND bf_cid = #{cid}
|
| | | </if>
|
| | | </select>
|
| | | |
| | | <select id="getByAdjoinOrder" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_brand_info
|
| | | WHERE bf_cid = #{cid}
|
| | | <if test="type == -1">
|
| | | AND bf_weight <![CDATA[<]]> #{order} |
| | | ORDER BY bf_weight desc
|
| | | </if>
|
| | | |
| | | <if test="type == 1">
|
| | | AND bf_weight <![CDATA[>]]> #{order} |
| | | ORDER BY bf_weight |
| | | </if>
|
| | | LIMIT 1
|
| | | </select>
|
| | | </mapper>
|