-
Notifications
You must be signed in to change notification settings - Fork 15
/
UserInfoRepository.java
38 lines (27 loc) · 1.48 KB
/
UserInfoRepository.java
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
package com.vonchange.nine.demo.dao;
import com.vonchange.jdbc.mybatis.core.query.BatchUpdate;
import com.vonchange.jdbc.mybatis.core.support.CrudExtendRepository;
import com.vonchange.nine.demo.domain.SearchParam;
import com.vonchange.nine.demo.domain.UserInfoDO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;
import java.time.LocalDateTime;
import java.util.List;
public interface UserInfoRepository extends CrudExtendRepository<UserInfoDO, Long> {
List<UserInfoDO> findByUserCodes(@Param("userCodes") List<String> userCodes);
// 根据用户代码查找用户信息
UserInfoDO findByUserCode(@Param("userCode") String userCode);
String findUserNameByCode(@Param("userCode") String userCode);
List<UserInfoDO> findUserList(@Param("userCodes") List<String> userCodes,
@Param("userName")String userName,
@Param("createTime") LocalDateTime createTime);
Page<UserInfoDO> findUserList(Pageable pageable,
@Param("userCodes") List<String> userCodes,
@Param("userName")String userName,
@Param("createTime") LocalDateTime createTime);
List<UserInfoDO> findUserBySearchParam(@Param("param") SearchParam searchParam);
int updateIsDelete(@Param("isDelete") Integer isDelete,@Param("id") Long id);
@BatchUpdate
int batchUpdate(List<UserInfoDO> list);
}