Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -61,7 +61,7 @@ public class MkDistributionConfigServiceImpl extends ServiceImpl<MkDistributionC
|
|||||||
Long mainIdByShopId = shopInfoService.getMainIdByShopId(shopId);
|
Long mainIdByShopId = shopInfoService.getMainIdByShopId(shopId);
|
||||||
MkDistributionConfig config = getOne(new QueryWrapper().eq(MkDistributionConfig::getShopId, shopId));
|
MkDistributionConfig config = getOne(new QueryWrapper().eq(MkDistributionConfig::getShopId, shopId));
|
||||||
if (config == null) {
|
if (config == null) {
|
||||||
config = new MkDistributionConfig().setMainShopId(shopId).setMainShopId(mainIdByShopId);
|
config = new MkDistributionConfig().setShopId(shopId).setMainShopId(mainIdByShopId);
|
||||||
save(config);
|
save(config);
|
||||||
config = getOne(new QueryWrapper().eq(MkDistributionConfig::getShopId, shopId));
|
config = getOne(new QueryWrapper().eq(MkDistributionConfig::getShopId, shopId));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user