来款
This commit is contained in:
+4
-9
@@ -447,17 +447,12 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
|
|||||||
//更新来款记录主表
|
//更新来款记录主表
|
||||||
payPaymentRecordMapper.updateById(payPaymentRecord);
|
payPaymentRecordMapper.updateById(payPaymentRecord);
|
||||||
//更新来款记录表子表
|
//更新来款记录表子表
|
||||||
// PayPaymentRecordSub payPaymentRecordSub = new PayPaymentRecordSub();
|
|
||||||
// BeanUtils.copyProperties(payPaymentRecord, payPaymentRecordSub);
|
|
||||||
|
|
||||||
|
|
||||||
LambdaUpdateWrapper<PayPaymentRecordSub> wrapper = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<PayPaymentRecordSub> wrapper = new LambdaUpdateWrapper<>();
|
||||||
wrapper.eq(PayPaymentRecordSub::getRecordId,payPaymentRecord.getId());
|
wrapper.eq(PayPaymentRecordSub::getRecordId,payPaymentRecord.getId());
|
||||||
wrapper.eq(PayPaymentRecordSub::getProjectId,payPaymentRecord.getProjectId());
|
wrapper.eq(PayPaymentRecordSub::getProjectId,payPaymentRecord.getProjectId());
|
||||||
wrapper.orderByDesc(PayPaymentRecordSub::getCreateTime);
|
wrapper.orderByDesc(PayPaymentRecordSub::getCreateTime);
|
||||||
// payPaymentCheckMapper.update(payPaymentRecordSub,wrapper);
|
|
||||||
|
|
||||||
PayPaymentRecordSub sub = payPaymentCheckMapper.selectList(wrapper).get(0);
|
PayPaymentRecordSub sub = payPaymentCheckMapper.selectList(wrapper).get(0);
|
||||||
|
|
||||||
sub.setRemark(payPaymentRecord.getRemark());
|
sub.setRemark(payPaymentRecord.getRemark());
|
||||||
sub.setPaymentStatus(payPaymentRecord.getPaymentStatus());
|
sub.setPaymentStatus(payPaymentRecord.getPaymentStatus());
|
||||||
sub.setReviewerId(payPaymentRecord.getReviewerId());
|
sub.setReviewerId(payPaymentRecord.getReviewerId());
|
||||||
@@ -641,9 +636,9 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
|
|||||||
}
|
}
|
||||||
|
|
||||||
//通过消息
|
//通过消息
|
||||||
payPaymentRecordService.sendMessage( principalId,project, payPaymentRecord,listId);
|
// payPaymentRecordService.sendMessage( principalId,project, payPaymentRecord,listId);
|
||||||
//拒绝消息
|
// //拒绝消息
|
||||||
checkSendMessage(payPaymentRecord.getCreateBy(), principalId,project, String.valueOf(payPaymentRecord.getProjectType()));
|
// checkSendMessage(payPaymentRecord.getCreateBy(), principalId,project, String.valueOf(payPaymentRecord.getProjectType()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+18
@@ -35,6 +35,7 @@ import com.jero.modules.system.entity.SysUser;
|
|||||||
import com.jero.modules.system.service.ISysUserService;
|
import com.jero.modules.system.service.ISysUserService;
|
||||||
import com.jero.payment.entity.PayPaymentRecord;
|
import com.jero.payment.entity.PayPaymentRecord;
|
||||||
import com.jero.payment.mapper.PayPaymentRecordMapper;
|
import com.jero.payment.mapper.PayPaymentRecordMapper;
|
||||||
|
import com.jero.payment.service.IPayPaymentCheckService;
|
||||||
import com.jero.payment.service.IPayPaymentRecordService;
|
import com.jero.payment.service.IPayPaymentRecordService;
|
||||||
import com.jero.payment.vo.TbCheckVo;
|
import com.jero.payment.vo.TbCheckVo;
|
||||||
import com.jero.project.common.PayProjectCommon;
|
import com.jero.project.common.PayProjectCommon;
|
||||||
@@ -56,6 +57,7 @@ import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|||||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||||
import org.jeecgframework.poi.excel.entity.enmus.ExcelType;
|
import org.jeecgframework.poi.excel.entity.enmus.ExcelType;
|
||||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@@ -109,6 +111,8 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
private ITbMemberProjectService tbMemberProjectService;
|
private ITbMemberProjectService tbMemberProjectService;
|
||||||
@Resource
|
@Resource
|
||||||
private TbCertificatePaymentMapper certificatePaymentMapper;
|
private TbCertificatePaymentMapper certificatePaymentMapper;
|
||||||
|
@Autowired
|
||||||
|
private IPayPaymentCheckService payPaymentCheckService;
|
||||||
|
|
||||||
@Value("${jero.path.upload}")
|
@Value("${jero.path.upload}")
|
||||||
private String upLoadPath;
|
private String upLoadPath;
|
||||||
@@ -287,6 +291,7 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
|
|
||||||
BigDecimal newPaidAmount;
|
BigDecimal newPaidAmount;
|
||||||
Integer inAccount;
|
Integer inAccount;
|
||||||
|
String paymentStatus;
|
||||||
String principalId = "";
|
String principalId = "";
|
||||||
String project = "";
|
String project = "";
|
||||||
List<PayContactsManagementTemporary> listId = new ArrayList<>();
|
List<PayContactsManagementTemporary> listId = new ArrayList<>();
|
||||||
@@ -310,10 +315,12 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
|
|
||||||
newPaidAmount =addPaidAmount(payCommonProject.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
newPaidAmount =addPaidAmount(payCommonProject.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
||||||
inAccount = getInAccount(payCommonProject.getReceivableAmount(), newPaidAmount);//到账状态
|
inAccount = getInAccount(payCommonProject.getReceivableAmount(), newPaidAmount);//到账状态
|
||||||
|
paymentStatus = payPaymentCheckService.getPaymentStatus(payCommonProject.getReceivableAmount(), newPaidAmount, PaymentStatusEnum.COMPLETED.getCode());//缴费状态
|
||||||
|
|
||||||
//更新主列表
|
//更新主列表
|
||||||
payCommonProject.setPaidAmount(newPaidAmount);
|
payCommonProject.setPaidAmount(newPaidAmount);
|
||||||
payCommonProject.setInAccount(inAccount);
|
payCommonProject.setInAccount(inAccount);
|
||||||
|
payCommonProject.setPaymentStatus(paymentStatus);
|
||||||
payCommonProjectMapper.updateById(payCommonProject);
|
payCommonProjectMapper.updateById(payCommonProject);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -344,10 +351,12 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
|
|
||||||
newPaidAmount =addPaidAmount(payWorking.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
newPaidAmount =addPaidAmount(payWorking.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
||||||
inAccount = getInAccount(payWorking.getReceivableAmount(), newPaidAmount);//到账状态
|
inAccount = getInAccount(payWorking.getReceivableAmount(), newPaidAmount);//到账状态
|
||||||
|
paymentStatus = payPaymentCheckService.getPaymentStatus(payWorking.getReceivableAmount(), newPaidAmount, PaymentStatusEnum.COMPLETED.getCode());//缴费状态
|
||||||
|
|
||||||
//更新主列表
|
//更新主列表
|
||||||
payWorking.setPaidAmount(newPaidAmount);
|
payWorking.setPaidAmount(newPaidAmount);
|
||||||
payWorking.setInAccount(inAccount);
|
payWorking.setInAccount(inAccount);
|
||||||
|
payWorking.setPaymentStatus(paymentStatus);
|
||||||
payWorkingGroupSubItemMapper.updateById(payWorking);
|
payWorkingGroupSubItemMapper.updateById(payWorking);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -368,10 +377,12 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
|
|
||||||
newPaidAmount =addPaidAmount(meeting.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
newPaidAmount =addPaidAmount(meeting.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
||||||
inAccount = getInAccount(meeting.getAmountReceivable(), newPaidAmount);//到账状态
|
inAccount = getInAccount(meeting.getAmountReceivable(), newPaidAmount);//到账状态
|
||||||
|
paymentStatus = payPaymentCheckService.getPaymentStatus(meeting.getAmountReceivable(), newPaidAmount, PaymentStatusEnum.COMPLETED.getCode());//缴费状态
|
||||||
|
|
||||||
//更新主列表
|
//更新主列表
|
||||||
meeting.setPaidAmount(newPaidAmount);
|
meeting.setPaidAmount(newPaidAmount);
|
||||||
meeting.setInAccount(inAccount);
|
meeting.setInAccount(inAccount);
|
||||||
|
meeting.setPaymentStatus(paymentStatus);
|
||||||
payMeetingSituationMapper.updateById(meeting);
|
payMeetingSituationMapper.updateById(meeting);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -390,10 +401,13 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
|
|
||||||
newPaidAmount =addPaidAmount(member.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
newPaidAmount =addPaidAmount(member.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
||||||
inAccount = getInAccount(member.getAmountReceivable(), newPaidAmount);//到账状态
|
inAccount = getInAccount(member.getAmountReceivable(), newPaidAmount);//到账状态
|
||||||
|
paymentStatus = payPaymentCheckService.getPaymentStatus(member.getAmountReceivable(), newPaidAmount, PaymentStatusEnum.COMPLETED.getCode());//缴费状态
|
||||||
|
|
||||||
|
|
||||||
//更新主列表
|
//更新主列表
|
||||||
member.setPaidAmount(newPaidAmount);
|
member.setPaidAmount(newPaidAmount);
|
||||||
member.setInAccount(inAccount);
|
member.setInAccount(inAccount);
|
||||||
|
member.setPaymentStatus(paymentStatus);
|
||||||
payMemberProjectSubitemMapper.updateById(member);
|
payMemberProjectSubitemMapper.updateById(member);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -414,10 +428,12 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
|
|
||||||
newPaidAmount =addPaidAmount(tbMember.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
newPaidAmount =addPaidAmount(tbMember.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
||||||
inAccount = getInAccount(tbMember.getAmountReceivable(), newPaidAmount);//到账状态
|
inAccount = getInAccount(tbMember.getAmountReceivable(), newPaidAmount);//到账状态
|
||||||
|
paymentStatus = payPaymentCheckService.getPaymentStatus(tbMember.getAmountReceivable(), newPaidAmount, PaymentStatusEnum.COMPLETED.getCode());//缴费状态
|
||||||
|
|
||||||
//更新主列表
|
//更新主列表
|
||||||
tbMember.setPaidAmount(newPaidAmount);
|
tbMember.setPaidAmount(newPaidAmount);
|
||||||
tbMember.setInAccount(inAccount);
|
tbMember.setInAccount(inAccount);
|
||||||
|
tbMember.setPaymentStatus(paymentStatus);
|
||||||
tbMemberProjectSubitemMapper.updateById(tbMember);
|
tbMemberProjectSubitemMapper.updateById(tbMember);
|
||||||
|
|
||||||
//拼装推到标协缴费的参数
|
//拼装推到标协缴费的参数
|
||||||
@@ -445,10 +461,12 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
|
|
||||||
newPaidAmount =addPaidAmount(tbMemberCertificate.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
newPaidAmount =addPaidAmount(tbMemberCertificate.getPaidAmount(),payPaymentRecord.getAmountReceived());//累加实收
|
||||||
inAccount = getInAccount(tbMemberCertificate.getAmountReceivable(), newPaidAmount);//到账状态
|
inAccount = getInAccount(tbMemberCertificate.getAmountReceivable(), newPaidAmount);//到账状态
|
||||||
|
paymentStatus = payPaymentCheckService.getPaymentStatus(tbMemberCertificate.getAmountReceivable(), newPaidAmount, PaymentStatusEnum.COMPLETED.getCode());//缴费状态
|
||||||
|
|
||||||
//更新主列表
|
//更新主列表
|
||||||
tbMemberCertificate.setPaidAmount(newPaidAmount);
|
tbMemberCertificate.setPaidAmount(newPaidAmount);
|
||||||
tbMemberCertificate.setInAccount(inAccount);
|
tbMemberCertificate.setInAccount(inAccount);
|
||||||
|
tbMemberCertificate.setPaymentStatus(paymentStatus);
|
||||||
certificatePaymentMapper.updateById(tbMemberCertificate);
|
certificatePaymentMapper.updateById(tbMemberCertificate);
|
||||||
|
|
||||||
//拼装推到标协缴费的参数
|
//拼装推到标协缴费的参数
|
||||||
|
|||||||
Reference in New Issue
Block a user