| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.factory.WechatFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import com.java110.dto.basePrivilege.BasePrivilegeDto; |
| | | import com.java110.dto.privilege.BasePrivilegeDto; |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.dto.owner.OwnerAppUserDto; |
| | | import com.java110.dto.owner.OwnerDto; |
| | | import com.java110.dto.parking.ParkingAreaDto; |
| | | import com.java110.dto.parking.ParkingSpaceDto; |
| | | import com.java110.dto.smallWeChat.SmallWeChatDto; |
| | | import com.java110.dto.smallWechatAttr.SmallWechatAttrDto; |
| | | import com.java110.dto.staffAppAuth.StaffAppAuthDto; |
| | | import com.java110.dto.wechat.SmallWeChatDto; |
| | | import com.java110.dto.wechat.SmallWechatAttrDto; |
| | | import com.java110.dto.user.StaffAppAuthDto; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.dto.visit.VisitDto; |
| | | import com.java110.dto.visitSetting.VisitSettingDto; |
| | | import com.java110.entity.order.Business; |
| | | import com.java110.entity.wechat.Content; |
| | | import com.java110.entity.wechat.Data; |
| | | import com.java110.entity.wechat.PropertyFeeTemplateMessage; |
| | | import com.java110.dto.visit.VisitSettingDto; |
| | | import com.java110.dto.system.Business; |
| | | import com.java110.dto.wechat.Content; |
| | | import com.java110.dto.wechat.Data; |
| | | import com.java110.dto.wechat.PropertyFeeTemplateMessage; |
| | | import com.java110.intf.community.*; |
| | | import com.java110.intf.order.IPrivilegeInnerServiceSMO; |
| | | import com.java110.intf.store.ISmallWeChatInnerServiceSMO; |
| | |
| | | for (int bVisitIndex = 0; bVisitIndex < businessVisits.size(); bVisitIndex++) { |
| | | JSONObject businessVisit = businessVisits.getJSONObject(bVisitIndex); |
| | | if (businessVisit.containsKey("carNum") && !StringUtil.isEmpty(businessVisit.getString("carNum"))) { //有车辆 |
| | | publishMsg(business, businessVisit); //访客登记给有预约车审核权限的员工推送消息 |
| | | // publishMsg(business, businessVisit); //访客登记给有预约车审核权限的员工推送消息 |
| | | } |
| | | } |
| | | } |
| | |
| | | data.setKeyword4(new Content(ownerDtos.get(0).getName() + "提交的访客预约车辆-" + visitPo.getCarNum() + ",需要进行车辆审核。")); |
| | | data.setKeyword5(new Content("待审核")); |
| | | data.setRemark(new Content("请及时处理!")); |
| | | templateMessage.setData(data); |
| | | templateMessage.setData(BeanConvertUtil.beanCovertJson(data)); |
| | | |
| | | //获取员工公众号地址 |
| | | String wechatUrl = MappingCache.getValue(MappingConstant.URL_DOMAIN, "STAFF_WECHAT_URL"); |
| | | templateMessage.setUrl(wechatUrl); |
| | |
| | | } |
| | | } |
| | | } else if (!StringUtil.isEmpty(visitDtos.get(0).getCarState()) && (visitDtos.get(0).getCarState().equals("1") || visitDtos.get(0).getCarState().equals("2"))) { //车辆不需要审核,此时给业主发信息 |
| | | sendMessage(visitDtos); //给业主推送消息 |
| | | // sendMessage(visitDtos); //给业主推送消息 |
| | | } |
| | | } |
| | | |
| | |
| | | data.setKeyword3(new Content(visitDtos.get(0).getStateRemark())); |
| | | data.setRemark(new Content("访客预约车辆审核未通过,请您合理安排出行!")); |
| | | } |
| | | templateMessage.setData(data); |
| | | templateMessage.setData(BeanConvertUtil.beanCovertJson(data)); |
| | | |
| | | //获取业主公众号地址 |
| | | String wechatUrl = UrlCache.getOwnerUrl(); |
| | | templateMessage.setUrl(wechatUrl); |