PK_ID,PARENT,NAME,GRADE,SORT,IS_DEL,COMPANY_ID_,
CREATE_DEP_ID_,TENANT_ID_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_
update KM_ALBUM_CATEGORY
set SORT = SORT + 1
where SORT >= #{sort} and PARENT = #{parent} and IS_DEL = 0
update KM_ALBUM_CATEGORY
set IS_DEL = 1
where PK_ID = #{ids}
update KM_ALBUM_CATEGORY
set SORT = SORT - 1
WHERE SORT > #{sort} and PARENT = #{parent} and IS_DEL = 0
update KM_ALBUM_CATEGORY
set
SORT = #{sort}
where PK_ID = #{pkId}