This commit is contained in:
Jack 2026-02-08 21:17:49 +08:00
parent 747c68686f
commit 4d41da249b

View File

@ -232,13 +232,10 @@ public class ShopMchEntryBranchServiceImpl extends BaseServiceImpl<ShopMchEntryB
if (StrUtil.isBlank(mainStoreBranchReq.getStore_address())) {
return Pair.of(false, "分店地址不能为空");
}
if (StrUtil.isBlank(mainStoreBranchReq.getStore_longitude())) {
return Pair.of(false, "分店经度不能为空");
if (StrUtil.isBlank(mainStoreBranchReq.getStore_longitude())
|| StrUtil.isBlank(mainStoreBranchReq.getStore_latitude())) {
return Pair.of(false, "分店经纬度不能为空");
}
if (StrUtil.isBlank(mainStoreBranchReq.getStore_latitude())) {
return Pair.of(false, "分店纬度不能为空");
}
// 2. 检查主店信息是否存在及入驻状态
LambdaQueryWrapper<ShopMchEntry> entryQueryWrapper = new LambdaQueryWrapper<>();
entryQueryWrapper.eq(ShopMchEntry::getStore_id, mainStoreBranchReq.getParent_store_id())