|
|
@@ -42,6 +42,7 @@ import com.java110.intf.user.IOwnerInnerServiceSMO;
|
|
|
import com.java110.intf.user.IOwnerRoomRelInnerServiceSMO;
|
|
|
import com.java110.intf.user.IStaffAppAuthInnerServiceSMO;
|
|
|
import com.java110.job.adapt.DatabusAdaptImpl;
|
|
|
+import com.java110.job.msgNotify.MsgNotifyFactory;
|
|
|
import com.java110.po.fee.PayFeeDetailPo;
|
|
|
import com.java110.utils.cache.MappingCache;
|
|
|
import com.java110.utils.cache.UrlCache;
|
|
|
@@ -248,32 +249,7 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
|
|
|
* @param payFeeDetailPo
|
|
|
*/
|
|
|
private void publishMsg(JSONObject paramIn, CommunityDto communityDto, PayFeeDetailPo payFeeDetailPo) {
|
|
|
- //查询公众号配置
|
|
|
- SmallWeChatDto smallWeChatDto = new SmallWeChatDto();
|
|
|
- smallWeChatDto.setWeChatType("1100");
|
|
|
- smallWeChatDto.setObjType(SmallWeChatDto.OBJ_TYPE_COMMUNITY);
|
|
|
- smallWeChatDto.setObjId(communityDto.getCommunityId());
|
|
|
- List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto);
|
|
|
- if (smallWeChatDto == null || smallWeChatDtos.size() <= 0) {
|
|
|
- logger.info("未配置微信公众号信息,定时任务执行结束");
|
|
|
- return;
|
|
|
- }
|
|
|
- SmallWeChatDto weChatDto = smallWeChatDtos.get(0);
|
|
|
- SmallWechatAttrDto smallWechatAttrDto = new SmallWechatAttrDto();
|
|
|
- smallWechatAttrDto.setCommunityId(communityDto.getCommunityId());
|
|
|
- smallWechatAttrDto.setWechatId(weChatDto.getWeChatId());
|
|
|
- smallWechatAttrDto.setSpecCd(SmallWechatAttrDto.SPEC_CD_WECHAT_SUCCESS_TEMPLATE);
|
|
|
- List<SmallWechatAttrDto> smallWechatAttrDtos = smallWechatAttrInnerServiceSMOImpl.querySmallWechatAttrs(smallWechatAttrDto);
|
|
|
- if (smallWechatAttrDtos == null || smallWechatAttrDtos.size() <= 0) {
|
|
|
- logger.info("未配置微信公众号消息模板");
|
|
|
- return;
|
|
|
- }
|
|
|
- String templateId = smallWechatAttrDtos.get(0).getValue();
|
|
|
- String accessToken = WechatFactory.getAccessToken(weChatDto.getAppId(), weChatDto.getAppSecret());
|
|
|
- if (StringUtil.isEmpty(accessToken)) {
|
|
|
- logger.info("推送微信模板,获取accessToken失败:{}", accessToken);
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
FeeDto feeDto = new FeeDto();
|
|
|
feeDto.setFeeId(payFeeDetailPo.getFeeId());
|
|
|
feeDto.setCommunityId(payFeeDetailPo.getCommunityId());
|
|
|
@@ -281,54 +257,28 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
|
|
|
Assert.listOnlyOne(feeDtos, "费用不存在");
|
|
|
// 根据特定权限查询 有该权限的 员工
|
|
|
BasePrivilegeDto basePrivilegeDto = new BasePrivilegeDto();
|
|
|
- //basePrivilegeDto.setPId("502020121454780004");
|
|
|
basePrivilegeDto.setResource("/wechatNotification");
|
|
|
basePrivilegeDto.setStoreId(feeDtos.get(0).getIncomeObjId());
|
|
|
List<UserDto> userDtos = privilegeInnerServiceSMO.queryPrivilegeUsers(basePrivilegeDto);
|
|
|
- String sendTemplate = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, WechatConstant.SEND_TEMPLATE_URL);
|
|
|
- if (StringUtil.isEmpty(sendTemplate)) {
|
|
|
- sendTemplate = sendMsgUrl;
|
|
|
- }
|
|
|
- String url = sendTemplate + accessToken;
|
|
|
+ String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN, "STAFF_WECHAT_URL");
|
|
|
+
|
|
|
//获取付费对象类型
|
|
|
String payerObjType = paramIn.getString("payerObjType");
|
|
|
- if (userDtos != null && userDtos.size() > 0) {
|
|
|
- for (UserDto userDto : userDtos) {
|
|
|
- //根据 userId 查询到openId
|
|
|
- try {
|
|
|
- StaffAppAuthDto staffAppAuthDto = new StaffAppAuthDto();
|
|
|
- staffAppAuthDto.setStaffId(userDto.getUserId());
|
|
|
- staffAppAuthDto.setAppType("WECHAT");
|
|
|
- List<StaffAppAuthDto> staffAppAuthDtos = staffAppAuthInnerServiceSMO.queryStaffAppAuths(staffAppAuthDto);
|
|
|
- if (staffAppAuthDtos == null || staffAppAuthDtos.size() < 1) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- String openId = staffAppAuthDtos.get(0).getOpenId();
|
|
|
- Data data = new Data();
|
|
|
- PropertyFeeTemplateMessage templateMessage = new PropertyFeeTemplateMessage();
|
|
|
- templateMessage.setTemplate_id(templateId);
|
|
|
- templateMessage.setTouser(openId);
|
|
|
- data.setFirst(new Content("本次缴费已到账"));
|
|
|
- if (payerObjType.equals("3333")) { //房屋
|
|
|
- data.setKeyword1(new Content(paramIn.getString("payFeeRoom")));
|
|
|
- data.setKeyword2(new Content(paramIn.getString("feeTypeCdName")));
|
|
|
- } else { //车辆
|
|
|
- data.setKeyword1(new Content(communityDto.getName() + "-" + paramIn.getString("num") + "-" + paramIn.getString("spaceNum")));
|
|
|
- data.setKeyword2(new Content(paramIn.getString("feeTypeCdName") + "-" + paramIn.getString("carNum")));
|
|
|
- }
|
|
|
- data.setKeyword3(new Content(paramIn.getString("payFeeTime")));
|
|
|
- data.setKeyword4(new Content(paramIn.getString("receivedAmount") + "元"));
|
|
|
- data.setRemark(new Content("感谢您的使用,如有疑问请联系相关物业人员"));
|
|
|
- templateMessage.setData(data);
|
|
|
- //获取员工公众号地址
|
|
|
- String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN, "STAFF_WECHAT_URL");
|
|
|
- templateMessage.setUrl(wechatUrl);
|
|
|
- logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage));
|
|
|
- ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class);
|
|
|
- logger.info("微信模板返回内容:{}", responseEntity);
|
|
|
- } catch (Exception e) {
|
|
|
- logger.error("发送缴费信息失败", e);
|
|
|
- }
|
|
|
+ if (userDtos == null || userDtos.size() < 1) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (UserDto userDto : userDtos) {
|
|
|
+ //根据 userId 查询到openId
|
|
|
+ try {
|
|
|
+ JSONObject content = new JSONObject();
|
|
|
+ content.put("payFeeRoom", paramIn.getString("payFeeRoom"));
|
|
|
+ content.put("feeTypeCdName", paramIn.getString("feeTypeCdName"));
|
|
|
+ content.put("payFeeTime", paramIn.getString("payFeeTime"));
|
|
|
+ content.put("receivedAmount", paramIn.getString("receivedAmount") + "元");
|
|
|
+ content.put("url", wechatUrl);
|
|
|
+ MsgNotifyFactory.sendPayFeeMsg(payFeeDetailPo.getCommunityId(), userDto.getUserId(), content, MsgNotifyFactory.ROLE_STAFF);
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.error("发送缴费信息失败", e);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -341,32 +291,6 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
|
|
|
* @param payFeeDetailPo
|
|
|
*/
|
|
|
private void sendMsg(JSONObject paramIn, CommunityDto communityDto, PayFeeDetailPo payFeeDetailPo) {
|
|
|
- //查询公众号配置
|
|
|
- SmallWeChatDto smallWeChatDto = new SmallWeChatDto();
|
|
|
- smallWeChatDto.setWeChatType("1100");
|
|
|
- smallWeChatDto.setObjType(SmallWeChatDto.OBJ_TYPE_COMMUNITY);
|
|
|
- smallWeChatDto.setObjId(communityDto.getCommunityId());
|
|
|
- List<SmallWeChatDto> smallWeChatDtos = smallWeChatInnerServiceSMOImpl.querySmallWeChats(smallWeChatDto);
|
|
|
- if (smallWeChatDto == null || smallWeChatDtos.size() <= 0) {
|
|
|
- logger.info("未配置微信公众号信息,定时任务执行结束");
|
|
|
- return;
|
|
|
- }
|
|
|
- SmallWeChatDto weChatDto = smallWeChatDtos.get(0);
|
|
|
- SmallWechatAttrDto smallWechatAttrDto = new SmallWechatAttrDto();
|
|
|
- smallWechatAttrDto.setCommunityId(communityDto.getCommunityId());
|
|
|
- smallWechatAttrDto.setWechatId(weChatDto.getWeChatId());
|
|
|
- smallWechatAttrDto.setSpecCd(SmallWechatAttrDto.SPEC_CD_WECHAT_SUCCESS_TEMPLATE);
|
|
|
- List<SmallWechatAttrDto> smallWechatAttrDtos = smallWechatAttrInnerServiceSMOImpl.querySmallWechatAttrs(smallWechatAttrDto);
|
|
|
- if (smallWechatAttrDtos == null || smallWechatAttrDtos.size() <= 0) {
|
|
|
- logger.info("未配置微信公众号消息模板");
|
|
|
- return;
|
|
|
- }
|
|
|
- String templateId = smallWechatAttrDtos.get(0).getValue();
|
|
|
- String accessToken = WechatFactory.getAccessToken(weChatDto.getAppId(), weChatDto.getAppSecret());
|
|
|
- if (StringUtil.isEmpty(accessToken)) {
|
|
|
- logger.info("推送微信模板,获取accessToken失败:{}", accessToken);
|
|
|
- return;
|
|
|
- }
|
|
|
FeeDto feeDto = new FeeDto();
|
|
|
feeDto.setFeeId(payFeeDetailPo.getFeeId());
|
|
|
feeDto.setCommunityId(payFeeDetailPo.getCommunityId());
|
|
|
@@ -374,36 +298,16 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
|
|
|
Assert.listOnlyOne(feeDtos, "费用不存在");
|
|
|
//获取创建用户,即处理结单的维修维修师傅
|
|
|
String userId = feeDtos.get(0).getUserId();
|
|
|
- String sendTemplate = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, WechatConstant.SEND_TEMPLATE_URL);
|
|
|
- if (StringUtil.isEmpty(sendTemplate)) {
|
|
|
- sendTemplate = sendMsgUrl;
|
|
|
- }
|
|
|
- String url = sendTemplate + accessToken;
|
|
|
//根据 userId 查询到openId
|
|
|
try {
|
|
|
- StaffAppAuthDto staffAppAuthDto = new StaffAppAuthDto();
|
|
|
- staffAppAuthDto.setStaffId(userId);
|
|
|
- staffAppAuthDto.setAppType("WECHAT");
|
|
|
- List<StaffAppAuthDto> staffAppAuthDtos = staffAppAuthInnerServiceSMO.queryStaffAppAuths(staffAppAuthDto);
|
|
|
- Assert.listOnlyOne(staffAppAuthDtos, "员工未认证");
|
|
|
- String openId = staffAppAuthDtos.get(0).getOpenId();
|
|
|
- Data data = new Data();
|
|
|
- PropertyFeeTemplateMessage templateMessage = new PropertyFeeTemplateMessage();
|
|
|
- templateMessage.setTemplate_id(templateId);
|
|
|
- templateMessage.setTouser(openId);
|
|
|
- data.setFirst(new Content("业主已缴纳维修费,信息如下:"));
|
|
|
- data.setKeyword1(new Content(paramIn.getString("payFeeRoom")));
|
|
|
- data.setKeyword2(new Content(paramIn.getString("feeTypeCdName")));
|
|
|
- data.setKeyword3(new Content(paramIn.getString("payFeeTime")));
|
|
|
- data.setKeyword4(new Content(paramIn.getString("receivedAmount") + "元"));
|
|
|
- data.setRemark(new Content("请与客服管家核实费用"));
|
|
|
- templateMessage.setData(data);
|
|
|
- //获取员工公众号地址
|
|
|
- String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN, "STAFF_WECHAT_URL");
|
|
|
- templateMessage.setUrl(wechatUrl);
|
|
|
- logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage));
|
|
|
- ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class);
|
|
|
- logger.info("微信模板返回内容:{}", responseEntity);
|
|
|
+ JSONObject content = new JSONObject();
|
|
|
+ content.put("payFeeRoom", paramIn.getString("payFeeRoom"));
|
|
|
+ content.put("feeTypeCdName", paramIn.getString("feeTypeCdName"));
|
|
|
+ content.put("payFeeTime", paramIn.getString("payFeeTime"));
|
|
|
+ content.put("receivedAmount", paramIn.getString("receivedAmount") + "元");
|
|
|
+ content.put("url", paramIn.getString("wechatUrl"));
|
|
|
+ MsgNotifyFactory.sendPayFeeMsg(payFeeDetailPo.getCommunityId(), userId, content, MsgNotifyFactory.ROLE_STAFF);
|
|
|
+
|
|
|
} catch (Exception e) {
|
|
|
logger.error("发送缴费信息失败", e);
|
|
|
}
|
|
|
@@ -427,22 +331,8 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
|
|
|
logger.info("未配置微信公众号信息,定时任务执行结束");
|
|
|
return;
|
|
|
}
|
|
|
- SmallWeChatDto weChatDto = smallWeChatDtos.get(0);
|
|
|
- SmallWechatAttrDto smallWechatAttrDto = new SmallWechatAttrDto();
|
|
|
- smallWechatAttrDto.setCommunityId(communityDto.getCommunityId());
|
|
|
- smallWechatAttrDto.setWechatId(weChatDto.getWeChatId());
|
|
|
- smallWechatAttrDto.setSpecCd(SmallWechatAttrDto.SPEC_CD_WECHAT_SUCCESS_TEMPLATE);
|
|
|
- List<SmallWechatAttrDto> smallWechatAttrDtos = smallWechatAttrInnerServiceSMOImpl.querySmallWechatAttrs(smallWechatAttrDto);
|
|
|
- if (smallWechatAttrDtos == null || smallWechatAttrDtos.size() <= 0) {
|
|
|
- logger.info("未配置微信公众号消息模板");
|
|
|
- return;
|
|
|
- }
|
|
|
- String templateId = smallWechatAttrDtos.get(0).getValue();
|
|
|
- String accessToken = WechatFactory.getAccessToken(weChatDto.getAppId(), weChatDto.getAppSecret());
|
|
|
- if (StringUtil.isEmpty(accessToken)) {
|
|
|
- logger.info("推送微信模板,获取accessToken失败:{}", accessToken);
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
FeeDto feeDto = new FeeDto();
|
|
|
feeDto.setFeeId(payFeeDetailPo.getFeeId());
|
|
|
feeDto.setCommunityId(payFeeDetailPo.getCommunityId());
|
|
|
@@ -486,94 +376,37 @@ public class MachinePaymentNoticeAdapt extends DatabusAdaptImpl {
|
|
|
ownerAppUserDto.setMemberId(memberId);
|
|
|
ownerAppUserDto.setAppType("WECHAT");
|
|
|
List<OwnerAppUserDto> ownerAppUserDtos = ownerAppUserInnerServiceSMO.queryOwnerAppUsers(ownerAppUserDto);
|
|
|
- if (ownerAppUserDtos.size() > 0) {
|
|
|
- //获取openId
|
|
|
- String openId = ownerAppUserDtos.get(0).getOpenId();
|
|
|
- String url = sendMsgUrl + accessToken;
|
|
|
- Data data = new Data();
|
|
|
- PropertyFeeTemplateMessage templateMessage = new PropertyFeeTemplateMessage();
|
|
|
- templateMessage.setTemplate_id(templateId);
|
|
|
- templateMessage.setTouser(openId);
|
|
|
- if (!StringUtil.isEmpty(paramIn.getString("state")) && paramIn.getString("state").equals("1300")) {
|
|
|
- data.setFirst(new Content("本次退费已到账"));
|
|
|
- } else {
|
|
|
- data.setFirst(new Content("本次缴费已到账"));
|
|
|
- }
|
|
|
- if (payerObjType.equals("3333")) { //房屋
|
|
|
- data.setKeyword1(new Content(paramIn.getString("payFeeRoom")));
|
|
|
- data.setKeyword2(new Content(paramIn.getString("feeTypeCdName")));
|
|
|
- } else { //车辆
|
|
|
- data.setKeyword1(new Content(communityDto.getName() + "-" + paramIn.getString("num") + "-" + paramIn.getString("spaceNum")));
|
|
|
- data.setKeyword2(new Content(paramIn.getString("feeTypeCdName") + "-" + paramIn.getString("carNum")));
|
|
|
- }
|
|
|
- data.setKeyword3(new Content(paramIn.getString("payFeeTime")));
|
|
|
- if (!StringUtil.isEmpty(paramIn.getString("state")) && paramIn.getString("state").equals("1300")) {
|
|
|
- //获取退费金额
|
|
|
- double receivedAmount = Double.parseDouble(paramIn.getString("receivedAmount"));
|
|
|
- double money = receivedAmount * (-1.00);
|
|
|
- data.setKeyword4(new Content("退费" + money + "元"));
|
|
|
- } else {
|
|
|
- data.setKeyword4(new Content(paramIn.getString("receivedAmount") + "元"));
|
|
|
- }
|
|
|
- data.setRemark(new Content("感谢您的使用,如有疑问请联系相关物业人员"));
|
|
|
- templateMessage.setData(data);
|
|
|
- //获取业主公众号地址
|
|
|
- String wechatUrl = UrlCache.getOwnerUrl();
|
|
|
- if (!StringUtil.isEmpty(wechatUrl) && wechatUrl.contains("?")) {
|
|
|
- wechatUrl += ("&wAppId=" + smallWeChatDtos.get(0).getAppId());
|
|
|
- } else {
|
|
|
- wechatUrl += ("?wAppId=" + smallWeChatDtos.get(0).getAppId());
|
|
|
- }
|
|
|
- templateMessage.setUrl(wechatUrl);
|
|
|
- logger.info("发送模板消息内容:{}", JSON.toJSONString(templateMessage));
|
|
|
- ResponseEntity<String> responseEntity = outRestTemplate.postForEntity(url, JSON.toJSONString(templateMessage), String.class);
|
|
|
- logger.info("微信模板返回内容:{}", responseEntity);
|
|
|
+ if (ownerAppUserDtos == null || ownerAppUserDtos.size() < 1) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ JSONObject content = new JSONObject();
|
|
|
+ if (payerObjType.equals(FeeDto.PAYER_OBJ_TYPE_ROOM)) { //房屋
|
|
|
+ content.put("payFeeRoom", paramIn.getString("payFeeRoom"));
|
|
|
+ content.put("feeTypeCdName", paramIn.getString("feeTypeCdName"));
|
|
|
+ } else { //车辆
|
|
|
+ content.put("payFeeRoom", communityDto.getName() + "-" + paramIn.getString("num") + "-" + paramIn.getString("spaceNum"));
|
|
|
+ content.put("feeTypeCdName", paramIn.getString("feeTypeCdName") + "-" + paramIn.getString("carNum"));
|
|
|
+ }
|
|
|
+ content.put("payFeeTime", paramIn.getString("payFeeTime"));
|
|
|
+
|
|
|
+ //todo 退费
|
|
|
+ if (FeeDetailDto.STATE_RETURN_ORDER.equals(paramIn.getString("state"))) {
|
|
|
+ //获取退费金额
|
|
|
+ double receivedAmount = Double.parseDouble(paramIn.getString("receivedAmount"));
|
|
|
+ double money = receivedAmount * (-1.00);
|
|
|
+ content.put("receivedAmount", money + "元");
|
|
|
} else {
|
|
|
- //获取业主手机号
|
|
|
- String tel = ownerDtos.get(0).getLink();
|
|
|
- //获取业主姓名
|
|
|
- String name = ownerDtos.get(0).getName();
|
|
|
- //获取费用类型
|
|
|
- String feeTypeCdName = paramIn.getString("feeTypeCdName");
|
|
|
- //获取费用开始时间
|
|
|
- String startTime = paramIn.getString("startTime");
|
|
|
- //获取费用结束时间
|
|
|
- String endTime = paramIn.getString("endTime");
|
|
|
- //获取缴费金额
|
|
|
- String receivedAmount = paramIn.getString("receivedAmount");
|
|
|
- //获取房屋号
|
|
|
- String payFeeRoom = paramIn.getString("payFeeRoom");
|
|
|
- DefaultProfile profile = DefaultProfile.getProfile(MappingCache.getValue(ALI_SMS_DOMAIN, "region"),
|
|
|
- MappingCache.getValue(ALI_SMS_DOMAIN, "accessKeyId"),
|
|
|
- MappingCache.getValue(ALI_SMS_DOMAIN, "accessSecret"));
|
|
|
- IAcsClient client = new DefaultAcsClient(profile);
|
|
|
-
|
|
|
- CommonRequest request = new CommonRequest();
|
|
|
- request.setSysMethod(MethodType.POST);
|
|
|
- request.setSysDomain("dysmsapi.aliyuncs.com");
|
|
|
- request.setSysVersion("2017-05-25");
|
|
|
- request.setSysAction("SendSms");
|
|
|
- request.putQueryParameter("RegionId", MappingCache.getValue(ALI_SMS_DOMAIN, "region"));
|
|
|
- request.putQueryParameter("PhoneNumbers", tel);
|
|
|
- request.putQueryParameter("SignName", MappingCache.getValue(ALI_SMS_DOMAIN, "signName"));
|
|
|
- //获取模板编码(SMS_207160078为缴费成功提示模板编码)
|
|
|
- String payFeeCode = MappingCache.getValue(ALI_SMS_DOMAIN, "PayFeeCode");
|
|
|
- String substring = "";
|
|
|
- if (!StringUtil.isEmpty(payFeeCode)) {
|
|
|
- substring = payFeeCode.substring(0, 4);
|
|
|
- }
|
|
|
- if (substring.equals("SMS_")) {
|
|
|
- request.putQueryParameter("TemplateCode", payFeeCode);
|
|
|
- }
|
|
|
- request.putQueryParameter("TemplateParam", "{\"user\":" + "\"" + name + "\"" + "," + "\"house\":" + "\"" + payFeeRoom + "\"" + "," + "\"feeType\":" + "\"" + feeTypeCdName + "\"" + "," + "\"startTime\":" + "\"" + startTime + "\"" + "," + "\"endTime\":" + "\"" + endTime + "\"" + "," + "\"mount\":" + "\"" + receivedAmount + "\"" + "}");
|
|
|
- try {
|
|
|
- CommonResponse response = client.getCommonResponse(request);
|
|
|
- logger.debug("发送短信:{}", response.getData());
|
|
|
- } catch (ServerException e) {
|
|
|
- e.printStackTrace();
|
|
|
- } catch (ClientException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
+ content.put("receivedAmount", paramIn.getString("receivedAmount") + "元");
|
|
|
}
|
|
|
+ //获取业主公众号地址
|
|
|
+ String wechatUrl = UrlCache.getOwnerUrl();
|
|
|
+ if (!StringUtil.isEmpty(wechatUrl) && wechatUrl.contains("?")) {
|
|
|
+ wechatUrl += ("&wAppId=" + smallWeChatDtos.get(0).getAppId());
|
|
|
+ } else {
|
|
|
+ wechatUrl += ("?wAppId=" + smallWeChatDtos.get(0).getAppId());
|
|
|
+ }
|
|
|
+ content.put("url", wechatUrl);
|
|
|
+ MsgNotifyFactory.sendPayFeeMsg(payFeeDetailPo.getCommunityId(), ownerAppUserDtos.get(0).getUserId(), content, MsgNotifyFactory.ROLE_OWNER);
|
|
|
+
|
|
|
}
|
|
|
}
|