|
|
@@ -10,7 +10,6 @@ import com.xjrsoft.common.enums.DeleteMark;
|
|
|
import com.xjrsoft.common.model.result.RT;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
-import com.xjrsoft.module.student.entity.BaseStudentCadre;
|
|
|
import com.xjrsoft.module.system.dto.AddSystemUpdateMessageDto;
|
|
|
import com.xjrsoft.module.system.dto.SystemUpdateMessagePageDto;
|
|
|
import com.xjrsoft.module.system.dto.SystemUpdateMessageReleaseDto;
|
|
|
@@ -37,7 +36,6 @@ import javax.validation.Valid;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
-import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -176,12 +174,7 @@ public class SystemUpdateMessageController {
|
|
|
@ApiOperation(value = "阅读系统消息")
|
|
|
@SaCheckPermission("systemupdatemessage:read-msg")
|
|
|
public RT<Boolean> readMsg(@Valid SystemUpdateMessageReleaseDto dto) {
|
|
|
-
|
|
|
- SystemUpdateMessageNotice messageNotice = systemUpdateMessageNoticeService.getById(dto.getId());
|
|
|
- messageNotice.setStatus(1);
|
|
|
- messageNotice.setModifyDate(new Date());
|
|
|
- messageNotice.setModifyUserId(StpUtil.getLoginIdAsLong());
|
|
|
- return RT.ok(systemUpdateMessageNoticeService.updateById(messageNotice));
|
|
|
+ return RT.ok(systemUpdateMessageNoticeService.updateStatus(dto.getId(), StpUtil.getLoginIdAsLong()));
|
|
|
}
|
|
|
|
|
|
}
|