You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weaver-hrm-organization/src/com/engine/organization/mapper/comp/CompMapper.java

164 lines
2.9 KiB
Java

package com.engine.organization.mapper.comp;
3 years ago
import com.engine.organization.entity.company.po.CompPO;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
3 years ago
* @description:
* @author:dxfeng
* @createTime: 2022/05/16
* @version: 1.0
*/
public interface CompMapper {
/**
*
*
* @return
*/
List<CompPO> list(@Param("orderSql") String orderSql);
/**
* ID
*
* @return
*/
List<String> listUsedId();
List<String> listUsedIds();
/**
*
*
* @return
*/
List<CompPO> listByFilter(@Param("compPO") CompPO compPO, @Param("orderSql") String orderSql);
/**
*
*
* @return
*/
List<CompPO> listParent();
/**
*
*
* @param ids
* @return
*/
List<CompPO> listChild(@Param("ids") Collection ids);
3 years ago
/**
* ID
*
* @param pid
* @return
*/
List<CompPO> listChildByPID(@Param("pid") String pid);
/**
* ID
*
* @param pid
* @return
*/
int countChildByPID(@Param("pid") long pid);
/**
* ID
*
* @param id
* @return
*/
CompPO listById(@Param("id") long id);
/**
* No
*
* @param compNo
* @return
*/
List<CompPO> listByNo(@Param("compNo") String compNo);
/**
*
*
* @param ids
* @return
*/
List<Map<String, Object>> listCompsByIds(@Param("ids") Collection<Long> ids);
/**
* ID
*
* @param ids
* @return
*/
List<CompPO> getCompsByIds(@Param("ids") Collection<Long> ids);
/**
* /
*
* @param compPO
* @return
*/
int insertIgnoreNull(CompPO compPO);
/**
*
*
* @param compPO
* @return
*/
int updateBaseComp(CompPO compPO);
/**
*
*
* @param compPO
* @return
*/
int updateForbiddenTagById(CompPO compPO);
/**
3 years ago
*
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
/**
*
*
* @return
*/
int getMaxShowOrder();
3 years ago
/**
* ID
*
* @param companyName
* @param parentCompany
* @return
*/
Long getIdByNameAndPid(@Param("companyName") String companyName, @Param("parentCompany") Long parentCompany);
/**
*
*
* @param parentCompany
* @return
*/
Integer countTopCompany(@Param("parentCompany") Long parentCompany);
}