zhanghua
2023-04-19 c68a46c7b29a7f5a21a76ea5e230cd140c2694d8
ycl-platform/src/main/java/com/ycl/controller/message/MessageController.java
@@ -17,6 +17,7 @@
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@@ -35,7 +36,7 @@
    @Autowired
    private IMessageService iMessageService;
    @Autowired
    @Resource
    private UmsAdminMapper umsAdminMapper;
    @ApiOperation(value = "发送消息")
@@ -72,6 +73,7 @@
        message.setCreateUser(user.getUserId());
        message.setCreateTime(new Date());
        message.setTargetFrom(umsAdminMapper.selectById(user.getUserId()).getUsername());
        message.setIsView(0);
        return CommonResult.success(iMessageService.save(message));
    }