|  | @@ -6,6 +6,8 @@ import kd.bos.dataentity.entity.DynamicObjectCollection;
 | 
	
		
			
				|  |  |  import kd.bos.entity.EntityMetadataCache;
 | 
	
		
			
				|  |  |  import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
 | 
	
		
			
				|  |  |  import kd.bos.entity.plugin.args.EndOperationTransactionArgs;
 | 
	
		
			
				|  |  | +import kd.bos.entity.validate.ErrorLevel;
 | 
	
		
			
				|  |  | +import kd.bos.entity.validate.ValidationErrorInfo;
 | 
	
		
			
				|  |  |  import kd.bos.exception.KDBizException;
 | 
	
		
			
				|  |  |  import kd.bos.orm.query.QCP;
 | 
	
		
			
				|  |  |  import kd.bos.orm.query.QFilter;
 | 
	
	
		
			
				|  | @@ -28,12 +30,10 @@ public class ExpenseAccountFileOpPlugin extends AbstractOperationServicePlugIn {
 | 
	
		
			
				|  |  |              JSONObject object = new JSONObject();
 | 
	
		
			
				|  |  |              //当前单头数据包
 | 
	
		
			
				|  |  |              DynamicObject info = BusinessDataServiceHelper.loadSingle(dynamicObjects[i].getPkValue(), dynamicObjects[i].getDynamicObjectType().getName());
 | 
	
		
			
				|  |  | -            DynamicObjectCollection writeoffapply = info.getDynamicObjectCollection("writeoffapply");
 | 
	
		
			
				|  |  | -            if(writeoffapply.size()<=0){
 | 
	
		
			
				|  |  | -                List<Map<String, Object>> attachments = AttachmentServiceHelper.getAttachments("er_publicreimbursebill", info.getLong("id"), "nckd_attachmentpanelsq", true);
 | 
	
		
			
				|  |  | -                if(attachments.size()<=0){
 | 
	
		
			
				|  |  | -                    throw new KDBizException("请上传费用申请附件!");
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +            BigDecimal reimburseamount = info.getBigDecimal("reimburseamount");
 | 
	
		
			
				|  |  | +            if(reimburseamount.compareTo(new BigDecimal(50000)) > -1){
 | 
	
		
			
				|  |  | +                this.operationResult.addErrorInfo(new ValidationErrorInfo("",info.getPkValue(),
 | 
	
		
			
				|  |  | +                        0,0,"err","billtitle",info.getString("billno")+"请关联出差申请单或上传线下审批单!", ErrorLevel.Error));
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 |