WzHouseMaintEntity.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.example.entity;
  2. import lombok.Data;
  3. import java.io.Serializable;
  4. @Data
  5. public class WzHouseMaintEntity implements Serializable {
  6. private static final long serialVersionUID = 1L;
  7. private Integer id;
  8. private String province;
  9. private String city;
  10. private String county;
  11. private Integer houseAgeLessThanTwenty;
  12. private Integer houseAgeBetweentTewntyAndForty;
  13. private Integer houseAgeMoreThanFortyOne;
  14. private Integer buildingAgeLessThanTwenty;
  15. private Integer buildingAgeBetweentTewntyAndForty;
  16. private Integer buildingAgeMoreThanFortyOne;
  17. private Integer houseAll;
  18. private Integer buildingAll;
  19. private String statisticalMonth;
  20. public void setAll(){
  21. if(buildingAgeLessThanTwenty==null){
  22. buildingAgeLessThanTwenty=0;
  23. }
  24. if(buildingAgeBetweentTewntyAndForty==null){
  25. buildingAgeBetweentTewntyAndForty=0;
  26. }
  27. if(buildingAgeMoreThanFortyOne==null){
  28. buildingAgeMoreThanFortyOne=0;
  29. }
  30. if(houseAgeLessThanTwenty==null){
  31. houseAgeLessThanTwenty=0;
  32. }
  33. if(houseAgeBetweentTewntyAndForty==null){
  34. houseAgeBetweentTewntyAndForty=0;
  35. }
  36. if(houseAgeMoreThanFortyOne==null){
  37. houseAgeMoreThanFortyOne=0;
  38. }
  39. buildingAll=buildingAgeLessThanTwenty+buildingAgeBetweentTewntyAndForty+buildingAgeMoreThanFortyOne;
  40. houseAll=houseAgeLessThanTwenty+houseAgeBetweentTewntyAndForty+houseAgeMoreThanFortyOne;
  41. }
  42. }