邮件发送内容的url补充
This commit is contained in:
		
							parent
							
								
									96b8df98f2
								
							
						
					
					
						commit
						bc61b203f0
					
				|  | @ -15,7 +15,9 @@ import kd.bos.logging.LogFactory; | |||
| import kd.bos.servicehelper.BusinessDataServiceHelper; | ||||
| import shjh.jhzj7.fi.fi.utils.JhzjUtils; | ||||
| 
 | ||||
| import java.util.ArrayList; | ||||
| import java.util.EventObject; | ||||
| import java.util.List; | ||||
| 
 | ||||
| 
 | ||||
| /** | ||||
|  | @ -60,10 +62,18 @@ public class ReportMessageInFormPlugin extends AbstractFormPlugin { | |||
|                     ListSelectedRowCollection selectedRows = list.getSelectedRows(); | ||||
|                     Object[] ids = selectedRows.getPrimaryKeyValues(); | ||||
|                     DynamicObject prinfo; | ||||
|                     String pcurl; | ||||
|                     List<Long> receivers = new ArrayList<>(1); | ||||
|                     for (int i = 0; i < ids.length; i++) { | ||||
|                         prinfo = BusinessDataServiceHelper.loadSingle(ids[i], entityName); | ||||
|                         JhzjUtils.handleOAReport(prinfo, "0", "0", userinfo); | ||||
|                         DB.update(DBRoute.of("fi"), updateSendOAInfoUser, new Object[]{userinfo.getLong("id"),prinfo.getPkValue()}); | ||||
|                         //给指定人发送邮件催报通知 | ||||
|                         receivers.clear(); | ||||
|                         receivers.add(userinfo.getLong("id")); | ||||
|                         pcurl = JhzjUtils.getBillPCURL(prinfo); | ||||
|                         JhzjUtils.sendEmail("请登录资金系统操作资金计划编制", prinfo.getString("billno") + | ||||
|                                 "<br> 详情页面 <a href='"+pcurl+"' target='_blank'>"+pcurl+"</a>", receivers, prinfo); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|  |  | |||
|  | @ -9,6 +9,9 @@ import kd.bos.servicehelper.BusinessDataServiceHelper; | |||
| import kd.sdk.plugin.Plugin; | ||||
| import shjh.jhzj7.fi.fi.utils.JhzjUtils; | ||||
| 
 | ||||
| import java.util.ArrayList; | ||||
| import java.util.List; | ||||
| 
 | ||||
| 
 | ||||
| /** | ||||
|  * 编报进度管理 shjh_fpm_report_proce_ext-单据操作插件 处理催报发送OA待办 | ||||
|  | @ -28,11 +31,19 @@ public class ReportMessageInfoOperation extends AbstractOperationServicePlugIn i | |||
|             //催报:如果填报人不为空,则从此处推送OA待办 | ||||
|             DynamicObject[] dos = e.getDataEntities(); | ||||
|             DynamicObject prinfo; | ||||
|             String pcurl; | ||||
|             List<Long> receivers = new ArrayList<>(1); | ||||
|             for (int i = 0; i < dos.length; i++) { | ||||
|                 prinfo = BusinessDataServiceHelper.loadSingle(dos[i].getPkValue(), entityName); | ||||
|                 if(prinfo.getDynamicObject("informant") != null){ | ||||
|                     JhzjUtils.handleOAReport(prinfo, "0", "0",prinfo.getDynamicObject("informant")); | ||||
|                     DB.update(DBRoute.of("fi"), updateSendOA, new Object[]{prinfo.getPkValue()}); | ||||
|                     //给指定人发送邮件通知 | ||||
|                     receivers.clear(); | ||||
|                     receivers.add(prinfo.getDynamicObject("informant").getLong("id")); | ||||
|                     pcurl = JhzjUtils.getBillPCURL(prinfo); | ||||
|                     JhzjUtils.sendEmail("请登录资金系统操作资金计划编制", prinfo.getString("billno") + | ||||
|                             "<br> 详情页面 <a href='"+pcurl+"' target='_blank'>"+pcurl+"</a>", receivers, prinfo); | ||||
|                 } | ||||
|             } | ||||
|         }else if("submit".equals(eok)){ | ||||
|  |  | |||
|  | @ -59,6 +59,7 @@ public class NotCreditedNoticeTask extends AbstractTask implements Plugin { | |||
|         String title; | ||||
|         String content; | ||||
|         List<Long> receivers = new ArrayList<>();//消息接收人 | ||||
|         String fkrzurl = JhzjUtils.getFKRZListURL();//被动付款入账列表界面URL | ||||
|         for (Map.Entry<Long, String> entry : companyids.entrySet()) { | ||||
|             //根据公司ID和配置表查找人员 | ||||
|             qFilter = new QFilter("shjh_biztype", QCP.equals, "fk");//业务类型为付款 | ||||
|  | @ -75,8 +76,8 @@ public class NotCreditedNoticeTask extends AbstractTask implements Plugin { | |||
|                     receivers.add(user.getDynamicObject("fbasedataid").getLong("id")); | ||||
|                 } | ||||
|                 title = pzbinfo.getDynamicObject("shjh_org").getString("number")+"公司未入账的付款流水"; | ||||
|                 content = "请登录资金系统处理 "+title+" 共"+entry.getValue()+"笔"; | ||||
|                 JhzjUtils.sendEmail(title,content,receivers,pzbinfo); | ||||
|                 content = "请登录资金系统处理 "+title+" 共"+entry.getValue()+"笔。"; | ||||
|                 JhzjUtils.sendEmail(title,content+"<br> 点击查看被动付款入账界面 <a href='"+fkrzurl+"' target='_blank'>"+fkrzurl+"</a>",receivers,pzbinfo); | ||||
|                 JhzjUtils.sendWEIXINQY(title,content,receivers,pzbinfo); | ||||
|             }else{ | ||||
|                 logger.info("付款未查找到对应人员"+qFilter.toArray()); | ||||
|  | @ -92,6 +93,7 @@ public class NotCreditedNoticeTask extends AbstractTask implements Plugin { | |||
|             return companys; | ||||
|         }); | ||||
|         logger.info("收款流水结果"+companyids.size()); | ||||
|         String skrzurl = JhzjUtils.getSKRZListURL();//收款入账中心列表界面URL | ||||
|         //遍历map处理消息发送 | ||||
|         for (Map.Entry<Long, String> entry : companyids.entrySet()) { | ||||
|             //根据公司ID和配置表查找人员 | ||||
|  | @ -108,8 +110,8 @@ public class NotCreditedNoticeTask extends AbstractTask implements Plugin { | |||
|                     receivers.add(user.getDynamicObject("fbasedataid").getLong("id")); | ||||
|                 } | ||||
|                 title = pzbinfo.getDynamicObject("shjh_org").getString("number")+"公司未入账的收款流水"; | ||||
|                 content = "请登录资金系统处理 "+title+" 共"+entry.getValue()+"笔"; | ||||
|                 JhzjUtils.sendEmail(title,content,receivers,pzbinfo); | ||||
|                 content = "请登录资金系统处理 "+title+" 共"+entry.getValue()+"笔。"; | ||||
|                 JhzjUtils.sendEmail(title,content+"<br> 点击查看收款入账界面 <a href='"+skrzurl+"' target='_blank'>"+skrzurl+"</a>",receivers,pzbinfo); | ||||
|                 JhzjUtils.sendWEIXINQY(title,content,receivers,pzbinfo); | ||||
|             }else{ | ||||
|                 logger.info("收款未查找到对应人员"+qFilter.toArray()); | ||||
|  |  | |||
|  | @ -67,6 +67,7 @@ public class NotSAPNumNoticeTask extends AbstractTask implements Plugin { | |||
|         String customerid;//客户ID | ||||
|         String customername;//客户名称 | ||||
|         List<Long> receivers = new ArrayList<>();//消息接收人 | ||||
|         String skdurl = JhzjUtils.getSKDListURL();//收款单列表界面URL | ||||
|         for (Map.Entry<String, String> entry : companyids.entrySet()) { | ||||
|             entrykey = entry.getKey(); | ||||
|             orgid = entrykey.substring(0,entrykey.indexOf("@")); | ||||
|  | @ -90,8 +91,8 @@ public class NotSAPNumNoticeTask extends AbstractTask implements Plugin { | |||
|                     receivers.add(user.getDynamicObject("fbasedataid").getLong("id")); | ||||
|                 } | ||||
|                 title = pzbinfo.getDynamicObject("shjh_org").getString("number")+"公司未处理的收款单"; | ||||
|                 content = "请登录资金系统处理 "+title+",客户名称 "+customername+" 共"+entry.getValue()+"笔"; | ||||
|                 JhzjUtils.sendEmail(title,content,receivers,pzbinfo); | ||||
|                 content = "请登录资金系统处理 "+title+",客户名称 "+customername+" 共"+entry.getValue()+"笔。"; | ||||
|                 JhzjUtils.sendEmail(title,content+"<br> 点击查看收款处理界面 <a href='"+skdurl+"' target='_blank'>"+skdurl+"</a>",receivers,pzbinfo); | ||||
|                 JhzjUtils.sendWEIXINQY(title,content,receivers,pzbinfo); | ||||
|             }else{ | ||||
|                 logger.info("收款未查找到对应人员"+qFilter.toArray()); | ||||
|  |  | |||
|  | @ -73,6 +73,7 @@ public class UnclaimedNoticeTask extends AbstractTask implements Plugin { | |||
|         List<Long> receivers = new ArrayList<>(1);//消息接收人 | ||||
|         String title; | ||||
|         String content; | ||||
|         String rlggurl = JhzjUtils.getRLGGListURL();//认领公告列表界面URL | ||||
|         for (Map.Entry<String, List<DynamicObject>> entry : userBills.entrySet()) { | ||||
|             userid = entry.getKey(); | ||||
|             billlist = entry.getValue(); | ||||
|  | @ -80,7 +81,7 @@ public class UnclaimedNoticeTask extends AbstractTask implements Plugin { | |||
|                 receivers.clear(); | ||||
|                 receivers.add(Long.parseLong(userid)); | ||||
|                 title = "业务认领通知"; | ||||
|                 content = "请登录资金系统处理认领公告 共"+billlist.size()+"笔"; | ||||
|                 content = "请登录资金系统处理认领公告 共"+billlist.size()+"笔。"+"<br> 点击查看认领公告界面 <a href='"+rlggurl+"' target='_blank'>"+rlggurl+"</a>"; | ||||
|                 JhzjUtils.sendEmail(title,content+JhzjUtils.getTableHtml(billlist),receivers,billlist.get(0)); | ||||
|                 JhzjUtils.sendWEIXINQY(title,content,receivers,billlist.get(0)); | ||||
|             } | ||||
|  |  | |||
|  | @ -550,6 +550,37 @@ public class JhzjUtils { | |||
|         return contextUrl+"/index.html?formId="+formId+"&pkId="+prinfo.getLong("id"); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 获取认领公告列表界面的url | ||||
|      **/ | ||||
|     public static String getRLGGListURL(){ | ||||
|         //type=list 界面类型是列表 | ||||
|         //formId=cas_claim 列表表单模板是cas_claim 通常是bos_list | ||||
|         //billFormId 单据标识 | ||||
|         return System.getProperty("domain.contextUrl")+"/index.html?type=list&formId=cas_claim&billFormId=cas_claimannounce"; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 获取收款单列表界面的url | ||||
|      **/ | ||||
|     public static String getSKDListURL(){ | ||||
|         return System.getProperty("domain.contextUrl")+"/index.html?type=list&formId=bos_list&billFormId=cas_recbill"; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 获取收款入账列表界面的url | ||||
|      **/ | ||||
|     public static String getSKRZListURL(){ | ||||
|         return System.getProperty("domain.contextUrl")+"/index.html?type=list&formId=bei_intelrec_list&billFormId=bei_intelrec"; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 获取被动付款入账列表界面的url | ||||
|      **/ | ||||
|     public static String getFKRZListURL(){ | ||||
|         return System.getProperty("domain.contextUrl")+"/index.html?type=list&formId=bei_intelpay_list&billFormId=bei_intelpay"; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * 收款单下推清账单-默认下推 | ||||
|      * @param oribill 源单标识-收款单 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue