fix: 稳定模型参数查询顺序
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
<select id="selectByProjectAndModel" resultMap="ModelParamResult">
|
<select id="selectByProjectAndModel" resultMap="ModelParamResult">
|
||||||
<include refid="selectModelParamVo"/>
|
<include refid="selectModelParamVo"/>
|
||||||
where project_id = #{projectId} and model_code = #{modelCode}
|
where project_id = #{projectId} and model_code = #{modelCode}
|
||||||
order by sort_order asc
|
order by sort_order asc, id asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDistinctModels" resultMap="ModelParamResult">
|
<select id="selectDistinctModels" resultMap="ModelParamResult">
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<select id="selectByProjectId" resultType="CcdiModelParam">
|
<select id="selectByProjectId" resultType="CcdiModelParam">
|
||||||
<include refid="selectModelParamVo"/>
|
<include refid="selectModelParamVo"/>
|
||||||
WHERE project_id = #{projectId}
|
WHERE project_id = #{projectId}
|
||||||
ORDER BY model_code, sort_order
|
ORDER BY model_code, sort_order, id
|
||||||
</select>
|
</select>
|
||||||
<update id="batchUpdateParamValues">
|
<update id="batchUpdateParamValues">
|
||||||
update ccdi_model_param
|
update ccdi_model_param
|
||||||
|
|||||||
Reference in New Issue
Block a user