消息修改

This commit is contained in:
liangqitao
2021-12-17 12:03:02 +08:00
parent 70131799da
commit e1cbb4a629
2 changed files with 10 additions and 6 deletions
@@ -30,7 +30,6 @@ import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.core.env.Environment;
import org.springframework.mail.MailAuthenticationException;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@@ -329,13 +328,13 @@ public class SendMessageServiceImpl implements SendMessageService {
//中汽中心标准所-管理端-邮寄通知-14
sender = "8821092414406";
signature = "中汽中心标准所";
templateId = "c90ee6f41349451c959285a01ebaaf73";
templateId = "6f054af3cfc345168e1e2e3cbf03403b";
break;
case "GL_15_XMTZ_UPLOAD_VOUCHER":
//中汽中心标准所-管理端-项目通知-15
sender = "8821092414406";
signature = "中汽中心标准所";
templateId = "6f054af3cfc345168e1e2e3cbf03403b";
templateId = "c90ee6f41349451c959285a01ebaaf73";
break;
case "GL_16_HTTZ_HT_CANCELLATION":
//中汽中心标准所-管理端-合同通知-16
@@ -23,10 +23,15 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.BeanUtils;
import org.springframework.core.env.Environment;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@@ -65,8 +70,8 @@ public class SystemSendMessageController {
*/
@AutoLog(value = "发送站内消息",operateType = 2)
@ApiOperation(value="发送站内消息", notes="发送站内消息")
@PostMapping(value = "/sendAllUserMessage")
// @RequiresPermissions("system:dept:save")
@GetMapping(value = "/sendAllUserMessage")
@RequiresPermissions("template:add:systemNotifications")
@Transactional
public Result<?> sendAllUserMessage(@RequestParam("content") String content) {
List<PayContactsManagement> listPayContactsManagement = payContactsManagementService.list();