店铺入驻分批保存可能存在无法入住问题解决

This commit is contained in:
Chopper
2022-07-19 18:38:38 +08:00
parent 088c6faae1
commit d5aadf6926

View File

@@ -239,6 +239,7 @@ public class StoreServiceImpl extends ServiceImpl<StoreMapper, Store> implements
//如果店铺详情为空则new ,否则复制对象,然后保存即可。
if (storeDetail == null) {
storeDetail = new StoreDetail();
storeDetail.setStoreId(store.getId());
BeanUtil.copyProperties(storeCompanyDTO, storeDetail);
return storeDetailService.save(storeDetail);
} else {