From e4cdfe7a09e6bf431965359e319e671f1f17b24e Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期一, 03 六月 2024 11:18:40 +0800
Subject: [PATCH] 花城 议事投票评论删除 评论数不正确2
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java
index 114bcf9..37d3d22 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java
@@ -94,7 +94,7 @@
houseRegister.setCreateAt(nowDate);
houseRegister.setUpdateAt(nowDate);
try {
- WxMaQrcodeService qrCodeService = wxMaConfiguration.getMaService().getQrcodeService();
+ WxMaQrcodeService qrCodeService = wxMaConfiguration.getMaService(registerDTO.getAreaCode()).getQrcodeService();
byte[] bytes = qrCodeService.createWxaCodeUnlimitBytes("id=" + houseRegister.getId() + "&type=6",
minAppJumpPage, 30, true, null, false);
String authCode = String.format("data:image/png;base64,%s", Base64.encode(bytes));
@@ -181,9 +181,9 @@
}
private void checkDepositMoney(RentingHouseRegisterDTO registerDTO) {
- BigDecimal depositMoney = registerDTO.getDepositMoney();
+ BigDecimal dingMoney = registerDTO.getDingMoney();
BigDecimal monthlyRentMoney = registerDTO.getMonthlyRentMoney();
- if (nonNull(depositMoney) && nonNull(monthlyRentMoney) && depositMoney.compareTo(monthlyRentMoney) == 1) {
+ if (nonNull(dingMoney) && nonNull(monthlyRentMoney) && dingMoney.compareTo(monthlyRentMoney) == 1) {
throw new ServiceException("500", "定金不能超过月租金");
}
}
@@ -427,7 +427,7 @@
public R nearby(NearbyDTO nearbyDTO) {
Rectangle rectangle =new NearbyUtil().getRectangle(nearbyDTO.getDistance(), Double.parseDouble(nearbyDTO.getLongitude()), Double.parseDouble(nearbyDTO.getLatitude()));
return R.ok(this.baseMapper.nearby(rectangle.getMinX(),rectangle.getMaxX(),
- rectangle.getMinY(),rectangle.getMaxY(),nearbyDTO.getKeyword(), nearbyDTO.getCommunityId()));
+ rectangle.getMinY(),rectangle.getMaxY(), nearbyDTO));
}
@Override
@@ -439,12 +439,12 @@
}
@Override
- public void updateAllHouseUnionAppCode() {
+ public void updateAllHouseUnionAppCode(String areaCode) {
List<RentingHourseRegister> list = this.baseMapper.selectList(null);
if (!list.isEmpty()) {
list.stream().forEach(houseRegister -> {
try {
- WxMaQrcodeService qrCodeService = wxMaConfiguration.getMaService().getQrcodeService();
+ WxMaQrcodeService qrCodeService = wxMaConfiguration.getMaService(areaCode).getQrcodeService();
byte[] bytes = qrCodeService.createWxaCodeUnlimitBytes("id=" + houseRegister.getId() + "&type=6",
minAppJumpPage, 30, true, null, false);
String authCode = String.format("data:image/png;base64,%s", Base64.encode(bytes));
--
Gitblit v1.7.1