Browse Source

Merge remote-tracking branch 'origin/dev_ui_upgrade' into develop

master
yinzuomei 4 years ago
parent
commit
81c9deedae
  1. 6
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/CustomerFootBarServiceImpl.java
  2. 5
      epmet-module/oper-customize/oper-customize-server/src/main/resources/mapper/CustomerFootBarDao.xml

6
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/CustomerFootBarServiceImpl.java

@ -273,9 +273,9 @@ public class CustomerFootBarServiceImpl extends BaseServiceImpl<CustomerFootBarD
@Override @Override
public void deleteFootBar(String id) { public void deleteFootBar(String id) {
CustomerFootBarEntity defaultFootbar = baseDao.selectById(id); CustomerFootBarEntity defaultFootbar = baseDao.selectById(id);
// 注释07.28 // 注释07.28,暂时不要物理删除
baseDao.physicsDeleteByAppTypeAndBarKey(defaultFootbar.getAppType(), defaultFootbar.getBarKey(),id); // baseDao.physicsDeleteByAppTypeAndBarKey(defaultFootbar.getAppType(), defaultFootbar.getBarKey(),id);
baseDao.deleteById(id);
// 删除缓存中的footbar。若缓存删除失败,则事务回滚,db中的不应该成功 // 删除缓存中的footbar。若缓存删除失败,则事务回滚,db中的不应该成功
redisUtils.delete(RedisKeys.getCustomerFootbarKey(defaultFootbar.getCustomerId(), defaultFootbar.getAppType())); redisUtils.delete(RedisKeys.getCustomerFootbarKey(defaultFootbar.getCustomerId(), defaultFootbar.getAppType()));
} }

5
epmet-module/oper-customize/oper-customize-server/src/main/resources/mapper/CustomerFootBarDao.xml

@ -26,12 +26,14 @@
update customer_foot_bar update customer_foot_bar
set ORDER_INDEX = #{orderIndex} set ORDER_INDEX = #{orderIndex}
where ID = #{id} where ID = #{id}
and DEL_FLAG='0'
</update> </update>
<update id="updateDisplayStatus"> <update id="updateDisplayStatus">
update customer_foot_bar update customer_foot_bar
set DISPLAY=#{display} set DISPLAY=#{display}
where ID = #{id} where ID = #{id}
and DEL_FLAG='0'
</update> </update>
<!--物理删除--> <!--物理删除-->
@ -161,6 +163,7 @@
where CUSTOMER_ID = #{customerId} where CUSTOMER_ID = #{customerId}
and APP_TYPE = #{appType} and APP_TYPE = #{appType}
and BAR_KEY = #{barKey} and BAR_KEY = #{barKey}
and DEL_FLAG='0'
</select> </select>
<select id="listByAppTypeAndCustomerId" resultType="com.epmet.entity.CustomerFootBarEntity"> <select id="listByAppTypeAndCustomerId" resultType="com.epmet.entity.CustomerFootBarEntity">
@ -191,6 +194,7 @@
select distinct CUSTOMER_ID select distinct CUSTOMER_ID
from customer_foot_bar fb from customer_foot_bar fb
where CUSTOMER_ID != 'default' where CUSTOMER_ID != 'default'
and DEL_FLAG='0'
</select> </select>
<select id="getByAppTypeAndBarNameOfCustomer" resultType="com.epmet.entity.CustomerFootBarEntity"> <select id="getByAppTypeAndBarNameOfCustomer" resultType="com.epmet.entity.CustomerFootBarEntity">
@ -215,6 +219,7 @@
where CUSTOMER_ID = #{customerId} where CUSTOMER_ID = #{customerId}
and APP_TYPE = #{appType} and APP_TYPE = #{appType}
and BAR_NAME = #{barName} and BAR_NAME = #{barName}
and DEL_FLAG='0'
</select> </select>
<select id="selectNotOnlineFootBars" parameterType="map" resultType="com.epmet.entity.CustomerFootBarEntity"> <select id="selectNotOnlineFootBars" parameterType="map" resultType="com.epmet.entity.CustomerFootBarEntity">

Loading…
Cancel
Save