维护邮件上传附件常用文档
parent
82a22c3af8
commit
52102ba058
|
@ -62,6 +62,7 @@ public class TestOrganization extends BaseTest {
|
|||
@Test
|
||||
public void testStaticLog() {
|
||||
log.info("哈哈哈好的方式");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
40
常用信息.md
40
常用信息.md
|
@ -386,6 +386,7 @@ from workflow_nodebase nb
|
|||
|
||||
**1.后端根据请求获取登录用户信息**
|
||||
> 维护人员:xuanran.wang
|
||||
|
||||
```java
|
||||
User logInUser=HrmUserVarify.getUser(request,response));
|
||||
// 传入id会将此人员信息带出
|
||||
|
@ -396,6 +397,7 @@ user.getUID();
|
|||
|
||||
**2.发送邮件**
|
||||
> 维护人员:xuanran.wang
|
||||
|
||||
```java
|
||||
/**
|
||||
* <h1>发送邮件</h1>
|
||||
|
@ -406,8 +408,40 @@ user.getUID();
|
|||
EmailWorkRunnable.threadModeReminder(address,title,content);
|
||||
```
|
||||
|
||||
> 维护人员: youHong.ai
|
||||
|
||||
```java
|
||||
/**
|
||||
* <h2>发送附件邮件</h2>
|
||||
* @param sendTo 收件人邮箱地址(多个值之间用英文逗号分隔)
|
||||
* @param sendCc 抄送人邮箱地址(多个值之间用英文逗号分隔)
|
||||
* @param sendBcc 密送人邮箱地址(多个值之间用英文逗号分隔)
|
||||
* @param subject 主题
|
||||
* @param content 内容
|
||||
* @param imageFileIds 附件id
|
||||
*/
|
||||
EmailWorkRunnable.threadModeReminder(sendTo,sendCc,sendBcc,subject,content,imageFileIds);
|
||||
```
|
||||
|
||||
或者
|
||||
|
||||
```java
|
||||
/*
|
||||
@param sendTo 收件人邮箱地址(多个值之间用英文逗号分隔)
|
||||
@param sendCc 抄送人邮箱地址(多个值之间用英文逗号分隔)
|
||||
@param sendBcc 密送人邮箱地址(多个值之间用英文逗号分隔)
|
||||
@param subject 主题
|
||||
@param content 内容
|
||||
@param imageFileIds 附件id
|
||||
*/
|
||||
EmailWorkRunnable emailWorkRunable=new EmailWorkRunnable(sendTo,sendCc,sendBcc,subject,content);
|
||||
emailWorkRunable.setImagefileids(imageFileIds);
|
||||
MailCommonUtils.executeThreadPool(EmailPoolSubTypeEnum.EMAIL_SYS_ALTER.toString(),emailWorkRunable);
|
||||
```
|
||||
|
||||
**3.短信服务**
|
||||
> 维护人员:xuanran.wang
|
||||
|
||||
```java
|
||||
public class SendSms implements SmsService {
|
||||
@Override
|
||||
|
@ -417,14 +451,16 @@ public class SendSms implements SmsService {
|
|||
}
|
||||
}
|
||||
```
|
||||
|
||||
**4.三方插件文档转PDF(培训群找过来的)**
|
||||
> 维护人员:xuanran.wang
|
||||
|
||||
```java
|
||||
wps转PDF:
|
||||
//wps转PDF:
|
||||
DocImagefileToPdfUseWps toPdfUseWps=new DocImagefileToPdfUseWps();
|
||||
newimagefileid=toPdfUseWps.officeDocumetnToPdfByImagefileid(docimagefileid);
|
||||
|
||||
永中转PDF:
|
||||
//永中转PDF:
|
||||
DocImagefileToPdf yozoToPdf=new DocImagefileToPdf();
|
||||
newimagefileid=yozoToPdf.officeDocumetnToPdfByImagefileid(docimagefileid);
|
||||
```
|
Loading…
Reference in New Issue