校验
This commit is contained in:
parent
747c68686f
commit
4d41da249b
@ -232,13 +232,10 @@ public class ShopMchEntryBranchServiceImpl extends BaseServiceImpl<ShopMchEntryB
|
|||||||
if (StrUtil.isBlank(mainStoreBranchReq.getStore_address())) {
|
if (StrUtil.isBlank(mainStoreBranchReq.getStore_address())) {
|
||||||
return Pair.of(false, "分店地址不能为空");
|
return Pair.of(false, "分店地址不能为空");
|
||||||
}
|
}
|
||||||
if (StrUtil.isBlank(mainStoreBranchReq.getStore_longitude())) {
|
if (StrUtil.isBlank(mainStoreBranchReq.getStore_longitude())
|
||||||
return Pair.of(false, "分店经度不能为空");
|
|| StrUtil.isBlank(mainStoreBranchReq.getStore_latitude())) {
|
||||||
|
return Pair.of(false, "分店经纬度不能为空");
|
||||||
}
|
}
|
||||||
if (StrUtil.isBlank(mainStoreBranchReq.getStore_latitude())) {
|
|
||||||
return Pair.of(false, "分店纬度不能为空");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2. 检查主店信息是否存在及入驻状态
|
// 2. 检查主店信息是否存在及入驻状态
|
||||||
LambdaQueryWrapper<ShopMchEntry> entryQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<ShopMchEntry> entryQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
entryQueryWrapper.eq(ShopMchEntry::getStore_id, mainStoreBranchReq.getParent_store_id())
|
entryQueryWrapper.eq(ShopMchEntry::getStore_id, mainStoreBranchReq.getParent_store_id())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user