Ejemplo n.º 1
0
        /// <summary>
        /// 通过增员表ID获取政策
        /// </summary>
        /// <param name="addId">增员表ID</param>
        /// <returns></returns>
        public PoliceInsurance GetPoliceInsuranceByEmployeeAddId(int addId)
        {
            EmployeeAddRepository addRepository = new EmployeeAddRepository();
            var employeeAdd = addRepository.GetById(db, addId);

            return(employeeAdd.PoliceInsurance);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 根据主键获取一个增加员工
 /// </summary>
 /// <param name="id">增加员工的主键</param>
 /// <returns>一个增加员工</returns>
 public EmployeeAdd GetById(int id)
 {
     return(repository.GetById(db, id));
 }