Administrator
2023-06-19 49588f5a462ae7425e7eb030438a35fd80c246fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.gk.firework.Mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gk.firework.Config.Oauth2.OauthRole;
import com.gk.firework.Domain.UserInfo;
import com.gk.firework.Domain.Vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.Date;
import java.util.List;
import java.util.Map;
 
@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    int deleteByPrimaryKey(Long id);
 
    UserInfo selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(UserInfo record);
 
    int updateByPrimaryKey(UserInfo record);
 
    UserVo selectByLoginname(@Param("username") String username);
 
    List<OauthRole> selectRoleByUser(Integer userId);
 
    List<UserVo> selectUserDataGrid(Page<UserVo> page, Map<String, Object> record);
 
    List<UserInfo> selectUserInfo(@Param("id") Long id,@Param("username") String username);
 
    int deleteOneByCompanyId(@Param("companyId")Long companyId);
 
    UserInfo getOneByCompanyId(@Param("companyId")Long companyId);
 
    UserInfo selectSupervise(@Param("province") String province,@Param("city") String city,@Param("area") String district,@Param("town") String street,@Param("community") String committee);
 
    UserVo selectUserVoByName(@Param("username")String username);
 
 
    int updateDeadlineByCompanyId(Long companyid, Date deadline);
 
    void updateDeadline2NullByComapnyId(Long companyid);
}