Commit 23aaf997 by wuwenlong

front store list bugfix

parent a4ab803f
...@@ -42,8 +42,6 @@ import share.system.service.QPService; ...@@ -42,8 +42,6 @@ import share.system.service.QPService;
@Service @Service
public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> implements ISStoreService { public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> implements ISStoreService {
@Autowired @Autowired
private SStoreMapper sStoreMapper;
@Autowired
private SStoreConsumerMapper storeConsumerMapper; private SStoreConsumerMapper storeConsumerMapper;
@Autowired @Autowired
private ISRoomService sRoomService; private ISRoomService sRoomService;
...@@ -64,7 +62,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -64,7 +62,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
*/ */
@Override @Override
public SStore selectSStoreById(Long id) { public SStore selectSStoreById(Long id) {
return sStoreMapper.selectSStoreById(id); return baseMapper.selectSStoreById(id);
} }
/** /**
...@@ -75,7 +73,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -75,7 +73,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
*/ */
@Override @Override
public List<SStore> selectSStoreList(SStore sStore) { public List<SStore> selectSStoreList(SStore sStore) {
return sStoreMapper.selectSStoreList(sStore); return baseMapper.selectSStoreList(sStore);
} }
/** /**
...@@ -87,7 +85,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -87,7 +85,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
@Override @Override
public int insertSStore(SStore sStore) { public int insertSStore(SStore sStore) {
sStore.setCreateTime(DateUtils.getNowDate()); sStore.setCreateTime(DateUtils.getNowDate());
return sStoreMapper.insertSStore(sStore); return baseMapper.insertSStore(sStore);
} }
/** /**
...@@ -99,7 +97,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -99,7 +97,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
@Override @Override
public int updateSStore(SStore sStore) { public int updateSStore(SStore sStore) {
sStore.setUpdateTime(DateUtils.getNowDate()); sStore.setUpdateTime(DateUtils.getNowDate());
return sStoreMapper.updateSStore(sStore); return baseMapper.updateSStore(sStore);
} }
/** /**
...@@ -110,7 +108,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -110,7 +108,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
*/ */
@Override @Override
public int deleteSStoreByIds(Long[] ids) { public int deleteSStoreByIds(Long[] ids) {
return sStoreMapper.deleteSStoreByIds(ids); return baseMapper.deleteSStoreByIds(ids);
} }
/** /**
...@@ -121,18 +119,18 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -121,18 +119,18 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
*/ */
@Override @Override
public int deleteSStoreById(Long id) { public int deleteSStoreById(Long id) {
return sStoreMapper.deleteSStoreById(id); return baseMapper.deleteSStoreById(id);
} }
@Override @Override
public List<Map> optionList(SStore sStore) { public List<Map> optionList(SStore sStore) {
List<SStore> storeList = sStoreMapper.selectSStoreList(sStore); List<SStore> storeList = baseMapper.selectSStoreList(sStore);
return convertOptionList(storeList); return convertOptionList(storeList);
} }
@Override @Override
public List<Map> optionList(List<Long> ids) { public List<Map> optionList(List<Long> ids) {
List<SStore> storeList = sStoreMapper.selectBatchIds(ids); List<SStore> storeList = baseMapper.selectBatchIds(ids);
return convertOptionList(storeList); return convertOptionList(storeList);
} }
...@@ -145,7 +143,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -145,7 +143,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
listVoCheck(request); listVoCheck(request);
SStore store = new SStore(); SStore store = new SStore();
store.setStatus(request.getStatus()); store.setStatus(request.getStatus());
List<SStore> storeList = sStoreMapper.selectSStoreList(store); List<SStore> storeList = baseMapper.selectSStoreList(store);
List<SStoreVo> voList = new ArrayList<>(); List<SStoreVo> voList = new ArrayList<>();
if (StringUtils.isNotBlank(request.getNowLongitude())) { if (StringUtils.isNotBlank(request.getNowLongitude())) {
voList = convertDosToVosSortByDst(storeList, request); voList = convertDosToVosSortByDst(storeList, request);
...@@ -179,7 +177,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -179,7 +177,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
vo.setDistance(distance + ""); vo.setDistance(distance + "");
voList.add(vo); voList.add(vo);
}); });
voList.stream().sorted(Comparator.comparing(storeVo -> Double.parseDouble(storeVo.getDistance()))); return (List<SStoreVo>) voList.stream().sorted(Comparator.comparing(storeVo -> Double.parseDouble(storeVo.getDistance())));
} }
return voList; return voList;
} }
...@@ -305,7 +303,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -305,7 +303,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
// 查询门店信息 // 查询门店信息
List<SStore> storeList = new ArrayList<>(); List<SStore> storeList = new ArrayList<>();
idList.forEach(item -> { idList.forEach(item -> {
storeList.add(sStoreMapper.selectById(item)); storeList.add(baseMapper.selectById(item));
}); });
storeList.forEach(item -> { storeList.forEach(item -> {
List<SRoom> sRooms = sRoomService.selectSroomListByStroeId(item.getId()); List<SRoom> sRooms = sRoomService.selectSroomListByStroeId(item.getId());
...@@ -329,7 +327,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -329,7 +327,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
@Override @Override
public int dataSync() { public int dataSync() {
List<SStore> sStores = sStoreMapper.selectSStoreList(new SStore()); List<SStore> sStores = baseMapper.selectSStoreList(new SStore());
//查询美团接口查看改门店是否存在 //查询美团接口查看改门店是否存在
List<CustomerKeyShopScopeResponseEntity> scope = qpService.scope(); List<CustomerKeyShopScopeResponseEntity> scope = qpService.scope();
if (CollectionUtils.isEmpty(scope)) { if (CollectionUtils.isEmpty(scope)) {
......
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