清账单保存操作时判断下推明细单结果
This commit is contained in:
		
							parent
							
								
									63145a1c92
								
							
						
					
					
						commit
						20e09dace3
					
				|  | @ -323,10 +323,11 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im | |||
|         DynamicObject userinfo;//被通知用户 | ||||
|         DynamicObjectCollection users;//配置表中的被通知人集合 | ||||
|         List<Long> receivers = new ArrayList<>(1); | ||||
|         String eok = e.getOperationKey(); | ||||
|         for (int i = 0; i < dos.length; i++) { | ||||
|             prinfo = BusinessDataServiceHelper.loadSingle(dos[i].getPkValue(), dos[i].getDataEntityType().getName()); | ||||
|             //判断下推明细单结果,如果不是下推成功,则处理,否则不处理 | ||||
|             if("A".equals(prinfo.getString("shjh_pushdetail"))){ | ||||
|             //保存操作时判断下推明细单结果,如果未下推成功,则处理,否则按清账按钮原逻辑处理 | ||||
|             if("save".equals(eok) && "A".equals(prinfo.getString("shjh_pushdetail"))){ | ||||
|                 continue; | ||||
|             } | ||||
| 
 | ||||
|  | @ -346,6 +347,8 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im | |||
|                     String pcurl = JhzjUtils.getBillPCURL(detailinfo); | ||||
|                     JhzjUtils.sendEmail("请登录资金系统操作清账明细单", detailinfo.getString("billno") + | ||||
|                             "<br> 详情页面 <a href='"+pcurl+"' target='_blank'>"+pcurl+"</a>", receivers, detailinfo); | ||||
|                     //更新清账单下推明细单结果 | ||||
|                     DB.update(DBRoute.of("fi"), updatePushStatus, new Object[]{"A", prinfo.getPkValue()}); | ||||
|                 } | ||||
|             }else{ | ||||
|                 //根据客户、公司、是否可用找到对应的被通知人员(可能多个) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue