| | |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 消息通知工具类 |
| | | */ |
| | |
| | | * |
| | | * @param communityId 小区 |
| | | * @param userId 用户 |
| | | * @param content { |
| | | * @param contents [{ |
| | | * "feeTypeName", |
| | | * "payerObjName", |
| | | * "billAmountOwed", |
| | | * "date", |
| | | * url |
| | | * } |
| | | * }] |
| | | */ |
| | | public static ResultVo sendOweFeeMsg(String communityId, String userId,String ownerId, JSONObject content,String notifyWay) { |
| | | public static ResultVo sendOweFeeMsg(String communityId, String userId, String ownerId, List<JSONObject> contents, String notifyWay) { |
| | | ResultVo resultVo = null; |
| | | try { |
| | | IMsgNotify msgNotify = getMsgNotify(notifyWay); |
| | | resultVo = msgNotify.sendOweFeeMsg(communityId, userId,ownerId, content); |
| | | resultVo = msgNotify.sendOweFeeMsg(communityId, userId,ownerId, contents); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | logger.error("通知 发送欠费 账单信息 消息", e); |
| | |
| | | * |
| | | * @param communityId 小区 |
| | | * @param userId 用户 |
| | | * @param content { |
| | | * @param contents [{ |
| | | * "feeTypeName", |
| | | * "payerObjName", |
| | | * "billAmountOwed", |
| | | * "date", |
| | | * url |
| | | * } |
| | | * }] |
| | | */ |
| | | public static ResultVo sendOweFeeMsg(String communityId, String userId,String ownerId, JSONObject content) { |
| | | return sendOweFeeMsg(communityId,userId, ownerId,content,null); |
| | | public static ResultVo sendOweFeeMsg(String communityId, String userId,String ownerId, List<JSONObject> contents) { |
| | | return sendOweFeeMsg(communityId,userId, ownerId,contents,null); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param communityId 小区 |
| | | * @param userId 用户 |
| | | * @param content { |
| | | * repairId, |
| | | * repairTypeName, |
| | | * repairObjName, |
| | | * repairName, |
| | |
| | | * @param communityId 小区 |
| | | * @param userId 用户 |
| | | * @param content { |
| | | * repairId, |
| | | * repairName, |
| | | * tel, |
| | | * time, |
| | |
| | | * @param communityId 小区 |
| | | * @param userId 用户 |
| | | * @param content { |
| | | * repairId, |
| | | * repairTypeName, |
| | | * repairObjName, |
| | | * repairName, |
| | |
| | | * @param notifyWay |
| | | * @return |
| | | */ |
| | | private static IMsgNotify getMsgNotify(String notifyWay) { |
| | | public static IMsgNotify getMsgNotify(String notifyWay) { |
| | | IMsgNotify notify = null; |
| | | if (StringUtil.isEmpty(notifyWay)) { |
| | | notifyWay = MappingCache.getValue(MappingConstant.ENV_DOMAIN, DEFAULT_MSG_NOTIFY_WAY); |