@ -82,4 +82,6 @@ public interface CustomerFootBarDao extends BaseDao<CustomerFootBarEntity> {
List<String> listFootBarOwnerCustomerIds();
void physicsDeleteById(@Param("id") String id);
void physicsDeleteByAppTypeAndBarKey(@Param("appType") String appType, @Param("barKey") String barKey);
}
@ -232,7 +232,8 @@ public class CustomerFootBarServiceImpl extends BaseServiceImpl<CustomerFootBarD
@Override
public void deleteFootBar(String id) {
baseDao.physicsDeleteById(id);
CustomerFootBarEntity defaultFootbar = baseDao.selectById(id);
baseDao.physicsDeleteByAppTypeAndBarKey(defaultFootbar.getAppType(), defaultFootbar.getBarKey());
/**
@ -41,6 +41,13 @@
where ID = #{id}
</delete>
<delete id="physicsDeleteByAppTypeAndBarKey">
delete
from customer_foot_bar
where app_type = #{appType}
and BAR_KEY = #{barKey}
<!--查询客户的footbar列表-->
<select id="listDisplayCustomerFootBars" resultType="com.epmet.entity.CustomerFootBarEntity">
SELECT