@@ -203,10 +203,10 @@
GROUP BY
ppl.id
) allGoods
- <if test="brandId != null">
- order by cnameInt
+ <if test="brandId != null or brandName != null and brandName != ''">
+ order by cnameInt, sort DESC
</if>
- <if test="brandId == null">
+ <if test="brandId == null and (brandName == null or brandName == '')">
ORDER BY sort DESC, inventoryLocal desc
</select>
@@ -121,10 +121,10 @@
goods_code
) AS allGoods