public IActionResult Get(int pageIndex, int pageSize, string departmentName, string departmentStatus)
 {
     try
     {
         string where = "where 1=1 ";
         if (!string.IsNullOrWhiteSpace(departmentName))
         {
             where += " and departmentName like @departmentName";
         }
         if (!string.IsNullOrWhiteSpace(departmentStatus))
         {
             where += " and departmentStatus=@departmentStatus";
         }
         var data = _service.GetListPaged(pageIndex, pageSize, where, " createtime desc", new { departmentName = $"{departmentName}%", departmentStatus = departmentStatus });
         return(Ok(data));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }