提交人:陈绍鑫

日期:2025/11/12 12:30
内容:担保合同插件
This commit is contained in:
陈绍鑫 2025-11-12 14:06:03 +08:00
parent a705646dff
commit 6da26d6e7f
5 changed files with 26 additions and 4 deletions

View File

@ -297,13 +297,10 @@ public class GuaranteeContractFeeDetailPlugin extends AbstractBillPlugIn {
public void propertyChanged(PropertyChangedArgs e) {
super.propertyChanged(e);
String name = e.getProperty().getName();
if ("".equals(name)){
if (Arrays.asList("shkd_jtfeeamt","shkd_ytfeeamt").contains(name)){
String billstatus = (String) this.getModel().getValue("billstatus");
BigDecimal newValue = (BigDecimal) e.getChangeSet()[0].getNewValue();
BigDecimal oldValue = (BigDecimal) e.getChangeSet()[0].getOldValue();
if (newValue==null||oldValue==null){
return;
}
if (newValue.compareTo(oldValue)!=0&&Arrays.asList("B","C").contains(billstatus)){
SaveServiceHelper.save(new DynamicObject[]{this.getModel().getDataEntity(true)});
}

View File

@ -26,6 +26,12 @@ import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;
/**
* @FileName GuaranteeContractAuditOpPlugin
* @Description 自动下推兑付票据
* @Author csx
* @date 2025-08-08
**/
public class DrafttradebillOP extends AbstractOperationServicePlugIn {
private static final Log logger = LogFactory.getLog(DrafttradebillOP.class);

View File

@ -21,6 +21,12 @@ import java.time.Duration;
import java.time.LocalDateTime;
import java.util.*;
/**
* @FileName GuaranteeContractAuditOpPlugin
* @Description 锁定校验插件
* @Author csx
* @date 2025-08-08
**/
public class ElectronicPayDealOPPlugin extends AbstractOperationServicePlugIn implements Plugin {
private static final Log logger = LogFactory.getLog(ElectronicPayDealOPPlugin.class);

View File

@ -11,6 +11,13 @@ import kd.bos.logging.LogFactory;
import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.operation.SaveServiceHelper;
/**
* @FileName GuaranteeContractAuditOpPlugin
* @Description 担保合同审核插件
* @Author csx
* @date 2025-08-08
**/
public class GuaranteeContractAuditOpPlugin extends AbstractOperationServicePlugIn {
private static final Log logger = LogFactory.getLog(GuaranteeContractAuditOpPlugin.class);

View File

@ -14,6 +14,12 @@ import kd.bos.servicehelper.operation.SaveServiceHelper;
import java.util.ArrayList;
import java.util.List;
/**
* @FileName GuaranteeContractUnAuditOpPlugin
* @Description 担保合同反审核插件
* @Author csx
* @date 2025-08-08
**/
public class GuaranteeContractUnAuditOpPlugin extends AbstractOperationServicePlugIn {
private static final Log logger = LogFactory.getLog(GuaranteeContractUnAuditOpPlugin.class);