ProReviewerVO.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package com.welampiot.vo;
  2. import com.welampiot.dto.ProReviewerDTO;
  3. import lombok.Data;
  4. import org.jetbrains.annotations.Contract;
  5. import org.jetbrains.annotations.NotNull;
  6. import java.io.Serializable;
  7. import java.util.List;
  8. /**
  9. * ClassName: ProReviewerVO
  10. * Package: com.welampiot.vo
  11. * Description:
  12. *
  13. * @Author: zhj_Start
  14. * @Create: 2023/8/8 - 10:57
  15. * @Version: v1.0
  16. */
  17. @Data
  18. public class ProReviewerVO implements Serializable {
  19. private Integer page;
  20. private Integer count;
  21. private String status;
  22. private Integer userid;
  23. private String username;
  24. private Integer version;
  25. private Integer total;
  26. private Integer total1;
  27. private Integer total2;
  28. private Integer total3;
  29. private List<ProReviewerDTO> list;
  30. @NotNull
  31. @Contract("_ -> param1")
  32. public static ProReviewerVO getFaultProReviewerVO(@NotNull ProReviewerVO vo) {
  33. if (vo.getPage() == null || vo.getPage() == 0) {
  34. vo.setPage(1);
  35. }
  36. if (vo.getCount() == null || vo.getCount() == 0) {
  37. vo.setCount(16);
  38. }
  39. if (vo.getStatus() == null) {
  40. vo.setStatus("");
  41. }
  42. if (vo.getUsername() == null) {
  43. vo.setUsername("");
  44. }
  45. if (vo.getVersion() == null) {
  46. vo.setVersion(0);
  47. }
  48. return vo;
  49. }
  50. }