|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package org.dromara.system.service.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
@ -116,6 +117,17 @@ public class SysTenantPackageServiceImpl implements ISysTenantPackageService {
|
|
|
|
|
return baseMapper.updateById(update) > 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 校验套餐名称是否唯一
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public boolean checkPackageNameUnique(SysTenantPackageBo bo) {
|
|
|
|
|
boolean exist = baseMapper.exists(new LambdaQueryWrapper<SysTenantPackage>()
|
|
|
|
|
.eq(SysTenantPackage::getPackageName, bo.getPackageName())
|
|
|
|
|
.ne(ObjectUtil.isNotNull(bo.getPackageId()), SysTenantPackage::getPackageId, bo.getPackageId()));
|
|
|
|
|
return !exist;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改套餐状态
|
|
|
|
|
*
|
|
|
|
|