Commit 84aaf4a2 by 吕明尚

保洁短信发送重复问题

parent 0f34d2b4
...@@ -229,11 +229,10 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC ...@@ -229,11 +229,10 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
} }
private void sendSms(Long storeId,SStore store, SRoom room) { private void sendSms(Long storeId,SStore store, SRoom room) {
List<SConsumer> list = sConsumerMapper.selectListByStoreId(storeId); sConsumerMapper.selectListByStoreId(storeId).stream().forEach(item -> {
for (SConsumer consumer : list) {
// 循环发送短信提示门店保洁打扫卫生 // 循环发送短信提示门店保洁打扫卫生
smsService.sendSmsCleanRecords(consumer.getPhone(), store, room); smsService.sendSmsCleanRecords(item.getPhone(), store, room);
} });
} }
} }
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