|
@@ -55,7 +55,12 @@ public class InterimPayCertificateServiceImpl extends BaseServiceImpl<InterimPay
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
public void update2(InterimPayCertificate interimPayCertificate) {
|
|
public void update2(InterimPayCertificate interimPayCertificate) {
|
|
- //生成报表,计算之后生成金额设置进支付证书
|
|
|
|
|
|
+ //获取支付证书
|
|
|
|
+ InterimPayCertificate certificate = this.getById(interimPayCertificate.getId());
|
|
|
|
+ //判断是否锁定
|
|
|
|
+ if (certificate.getIsLock() == 1){
|
|
|
|
+ throw new ServiceException("修改失败,当前证书已锁定");
|
|
|
|
+ }
|
|
this.updateById(interimPayCertificate);
|
|
this.updateById(interimPayCertificate);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -95,4 +100,18 @@ public class InterimPayCertificateServiceImpl extends BaseServiceImpl<InterimPay
|
|
//设置支付项集合
|
|
//设置支付项集合
|
|
return vo;
|
|
return vo;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 重新计算 中期支付证书
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public void recalculate(Long id) {
|
|
|
|
+ //获取支付证书
|
|
|
|
+ InterimPayCertificate certificate = this.getById(id);
|
|
|
|
+ //判断是否锁定
|
|
|
|
+ if (certificate.getIsLock() == 1){
|
|
|
|
+ throw new ServiceException("生成失败,当前证书已锁定");
|
|
|
|
+ }
|
|
|
|
+ //生成报表,计算之后生成金额设置进支付证书
|
|
|
|
+ }
|
|
}
|
|
}
|