FeeDetailResultVo.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.java110.vo;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.alibaba.fastjson.serializer.SerializerFeature;
  4. import java.io.Serializable;
  5. /**
  6. * @ClassName ResultVo
  7. * @Description TODO
  8. * @Author wuxw
  9. * @Date 2020/5/28 18:41
  10. * @Version 1.0
  11. * add by wuxw 2020/5/28
  12. **/
  13. public class FeeDetailResultVo extends ResultVo implements Serializable {
  14. private double totalReceivedAmount;
  15. private double totalReceivableAmount;
  16. public FeeDetailResultVo() {
  17. }
  18. public FeeDetailResultVo(double totalReceivableAmount, double totalReceivedAmount, int records, int total, Object data) {
  19. this.totalReceivableAmount = totalReceivableAmount;
  20. this.totalReceivedAmount = totalReceivedAmount;
  21. this.setCode(CODE_OK);
  22. this.setMsg(MSG_OK);
  23. this.setRecords(records);
  24. this.setTotal(total);
  25. this.setData(data);
  26. }
  27. public double getTotalReceivedAmount() {
  28. return totalReceivedAmount;
  29. }
  30. public void setTotalReceivedAmount(double totalReceivedAmount) {
  31. this.totalReceivedAmount = totalReceivedAmount;
  32. }
  33. public double getTotalReceivableAmount() {
  34. return totalReceivableAmount;
  35. }
  36. public void setTotalReceivableAmount(double totalReceivableAmount) {
  37. this.totalReceivableAmount = totalReceivableAmount;
  38. }
  39. @Override
  40. public String toString() {
  41. return JSONObject.toJSONString(this, SerializerFeature.DisableCircularReferenceDetect, SerializerFeature.WriteDateUseDateFormat);
  42. }
  43. }