UserQueryParam.java 823 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package easydo.technology.system.dto;
  2. import easydo.technology.annotation.Query;
  3. import lombok.Data;
  4. import org.springframework.format.annotation.DateTimeFormat;
  5. import java.util.Date;
  6. import java.util.HashSet;
  7. import java.util.List;
  8. import java.util.Set;
  9. /**
  10. * @author jinjin
  11. * @date 2020-09-25
  12. */
  13. @Data
  14. // @DataPermission(fieldName = "dept_id")
  15. public class UserQueryParam{
  16. /** 精确 */
  17. @Query
  18. private Long userId;
  19. private Long deptId;
  20. @Query(propName = "dept_id", type = Query.Type.IN)
  21. private Set<Long> deptIds = new HashSet<>();
  22. @Query(blurry = "email,username,nickName")
  23. private String blurry;
  24. /** 精确 */
  25. @Query
  26. private Long enabled;
  27. @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  28. @Query(type = Query.Type.BETWEEN)
  29. private List<Date> createTime;
  30. }