【泛微更新状态接口】
This commit is contained in:
		
							parent
							
								
									82a3b15f07
								
							
						
					
					
						commit
						12c0f52e5d
					
				|  | @ -70,18 +70,16 @@ public class FWBillStateUpdController { | |||
|             QFilter qf1 = new QFilter(billNoFieldName, "=", KDBillNumber); | ||||
|             DynamicObject[] billArr = BusinessDataServiceHelper.load(enetityNumber, "id,tqq9_issuccess", new QFilter[]{qf1}); | ||||
|             if(billArr != null && billArr.length > 0){ | ||||
|                 boolean isSuccess = false; | ||||
|                 if(state == 0){ | ||||
|                     isSuccess = true; | ||||
|                 } | ||||
|                 DynamicObject bill = BusinessDataServiceHelper.loadSingle(billArr[0].getPkValue(), enetityNumber); | ||||
|                 bill.set("tqq9_issuccess", isSuccess); | ||||
|                 if(state == 0){ | ||||
|                     bill.set("tqq9_issuccess", true); | ||||
|                     approveLog.set("tqq9_issuccess", true); | ||||
|                 } | ||||
|                 SaveServiceHelper.save(new DynamicObject[]{bill}); | ||||
| 
 | ||||
|                 approveLog.set("tqq9_issuccess", isSuccess); | ||||
|                 approveLog.set("tqq9_entityname", enetityName); | ||||
|                 OperationResult operationResult = OperationServiceHelper.executeOperate("save", "tqq9_fwapprovelog", new DynamicObject[]{approveLog}, OperateOption.create()); | ||||
|                 if(isSuccess){ | ||||
|                 OperationServiceHelper.executeOperate("save", "tqq9_fwapprovelog", new DynamicObject[]{approveLog}, OperateOption.create()); | ||||
|                 if(state == 0){ | ||||
|                     OperationResult submitResult = OperationServiceHelper.executeOperate("audit", enetityNumber, new DynamicObject[]{bill}, OperateOption.create()); | ||||
|                     if(!submitResult.isSuccess()){ | ||||
|                         List<IOperateInfo> allErrorOrValidateInfo = submitResult.getAllErrorOrValidateInfo(); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue