|  | @@ -6,13 +6,14 @@ import kd.bos.dataentity.entity.DynamicObjectCollection;
 | 
	
		
			
				|  |  |  import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
 | 
	
		
			
				|  |  |  import kd.bos.entity.plugin.args.BeginOperationTransactionArgs;
 | 
	
		
			
				|  |  |  import kd.bos.servicehelper.BusinessDataServiceHelper;
 | 
	
		
			
				|  |  | +import kd.bos.servicehelper.operation.SaveServiceHelper;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  public class FaLeaseContractOpPlugin extends AbstractOperationServicePlugIn {
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public void beginOperationTransaction(BeginOperationTransactionArgs e) {
 | 
	
		
			
				|  |  |          DynamicObject[] dynamicObjects = e.getDataEntities();
 | 
	
		
			
				|  |  |          for (int i = 0; i < dynamicObjects.length; i++) {
 | 
	
		
			
				|  |  | -            if (StringUtils.equals(e.getOperationKey(),"audit")) {
 | 
	
		
			
				|  |  | +            if (StringUtils.equals(e.getOperationKey(),"submit")) {
 | 
	
		
			
				|  |  |                  DynamicObject info = BusinessDataServiceHelper.loadSingle(dynamicObjects[i].getPkValue(), dynamicObjects[i].getDynamicObjectType().getName());
 | 
	
		
			
				|  |  |                  DynamicObject assetcat = info.getDynamicObject("assetcat");
 | 
	
		
			
				|  |  |                  Long id = null;
 | 
	
	
		
			
				|  | @@ -25,6 +26,7 @@ public class FaLeaseContractOpPlugin extends AbstractOperationServicePlugIn {
 | 
	
		
			
				|  |  |                      payplanentryentity.set("nckd_basedatafield", id);
 | 
	
		
			
				|  |  |                      payplanentryentity.set("nckd_checkboxfield", isexempt);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +                SaveServiceHelper.save(new DynamicObject[]{info});
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 |