当前登录人

This commit is contained in:
baozhipeng
2021-12-17 15:01:16 +08:00
parent 223f2236dc
commit e609a57af9
2 changed files with 5 additions and 3 deletions
@@ -153,7 +153,7 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
LambdaQueryWrapper<PayPaymentRecordSub> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(PayPaymentRecordSub::getProjectId, id);
wrapper.ne(PayPaymentRecordSub::getPaymentStatus, PaymentStatusEnum.TO_BE_REVIEWED.getCode());
wrapper.orderByAsc(PayPaymentRecordSub::getPaymentDate);
wrapper.orderByAsc(PayPaymentRecordSub::getPaymentDate,PayPaymentRecordSub::getCreateTime);
List<PayPaymentRecordSub> list = payPaymentCheckService.list(wrapper);
list.forEach(p -> {
if (StringUtils.isNotBlank(p.getPaymentStatus())) {
@@ -408,7 +408,7 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
payPaymentRecord.setReviewTime(new Date());
payPaymentRecordMapper.updateById(payPaymentRecord);
//新来款记录表子表
//新来款记录表子表
PayPaymentRecordSub payPaymentRecordSub = new PayPaymentRecordSub();
BeanUtils.copyProperties(payPaymentRecord, payPaymentRecordSub);
@@ -416,6 +416,8 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
LambdaUpdateWrapper<PayPaymentRecordSub> wrapper = new LambdaUpdateWrapper<>();
wrapper.eq(PayPaymentRecordSub::getRecordId,payPaymentRecord.getId());
wrapper.eq(PayPaymentRecordSub::getProjectId,payPaymentRecord.getProjectId());
wrapper.orderByDesc(PayPaymentRecordSub::getCreateTime);
wrapper.last("limit 1");
payPaymentCheckMapper.update(payPaymentRecordSub,wrapper);
BigDecimal newPaidAmount;
@@ -124,7 +124,7 @@ public class SysBaseApiImpl implements ISysBaseAPI {
}else {
BeanUtils.copyProperties(contactsManagement, loginUser);
loginUser.setIsCompanyUser(true);
loginUser.setUsername(contactsManagement.getName());
loginUser.setUsername(contactsManagement.getPhone());
loginUser.setRealname(contactsManagement.getName());
loginUser.setRoleCode("企业用户");
}