|
@@ -135,6 +135,7 @@ public class AccountServiceImpl implements AccountService {
|
|
|
// 获取所有待缴费账单
|
|
|
List<SwBillManagementUnpaidDo> outstandingBills = swBillManagementUnpaidService.list(new LambdaQueryWrapper<SwBillManagementUnpaidDo>()
|
|
|
.eq(SwBillManagementUnpaidDo::getDeleted, 0)
|
|
|
+ .eq(SwBillManagementUnpaidDo::getStatus,2)
|
|
|
.eq(SwBillManagementUnpaidDo::getUsernumber, accountNumber));
|
|
|
WeChatHomePageVo weChatHomePageVo = new WeChatHomePageVo();
|
|
|
BeanUtils.copyProperties(list.get(0), weChatHomePageVo);
|
|
@@ -189,16 +190,16 @@ public class AccountServiceImpl implements AccountService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 检查该户号是否还有其他微信绑定记录
|
|
|
long count = swUserWechatService.count(new LambdaQueryWrapper<SwUserWechatDo>()
|
|
|
.eq(SwUserWechatDo::getUserno, account)
|
|
|
.ne(SwUserWechatDo::getWechatsign, currentWeChatOpenId)
|
|
|
.eq(SwUserWechatDo::getDeleted, 0));
|
|
|
-
|
|
|
+
|
|
|
// 删除绑定关系
|
|
|
swUserManagementService.getBaseMapper().unbindAccount(dsKey, currentWeChatOpenId, account);
|
|
|
-
|
|
|
+
|
|
|
// 如果没有其他微信绑定该户号,则将WECHATBINDSTATUS设置为null
|
|
|
if (count == 0) {
|
|
|
swUserManagementService.update(new LambdaUpdateWrapper<SwUserManagementDo>()
|
|
@@ -256,14 +257,14 @@ public class AccountServiceImpl implements AccountService {
|
|
|
public R updateReadStatusAll(ReadStatusVo readStatusVo) {
|
|
|
//获取微信标识
|
|
|
String openId = WeChatUtils.getCurrentWeChatOpenId();
|
|
|
-
|
|
|
+
|
|
|
// 获取参数
|
|
|
String account = readStatusVo.getAccount();
|
|
|
String deKey = readStatusVo.getDeKey();
|
|
|
-
|
|
|
+
|
|
|
// 更新所有消息读取状态
|
|
|
sysNotifyAnnounceUserDao.updateReadStatusAll(account, deKey, openId);
|
|
|
-
|
|
|
+
|
|
|
return R.ok("更新成功");
|
|
|
}
|
|
|
|