|
|
|
@ -35,10 +35,12 @@ public class MaxKbController extends Controller {
|
|
|
|
|
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
|
|
|
|
|
if (StrKit.isBlank(person_id)) {
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(false, "未登录!"));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
Record personApplicationRecord = mkm.getPersonApplication(person_id);
|
|
|
|
|
if (personApplicationRecord == null) {
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(false, "未完成应用程序与知识库的创建!"));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
Kv kv = Kv.by("success", true);
|
|
|
|
|
kv.set("message", "已完成应用程序与知识库的创建!");
|
|
|
|
@ -54,10 +56,12 @@ public class MaxKbController extends Controller {
|
|
|
|
|
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
|
|
|
|
|
if (StrKit.isBlank(person_id)) {
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(false, "未登录!"));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
Record personApplicationRecord = mkm.getPersonApplication(person_id);
|
|
|
|
|
if (personApplicationRecord != null) {
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(false, "已经有了应用和知识库不能重复创建!"));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//当前人员的姓名
|
|
|
|
|
Record rPerson = baseModel.getPersonInfo(person_id);
|
|
|
|
|