Commit 871d9f4a by wuwenlong

store service bugfix;

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