Commit a855ebf3 by guojuxing

Merge remote-tracking branch 'origin/developer' into developer

parents 75a78c4e f2839e37
...@@ -22,7 +22,7 @@ public interface UpdateTipService { ...@@ -22,7 +22,7 @@ public interface UpdateTipService {
void publish(Integer businessId, Integer type); 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); Map<Integer, TabUpdateTips> mapByIndexIdAndUser(List<Integer> indexIdList, int type, Integer userId);
} }
...@@ -80,8 +80,11 @@ public class UpdateTipServiceImpl implements UpdateTipService { ...@@ -80,8 +80,11 @@ public class UpdateTipServiceImpl implements UpdateTipService {
} }
@Override @Override
public void erase(Integer userId, Integer businessId, Integer type) { public void erase(Integer userId, Integer updateTipsId, Integer type) {
tabUpdateTipsMapper.updateStatus(businessId, type, userId, 0); TabUpdateTips tabUpdateTips = new TabUpdateTips();
tabUpdateTips.setUpdateTipsId(updateTipsId);
tabUpdateTips.setShowStatus(0);
tabUpdateTipsMapper.updateByPrimaryKeySelective(tabUpdateTips);
} }
@Override @Override
......
...@@ -72,8 +72,10 @@ public class StoreSearchUtils { ...@@ -72,8 +72,10 @@ public class StoreSearchUtils {
} }
public List<Integer> storeSearch(Integer userId, Integer enterpriseId, String searchJson){ public List<Integer> storeSearch(Integer userId, Integer enterpriseId, String searchJson){
log.info("storeSearchParams:{},{},{}", userId, enterpriseId, searchJson);
String key = "1:" + enterpriseId + ":" + userId +":" + (StringUtils.isNotBlank(searchJson) ? searchJson.hashCode() : "searchJSON".hashCode()); String key = "1:" + enterpriseId + ":" + userId +":" + (StringUtils.isNotBlank(searchJson) ? searchJson.hashCode() : "searchJSON".hashCode());
StoreAuth storeAuth = this.dataAuthUtils.getStoreAuth(userId, enterpriseId); StoreAuth storeAuth = this.dataAuthUtils.getStoreAuth(userId, enterpriseId);
log.info("storeAuth:{}", JSON.toJSONString(storeAuth));
if(!storeAuth.isHasAuth()){ if(!storeAuth.isHasAuth()){
ArrayList<Integer> list = new ArrayList<>(); ArrayList<Integer> list = new ArrayList<>();
list.add(0); list.add(0);
...@@ -110,6 +112,7 @@ public class StoreSearchUtils { ...@@ -110,6 +112,7 @@ public class StoreSearchUtils {
} }
} }
ServiceResponse<Page<StoreDTO>> pageServiceResponse = this.storeApiService.listStore(storeSearchDTO, 1, 20000); ServiceResponse<Page<StoreDTO>> pageServiceResponse = this.storeApiService.listStore(storeSearchDTO, 1, 20000);
log.info("storeResule:{}", JSON.toJSONString(pageServiceResponse));
if(pageServiceResponse.isSuccess() && pageServiceResponse.getResult() != null && CollectionUtils.isNotEmpty(pageServiceResponse.getResult().getResult())){ if(pageServiceResponse.isSuccess() && pageServiceResponse.getResult() != null && CollectionUtils.isNotEmpty(pageServiceResponse.getResult().getResult())){
List<StoreDTO> storeDTOList = pageServiceResponse.getResult().getResult(); List<StoreDTO> storeDTOList = pageServiceResponse.getResult().getResult();
List<Integer> storeInfoIdList = storeDTOList.stream().map(storeDTO -> storeDTO.getStoreInfoId()).collect(Collectors.toList()); List<Integer> storeInfoIdList = storeDTOList.stream().map(storeDTO -> storeDTO.getStoreInfoId()).collect(Collectors.toList());
...@@ -138,6 +141,7 @@ public class StoreSearchUtils { ...@@ -138,6 +141,7 @@ public class StoreSearchUtils {
public List<String> onLineStoreSearch(Integer userId, Integer enterpriseId, String searchJson){ public List<String> onLineStoreSearch(Integer userId, Integer enterpriseId, String searchJson){
OnLineAuth onlineStoreAuth = this.dataAuthUtils.getOnlineStore(userId, enterpriseId); OnLineAuth onlineStoreAuth = this.dataAuthUtils.getOnlineStore(userId, enterpriseId);
log.info("onlineStoreAuth:{}", JSON.toJSONString(onlineStoreAuth));
List<String> list = new ArrayList<>(); List<String> list = new ArrayList<>();
if(onlineStoreAuth.isHasAuth()){ if(onlineStoreAuth.isHasAuth()){
this.getOnlineStoreIds(searchJson, onlineStoreAuth, list, StoreChannelEnum.GICMALL.getChannel(), userId, enterpriseId); this.getOnlineStoreIds(searchJson, onlineStoreAuth, list, StoreChannelEnum.GICMALL.getChannel(), userId, enterpriseId);
......
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