修改删除服务商时查看子商户数量bug
This commit is contained in:
parent
e460325478
commit
7341c3cd2f
|
|
@ -52,7 +52,7 @@ public class IsvInfoService extends ServiceImpl<IsvInfoMapper, IsvInfo> {
|
|||
}
|
||||
|
||||
// 1.查询当前服务商下是否存在商户
|
||||
int mchCount = mchInfoService.count(MchInfo.gw().eq(MchInfo::getIsvNo, isvNo).eq(MchInfo::getType, CS.INFO_TYPE_ISV));
|
||||
int mchCount = mchInfoService.count(MchInfo.gw().eq(MchInfo::getIsvNo, isvNo).eq(MchInfo::getType, CS.MCH_TYPE_ISVSUB));
|
||||
if (mchCount > 0) {
|
||||
throw new BizException("该服务商下存在商户,不可删除");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue