修改删除服务商时查看子商户数量bug

This commit is contained in:
dingzhiwei 2022-01-14 18:15:53 +08:00
parent e460325478
commit 7341c3cd2f
1 changed files with 1 additions and 1 deletions

View File

@ -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("该服务商下存在商户,不可删除");
}