feat: 产品机型的重要参数和主要参数第二排序设置为id

This commit is contained in:
曹鹏飞 2025-07-30 15:48:10 +08:00
parent 77c58572f7
commit c9b6471b08
1 changed files with 4 additions and 4 deletions

View File

@ -27,21 +27,21 @@
AND pmp.state = 1
AND pmpi.main = 1
AND pmpi.language_code = #{language}
ORDER BY pmpi.main_sort
ORDER BY pmpi.main_sort,pmpi.id
</select>
<select id="getMainListForSort" resultType="com.nflg.mobilebroken.common.pojo.vo.ParamsSortListVO">
select batch_number,name,main_sort as 'sort'
from product_model_params_item
where main and model_params_id=#{paramId} and language_code=#{language}
order by main_sort
order by main_sort,id
</select>
<select id="getImportantParamsListForSort" resultType="com.nflg.mobilebroken.common.pojo.vo.ParamsSortListVO">
select batch_number,name,important_sort as 'sort'
from product_model_params_item
where important and model_params_id=#{paramId} and language_code=#{language}
order by important_sort
order by important_sort,id
</select>
<select id="getImportantListByLanguage" resultType="com.nflg.mobilebroken.common.pojo.vo.ProductParamsItemVO">
@ -52,7 +52,7 @@
AND pmp.state = 1
AND pmpi.important = 1
AND pmpi.language_code = #{language}
ORDER BY pmpi.important_sort
ORDER BY pmpi.important_sort,pmpi.id
</select>
<select id="getCompareListByLanguage" resultType="com.nflg.mobilebroken.common.pojo.vo.ProductModelParamVO">