Commit 871d9f4a by wuwenlong

store service bugfix;

parent cea9aa4a
...@@ -39,6 +39,8 @@ import share.system.service.*; ...@@ -39,6 +39,8 @@ import share.system.service.*;
@Service @Service
public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> implements ISStoreService { public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> implements ISStoreService {
@Autowired @Autowired
private SStoreConsumerMapper storeConsumerMapper;
@Autowired
private ISRoomService sRoomService; private ISRoomService sRoomService;
@Autowired @Autowired
private IPackService packService; private IPackService packService;
...@@ -247,12 +249,12 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -247,12 +249,12 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
@Override @Override
public int deleteStoreConsumer(SStoreConsumer storeConsumer) { public int deleteStoreConsumer(SStoreConsumer storeConsumer) {
return baseMapper.deleteInfo(storeConsumer); return storeConsumerMapper.deleteInfo(storeConsumer);
} }
@Override @Override
public int deleteStoreConsumers(Long storeId, Long[] consumerIds) { public int deleteStoreConsumers(Long storeId, Long[] consumerIds) {
return baseMapper.deleteInfos(storeId, consumerIds); return storeConsumerMapper.deleteInfos(storeId, consumerIds);
} }
@Override @Override
...@@ -265,7 +267,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -265,7 +267,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
sc.setConsumerId(consumerId); sc.setConsumerId(consumerId);
list.add(sc); list.add(sc);
} }
return baseMapper.batchSStoreConsumer(list); return storeConsumerMapper.batchSStoreConsumer(list);
} }
@Override @Override
...@@ -275,7 +277,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -275,7 +277,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
throw new BaseException("当前用户不是保洁人员!"); throw new BaseException("当前用户不是保洁人员!");
} }
//查询保洁人员所属门店 //查询保洁人员所属门店
List<String> storeIdList = baseMapper.selectByConsumerId(user.getId()); List<String> storeIdList = storeConsumerMapper.selectByConsumerId(user.getId());
//List<String> 转 List<Long> //List<String> 转 List<Long>
List<Long> idList = storeIdList.stream().map(Long::parseLong).collect(Collectors.toList()); List<Long> idList = storeIdList.stream().map(Long::parseLong).collect(Collectors.toList());
// 查询门店信息 // 查询门店信息
......
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