代码完善

This commit is contained in:
万佳 2021-09-17 14:30:01 +08:00
parent 935b2cdb5a
commit d4156ed7a6
4 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,8 @@ public class EmailService {
private EmailUtils emailUtils;
/**
* 处理邮件发送任务根据emails添加到邮件发送记录表中
* 处理邮件发送任务根据emails添加到邮件发送记录表中
*
* @param platform 平台编码
* @param dispatchNumber 待处理发送任务列表数量
* @return: void
@ -80,6 +81,7 @@ public class EmailService {
/**
* 发送邮件
*
* @param platform 平台编码
* @param sentNumber 一次发送数量
* @return: void

View File

@ -22,7 +22,7 @@ public class NewEmailJobParamsVo {
@ApiModelProperty(value = "邮件主题", required = true)
@NotBlank(message = "邮件主题不能为空")
@Size(max = 255, message = "邮件主题长度在0~255")
@Size(max = 500, message = "邮件主题长度在0~500")
private String subject;
@ApiModelProperty(value = "邮件内容", required = true)

View File

@ -126,8 +126,6 @@
limit #{size}
</if>
</select>
<update id="updateEmailSendRecordsBatch" parameterType="list">
update ${platform}_email_send_records
<trim prefix="set" suffixOverrides=",">

View File

@ -47,7 +47,7 @@ public class EmailJobsController {
@ApiOperation("发送邮件任务")
@RequestMapping(path = "/{platform}", method = RequestMethod.POST)
@ResponseBody
public ResponseData sendNotification(@ApiParam(value = "平台编码", required = true)
public ResponseData sendEmail(@ApiParam(value = "平台编码", required = true)
@PathVariable(name = "platform") String platform,
@Validated @RequestBody NewEmailJobParamsVo newEmailJobParamsVo,