18 lines
738 B
XML
18 lines
738 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.cbsd.universaltestsoftware_client.mapper.InvocationMapper">
|
|
|
|
<update id="subtractSort" >
|
|
update invocation set sort = sort - 1 where sort > #{oldSort} and sort <= #{newSort} and scheme_id = #{schemeId}
|
|
</update>
|
|
|
|
<update id="addSort" >
|
|
update invocation set sort = sort + 1 where sort >= #{newSort} and sort < #{oldSort} and scheme_id = #{schemeId}
|
|
</update>
|
|
|
|
<update id="unificationSubtractSort" >
|
|
update invocation set sort = sort - 1 where sort >= #{startSort} and scheme_id = #{schemeId}
|
|
</update>
|
|
|
|
</mapper>
|