weaver-hrm-organization/src/com/engine/organization/mapper/resource/ResourceMapper.java

46 lines
1.4 KiB
Java
Raw Normal View History

2022-06-28 19:04:14 +08:00
package com.engine.organization.mapper.resource;
2022-06-29 16:57:45 +08:00
2022-10-20 09:07:32 +08:00
import com.engine.organization.entity.hrmresource.po.HrmResourcePO;
2022-06-29 14:18:47 +08:00
import com.engine.organization.entity.hrmresource.vo.HrmResourceVO;
2022-06-28 19:04:14 +08:00
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @Author weaver_cl
* @Description:
* @Date 2022/6/28
* @Version V1.0
**/
public interface ResourceMapper {
2022-11-21 10:58:12 +08:00
List<HrmResourceVO> listAll(@Param("ids") List<Long> ids);
2022-10-20 09:07:32 +08:00
2022-11-03 11:06:36 +08:00
List<HrmResourceVO> listDetachAll(@Param("ids") List<Long> ids, @Param("companyIds") List<Long> companyIds);
2022-10-20 09:07:32 +08:00
List<HrmResourcePO> getResourceListByJobId(@Param("jobId") Long jobId);
2022-11-28 11:15:54 +08:00
int updateResourceJob(@Param("originalJobId") Long originalJobId, @Param("targetJobId") Long targetJobId, @Param("parentComp") Integer parentComp, @Param("parentDept") Long parentDept, @Param("ecCompany") Integer ecCompany, @Param("ecDepartment") Long ecDepartment);
2022-10-20 09:07:32 +08:00
HrmResourcePO getResourceById(@Param("id") String id);
List<HrmResourcePO> listByNo(@Param("workCode") String workCode);
2022-11-21 10:58:12 +08:00
Long getMaxShowOrder();
/**
* 根据所选关键字段查询ID
*
* @param keyField
* @param keyFieldValue
* @return
*/
2022-11-23 09:34:06 +08:00
List<Long> getIdByKeyField(@Param("keyField") String keyField, @Param("keyFieldValue") String keyFieldValue);
2022-11-21 10:58:12 +08:00
String getEcResourceId(@Param("jclResourceId") String jclResourceId);
Long getJclResourceId(@Param("ecResourceId") String ecResourceId);
2022-06-28 19:04:14 +08:00
}