| | |
| | | TopStatisticsVO topStatisticsVO = new TopStatisticsVO(); |
| | | topStatisticsVO.setExpireAt(mcsMerchant.getExpireAt()); |
| | | if (nonNull(mcsMerchant.getExpireAt())) { |
| | | int surplusLitDays = DateUtils.differentDays(new Date(), mcsMerchant.getExpireAt()); |
| | | int surplusLitDays = DateUtils.retrieveRemainingDays(mcsMerchant.getExpireAt()); |
| | | topStatisticsVO.setSurplusLitDays(surplusLitDays > 0 ? surplusLitDays : 0); |
| | | } |
| | | |
| | |
| | | mcsMerchantVO.setId(mcsMerchant.getId()); |
| | | mcsMerchantVO.setName(mcsMerchant.getName()); |
| | | mcsMerchantVO.setLogo(mcsMerchant.getLogo()); |
| | | mcsMerchantVO.setIntroduction(mcsMerchant.getLogo()); |
| | | mcsMerchantVO.setIntroduction(mcsMerchant.getIntroduction()); |
| | | mcsMerchantVO.setLat(mcsMerchant.getLat()); |
| | | mcsMerchantVO.setLon(mcsMerchant.getLon()); |
| | | mcsMerchantVO.setAddress(mcsMerchant.getAddress()); |