mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
Fix TopicController
This commit is contained in:
parent
bb4359d36d
commit
802efafc13
@ -137,7 +137,8 @@ public class TopicController extends Handler {
|
|||||||
/*
|
/*
|
||||||
* 重新缓存
|
* 重新缓存
|
||||||
*/
|
*/
|
||||||
OnlineUserProxy.resetHotTopic((DataExchangeInterface) MainContext.getContext().getBean("topic"), super.getUser(request), super.getOrgi(request), aiid);
|
DataExchangeInterface dataExchangeInterface = (DataExchangeInterface) MainContext.getContext().getBean("topic");
|
||||||
|
OnlineUserProxy.resetHotTopic(dataExchangeInterface, super.getOrgi(request), aiid);
|
||||||
}
|
}
|
||||||
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html" + (!StringUtils.isBlank(type) ? "?type=" + type : "")));
|
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html" + (!StringUtils.isBlank(type) ? "?type=" + type : "")));
|
||||||
}
|
}
|
||||||
@ -189,7 +190,8 @@ public class TopicController extends Handler {
|
|||||||
/*
|
/*
|
||||||
* 重新缓存
|
* 重新缓存
|
||||||
*/
|
*/
|
||||||
OnlineUserProxy.resetHotTopic((DataExchangeInterface) MainContext.getContext().getBean("topic"), super.getUser(request), super.getOrgi(request), aiid);
|
DataExchangeInterface dataExchangeInterface = (DataExchangeInterface) MainContext.getContext().getBean("topic");
|
||||||
|
OnlineUserProxy.resetHotTopic(dataExchangeInterface, super.getOrgi(request), aiid);
|
||||||
}
|
}
|
||||||
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html" + (!StringUtils.isBlank(type) ? "?type=" + type : "")));
|
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html" + (!StringUtils.isBlank(type) ? "?type=" + type : "")));
|
||||||
}
|
}
|
||||||
@ -204,7 +206,8 @@ public class TopicController extends Handler {
|
|||||||
*/
|
*/
|
||||||
topicItemRes.deleteAll(topicItemRes.findByTopicid(id));
|
topicItemRes.deleteAll(topicItemRes.findByTopicid(id));
|
||||||
|
|
||||||
OnlineUserProxy.resetHotTopic((DataExchangeInterface) MainContext.getContext().getBean("topic"), super.getUser(request), super.getOrgi(request), aiid);
|
DataExchangeInterface dataExchangeInterface = (DataExchangeInterface) MainContext.getContext().getBean("topic");
|
||||||
|
OnlineUserProxy.resetHotTopic(dataExchangeInterface, super.getOrgi(request), aiid);
|
||||||
}
|
}
|
||||||
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html" + (!StringUtils.isBlank(type) ? "?type=" + type : "")));
|
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html" + (!StringUtils.isBlank(type) ? "?type=" + type : "")));
|
||||||
}
|
}
|
||||||
@ -242,7 +245,8 @@ public class TopicController extends Handler {
|
|||||||
}
|
}
|
||||||
type.setCreater(super.getUser(request).getId());
|
type.setCreater(super.getUser(request).getId());
|
||||||
knowledgeTypeRes.save(type);
|
knowledgeTypeRes.save(type);
|
||||||
OnlineUserProxy.resetHotTopicType((DataExchangeInterface) MainContext.getContext().getBean("topictype"), super.getUser(request), super.getOrgi(request), aiid);
|
DataExchangeInterface dataExchangeInterface = (DataExchangeInterface) MainContext.getContext().getBean("topictype");
|
||||||
|
OnlineUserProxy.resetHotTopicType(dataExchangeInterface, super.getOrgi(request), aiid);
|
||||||
} else {
|
} else {
|
||||||
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html?aiid=" + aiid + "&msg=k_type_exist"));
|
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html?aiid=" + aiid + "&msg=k_type_exist"));
|
||||||
}
|
}
|
||||||
@ -279,7 +283,8 @@ public class TopicController extends Handler {
|
|||||||
temp.setTypeid(type.getParentid());
|
temp.setTypeid(type.getParentid());
|
||||||
}
|
}
|
||||||
knowledgeTypeRes.save(temp);
|
knowledgeTypeRes.save(temp);
|
||||||
OnlineUserProxy.resetHotTopicType((DataExchangeInterface) MainContext.getContext().getBean("topictype"), super.getUser(request), super.getOrgi(request), aiid);
|
DataExchangeInterface dataExchangeInterface = (DataExchangeInterface) MainContext.getContext().getBean("topictype");
|
||||||
|
OnlineUserProxy.resetHotTopicType(dataExchangeInterface, super.getOrgi(request), aiid);
|
||||||
} else {
|
} else {
|
||||||
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html?aiid=" + aiid + "&msg=k_type_exist&type=" + type.getId()));
|
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html?aiid=" + aiid + "&msg=k_type_exist&type=" + type.getId()));
|
||||||
}
|
}
|
||||||
@ -294,7 +299,7 @@ public class TopicController extends Handler {
|
|||||||
if (page.getTotalElements() == 0) {
|
if (page.getTotalElements() == 0) {
|
||||||
if (!StringUtils.isBlank(id)) {
|
if (!StringUtils.isBlank(id)) {
|
||||||
knowledgeTypeRes.deleteById(id);
|
knowledgeTypeRes.deleteById(id);
|
||||||
OnlineUserProxy.resetHotTopicType((DataExchangeInterface) MainContext.getContext().getBean("topictype"), super.getUser(request), super.getOrgi(request), aiid);
|
OnlineUserProxy.resetHotTopicType((DataExchangeInterface) MainContext.getContext().getBean("topictype"), super.getOrgi(request), aiid);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
msg = "notempty";
|
msg = "notempty";
|
||||||
@ -325,7 +330,7 @@ public class TopicController extends Handler {
|
|||||||
if (temp != null) {
|
if (temp != null) {
|
||||||
temp.setArea(type.getArea());
|
temp.setArea(type.getArea());
|
||||||
knowledgeTypeRes.save(temp);
|
knowledgeTypeRes.save(temp);
|
||||||
OnlineUserProxy.resetHotTopicType((DataExchangeInterface) MainContext.getContext().getBean("topictype"), super.getUser(request), super.getOrgi(request), aiid);
|
OnlineUserProxy.resetHotTopicType((DataExchangeInterface) MainContext.getContext().getBean("topictype"), super.getOrgi(request), aiid);
|
||||||
}
|
}
|
||||||
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html?type=" + type.getId()));
|
return request(super.createRequestPageTempletResponse("redirect:/apps/topic.html?type=" + type.getId()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user