mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26:50 +08:00
修改删除课程重复事件的问题
This commit is contained in:
@@ -425,11 +425,12 @@ public class CourseServiceImpl implements ICourseService {
|
||||
courseDao.updateFieldById(id,"name","已删除"+name);
|
||||
//同时添加发布事件,这里的创建人需要修改为教师
|
||||
Course c=courseDao.get(id);
|
||||
if(eventSender!=null) {
|
||||
eventSender.send("删除课程","PublishCourse", "删除课程【"+c.getName()+"】", c.getId(), "1", c.getName(), c.getSysCreateAid(), c.getSysCreateBy(),"");
|
||||
}else {
|
||||
log.error("未配置事件消息发送的实现");
|
||||
}
|
||||
//删除分两种情况,一个是管理员删除,一个是自己删除 ,所以这里的处理移到前端了
|
||||
// if(eventSender!=null) {
|
||||
// eventSender.send("删除课程","DeleteCourse", "删除课程【"+c.getName()+"】", c.getId(), "1", c.getName(), c.getSysCreateAid(), c.getSysCreateBy(),"");
|
||||
// }else {
|
||||
// log.error("未配置事件消息发送的实现");
|
||||
// }
|
||||
//删除
|
||||
if(c.getFullTextId()!=null) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user