Files
UniversalTestSoftware/client/libs/classes/mapper/InvocationMapper.xml

18 lines
738 B
XML
Raw Normal View History

<?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 &lt;= #{newSort} and scheme_id = #{schemeId}
</update>
<update id="addSort" >
update invocation set sort = sort + 1 where sort >= #{newSort} and sort &lt; #{oldSort} and scheme_id = #{schemeId}
</update>
<update id="unificationSubtractSort" >
update invocation set sort = sort - 1 where sort >= #{startSort} and scheme_id = #{schemeId}
</update>
</mapper>