Contract4PurchaseRptDto.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package cn.com.lzt.contractreports.dto;
  2. import org.jeecgframework.poi.excel.annotation.Excel;
  3. public class Contract4PurchaseRptDto implements Comparable<Contract4PurchaseRptDto>{
  4. @Excel(name="管理处",width=15)
  5. private String projectname;
  6. @Excel(name="供方",width=25)
  7. private String partnername;
  8. @Excel(name="服务内容",width=15)
  9. private String servicename;
  10. @Excel(name="合同期限",width=25)
  11. private String contractperiod;
  12. @Excel(name="支付方式",width=15)
  13. private String paymode;
  14. @Excel(name="已付至",width=15)
  15. private String payto;
  16. @Excel(name="已付金额",width=15,isStatistics = true)
  17. private Double totalpayment;
  18. @Excel(name="合同总额",width=15,isStatistics = true)
  19. private Double totalamount;
  20. @Excel(name="历史合同",width=15,isStatistics = true)
  21. private Double totalamounth;
  22. @Excel(name="差额",width=15,isStatistics = true)
  23. private Double balance;
  24. @Excel(name="联系人",width=15)
  25. private String contactsname;
  26. @Excel(name="联系电话",width=15)
  27. private String telphone ;
  28. private String id;
  29. public String getProjectname() {
  30. return projectname;
  31. }
  32. public void setProjectname(String projectname) {
  33. this.projectname = projectname;
  34. }
  35. public String getPartnername() {
  36. return partnername;
  37. }
  38. public void setPartnername(String partnername) {
  39. this.partnername = partnername;
  40. }
  41. public String getServicename() {
  42. return servicename;
  43. }
  44. public void setServicename(String servicename) {
  45. this.servicename = servicename;
  46. }
  47. public String getContractperiod() {
  48. return contractperiod;
  49. }
  50. public void setContractperiod(String contractperiod) {
  51. this.contractperiod = contractperiod;
  52. }
  53. public Double getTotalamount() {
  54. return totalamount;
  55. }
  56. public void setTotalamount(Double totalamount) {
  57. this.totalamount = totalamount;
  58. }
  59. public String getPaymode() {
  60. return paymode;
  61. }
  62. public void setPaymode(String paymode) {
  63. this.paymode = paymode;
  64. }
  65. public String getContactsname() {
  66. return contactsname;
  67. }
  68. public void setContactsname(String contactsname) {
  69. this.contactsname = contactsname;
  70. }
  71. public String getTelphone() {
  72. return telphone;
  73. }
  74. public void setTelphone(String telphone) {
  75. this.telphone = telphone;
  76. }
  77. public String getId() {
  78. return id;
  79. }
  80. public void setId(String id) {
  81. this.id = id;
  82. }
  83. public Double getTotalpayment() {
  84. return totalpayment;
  85. }
  86. public void setTotalpayment(Double totalpayment) {
  87. this.totalpayment = totalpayment;
  88. }
  89. public Double getBalance() {
  90. return balance;
  91. }
  92. public void setBalance(Double balance) {
  93. this.balance = balance;
  94. }
  95. public Double getTotalamounth() {
  96. return totalamounth;
  97. }
  98. public void setTotalamounth(Double totalamounth) {
  99. this.totalamounth = totalamounth;
  100. }
  101. public String getStartDate() {
  102. String[] date = contractperiod.split("~");
  103. return date[0];
  104. }
  105. public String getEndDate() {
  106. String[] date = contractperiod.split("~");
  107. return date[1];
  108. }
  109. @Override
  110. public int compareTo(Contract4PurchaseRptDto o) {
  111. if(this.getStartDate().compareTo(o.getStartDate()) > 1)
  112. return -1;
  113. else
  114. return 1;
  115. }
  116. public String getPayto() {
  117. return payto;
  118. }
  119. public void setPayto(String payto) {
  120. this.payto = payto;
  121. }
  122. }