fix: 稳定模型参数查询顺序

This commit is contained in:
wkc
2026-03-16 10:54:10 +08:00
parent 6a3542660b
commit 7a3838d00a

View File

@@ -29,7 +29,7 @@
<select id="selectByProjectAndModel" resultMap="ModelParamResult">
<include refid="selectModelParamVo"/>
where project_id = #{projectId} and model_code = #{modelCode}
order by sort_order asc
order by sort_order asc, id asc
</select>
<select id="selectDistinctModels" resultMap="ModelParamResult">
@@ -43,7 +43,7 @@
<select id="selectByProjectId" resultType="CcdiModelParam">
<include refid="selectModelParamVo"/>
WHERE project_id = #{projectId}
ORDER BY model_code, sort_order
ORDER BY model_code, sort_order, id
</select>
<update id="batchUpdateParamValues">
update ccdi_model_param