kongzy
2024-07-01 47a751cb301d05276ae5d75145d57b2d090fe4e1
src/main/java/com/nanometer/smartlab/dao/SysUserDao.java
@@ -1,6 +1,9 @@
package com.nanometer.smartlab.dao;
import com.nanometer.smartlab.entity.SysUser;
import com.nanometer.smartlab.entity.dto.HazardousWasteUser;
import com.nanometer.smartlab.entity.dto.LaboratoryVo;
import com.nanometer.smartlab.entity.dto.SysUserDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
@@ -12,27 +15,29 @@
 */
public interface SysUserDao {
    public SysUser getSysUser(String id) throws DataAccessException;
    public SysUser getSysUserForSuppllier(String id) throws DataAccessException;
    public SysUser getSysUser(Long id) throws DataAccessException;
    public SysUser getSysUserForSuppllier(Long id) throws DataAccessException;
    public SysUser getSysUserByIdCard(String idCard) throws DataAccessException;
    public List<SysUser> getSysUserList(Map params) throws DataAccessException;
    public List<SysUser> getSysUserSimpleInfoList(Map params);
    public List<SysUser> getHasProjectSysUserList(Map params) throws DataAccessException;
    public int getSysUserTotalCount(Map params) throws DataAccessException;
    public void insertSysUser(SysUser sysUser) throws DataAccessException;
    public int updateSysUser(SysUser sysUser) throws DataAccessException;
    public int deleteSysUsers(List<String> ids) throws DataAccessException;
    public int deleteSysUsers(List<Long> ids) throws DataAccessException;
    public List<SysUser> getSysUserInfoList(Map params) throws DataAccessException;
    public SysUser getSysUserInfoByContainerCode(String userId, String containerCode, String controllerCode) throws DataAccessException;
    public SysUser getSysUserInfoByContainerCode(Long userId, String containerCode, String controllerCode) throws DataAccessException;
    public List<SysUser> getUserListByContainerCode(String containerCode, String startTime,String endTime) throws DataAccessException;
    void updateUserPointBySelective(@Param("point")Integer point,@Param("id") String id);
    void updateUserPointBySelective(@Param("point")Integer point,@Param("id") Long id);
    public SysUser selectByAccount(SysUser user);
    Map getUser(String id);
    SysUser getUser(Long id);
    void insertUserFavor(Map params);
@@ -41,4 +46,24 @@
    int selectUserFavor(Map params);
    List<SysUser> getUserListByProject(String project, String startTime, String endTime);
    List<SysUserDto> selectUserInfo();
    HazardousWasteUser getUserByAccount(Map params);
    List<LaboratoryVo.LaboratoryUser> getUserByProject(@Param("projectId") Long projectId);
    List<SysUser> getUserByArp(String arp);
    int getUserCountInProject(Map params);
    List<SysUser> getUserInProject(Map params);
    List<Map> getExportUserList(@Param("arp") String arp,@Param("name") String name, @Param("departmentName") String departmentName,
                                @Param("projectId") Long projectId,@Param("company") String company);
    List<String> getLibrarianEmail();
    List<SysUser> getUserByName(String approveUserName);
}