package com.cm.systemcity.service.usersignout; import com.cm.common.exception.RemoveException; import com.cm.common.exception.SaveException; import com.cm.common.exception.SearchException; import com.cm.common.exception.UpdateException; import com.cm.common.pojo.ListPage; import com.cm.common.result.SuccessResult; import com.cm.common.result.SuccessResultData; import com.cm.common.result.SuccessResultList; import com.cm.systemcity.pojo.dtos.usersignout.UserSignoutDTO; import com.cm.systemcity.pojo.dtos.usersignout.UserSignoutDetailDTO; import com.cm.systemcity.pojo.dtos.usersignout.UserUnSignoutDetailDTO; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.List; import java.util.Map; /** * @ClassName: IUserSignoutService * @Description: 人员签退 * @Author: admin * @Date: 2019-07-28 18:01:36 * @Version: 1.0 **/ public interface IUserSignoutService { /** * 新增人员签退 * * @param params * @return * @throws SaveException * @throws SearchException */ SuccessResult saveUserSignout(Map params) throws SaveException, SearchException; /** * 新增人员签退 * * @param token * @param params * @return * @throws SaveException * @throws SearchException */ SuccessResult saveUserSignout(String token, Map params) throws SaveException, SearchException; /** * 删除人员签退 * * @param params * @return * @throws RemoveException */ SuccessResult removeUserSignout(Map params) throws RemoveException; /** * 修改人员签退 * * @param params * @return * @throws UpdateException */ SuccessResult updateUserSignout(Map params) throws UpdateException; /** * 全部人员签退列表 * * @param params * @return * @throws SearchException */ List listUserSignoutAll(Map params) throws SearchException; /** * 人员签退详情 * * @param params * @return * @throws SearchException */ UserSignoutDTO getUserSignout(Map params) throws SearchException; /** * 人员签退分页列表 * * @param page * @return */ SuccessResultList> listPageUserSignout(ListPage page) throws SearchException; /** * 人员签退列表,无分页 * * @param params * @return * @throws SearchException */ List listUserSignout(Map params) throws SearchException; /** * 检查人员是否签退 * * @param token * @param params * @return * @throws SearchException */ SuccessResultData getCheckUserSignout(String token, Map params) throws SearchException; /** * 签退人员列表详情 * * @param page * @return * @throws SearchException */ SuccessResultList> listPageUserSignoutDetail(ListPage page) throws SearchException; /** * 签退人员列表详情导出excel * * @param response * @param params * @throws SearchException */ void listUserSignoutDetailToExcel(HttpServletResponse response, Map params) throws SearchException, IOException; /** * 未签退人员详情列表 * * @param page * @return * @throws SearchException */ SuccessResultList> listPageUserUnSignoutDetail(ListPage page) throws SearchException; /** * 未签退人员详情列表导出Excel * * @param response * @param params * @throws SearchException */ void listUserUnSignoutDetailToExcel(HttpServletResponse response, Map params) throws SearchException, IOException; /** * 统计签退次数 * * @param params * @return * @throws SearchException */ Integer countUserSignout(Map params) throws SearchException; List listUserSignOutByUserIdsAndDay(List userIds, String day); }