当前登录人
This commit is contained in:
+4
-2
@@ -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;
|
||||
|
||||
+1
-1
@@ -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("企业用户");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user