mirror of
https://github.com/1Panel-dev/CordysCRM.git
synced 2026-05-15 03:59:15 +08:00
fix: order pos
This commit is contained in:
@@ -524,15 +524,15 @@
|
||||
|
||||
|
||||
<select id="selectNextPos" resultType="java.lang.Long">
|
||||
select pos from order where stage = #{stage} and organization_id = #{orgId}
|
||||
select pos from sales_order where stage = #{stage} and organization_id = #{orgId}
|
||||
order by pos desc limit 1
|
||||
</select>
|
||||
|
||||
<update id="moveUpStageOrder">
|
||||
update order set pos = pos + #{pos} where pos > #{end} and stage = #{stage}
|
||||
update sales_order set pos = pos + #{pos} where pos > #{end} and stage = #{stage}
|
||||
</update>
|
||||
|
||||
<update id="moveDownStageOrder">
|
||||
update order set pos = pos + #{pos} where pos >= #{end} and stage = #{stage}
|
||||
update sales_order set pos = pos + #{pos} where pos >= #{end} and stage = #{stage}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user