| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- package com.welampiot.vo;
- import com.welampiot.dto.ProReviewerDTO;
- import lombok.Data;
- import org.jetbrains.annotations.Contract;
- import org.jetbrains.annotations.NotNull;
- import java.io.Serializable;
- import java.util.List;
- /**
- * ClassName: ProReviewerVO
- * Package: com.welampiot.vo
- * Description:
- *
- * @Author: zhj_Start
- * @Create: 2023/8/8 - 10:57
- * @Version: v1.0
- */
- @Data
- public class ProReviewerVO implements Serializable {
- private Integer page;
- private Integer count;
- private String status;
- private Integer userid;
- private String username;
- private Integer version;
- private Integer total;
- private Integer total1;
- private Integer total2;
- private Integer total3;
- private List<ProReviewerDTO> list;
- @NotNull
- @Contract("_ -> param1")
- public static ProReviewerVO getFaultProReviewerVO(@NotNull ProReviewerVO vo) {
- if (vo.getPage() == null || vo.getPage() == 0) {
- vo.setPage(1);
- }
- if (vo.getCount() == null || vo.getCount() == 0) {
- vo.setCount(16);
- }
- if (vo.getStatus() == null) {
- vo.setStatus("");
- }
- if (vo.getUsername() == null) {
- vo.setUsername("");
- }
- if (vo.getVersion() == null) {
- vo.setVersion(0);
- }
- return vo;
- }
- }
|