| package com.matrix.system.common.dao; | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.common.bean.SysUserLoginRecord; | 
| import com.matrix.system.common.bean.SysUsers; | 
| import com.matrix.system.hive.bean.SysBeauticianState; | 
| import com.matrix.system.hive.bean.SysProjServices; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.List; | 
| import java.util.Map; | 
|   | 
| /** | 
|  * 系统用户dao层 | 
|  * | 
|  * @author jiangyouyao | 
|  * @email 512061637@qq.com | 
|  * @date 2019年2月25日 | 
|  */ | 
| public interface SysUsersDao { | 
|   | 
|     public int insert(SysUsers sysUsers); | 
|   | 
|     public int updateByMap(Map<String, Object> modifyMap); | 
|   | 
|     public int updateByModel(SysUsers sysUsers); | 
|   | 
|     public int deleteByIds(@Param("list") List<String> list); | 
|   | 
|     public int deleteById(Long suId); | 
|   | 
|     public int deleteByModel(@Param("record") SysUsers sysUsers); | 
|   | 
|     public List<SysUsers> selectInPage(@Param("record") SysUsers sysUsers, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     /** | 
|      * 查询登录记录 | 
|      */ | 
|     public List<SysUserLoginRecord> selectLoginRecordList(@Param("record") SysUserLoginRecord sysUserLoginRecord, | 
|                                                           @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     /** | 
|      * 查询记录总条数 | 
|      **/ | 
|     public int selectLoginRecordTotal(@Param("record") SysUserLoginRecord sysUserLoginRecord); | 
|   | 
|     public List<SysUsers> selectByModel(@Param("record") SysUsers sysUsers); | 
|   | 
|     public int selectTotalRecord(@Param("record") SysUsers sysUsers); | 
|   | 
|     public SysUsers selectById(Long suId); | 
|   | 
|   | 
|     public int countUserTodayErrorLoginTimes(String suAccount); | 
|   | 
|     public void changeUserStatus(@Param("suAccount") String suAccount, | 
|                                  @Param("suAccountStatus") String suAccountStatus); | 
|   | 
|     public void insertLoginRecord(SysUserLoginRecord loginRecord); | 
|   | 
|     public void cleanUserTodayErrorLoginTime(String suAccount); | 
|   | 
|     /** | 
|      * 根据ID更新用户密码 | 
|      * | 
|      * @param suId | 
|      * @param suPassword | 
|      * @return | 
|      * @author jiangyouyao | 
|      */ | 
|     public int updateUserPassword(@Param("suId") Long suId, @Param("suPassword") String suPassword); | 
|   | 
|     public List<SysUsers> selectByRoleName(@Param("users") SysUsers users); | 
|   | 
|     /** | 
|      * 查询某个时间段的空闲美疗师 | 
|      * 一个时间可能会在三个排班时间段内 | 
|      * | 
|      * @param shopId 店铺id | 
|      * @param codes | 
|      * @return List<SysUsers>    返回类型 | 
|      * @throws | 
|      * @Title: findByCodeBeaStateShop | 
|      * @author:jyy | 
|      * @date 2016年8月2日 下午3:32:51 | 
|      */ | 
|     public List<SysUsers> findByCodeBeaStateShop(@Param("shopId") Long shopId, | 
|                                                  @Param("beaState") SysBeauticianState sysBeauticianState, | 
|                                                  @Param("codes") String codes); | 
|   | 
|     /** | 
|      * 查询某个时间段的空闲美疗师数量 | 
|      * | 
|      * @param shopId 店铺id | 
|      * @param codes | 
|      * @return List<SysUsers>    返回类型 | 
|      * @throws | 
|      * @Title: findByCodeBeaStateShop | 
|      * @author:jyy | 
|      * @date 2016年8月2日 下午3:32:51 | 
|      */ | 
|     public int findByCodeBeaStateShopCount(@Param("shopId") Long shopId, | 
|                                            @Param("projService") SysProjServices SysProjServices, | 
|                                            @Param("codes") List<String> codes); | 
|   | 
|   | 
|     public Integer selectMaxSignOrder(@Param("shopId") Long shopId); | 
|   | 
|     /** | 
|      * @Description | 
|      * @date 2016年12月27日 | 
|      * @atuhor fan | 
|      */ | 
|     public void setOldSignDateNull(@Param("shopId") Long shopId); | 
|   | 
|     /** | 
|      * @param id | 
|      * @return | 
|      * @Description 如果某个的排班被删掉那么他的签到信息也应该被删掉 | 
|      * @date 2016年12月27日 | 
|      * @atuhor fan | 
|      */ | 
|     public int emptySignInfoById(Long id); | 
|   | 
|   | 
| } |