75 lines
1.8 KiB
Java
75 lines
1.8 KiB
Java
package com.ruoyi.jysystem.mapper;
|
|
|
|
import java.util.List;
|
|
import com.ruoyi.jysystem.domain.JySysTenant;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
/**
|
|
* 租户Mapper接口
|
|
*
|
|
* @author ruoyi
|
|
* @date 2025-11-04
|
|
*/
|
|
public interface JySysTenantMapper
|
|
{
|
|
/**
|
|
* 查询租户
|
|
*
|
|
* @param id 租户主键
|
|
* @return 租户
|
|
*/
|
|
public JySysTenant selectJySysTenantById(Long id);
|
|
|
|
/**
|
|
* 查询租户列表
|
|
*
|
|
* @param jySysTenant 租户
|
|
* @return 租户集合
|
|
*/
|
|
public List<JySysTenant> selectJySysTenantList(JySysTenant jySysTenant);
|
|
|
|
/**
|
|
* 新增租户
|
|
*
|
|
* @param jySysTenant 租户
|
|
* @return 结果
|
|
*/
|
|
public int insertJySysTenant(JySysTenant jySysTenant);
|
|
|
|
/**
|
|
* 修改租户
|
|
*
|
|
* @param jySysTenant 租户
|
|
* @return 结果
|
|
*/
|
|
public int updateJySysTenant(JySysTenant jySysTenant);
|
|
|
|
/**
|
|
* 删除租户
|
|
*
|
|
* @param id 租户主键
|
|
* @return 结果
|
|
*/
|
|
public int deleteJySysTenantById(Long id);
|
|
|
|
/**
|
|
* 批量删除租户
|
|
*
|
|
* @param ids 需要删除的数据主键集合
|
|
* @return 结果
|
|
*/
|
|
public int deleteJySysTenantByIds(Long[] ids);
|
|
|
|
public int updateJySysTenantStatus(JySysTenant jySysTenant);
|
|
|
|
public int updateUserStatusByTenantCode(@Param("tenantCode") String tenantCode, @Param("status") String status);
|
|
|
|
JySysTenant selectJySysTenantByCode(@Param("code") String code);
|
|
|
|
JySysTenant selectJySysTenantByName(@Param("name") String name);
|
|
|
|
List<JySysTenant> selectJySysTenantListByTypes(@Param("types") String[] types, @Param("status") String status);
|
|
|
|
List<JySysTenant> selectLensFactoryTenantsByLensId(@Param("lensId") Long lensId, @Param("types") String[] types, @Param("status") String status);
|
|
}
|