问题原因

生产者传的日期navDate为 2020年4月30日 , 然后消费者接收为2020年4月29日

解决办法1 LocalDate

用LocalDate传输

navDate 是下面的格式

  1. {
  2. "code": "0000",
  3. "message": "查询机构公募资产信息成功",
  4. "data": {
  5. "totalAssets": "3,934.73",
  6. "totalProfit": "117.90",
  7. "totalIncome": "0.00",
  8. "list": [
  9. {
  10. "fundCode": "162213",
  11. "fundValue": 3934.73,
  12. "floatProfit": 117.9,
  13. "yestIncome": 11.96,
  14. "navDate": {
  15. "year": 2020,
  16. "month": "APRIL",
  17. "dayOfMonth": 30,
  18. "dayOfWeek": "THURSDAY",
  19. "era": "CE",
  20. "dayOfYear": 121,
  21. "leapYear": true,
  22. "monthValue": 4,
  23. "chronology": {
  24. "id": "ISO",
  25. "calendarType": "iso8601"
  26. }
  27. },
  28. "fundName": "泰达宏利沪深300指数增强A",
  29. "fundType": "5",
  30. "fundTypeText": "指数型基金"
  31. }
  32. ]
  33. }
  34. }

解决办法2 string格式传输….

  1. {
  2. "code": "0000",
  3. "message": "查询机构公募资产信息成功",
  4. "data": {
  5. "totalAssets": "3,934.73",
  6. "totalProfit": "117.90",
  7. "totalIncome": "0.00",
  8. "list": [
  9. {
  10. "fundCode": "162213",
  11. "fundValue": 3934.73,
  12. "floatProfit": 117.9,
  13. "yestIncome": 11.96,
  14. "navDate": "2020-04-30",
  15. "fundName": "泰达宏利沪深300指数增强A",
  16. "fundType": "5",
  17. "fundTypeText": "指数型基金"
  18. }
  19. ]
  20. }
  21. }