修改bug#40595
This commit is contained in:
+5
-2
@@ -242,7 +242,7 @@ public class ProjectDetailServiceImpl implements ProjectDetailService {
|
||||
if(StringUtils.isBlank(projectId)){
|
||||
throw new JeroBootException("项目id不能为空!");
|
||||
}
|
||||
if(Objects.isNull(receivableAmount) ||receivableAmount.compareTo(new BigDecimal("0.00")) == 0){
|
||||
if(Objects.isNull(receivableAmount)){
|
||||
return null;
|
||||
}
|
||||
// 获取项目信息
|
||||
@@ -256,11 +256,14 @@ public class ProjectDetailServiceImpl implements ProjectDetailService {
|
||||
if(Objects.isNull(payCommonProject.getPaidAmount())){
|
||||
payCommonProject.setPaidAmount(new BigDecimal("0.00"));
|
||||
}
|
||||
|
||||
// 应收金额没有变更 && 验证来款方式没有变更
|
||||
if(receivableAmount.compareTo(payCommonProject.getReceivableAmount()) == 0 && needInvoice.equals(payCommonProject.getNeedInvoice())){
|
||||
return null;
|
||||
}
|
||||
// 验证应收金额不能小于实收金额
|
||||
if(receivableAmount.compareTo(payCommonProject.getPaidAmount()) < 0){
|
||||
throw new JeroBootException("应收金额不能小于实收金额!");
|
||||
}
|
||||
// 验证来款方式,有变更,按照变更处理
|
||||
if(!needInvoice.equals(payCommonProject.getNeedInvoice())){
|
||||
payCommonProject.setNeedInvoice(needInvoice);
|
||||
|
||||
+5
-2
@@ -122,8 +122,11 @@ public class PayPackCompanyProjectController extends JeroController<PayPackCompa
|
||||
if(!StringUtils.isBlank(p.getEmail())){
|
||||
p.setEmail(PasswordUtil.decrypt(p.getEmail()));
|
||||
}
|
||||
if(Objects.isNull(p.getInvoiceAmount())){
|
||||
p.setInvoiceAmount(new BigDecimal("0.00"));
|
||||
if(Objects.isNull(p.getReceivableAmount())){
|
||||
p.setReceivableAmount(new BigDecimal("0.00"));
|
||||
}
|
||||
if(Objects.isNull(p.getPaidAmount())){
|
||||
p.setPaidAmount(new BigDecimal("0.00"));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user