| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.java110.core.factory.WechatFactory; |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.dto.fee.BillDto; |
| | | import com.java110.dto.fee.BillOweFeeDto; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.owner.OwnerAppUserDto; |
| | |
| | | for (BillOweFeeDto fee : billOweFeeDtos) { |
| | | oweUrl = FeeDto.PAYER_OBJ_TYPE_ROOM.equals(fee.getPayerObjType()) ? oweRoomUrl : oweCarUrl; |
| | | for (OwnerAppUserDto appUserDto : ownerAppUserDtos) { |
| | | try { |
| | | if (fee.getOwnerId().equals(appUserDto.getMemberId())) { |
| | | Date date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(fee.getFeeEndTime()); |
| | | Calendar now = Calendar.getInstance(); |
| | |
| | | ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class); |
| | | logger.info("微信模板返回内容:{}", responseEntity); |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error("推送账单异常", e); |
| | | } |
| | | } |
| | | |
| | | BillOweFeeDto tmpBillOweFeeDto = new BillOweFeeDto(); |