Commit a318b800 by zhiwj

红点提示

parent 6b6c5576
......@@ -22,7 +22,7 @@ public interface UpdateTipService {
void publish(Integer businessId, Integer type);
void erase(Integer userId, Integer businessId, Integer type);
void erase(Integer userId, Integer updateTipsId, Integer type);
Map<Integer, TabUpdateTips> mapByIndexIdAndUser(List<Integer> indexIdList, int type, Integer userId);
}
......@@ -80,8 +80,11 @@ public class UpdateTipServiceImpl implements UpdateTipService {
}
@Override
public void erase(Integer userId, Integer businessId, Integer type) {
tabUpdateTipsMapper.updateStatus(businessId, type, userId, 0);
public void erase(Integer userId, Integer updateTipsId, Integer type) {
TabUpdateTips tabUpdateTips = new TabUpdateTips();
tabUpdateTips.setUpdateTipsId(updateTipsId);
tabUpdateTips.setShowStatus(0);
tabUpdateTipsMapper.updateByPrimaryKeySelective(tabUpdateTips);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment