update bd_wares
set sort = sort + 1
where sort >= #{sort}
and DEL_FLAG = '0'
update bd_wares
set sort = sort - 1
where sort <= #{sort}
and DEL_FLAG = '0'
update BD_WARES_EXTEND
set IS_PUT_ON = 0
where to_char(PUT_ON_TIME, 'yyyy-mm-dd hh24:mi:ss') <= to_char(#{currentTime}, 'yyyy-mm-dd hh24:mi:ss')
and IS_PUT_ON = 1
update BD_WARES_EXTEND
set IS_PUT_ON = 1
where to_char(PUT_OFF_TIME, 'yyyy-mm-dd hh24:mi:ss') <= to_char(#{currentTime}, 'yyyy-mm-dd hh24:mi:ss')
and IS_PUT_ON = 0
update BD_WARES_EXTEND
set PRE_SALE_STATUS = 0,
MODIFIED_TIME = SYSDATE
where SYSDATE >= ARRIVAL_TIME
and PRE_SALE_STATUS = 1
and DEL_FLAG = 0