update customer_foot_bar
set ORDER_INDEX = #{orderIndex}
where ID = #{id}
update customer_foot_bar
set DISPLAY=#{display}
where ID = #{id}
delete
from customer_foot_bar
where ID = #{id}
select count(1)
from customer_foot_bar
app_type = #{appType}
and BAR_KEY = #{barKey}
and CUSTOMER_ID = #{customerId}
and BAR_NAME= #{barName}
and DEL_FLAG=0
select ifnull(max(`ORDER_INDEX`),-1) + 1
from customer_foot_bar
app_type = #{appType}
and CUSTOMER_ID = #{customerId}
and DEL_FLAG=0
select id,
customer_id,
app_type,
bar_key,
bar_name,
page_title,
icon_path,
selected_icon_path,
display,
order_index,
del_flag,
revision,
created_by,
created_time,
updated_by,
updated_time
from customer_foot_bar
where CUSTOMER_ID = #{customerId}
and APP_TYPE = #{appType}
and BAR_KEY = #{barKey}
select id,
customer_id,
app_type,
bar_key,
bar_name,
page_title,
icon_path,
selected_icon_path,
display,
order_index,
del_flag,
revision,
created_by,
created_time,
updated_by,
updated_time
from customer_foot_bar
where CUSTOMER_ID = #{customerId}
and app_type = #{appType}
and DEL_FLAG=0
select id,
customer_id,
app_type,
bar_key,
bar_name,
page_title,
icon_path,
selected_icon_path,
display,
order_index,
del_flag,
revision,
created_by,
created_time,
updated_by,
updated_time
from customer_foot_bar
where CUSTOMER_ID = #{customerId}
and APP_TYPE = #{appType}
and BAR_NAME = #{barName}