fix 88141 标协会员-编辑金额后,以下状态没有更新
This commit is contained in:
+9
@@ -38,6 +38,7 @@
|
|||||||
c.tax_rate as tax_rate,
|
c.tax_rate as tax_rate,
|
||||||
c.tax as tax,
|
c.tax as tax,
|
||||||
c.no_tax_amount as no_tax_amount,
|
c.no_tax_amount as no_tax_amount,
|
||||||
|
c.confirm_amount as confirm_amount,
|
||||||
c.affirm_income as affirm_income
|
c.affirm_income as affirm_income
|
||||||
from pay_common_project c
|
from pay_common_project c
|
||||||
left join sys_user su on c.principal_id = su.id
|
left join sys_user su on c.principal_id = su.id
|
||||||
@@ -82,6 +83,7 @@
|
|||||||
c.tax_rate as tax_rate,
|
c.tax_rate as tax_rate,
|
||||||
c.tax as tax,
|
c.tax as tax,
|
||||||
c.no_tax_amount as no_tax_amount,
|
c.no_tax_amount as no_tax_amount,
|
||||||
|
c.confirm_amount as confirm_amount,
|
||||||
affirm_income
|
affirm_income
|
||||||
from pay_working_group g
|
from pay_working_group g
|
||||||
left join sys_user su on g.principal_id_a = su.id
|
left join sys_user su on g.principal_id_a = su.id
|
||||||
@@ -127,6 +129,7 @@
|
|||||||
c.tax_rate as tax_rate,
|
c.tax_rate as tax_rate,
|
||||||
c.tax as tax,
|
c.tax as tax,
|
||||||
c.no_tax_amount as no_tax_amount,
|
c.no_tax_amount as no_tax_amount,
|
||||||
|
c.confirm_amount as confirm_amount,
|
||||||
affirm_income
|
affirm_income
|
||||||
from pay_meeting meeting
|
from pay_meeting meeting
|
||||||
left join sys_user su on meeting.director_id = su.id
|
left join sys_user su on meeting.director_id = su.id
|
||||||
@@ -172,6 +175,7 @@
|
|||||||
c.tax_rate as tax_rate,
|
c.tax_rate as tax_rate,
|
||||||
c.tax as tax,
|
c.tax as tax,
|
||||||
c.no_tax_amount as no_tax_amount,
|
c.no_tax_amount as no_tax_amount,
|
||||||
|
c.confirm_amount as confirm_amount,
|
||||||
affirm_income
|
affirm_income
|
||||||
from pay_member_project pmp
|
from pay_member_project pmp
|
||||||
left join sys_user su on pmp.director_id = su.id
|
left join sys_user su on pmp.director_id = su.id
|
||||||
@@ -217,6 +221,7 @@
|
|||||||
c.tax_rate as tax_rate,
|
c.tax_rate as tax_rate,
|
||||||
c.tax as tax,
|
c.tax as tax,
|
||||||
c.no_tax_amount as no_tax_amount,
|
c.no_tax_amount as no_tax_amount,
|
||||||
|
c.confirm_amount as confirm_amount,
|
||||||
affirm_income
|
affirm_income
|
||||||
from tb_member_project tmember
|
from tb_member_project tmember
|
||||||
left join sys_user su on tmember.director_id = su.id
|
left join sys_user su on tmember.director_id = su.id
|
||||||
@@ -264,6 +269,7 @@
|
|||||||
c.tax_rate as tax_rate,
|
c.tax_rate as tax_rate,
|
||||||
c.tax as tax,
|
c.tax as tax,
|
||||||
c.no_tax_amount as no_tax_amount,
|
c.no_tax_amount as no_tax_amount,
|
||||||
|
c.confirm_amount as confirm_amount,
|
||||||
affirm_income
|
affirm_income
|
||||||
from tb_member_project tmember
|
from tb_member_project tmember
|
||||||
left join sys_user su on tmember.director_id = su.id
|
left join sys_user su on tmember.director_id = su.id
|
||||||
@@ -309,6 +315,7 @@
|
|||||||
'' as tax_rate,
|
'' as tax_rate,
|
||||||
'' as tax,
|
'' as tax,
|
||||||
'' as no_tax_amount,
|
'' as no_tax_amount,
|
||||||
|
'' as confirm_amount,
|
||||||
''
|
''
|
||||||
FROM
|
FROM
|
||||||
pay_drafting_group g
|
pay_drafting_group g
|
||||||
@@ -357,6 +364,7 @@
|
|||||||
c.tax_rate as tax_rate,
|
c.tax_rate as tax_rate,
|
||||||
c.tax as tax,
|
c.tax as tax,
|
||||||
c.no_tax_amount as no_tax_amount,
|
c.no_tax_amount as no_tax_amount,
|
||||||
|
c.confirm_amount as confirm_amount,
|
||||||
c.income_affirm AS affirm_income
|
c.income_affirm AS affirm_income
|
||||||
from pay_pack_company c
|
from pay_pack_company c
|
||||||
left join sys_user su on c.pack_principal_id = su.id
|
left join sys_user su on c.pack_principal_id = su.id
|
||||||
@@ -402,6 +410,7 @@
|
|||||||
'' as tax_rate,
|
'' as tax_rate,
|
||||||
'' as tax,
|
'' as tax,
|
||||||
'' as no_tax_amount,
|
'' as no_tax_amount,
|
||||||
|
'' as confirm_amount,
|
||||||
''
|
''
|
||||||
FROM
|
FROM
|
||||||
pay_functional_safety_center c
|
pay_functional_safety_center c
|
||||||
|
|||||||
+7
@@ -37,6 +37,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.service.IPayPaymentRecordService;
|
import com.jero.payment.service.IPayPaymentRecordService;
|
||||||
|
import com.jero.payment.service.impl.PayConfirmPaymentRecordService;
|
||||||
import com.jero.project.common.PayProjectCommon;
|
import com.jero.project.common.PayProjectCommon;
|
||||||
import com.jero.project.entity.PayCommonProject;
|
import com.jero.project.entity.PayCommonProject;
|
||||||
import com.jero.project.entity.PayWorkingGroupDistributionRecord;
|
import com.jero.project.entity.PayWorkingGroupDistributionRecord;
|
||||||
@@ -103,6 +104,8 @@ public class ProjectDetailServiceImpl implements ProjectDetailService {
|
|||||||
private ITbMemberProjectSubitemService tbMemberProjectSubitemService;
|
private ITbMemberProjectSubitemService tbMemberProjectSubitemService;
|
||||||
@Resource
|
@Resource
|
||||||
private SafetyCenterSubitemContactsService safetyCenterSubitemContactsService;
|
private SafetyCenterSubitemContactsService safetyCenterSubitemContactsService;
|
||||||
|
@Resource
|
||||||
|
private PayConfirmPaymentRecordService confirmPaymentRecordService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ProjectDetailVO getProjectDetail(String projectId) {
|
public ProjectDetailVO getProjectDetail(String projectId) {
|
||||||
@@ -512,6 +515,10 @@ public class ProjectDetailServiceImpl implements ProjectDetailService {
|
|||||||
if(y > 0 && y <= c){
|
if(y > 0 && y <= c){
|
||||||
projectStatusVO.setMail(ProjectCommon.MAIL2);
|
projectStatusVO.setMail(ProjectCommon.MAIL2);
|
||||||
}
|
}
|
||||||
|
//确认收入
|
||||||
|
BigDecimal confirmAmount = payCommonProject.getConfirmAmount();
|
||||||
|
Integer affirmIncome = confirmPaymentRecordService.getAffirmIncome(receivableAmount, confirmAmount);
|
||||||
|
projectStatusVO.setAffirmIncome(affirmIncome);
|
||||||
return projectStatusVO;
|
return projectStatusVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.jero.common.vo;
|
package com.jero.common.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -18,4 +19,9 @@ public class ProjectStatusVO implements Serializable {
|
|||||||
* 邮寄((1:全额(对勾),0:0(X),2:>0 && <总金额(半满标志)))
|
* 邮寄((1:全额(对勾),0:0(X),2:>0 && <总金额(半满标志)))
|
||||||
*/
|
*/
|
||||||
private Integer mail;
|
private Integer mail;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 确认收入((1:全额(对勾),0:0(X),2:>0 && <总金额(半满标志)))
|
||||||
|
*/
|
||||||
|
private Integer affirmIncome;
|
||||||
}
|
}
|
||||||
|
|||||||
+19
-1
@@ -47,6 +47,7 @@ import com.jero.pack.entity.PayPackCompanyProject;
|
|||||||
import com.jero.pack.service.IPayPackCompanyProjectService;
|
import com.jero.pack.service.IPayPackCompanyProjectService;
|
||||||
import com.jero.payment.entity.PayConfirmPaymentRecord;
|
import com.jero.payment.entity.PayConfirmPaymentRecord;
|
||||||
import com.jero.payment.entity.PayPaymentRecord;
|
import com.jero.payment.entity.PayPaymentRecord;
|
||||||
|
import com.jero.payment.service.IPayPaymentCheckService;
|
||||||
import com.jero.payment.service.IPayPaymentRecordService;
|
import com.jero.payment.service.IPayPaymentRecordService;
|
||||||
import com.jero.payment.service.impl.PayConfirmPaymentRecordService;
|
import com.jero.payment.service.impl.PayConfirmPaymentRecordService;
|
||||||
import com.jero.project.common.PayProjectCommon;
|
import com.jero.project.common.PayProjectCommon;
|
||||||
@@ -126,6 +127,8 @@ public class ITbMemberProjectSubitemService extends ServiceImpl<TbMemberProjectS
|
|||||||
private IPayContactsManagementTemporaryService payContactsManagementTemporaryService;
|
private IPayContactsManagementTemporaryService payContactsManagementTemporaryService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private ProjectDetailService projectDetailService;
|
private ProjectDetailService projectDetailService;
|
||||||
|
@Resource
|
||||||
|
private IPayPaymentCheckService payPaymentCheckService;
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
*/
|
*/
|
||||||
@@ -445,7 +448,22 @@ public class ITbMemberProjectSubitemService extends ServiceImpl<TbMemberProjectS
|
|||||||
setSubitemEdit(tbMemberProjectSubitem,subitemOld,annualDataLocking);
|
setSubitemEdit(tbMemberProjectSubitem,subitemOld,annualDataLocking);
|
||||||
// 变更待确收金额,重新校验状态
|
// 变更待确收金额,重新校验状态
|
||||||
ProjectStatusVO projectStatusVO = projectDetailService.getStatus(subitemId,tbMemberProjectSubitem.getAmountReceivable(),tbMemberProjectSubitem.getInvoiceRequirements());
|
ProjectStatusVO projectStatusVO = projectDetailService.getStatus(subitemId,tbMemberProjectSubitem.getAmountReceivable(),tbMemberProjectSubitem.getInvoiceRequirements());
|
||||||
|
if(!Objects.isNull(projectStatusVO)){
|
||||||
|
if(!Objects.isNull(projectStatusVO.getInAccount())){
|
||||||
|
tbMemberProjectSubitem.setInAccount(projectStatusVO.getInAccount());
|
||||||
|
}
|
||||||
|
if(!Objects.isNull(projectStatusVO.getMakeInvoice())){
|
||||||
|
tbMemberProjectSubitem.setMakeInvoice(projectStatusVO.getMakeInvoice());
|
||||||
|
}
|
||||||
|
if(!Objects.isNull(projectStatusVO.getMail())){
|
||||||
|
tbMemberProjectSubitem.setMail(projectStatusVO.getMail());
|
||||||
|
}
|
||||||
|
if(!Objects.isNull(projectStatusVO.getAffirmIncome())){
|
||||||
|
tbMemberProjectSubitem.setAffirmIncome(projectStatusVO.getAffirmIncome());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
String paymentStatus = payPaymentCheckService.getPaymentStatus(tbMemberProjectSubitem.getAmountReceivable(), tbMemberProjectSubitem.getPaidAmount(), tbMemberProjectSubitem.getPaymentStatus(), false);
|
||||||
|
tbMemberProjectSubitem.setPaymentStatus(paymentStatus);
|
||||||
// 校验项目是否已关联合同
|
// 校验项目是否已关联合同
|
||||||
PayIncomeContract payIncomeContract = payIncomeContractService.checkPayIncomeContractAssociated(subitemId);
|
PayIncomeContract payIncomeContract = payIncomeContractService.checkPayIncomeContractAssociated(subitemId);
|
||||||
if (!Objects.isNull(payIncomeContract)) {
|
if (!Objects.isNull(payIncomeContract)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user