提交 a678fbd2 authored 作者: huyufan's avatar huyufan

处理BUG

上级 981c7b7c
...@@ -3,6 +3,7 @@ package com.clx.performance.dao.impl; ...@@ -3,6 +3,7 @@ package com.clx.performance.dao.impl;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clx.performance.dao.OwnerRunningWaterRecordDao; import com.clx.performance.dao.OwnerRunningWaterRecordDao;
import com.clx.performance.enums.OwnerAccountEnum;
import com.clx.performance.mapper.OwnerRunningWaterRecordMapper; import com.clx.performance.mapper.OwnerRunningWaterRecordMapper;
import com.clx.performance.model.OwnerRunningWaterRecord; import com.clx.performance.model.OwnerRunningWaterRecord;
import com.clx.performance.param.pc.PageOwnerAccountRunningWaterParam; import com.clx.performance.param.pc.PageOwnerAccountRunningWaterParam;
...@@ -38,6 +39,7 @@ public class OwnerRunningWaterRecordDaoImpl extends BaseDaoImpl<OwnerRunningWate ...@@ -38,6 +39,7 @@ public class OwnerRunningWaterRecordDaoImpl extends BaseDaoImpl<OwnerRunningWate
@Override @Override
public List<OwnerRunningWaterRecord> getOwnerRunningWaterRecord(String orderNo) { public List<OwnerRunningWaterRecord> getOwnerRunningWaterRecord(String orderNo) {
return baseMapper.selectList(lQrWrapper().eq(OwnerRunningWaterRecord::getOrderNo, orderNo) return baseMapper.selectList(lQrWrapper().eq(OwnerRunningWaterRecord::getOrderNo, orderNo)
.eq(OwnerRunningWaterRecord::getRunningWaterType, OwnerAccountEnum.RunningWaterStatus.FROZEN.getCode())
.isNull(OwnerRunningWaterRecord::getOrderChildNo) .isNull(OwnerRunningWaterRecord::getOrderChildNo)
); );
} }
......
...@@ -788,10 +788,12 @@ public class OwnerAccountServiceImpl implements OwnerAccountService { ...@@ -788,10 +788,12 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
for (OwnerRunningWaterRecord runningWaterRecord : list) { for (OwnerRunningWaterRecord runningWaterRecord : list) {
OwnerAccount account = ownerAccountDao.getAccountByOwnerUserNoAndAccountType(runningWaterRecord.getOwnerUserNo(), runningWaterRecord.getAccountType()); OwnerAccount account = ownerAccountDao.getAccountByOwnerUserNoAndAccountType(runningWaterRecord.getOwnerUserNo(), runningWaterRecord.getAccountType());
OwnerAccount entity = new OwnerAccount(); OwnerAccount entity = new OwnerAccount();
entity.setId(entity.getId()); entity.setId(account.getId());
entity.setModifiedTime(entity.getModifiedTime()); entity.setModifiedTime(account.getModifiedTime());
entity.setAccountBalance(runningWaterRecord.getAlterationBalance()); entity.setAccountBalance(runningWaterRecord.getAlterationBalance());
flag += ownerAccountDao.thawAccount(account, LocalDateTime.now()); entity.setUsableBalance(runningWaterRecord.getAlterationBalance());
entity.setFrozenBalance(runningWaterRecord.getAlterationBalance());
flag += ownerAccountDao.thawAccount(entity, LocalDateTime.now());
} }
if (flag == 2) { if (flag == 2) {
log.info("解冻预付运费、保证金账户,账户扣款已处理,开始执行插入相关流水"); log.info("解冻预付运费、保证金账户,账户扣款已处理,开始执行插入相关流水");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论