Преглед изворни кода

商户精选列表按(收藏数+权重)查询

wwl пре 4 година
родитељ
комит
106a079cb9

+ 1 - 1
zzjs-service/src/main/resources/mapper/customer/CustomerInfoMapper.xml

@@ -182,7 +182,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                     and ci.corporate_name like concat('%', #{customerInfoDto.customerName}, '%')
                 </when>
                 <when test="customerInfoDto.id == 0">
-                    ORDER BY collectionCount DESC
+                    ORDER BY (collectionCount+weight) DESC
                 </when>
                 <when test="customerInfoDto.pid != null and customerInfoDto.pid != ''">
                     AND ci.industry_type = #{customerInfoDto.pid}