Commit b6cabecd authored by renjie's avatar renjie

店铺分配bug

parent 28b743f1
......@@ -275,7 +275,7 @@ public class ShopServiceImpl implements ShopService {
for (Account account1 : accounts) {
UserShop userShop1 = userShopRepository.findByUsernameAndShopId(account1.getName(), shops.get(0).getShopId());
if (userShop1 != null)
return;
continue;
userShop1 = new UserShop(account1.getName(), shops.get(0).getShopId(), "-1");
userShopRepository.save(userShop1);
}
......
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