mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 17:38:32 +08:00
multi-tenancy
This commit is contained in:
parent
df81c2ed68
commit
c490551aef
@ -159,6 +159,7 @@ public abstract class AbstractAuthenticationRealm {
|
|||||||
historyLogin.setUserId(userInfo.getId());
|
historyLogin.setUserId(userInfo.getId());
|
||||||
historyLogin.setUsername(userInfo.getUsername());
|
historyLogin.setUsername(userInfo.getUsername());
|
||||||
historyLogin.setDisplayName(userInfo.getDisplayName());
|
historyLogin.setDisplayName(userInfo.getDisplayName());
|
||||||
|
historyLogin.setInstId(userInfo.getInstId());
|
||||||
|
|
||||||
loginHistoryService.login(historyLogin);
|
loginHistoryService.login(historyLogin);
|
||||||
|
|
||||||
|
|||||||
@ -70,6 +70,11 @@ public class Accounts extends JpaBaseEntity implements Serializable {
|
|||||||
@Column
|
@Column
|
||||||
private int status;
|
private int status;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
UserInfo userInfo;
|
UserInfo userInfo;
|
||||||
|
|
||||||
private HashMap<String,OrganizationsCast> orgCast =new HashMap<String,OrganizationsCast>();
|
private HashMap<String,OrganizationsCast> orgCast =new HashMap<String,OrganizationsCast>();
|
||||||
@ -206,7 +211,23 @@ public class Accounts extends JpaBaseEntity implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "AppAccounts [uid=" + userId + ", username=" + username + ", displayName=" + displayName + ", appId="
|
return "AppAccounts [uid=" + userId + ", username=" + username + ", displayName=" + displayName + ", appId="
|
||||||
+ appId + ", appName=" + appName + ", relatedUsername=" + relatedUsername + ", relatedPassword="
|
+ appId + ", appName=" + appName + ", relatedUsername=" + relatedUsername + ", relatedPassword="
|
||||||
|
|||||||
@ -67,6 +67,11 @@ public class AccountsStrategy extends JpaBaseEntity implements Serializable {
|
|||||||
String modifiedBy;
|
String modifiedBy;
|
||||||
@Column
|
@Column
|
||||||
String modifiedDate;
|
String modifiedDate;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public AccountsStrategy() {
|
public AccountsStrategy() {
|
||||||
super();
|
super();
|
||||||
@ -200,6 +205,22 @@ public class AccountsStrategy extends JpaBaseEntity implements Serializable {
|
|||||||
this.suffixes = suffixes;
|
this.suffixes = suffixes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -53,9 +53,11 @@ public class GroupMember extends UserInfo implements Serializable{
|
|||||||
private String memberName;
|
private String memberName;
|
||||||
@Column
|
@Column
|
||||||
private String type;//User or Group
|
private String type;//User or Group
|
||||||
|
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public GroupMember(){
|
public GroupMember(){
|
||||||
super();
|
super();
|
||||||
@ -165,6 +167,26 @@ public class GroupMember extends UserInfo implements Serializable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -52,6 +52,11 @@ public class GroupPrivileges extends Apps implements Serializable{
|
|||||||
@Column
|
@Column
|
||||||
private String appId;
|
private String appId;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public GroupPrivileges(){
|
public GroupPrivileges(){
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -104,6 +109,26 @@ public class GroupPrivileges extends Apps implements Serializable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -68,6 +68,11 @@ public class Groups extends JpaBaseEntity implements Serializable {
|
|||||||
String modifiedDate;
|
String modifiedDate;
|
||||||
@Column
|
@Column
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public Groups() {
|
public Groups() {
|
||||||
}
|
}
|
||||||
@ -202,7 +207,23 @@ public class Groups extends JpaBaseEntity implements Serializable {
|
|||||||
this.suspendTime = suspendTime;
|
this.suspendTime = suspendTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("Groups [id=");
|
builder.append("Groups [id=");
|
||||||
|
|||||||
@ -77,6 +77,10 @@ public class HistoryConnector extends JpaBaseEntity implements Serializable{
|
|||||||
|
|
||||||
String endDate;
|
String endDate;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
@ -208,6 +212,26 @@ public class HistoryConnector extends JpaBaseEntity implements Serializable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -75,6 +75,10 @@ public class HistoryLogin extends JpaBaseEntity implements Serializable{
|
|||||||
String loginTime;
|
String loginTime;
|
||||||
@Column
|
@Column
|
||||||
String logoutTime;
|
String logoutTime;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
int sessionStatus;
|
int sessionStatus;
|
||||||
|
|
||||||
@ -237,7 +241,23 @@ public class HistoryLogin extends JpaBaseEntity implements Serializable{
|
|||||||
this.sessionStatus = sessionStatus;
|
this.sessionStatus = sessionStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("HistoryLogin [id=");
|
builder.append("HistoryLogin [id=");
|
||||||
|
|||||||
@ -53,7 +53,10 @@ public class HistoryLoginApps extends JpaBaseEntity {
|
|||||||
private String displayName;
|
private String displayName;
|
||||||
@Column
|
@Column
|
||||||
private String loginTime;
|
private String loginTime;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
String startDate;
|
String startDate;
|
||||||
String endDate;
|
String endDate;
|
||||||
|
|
||||||
@ -210,6 +213,26 @@ public class HistoryLoginApps extends JpaBaseEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -61,7 +61,10 @@ public class HistoryLogs extends JpaBaseEntity implements Serializable {
|
|||||||
String modifiedBy;
|
String modifiedBy;
|
||||||
@Column
|
@Column
|
||||||
String modifiedDate;
|
String modifiedDate;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
String startDate;
|
String startDate;
|
||||||
String endDate;
|
String endDate;
|
||||||
|
|
||||||
@ -211,7 +214,23 @@ public class HistoryLogs extends JpaBaseEntity implements Serializable {
|
|||||||
this.endDate = endDate;
|
this.endDate = endDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("HistoryLogs [id=");
|
builder.append("HistoryLogs [id=");
|
||||||
|
|||||||
@ -57,7 +57,10 @@ public class HistorySynchronizer extends JpaBaseEntity implements Serializable
|
|||||||
String syncTime;
|
String syncTime;
|
||||||
@Column
|
@Column
|
||||||
String result;
|
String result;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
String startDate;
|
String startDate;
|
||||||
String endDate;
|
String endDate;
|
||||||
|
|
||||||
@ -131,7 +134,20 @@ public class HistorySynchronizer extends JpaBaseEntity implements Serializable
|
|||||||
public void setSessionId(String sessionId) {
|
public void setSessionId(String sessionId) {
|
||||||
this.sessionId = sessionId;
|
this.sessionId = sessionId;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("HistorySynchronizer [id=");
|
builder.append("HistorySynchronizer [id=");
|
||||||
|
|||||||
@ -1,195 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
package org.maxkey.entity;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import org.apache.mybatis.jpa.persistence.JpaBaseEntity;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Crystal.Sea
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class Navigations extends JpaBaseEntity implements java.io.Serializable {
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = -9015541177872583924L;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
private String name;
|
|
||||||
private String url;
|
|
||||||
private String type;
|
|
||||||
private String target;
|
|
||||||
private String pId;
|
|
||||||
private String pName;
|
|
||||||
private String xPath;
|
|
||||||
private String hasChild;
|
|
||||||
private int visible;
|
|
||||||
|
|
||||||
|
|
||||||
private ArrayList<Navigations> childNavs;
|
|
||||||
|
|
||||||
|
|
||||||
public Navigations() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the id
|
|
||||||
*/
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param id the id to set
|
|
||||||
*/
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Navigations(String id, String name, String url) {
|
|
||||||
super();
|
|
||||||
this.id = id;
|
|
||||||
this.name = name;
|
|
||||||
this.url = url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUrl() {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUrl(String url) {
|
|
||||||
this.url = url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTarget() {
|
|
||||||
return target;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTarget(String target) {
|
|
||||||
this.target = target;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getpId() {
|
|
||||||
return pId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setpId(String pId) {
|
|
||||||
this.pId = pId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getpName() {
|
|
||||||
return pName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setpName(String pName) {
|
|
||||||
this.pName = pName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getxPath() {
|
|
||||||
return xPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setxPath(String xPath) {
|
|
||||||
this.xPath = xPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getHasChild() {
|
|
||||||
return hasChild;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHasChild(String hasChild) {
|
|
||||||
this.hasChild = hasChild;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public int getVisible() {
|
|
||||||
return visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setVisible(int visible) {
|
|
||||||
this.visible = visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public ArrayList<Navigations> getChildNavs() {
|
|
||||||
return childNavs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChildNavs(ArrayList<Navigations> childNavs) {
|
|
||||||
this.childNavs = childNavs;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder builder = new StringBuilder();
|
|
||||||
builder.append("Navigations [id=");
|
|
||||||
builder.append(id);
|
|
||||||
builder.append(", name=");
|
|
||||||
builder.append(name);
|
|
||||||
builder.append(", url=");
|
|
||||||
builder.append(url);
|
|
||||||
builder.append(", type=");
|
|
||||||
builder.append(type);
|
|
||||||
builder.append(", target=");
|
|
||||||
builder.append(target);
|
|
||||||
builder.append(", pId=");
|
|
||||||
builder.append(pId);
|
|
||||||
builder.append(", pName=");
|
|
||||||
builder.append(pName);
|
|
||||||
builder.append(", xPath=");
|
|
||||||
builder.append(xPath);
|
|
||||||
builder.append(", hasChild=");
|
|
||||||
builder.append(hasChild);
|
|
||||||
builder.append(", visible=");
|
|
||||||
builder.append(visible);
|
|
||||||
builder.append(", childNavs=");
|
|
||||||
builder.append(childNavs);
|
|
||||||
builder.append("]");
|
|
||||||
return builder.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -63,7 +63,10 @@ public class Notices extends JpaBaseEntity implements Serializable {
|
|||||||
protected String modifiedDate;
|
protected String modifiedDate;
|
||||||
@Column
|
@Column
|
||||||
protected String description;
|
protected String description;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public Notices() {
|
public Notices() {
|
||||||
|
|
||||||
@ -141,6 +144,22 @@ public class Notices extends JpaBaseEntity implements Serializable {
|
|||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -95,6 +95,11 @@ public class Organizations extends JpaBaseEntity implements Serializable {
|
|||||||
@Column
|
@Column
|
||||||
String modifiedDate;
|
String modifiedDate;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
private int isPrimary = 0;
|
private int isPrimary = 0;
|
||||||
|
|
||||||
private boolean reorgNamePath;
|
private boolean reorgNamePath;
|
||||||
@ -371,6 +376,22 @@ public class Organizations extends JpaBaseEntity implements Serializable {
|
|||||||
this.modifiedDate = modifiedDate;
|
this.modifiedDate = modifiedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -64,7 +64,10 @@ public class OrganizationsCast extends JpaBaseEntity implements Serializable {
|
|||||||
private String orgId;
|
private String orgId;
|
||||||
@Column
|
@Column
|
||||||
private String orgParentId;
|
private String orgParentId;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
//重组标志
|
//重组标志
|
||||||
boolean reorgNamePath;
|
boolean reorgNamePath;
|
||||||
|
|
||||||
@ -185,6 +188,22 @@ public class OrganizationsCast extends JpaBaseEntity implements Serializable {
|
|||||||
this.reorgNamePath = reorgNamePath;
|
this.reorgNamePath = reorgNamePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
package org.maxkey.entity;
|
package org.maxkey.entity;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
|
||||||
import org.apache.mybatis.jpa.persistence.JpaBaseEntity;
|
import org.apache.mybatis.jpa.persistence.JpaBaseEntity;
|
||||||
|
|
||||||
public class Registration extends JpaBaseEntity{
|
public class Registration extends JpaBaseEntity{
|
||||||
@ -34,6 +36,10 @@ public class Registration extends JpaBaseEntity{
|
|||||||
private String lastName;//familyName
|
private String lastName;//familyName
|
||||||
private String firstName;//givenName
|
private String firstName;//givenName
|
||||||
private Integer users;
|
private Integer users;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -162,6 +168,22 @@ public class Registration extends JpaBaseEntity{
|
|||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -67,7 +67,11 @@ public class Resources extends JpaBaseEntity implements Serializable {
|
|||||||
String modifiedBy;
|
String modifiedBy;
|
||||||
@Column
|
@Column
|
||||||
String modifiedDate;
|
String modifiedDate;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public Resources() {
|
public Resources() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -216,7 +220,23 @@ public class Resources extends JpaBaseEntity implements Serializable {
|
|||||||
this.sortIndex = sortIndex;
|
this.sortIndex = sortIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("Resources [id=");
|
builder.append("Resources [id=");
|
||||||
|
|||||||
@ -47,7 +47,11 @@ public class RoleMember extends UserInfo implements Serializable {
|
|||||||
private String memberName;
|
private String memberName;
|
||||||
@Column
|
@Column
|
||||||
private String type;// User or Roles
|
private String type;// User or Roles
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public RoleMember() {
|
public RoleMember() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -100,7 +104,23 @@ public class RoleMember extends UserInfo implements Serializable {
|
|||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RoleMember(String roleId, String memberId, String type) {
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RoleMember(String roleId, String memberId, String type) {
|
||||||
super();
|
super();
|
||||||
this.roleId = roleId;
|
this.roleId = roleId;
|
||||||
this.memberId = memberId;
|
this.memberId = memberId;
|
||||||
|
|||||||
@ -45,7 +45,11 @@ public class RolePermissions extends JpaBaseEntity implements Serializable {
|
|||||||
String resourceId;
|
String resourceId;
|
||||||
|
|
||||||
int status = ConstantsStatus.ACTIVE;
|
int status = ConstantsStatus.ACTIVE;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public RolePermissions() {
|
public RolePermissions() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,7 +115,23 @@ public class RolePermissions extends JpaBaseEntity implements Serializable {
|
|||||||
return appId + "_" + roleId + "_" + resourceId;
|
return appId + "_" + roleId + "_" + resourceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("RolePermissions [id=");
|
builder.append("RolePermissions [id=");
|
||||||
|
|||||||
@ -57,7 +57,11 @@ public class Roles extends JpaBaseEntity implements Serializable {
|
|||||||
String modifiedBy;
|
String modifiedBy;
|
||||||
@Column
|
@Column
|
||||||
String modifiedDate;
|
String modifiedDate;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public Roles() {
|
public Roles() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -150,7 +154,23 @@ public class Roles extends JpaBaseEntity implements Serializable {
|
|||||||
this.orgIdsList = orgIdsList;
|
this.orgIdsList = orgIdsList;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("Roles [id=");
|
builder.append("Roles [id=");
|
||||||
|
|||||||
@ -61,6 +61,8 @@ public class SocialsProvider extends JpaBaseEntity implements Serializable {
|
|||||||
private long sortIndex;
|
private long sortIndex;
|
||||||
@Column
|
@Column
|
||||||
private int status;
|
private int status;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
@Column
|
@Column
|
||||||
String createdBy;
|
String createdBy;
|
||||||
@Column
|
@Column
|
||||||
@ -259,7 +261,15 @@ public class SocialsProvider extends JpaBaseEntity implements Serializable {
|
|||||||
this.sortIndex = sortIndex;
|
this.sortIndex = sortIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("SocialsProvider [id=");
|
builder.append("SocialsProvider [id=");
|
||||||
|
|||||||
@ -86,6 +86,11 @@ public class Synchronizers extends JpaBaseEntity implements Serializable {
|
|||||||
String status;
|
String status;
|
||||||
|
|
||||||
String service;
|
String service;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public Synchronizers() {
|
public Synchronizers() {
|
||||||
}
|
}
|
||||||
@ -294,6 +299,30 @@ public class Synchronizers extends JpaBaseEntity implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -260,6 +260,11 @@ public class UserInfo extends JpaBaseEntity {
|
|||||||
@Column
|
@Column
|
||||||
String description;
|
String description;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
List<Organizations> depts;
|
List<Organizations> depts;
|
||||||
|
|
||||||
List<UserInfoAdjoint> adjoints;
|
List<UserInfoAdjoint> adjoints;
|
||||||
@ -1260,7 +1265,23 @@ public class UserInfo extends JpaBaseEntity {
|
|||||||
this.adjoints = adjoints;
|
this.adjoints = adjoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("UserInfo [id=");
|
builder.append("UserInfo [id=");
|
||||||
|
|||||||
@ -90,6 +90,12 @@ public class UserInfoAdjoint extends JpaBaseEntity {
|
|||||||
protected String entryDate;
|
protected String entryDate;
|
||||||
@Column
|
@Column
|
||||||
protected String quitDate;
|
protected String quitDate;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public UserInfoAdjoint() {
|
public UserInfoAdjoint() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -245,7 +251,20 @@ public class UserInfoAdjoint extends JpaBaseEntity {
|
|||||||
public void setUserId(String userId) {
|
public void setUserId(String userId) {
|
||||||
this.userId = userId;
|
this.userId = userId;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("UserInfoAdjoint [id=");
|
builder.append("UserInfoAdjoint [id=");
|
||||||
|
|||||||
@ -157,7 +157,10 @@ public class Apps extends JpaBaseEntity implements Serializable {
|
|||||||
protected String modifiedDate;
|
protected String modifiedDate;
|
||||||
@Column
|
@Column
|
||||||
protected String description;
|
protected String description;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
protected String loginDateTime;
|
protected String loginDateTime;
|
||||||
|
|
||||||
@ -583,6 +586,22 @@ public class Apps extends JpaBaseEntity implements Serializable {
|
|||||||
this.adapterName = adapterName;
|
this.adapterName = adapterName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|||||||
@ -42,6 +42,10 @@ public class AppsCasDetails extends Apps {
|
|||||||
private Integer expires;
|
private Integer expires;
|
||||||
@Column
|
@Column
|
||||||
private String callbackUrl;
|
private String callbackUrl;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the service
|
* @return the service
|
||||||
@ -75,6 +79,22 @@ public class AppsCasDetails extends Apps {
|
|||||||
this.expires = expires;
|
this.expires = expires;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
@ -86,6 +106,10 @@ public class AppsCasDetails extends Apps {
|
|||||||
builder.append(expires);
|
builder.append(expires);
|
||||||
builder.append(", callbackUrl=");
|
builder.append(", callbackUrl=");
|
||||||
builder.append(callbackUrl);
|
builder.append(callbackUrl);
|
||||||
|
builder.append(", instId=");
|
||||||
|
builder.append(instId);
|
||||||
|
builder.append(", instName=");
|
||||||
|
builder.append(instName);
|
||||||
builder.append("]");
|
builder.append("]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,10 @@ public class AppsFormBasedDetails extends Apps {
|
|||||||
private String passwordAlgorithm;
|
private String passwordAlgorithm;
|
||||||
@Column
|
@Column
|
||||||
private String authorizeView;
|
private String authorizeView;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -135,21 +138,47 @@ public class AppsFormBasedDetails extends Apps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
public String toString() {
|
return instId;
|
||||||
StringBuilder builder = new StringBuilder();
|
}
|
||||||
builder.append("AppsFormBasedDetails [id=");
|
|
||||||
builder.append(id);
|
|
||||||
builder.append(", redirectUri=");
|
public void setInstId(String instId) {
|
||||||
builder.append(redirectUri);
|
this.instId = instId;
|
||||||
builder.append(", usernameMapping=");
|
}
|
||||||
builder.append(usernameMapping);
|
|
||||||
builder.append(", passwordMapping=");
|
|
||||||
builder.append(passwordMapping);
|
public String getInstName() {
|
||||||
builder.append(", authorizeView=");
|
return instName;
|
||||||
builder.append(authorizeView);
|
}
|
||||||
builder.append("]");
|
|
||||||
return builder.toString();
|
|
||||||
}
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder builder = new StringBuilder();
|
||||||
|
builder.append("AppsFormBasedDetails [id=");
|
||||||
|
builder.append(id);
|
||||||
|
builder.append(", redirectUri=");
|
||||||
|
builder.append(redirectUri);
|
||||||
|
builder.append(", usernameMapping=");
|
||||||
|
builder.append(usernameMapping);
|
||||||
|
builder.append(", passwordMapping=");
|
||||||
|
builder.append(passwordMapping);
|
||||||
|
builder.append(", passwordAlgorithm=");
|
||||||
|
builder.append(passwordAlgorithm);
|
||||||
|
builder.append(", authorizeView=");
|
||||||
|
builder.append(authorizeView);
|
||||||
|
builder.append(", instId=");
|
||||||
|
builder.append(instId);
|
||||||
|
builder.append(", instName=");
|
||||||
|
builder.append(instName);
|
||||||
|
builder.append("]");
|
||||||
|
return builder.toString();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,7 +60,10 @@ public class AppsJwtDetails extends Apps {
|
|||||||
private String algorithmKey;
|
private String algorithmKey;
|
||||||
@Column
|
@Column
|
||||||
private String expires;
|
private String expires;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public AppsJwtDetails() {
|
public AppsJwtDetails() {
|
||||||
super();
|
super();
|
||||||
@ -137,25 +140,49 @@ public class AppsJwtDetails extends Apps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
public String toString() {
|
return instId;
|
||||||
StringBuilder builder = new StringBuilder();
|
}
|
||||||
builder.append("AppsTokenBasedDetails [id=");
|
|
||||||
builder.append(id);
|
|
||||||
builder.append(", redirectUri=");
|
public void setInstId(String instId) {
|
||||||
builder.append(redirectUri);
|
this.instId = instId;
|
||||||
builder.append(", tokenType=");
|
}
|
||||||
builder.append(tokenType);
|
|
||||||
builder.append(", cookieName=");
|
|
||||||
builder.append(cookieName);
|
public String getInstName() {
|
||||||
builder.append(", algorithm=");
|
return instName;
|
||||||
builder.append(algorithm);
|
}
|
||||||
builder.append(", algorithmKey=");
|
|
||||||
builder.append(algorithmKey);
|
|
||||||
builder.append(", expires=");
|
public void setInstName(String instName) {
|
||||||
builder.append(expires);
|
this.instName = instName;
|
||||||
builder.append("]");
|
}
|
||||||
return builder.toString();
|
|
||||||
}
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder builder = new StringBuilder();
|
||||||
|
builder.append("AppsJwtDetails [id=");
|
||||||
|
builder.append(id);
|
||||||
|
builder.append(", redirectUri=");
|
||||||
|
builder.append(redirectUri);
|
||||||
|
builder.append(", tokenType=");
|
||||||
|
builder.append(tokenType);
|
||||||
|
builder.append(", cookieName=");
|
||||||
|
builder.append(cookieName);
|
||||||
|
builder.append(", algorithm=");
|
||||||
|
builder.append(algorithm);
|
||||||
|
builder.append(", algorithmKey=");
|
||||||
|
builder.append(algorithmKey);
|
||||||
|
builder.append(", expires=");
|
||||||
|
builder.append(expires);
|
||||||
|
builder.append(", instId=");
|
||||||
|
builder.append(instId);
|
||||||
|
builder.append(", instName=");
|
||||||
|
builder.append(instName);
|
||||||
|
builder.append("]");
|
||||||
|
return builder.toString();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -65,6 +65,9 @@ public class AppsOAuth20Details extends Apps {
|
|||||||
|
|
||||||
private String pkce;
|
private String pkce;
|
||||||
|
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -118,6 +121,7 @@ public class AppsOAuth20Details extends Apps {
|
|||||||
this.approvalPrompt = baseClientDetails.getApprovalPrompt();
|
this.approvalPrompt = baseClientDetails.getApprovalPrompt();
|
||||||
|
|
||||||
this.pkce = baseClientDetails.getPkce();
|
this.pkce = baseClientDetails.getPkce();
|
||||||
|
this.instId = baseClientDetails.getInstId();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -326,7 +330,23 @@ public class AppsOAuth20Details extends Apps {
|
|||||||
this.jwksUri = jwksUri;
|
this.jwksUri = jwksUri;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BaseClientDetails clientDetailsRowMapper() {
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseClientDetails clientDetailsRowMapper() {
|
||||||
BaseClientDetails baseClientDetails = new BaseClientDetails(this.getId(), this.getId(), this.getScope(),
|
BaseClientDetails baseClientDetails = new BaseClientDetails(this.getId(), this.getId(), this.getScope(),
|
||||||
this.getAuthorizedGrantTypes(), "ROLE_CLIENT, ROLE_TRUSTED_CLIENT", this.getRegisteredRedirectUris());
|
this.getAuthorizedGrantTypes(), "ROLE_CLIENT, ROLE_TRUSTED_CLIENT", this.getRegisteredRedirectUris());
|
||||||
baseClientDetails.setAccessTokenValiditySeconds(this.getAccessTokenValiditySeconds());
|
baseClientDetails.setAccessTokenValiditySeconds(this.getAccessTokenValiditySeconds());
|
||||||
@ -346,7 +366,7 @@ public class AppsOAuth20Details extends Apps {
|
|||||||
baseClientDetails.setApprovalPrompt(this.getApprovalPrompt());
|
baseClientDetails.setApprovalPrompt(this.getApprovalPrompt());
|
||||||
baseClientDetails.setPkce(this.getPkce());
|
baseClientDetails.setPkce(this.getPkce());
|
||||||
baseClientDetails.setProtocol(this.getProtocol());
|
baseClientDetails.setProtocol(this.getProtocol());
|
||||||
|
baseClientDetails.setInstId(instId);
|
||||||
return baseClientDetails;
|
return baseClientDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -105,7 +105,11 @@ public class AppsSAML20Details extends Apps {
|
|||||||
|
|
||||||
@Column
|
@Column
|
||||||
private String nameIdSuffix;
|
private String nameIdSuffix;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public static final class BindingType {
|
public static final class BindingType {
|
||||||
public static final String Redirect_Post = "Redirect-Post";
|
public static final String Redirect_Post = "Redirect-Post";
|
||||||
public static final String Post_Post = "Post-Post";
|
public static final String Post_Post = "Post-Post";
|
||||||
@ -359,7 +363,23 @@ public class AppsSAML20Details extends Apps {
|
|||||||
this.metaUrl = metaUrl;
|
this.metaUrl = metaUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("AppsSAML20Details [id=");
|
builder.append("AppsSAML20Details [id=");
|
||||||
|
|||||||
@ -60,7 +60,10 @@ public class AppsTokenBasedDetails extends Apps {
|
|||||||
private String algorithmKey;
|
private String algorithmKey;
|
||||||
@Column
|
@Column
|
||||||
private String expires;
|
private String expires;
|
||||||
|
@Column
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
private String instName;
|
||||||
|
|
||||||
public AppsTokenBasedDetails() {
|
public AppsTokenBasedDetails() {
|
||||||
super();
|
super();
|
||||||
@ -137,7 +140,27 @@ public class AppsTokenBasedDetails extends Apps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
public String getInstId() {
|
||||||
|
return instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getInstName() {
|
||||||
|
return instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setInstName(String instName) {
|
||||||
|
this.instName = instName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("AppsTokenBasedDetails [id=");
|
builder.append("AppsTokenBasedDetails [id=");
|
||||||
|
|||||||
@ -152,5 +152,7 @@ public interface ClientDetails extends Serializable {
|
|||||||
|
|
||||||
public String getProtocol();
|
public String getProtocol();
|
||||||
|
|
||||||
|
public String getInstId();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -98,6 +98,8 @@ public class BaseClientDetails implements ClientDetails {
|
|||||||
|
|
||||||
private String protocol;
|
private String protocol;
|
||||||
|
|
||||||
|
private String instId;
|
||||||
|
|
||||||
|
|
||||||
public BaseClientDetails() {
|
public BaseClientDetails() {
|
||||||
}
|
}
|
||||||
@ -391,7 +393,16 @@ public class BaseClientDetails implements ClientDetails {
|
|||||||
this.protocol = protocol;
|
this.protocol = protocol;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
public String getInstId() {
|
||||||
|
return this.instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstId(String instId) {
|
||||||
|
this.instId = instId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
@ -525,4 +536,6 @@ public class BaseClientDetails implements ClientDetails {
|
|||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,7 +20,6 @@ package org.maxkey.persistence.db;
|
|||||||
import java.sql.Types;
|
import java.sql.Types;
|
||||||
|
|
||||||
import org.maxkey.entity.HistoryLogin;
|
import org.maxkey.entity.HistoryLogin;
|
||||||
import org.maxkey.entity.UserInfo;
|
|
||||||
import org.maxkey.web.WebContext;
|
import org.maxkey.web.WebContext;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -29,7 +28,7 @@ import org.springframework.jdbc.core.JdbcTemplate;
|
|||||||
public class LoginHistoryService {
|
public class LoginHistoryService {
|
||||||
private static Logger _logger = LoggerFactory.getLogger(LoginHistoryService.class);
|
private static Logger _logger = LoggerFactory.getLogger(LoginHistoryService.class);
|
||||||
|
|
||||||
private static final String HISTORY_LOGIN_INSERT_STATEMENT = "insert into mxk_history_login (id , sessionid , userid , username , displayname , logintype , message , code , provider , sourceip , browser , platform , application , loginurl , sessionstatus)values( ? , ? , ? , ? , ? , ?, ? , ? , ?, ? , ? , ?, ? , ? , ?)";
|
private static final String HISTORY_LOGIN_INSERT_STATEMENT = "insert into mxk_history_login (id , sessionid , userid , username , displayname , logintype , message , code , provider , sourceip , browser , platform , application , loginurl , sessionstatus ,instid)values( ? , ? , ? , ? , ? , ? , ?, ? , ? , ?, ? , ? , ?, ? , ? , ?)";
|
||||||
|
|
||||||
private static final String HISTORY_LOGOUT_UPDATE_STATEMENT = "update mxk_history_login set logouttime = ? ,sessionstatus = 7 where sessionid = ?";
|
private static final String HISTORY_LOGOUT_UPDATE_STATEMENT = "update mxk_history_login set logouttime = ? ,sessionstatus = 7 where sessionid = ?";
|
||||||
|
|
||||||
@ -38,24 +37,7 @@ public class LoginHistoryService {
|
|||||||
public LoginHistoryService(JdbcTemplate jdbcTemplate) {
|
public LoginHistoryService(JdbcTemplate jdbcTemplate) {
|
||||||
this.jdbcTemplate = jdbcTemplate;
|
this.jdbcTemplate = jdbcTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public void login(UserInfo userInfo,String sessionId,
|
|
||||||
String type, String message, String code, String provider,String browser, String platform,int sessionStatus) {
|
|
||||||
jdbcTemplate.update(HISTORY_LOGIN_INSERT_STATEMENT,
|
|
||||||
new Object[] { WebContext.genId(), sessionId, userInfo.getId(), userInfo.getUsername(),
|
|
||||||
userInfo.getDisplayName(), type, message, code, provider, userInfo.getLastLoginIp(), browser, platform,
|
|
||||||
"Browser", WebContext.getRequest().getRequestURI() , sessionStatus},
|
|
||||||
new int[] {
|
|
||||||
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR,
|
|
||||||
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR,
|
|
||||||
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR ,Types.INTEGER
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void login(HistoryLogin historyLogin) {
|
public void login(HistoryLogin historyLogin) {
|
||||||
historyLogin.setId(WebContext.genId());
|
historyLogin.setId(WebContext.genId());
|
||||||
historyLogin.setLoginUrl(WebContext.getRequest().getRequestURI());
|
historyLogin.setLoginUrl(WebContext.getRequest().getRequestURI());
|
||||||
@ -65,12 +47,13 @@ public class LoginHistoryService {
|
|||||||
historyLogin.getId(), historyLogin.getSessionId(), historyLogin.getUserId(), historyLogin.getUsername(),
|
historyLogin.getId(), historyLogin.getSessionId(), historyLogin.getUserId(), historyLogin.getUsername(),
|
||||||
historyLogin.getDisplayName(), historyLogin.getLoginType(), historyLogin.getMessage(), historyLogin.getCode(),
|
historyLogin.getDisplayName(), historyLogin.getLoginType(), historyLogin.getMessage(), historyLogin.getCode(),
|
||||||
historyLogin.getProvider(), historyLogin.getSourceIp(), historyLogin.getBrowser(), historyLogin.getPlatform(),
|
historyLogin.getProvider(), historyLogin.getSourceIp(), historyLogin.getBrowser(), historyLogin.getPlatform(),
|
||||||
"Browser", historyLogin.getLoginUrl() , historyLogin.getSessionStatus()
|
"Browser", historyLogin.getLoginUrl() , historyLogin.getSessionStatus(),historyLogin.getInstId()
|
||||||
},
|
},
|
||||||
new int[] {
|
new int[] {
|
||||||
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR,
|
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR,
|
||||||
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR,
|
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR,
|
||||||
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR ,Types.INTEGER
|
Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR ,Types.INTEGER,
|
||||||
|
Types.VARCHAR
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -360,6 +360,7 @@ public class LoginService {
|
|||||||
userInfo.setGridList(rs.getInt("GRIDLIST"));
|
userInfo.setGridList(rs.getInt("GRIDLIST"));
|
||||||
userInfo.setDescription(rs.getString("DESCRIPTION"));
|
userInfo.setDescription(rs.getString("DESCRIPTION"));
|
||||||
userInfo.setTheme(rs.getString("THEME"));
|
userInfo.setTheme(rs.getString("THEME"));
|
||||||
|
userInfo.setInstId(rs.getString("INSTID"));
|
||||||
if (userInfo.getTheme() == null || userInfo.getTheme().equalsIgnoreCase("")) {
|
if (userInfo.getTheme() == null || userInfo.getTheme().equalsIgnoreCase("")) {
|
||||||
userInfo.setTheme("default");
|
userInfo.setTheme("default");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.maxkey.persistence.mapper;
|
package org.maxkey.persistence.mapper;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@ -33,18 +34,18 @@ import org.apache.mybatis.jpa.persistence.JpaBaseEntity;
|
|||||||
*/
|
*/
|
||||||
public interface ReportMapper extends IJpaBaseMapper<JpaBaseEntity> {
|
public interface ReportMapper extends IJpaBaseMapper<JpaBaseEntity> {
|
||||||
|
|
||||||
public Integer analysisDay(String reportParameter);
|
public Integer analysisDay(HashMap<String,Object> reportParameter);
|
||||||
public Integer analysisNewUsers(String reportParameter);
|
public Integer analysisNewUsers(HashMap<String,Object> reportParameter);
|
||||||
public Integer analysisOnlineUsers(String reportParameter);
|
public Integer analysisOnlineUsers(HashMap<String,Object> reportParameter);
|
||||||
public Integer analysisActiveUsers(String reportParameter);
|
public Integer analysisActiveUsers(HashMap<String,Object> reportParameter);
|
||||||
|
|
||||||
public List<Map<String,Object>> analysisDayHour(String reportParameter);
|
public List<Map<String,Object>> analysisDayHour(HashMap<String,Object> reportParameter);
|
||||||
|
|
||||||
public List<Map<String,Object>> analysisMonth(String reportParameter);
|
public List<Map<String,Object>> analysisMonth(HashMap<String,Object> reportParameter);
|
||||||
|
|
||||||
public List<Map<String,Object>> analysisBrowser(Map<String,Object> reportParameter);
|
public List<Map<String,Object>> analysisBrowser(HashMap<String,Object> reportParameter);
|
||||||
|
|
||||||
public List<Map<String,Object>> analysisApp(Map<String,Object> reportParameter );
|
public List<Map<String,Object>> analysisApp(HashMap<String,Object> reportParameter );
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
package org.maxkey.persistence.service;
|
package org.maxkey.persistence.service;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@ -28,36 +29,36 @@ import org.springframework.stereotype.Repository;
|
|||||||
@Repository
|
@Repository
|
||||||
public class ReportService extends JpaBaseService<JpaBaseEntity>{
|
public class ReportService extends JpaBaseService<JpaBaseEntity>{
|
||||||
|
|
||||||
public Integer analysisDay(String reportParameter) {
|
public Integer analysisDay(HashMap<String,Object> reportParameter) {
|
||||||
return getMapper().analysisDay(reportParameter);
|
return getMapper().analysisDay(reportParameter);
|
||||||
};
|
};
|
||||||
|
|
||||||
public Integer analysisNewUsers(String reportParameter) {
|
public Integer analysisNewUsers(HashMap<String,Object> reportParameter) {
|
||||||
return getMapper().analysisNewUsers(reportParameter);
|
return getMapper().analysisNewUsers(reportParameter);
|
||||||
};
|
};
|
||||||
|
|
||||||
public Integer analysisOnlineUsers(String reportParameter) {
|
public Integer analysisOnlineUsers(HashMap<String,Object> reportParameter) {
|
||||||
return getMapper().analysisOnlineUsers(reportParameter);
|
return getMapper().analysisOnlineUsers(reportParameter);
|
||||||
};
|
};
|
||||||
|
|
||||||
public Integer analysisActiveUsers(String reportParameter) {
|
public Integer analysisActiveUsers(HashMap<String,Object> reportParameter) {
|
||||||
return getMapper().analysisActiveUsers(reportParameter);
|
return getMapper().analysisActiveUsers(reportParameter);
|
||||||
};
|
};
|
||||||
|
|
||||||
public List<Map<String,Object>> analysisDayHour(String reportParameter){
|
public List<Map<String,Object>> analysisDayHour(HashMap<String,Object> reportParameter){
|
||||||
return getMapper().analysisDayHour(reportParameter);
|
return getMapper().analysisDayHour(reportParameter);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Map<String,Object>> analysisMonth(String reportParameter){
|
public List<Map<String,Object>> analysisMonth(HashMap<String,Object> reportParameter){
|
||||||
return getMapper().analysisMonth(reportParameter);
|
return getMapper().analysisMonth(reportParameter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<Map<String,Object>> analysisBrowser(Map<String,Object> reportParameter){
|
public List<Map<String,Object>> analysisBrowser(HashMap<String,Object> reportParameter){
|
||||||
return getMapper().analysisBrowser(reportParameter);
|
return getMapper().analysisBrowser(reportParameter);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Map<String,Object>> analysisApp(Map<String,Object> reportParameter){
|
public List<Map<String,Object>> analysisApp(HashMap<String,Object> reportParameter){
|
||||||
return getMapper().analysisApp(reportParameter);
|
return getMapper().analysisApp(reportParameter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,8 +24,7 @@
|
|||||||
*
|
*
|
||||||
from
|
from
|
||||||
mxk_accounts
|
mxk_accounts
|
||||||
where
|
where instid = #{instId}
|
||||||
(1=1)
|
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -33,9 +32,11 @@
|
|||||||
select
|
select
|
||||||
*
|
*
|
||||||
from mxk_userinfo u
|
from mxk_userinfo u
|
||||||
where not exists(
|
where u.instid = #{instId}
|
||||||
|
and not exists(
|
||||||
select 1 from mxk_accounts ac
|
select 1 from mxk_accounts ac
|
||||||
where ac.appid = #{appId}
|
where ac.appid = #{appId}
|
||||||
|
and ac.instid = #{instId}
|
||||||
and ac.userid = u.id
|
and ac.userid = u.id
|
||||||
and ac.createtype='automatic'
|
and ac.createtype='automatic'
|
||||||
)
|
)
|
||||||
@ -49,13 +50,14 @@
|
|||||||
|
|
||||||
<delete id="deleteByStrategy" parameterType="AccountsStrategy" >
|
<delete id="deleteByStrategy" parameterType="AccountsStrategy" >
|
||||||
delete from mxk_accounts ac
|
delete from mxk_accounts ac
|
||||||
where ac.createtype = 'automatic'
|
where ac.instid = #{instId}
|
||||||
|
and ac.createtype = 'automatic'
|
||||||
and ac.appid = #{appId}
|
and ac.appid = #{appId}
|
||||||
and ac.strategyid = #{id}
|
and ac.strategyid = #{id}
|
||||||
and not exists(
|
and not exists(
|
||||||
select 1
|
select 1
|
||||||
from mxk_userinfo u
|
from mxk_userinfo u
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
and u.id=ac.userid
|
and u.id=ac.userid
|
||||||
<if test="filters != null and filters != ''">
|
<if test="filters != null and filters != ''">
|
||||||
and (${filters})
|
and (${filters})
|
||||||
|
|||||||
@ -23,8 +23,9 @@
|
|||||||
from
|
from
|
||||||
mxk_accounts_strategy mas,
|
mxk_accounts_strategy mas,
|
||||||
mxk_apps ma
|
mxk_apps ma
|
||||||
where
|
where ma.instid = #{instId}
|
||||||
mas.appid = ma.id
|
and mas.instid = #{instId}
|
||||||
|
and mas.appid = ma.id
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
@ -7,8 +7,9 @@
|
|||||||
from
|
from
|
||||||
mxk_apps_cas_details cd,
|
mxk_apps_cas_details cd,
|
||||||
mxk_apps app
|
mxk_apps app
|
||||||
where
|
where app.instid = #{instId}
|
||||||
status = 1
|
and cd.instid = #{instId}
|
||||||
|
and app.status = 1
|
||||||
and cd.id = app.id
|
and cd.id = app.id
|
||||||
and (
|
and (
|
||||||
app.id = #{value}
|
app.id = #{value}
|
||||||
|
|||||||
@ -8,8 +8,9 @@
|
|||||||
from
|
from
|
||||||
mxk_apps_form_based_details fbd,
|
mxk_apps_form_based_details fbd,
|
||||||
mxk_apps app
|
mxk_apps app
|
||||||
where
|
where app.instId = #{instId}
|
||||||
app.id = #{value}
|
and fbd.instId = #{instId}
|
||||||
|
and app.id = #{value}
|
||||||
and fbd.id = #{value}
|
and fbd.id = #{value}
|
||||||
and fbd.id = app.id
|
and fbd.id = app.id
|
||||||
and status = 1
|
and status = 1
|
||||||
|
|||||||
@ -8,11 +8,12 @@
|
|||||||
from
|
from
|
||||||
mxk_apps_jwt_details jd,
|
mxk_apps_jwt_details jd,
|
||||||
mxk_apps app
|
mxk_apps app
|
||||||
where
|
where app.instid = #{instId}
|
||||||
app.id = #{value}
|
and jd.instid = #{instId}
|
||||||
and jd.id = #{value}
|
and app.id = #{value}
|
||||||
and jd.id = app.id
|
and jd.id = #{value}
|
||||||
and status = 1
|
and status = 1
|
||||||
|
and jd.id = app.id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -30,8 +30,7 @@
|
|||||||
*
|
*
|
||||||
from
|
from
|
||||||
mxk_apps
|
mxk_apps
|
||||||
where
|
where instid = #{instId}
|
||||||
(1=1)
|
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
order by sortindex
|
order by sortindex
|
||||||
</select>
|
</select>
|
||||||
@ -79,7 +78,8 @@
|
|||||||
status,
|
status,
|
||||||
|
|
||||||
logouturl,
|
logouturl,
|
||||||
logouttype
|
logouttype,
|
||||||
|
instid
|
||||||
)values(
|
)values(
|
||||||
#{id},
|
#{id},
|
||||||
#{name},
|
#{name},
|
||||||
@ -120,7 +120,8 @@
|
|||||||
#{status},
|
#{status},
|
||||||
|
|
||||||
#{logoutUrl},
|
#{logoutUrl},
|
||||||
#{logoutType}
|
#{logoutType},
|
||||||
|
#{instId}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@ -179,6 +180,9 @@
|
|||||||
where
|
where
|
||||||
app.id=gp.appid
|
app.id=gp.appid
|
||||||
and gp.groupid=g.id
|
and gp.groupid=g.id
|
||||||
|
and app.instid = #{instId}
|
||||||
|
and gp.instid = #{instId}
|
||||||
|
and g.instid = #{instId}
|
||||||
and app.visible != 0
|
and app.visible != 0
|
||||||
and (
|
and (
|
||||||
g.id='ROLE_ALL_USER'
|
g.id='ROLE_ALL_USER'
|
||||||
|
|||||||
@ -24,8 +24,9 @@
|
|||||||
from
|
from
|
||||||
mxk_apps_saml_v20_details svd,
|
mxk_apps_saml_v20_details svd,
|
||||||
mxk_apps app
|
mxk_apps app
|
||||||
where
|
where app.instid = #{instId}
|
||||||
app.id = #{value}
|
and svd.instid = #{instId}
|
||||||
|
and app.id = #{value}
|
||||||
and svd.id = #{value}
|
and svd.id = #{value}
|
||||||
and svd.id = app.id
|
and svd.id = app.id
|
||||||
and app.status = 1
|
and app.status = 1
|
||||||
|
|||||||
@ -8,8 +8,9 @@
|
|||||||
from
|
from
|
||||||
mxk_apps_token_based_details tbd,
|
mxk_apps_token_based_details tbd,
|
||||||
mxk_apps app
|
mxk_apps app
|
||||||
where
|
where app.instid = #{instId}
|
||||||
app.id = #{value}
|
and tbd.instid = #{instId}
|
||||||
|
and app.id = #{value}
|
||||||
and tbd.id = #{value}
|
and tbd.id = #{value}
|
||||||
and tbd.id = app.id
|
and tbd.id = app.id
|
||||||
and status = 1
|
and status = 1
|
||||||
|
|||||||
@ -50,7 +50,7 @@
|
|||||||
u.status
|
u.status
|
||||||
from
|
from
|
||||||
mxk_userinfo u
|
mxk_userinfo u
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="memberInGroup" parameterType="GroupMember" resultType="GroupMember">
|
<select id="memberInGroup" parameterType="GroupMember" resultType="GroupMember">
|
||||||
@ -92,7 +92,9 @@
|
|||||||
mxk_userinfo u,
|
mxk_userinfo u,
|
||||||
mxk_groups g,
|
mxk_groups g,
|
||||||
mxk_group_member gm
|
mxk_group_member gm
|
||||||
where 1 = 1
|
where u.instid = #{instId}
|
||||||
|
and g.instid = #{instId}
|
||||||
|
and gm.instid = #{instId}
|
||||||
<if test="groupId != null and groupId != ''">
|
<if test="groupId != null and groupId != ''">
|
||||||
and gm.groupid = #{groupId}
|
and gm.groupid = #{groupId}
|
||||||
and g.id = #{groupId}
|
and g.id = #{groupId}
|
||||||
|
|||||||
@ -35,7 +35,9 @@
|
|||||||
mxk_apps apps,
|
mxk_apps apps,
|
||||||
mxk_group_privileges gp
|
mxk_group_privileges gp
|
||||||
where
|
where
|
||||||
gp.appid=apps.id
|
apps.instid = #{instId}
|
||||||
|
and gp.instid = #{instId}
|
||||||
|
and gp.appid = apps.id
|
||||||
and gp.groupid = #{groupId}
|
and gp.groupid = #{groupId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -18,8 +18,7 @@
|
|||||||
*
|
*
|
||||||
from
|
from
|
||||||
`mxk_groups`
|
`mxk_groups`
|
||||||
where
|
where instid = #{instId}
|
||||||
(1=1)
|
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -28,8 +27,8 @@
|
|||||||
*
|
*
|
||||||
from
|
from
|
||||||
`mxk_groups`
|
`mxk_groups`
|
||||||
where
|
where instid = #{instId}
|
||||||
dynamic = '1'
|
and dynamic = '1'
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -37,7 +36,7 @@
|
|||||||
<update id="logisticDelete" parameterType="Groups" >
|
<update id="logisticDelete" parameterType="Groups" >
|
||||||
update `mxk_groups` set
|
update `mxk_groups` set
|
||||||
status = '2'
|
status = '2'
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
@ -48,7 +47,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<update id="logisticBatchDelete" parameterType="java.util.List">
|
<update id="logisticBatchDelete" parameterType="java.util.List">
|
||||||
update `mxk_groups` set status='2' where id in
|
update `mxk_groups`
|
||||||
|
set status='2'
|
||||||
|
where instid = #{instId}
|
||||||
|
and id in
|
||||||
<foreach item="item" collection="list" open="(" separator="," close=")">
|
<foreach item="item" collection="list" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
@ -62,12 +64,14 @@
|
|||||||
mxk_userinfo u,
|
mxk_userinfo u,
|
||||||
mxk_groups g,
|
mxk_groups g,
|
||||||
mxk_group_member gm
|
mxk_group_member gm
|
||||||
where 1 = 1
|
where u.instid = #{instId}
|
||||||
and gm.memberid = #{value}
|
and g.instid = #{instId}
|
||||||
and u.id = #{value}
|
and gm.instid = #{instId}
|
||||||
and gm.type in( 'USER','USER-DYNAMIC')
|
and gm.memberid = #{value}
|
||||||
and gm.groupid = g.id
|
and u.id = #{value}
|
||||||
and gm.memberid = u.id
|
and gm.type in( 'USER','USER-DYNAMIC')
|
||||||
|
and gm.groupid = g.id
|
||||||
|
and gm.memberid = u.id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@
|
|||||||
select
|
select
|
||||||
*
|
*
|
||||||
from mxk_history_connector
|
from mxk_history_connector
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
|
|
||||||
order by synctime desc
|
order by synctime desc
|
||||||
|
|||||||
@ -45,7 +45,7 @@
|
|||||||
date_format(logintime, '%Y-%m-%d %H:%i:%s') as logintime
|
date_format(logintime, '%Y-%m-%d %H:%i:%s') as logintime
|
||||||
|
|
||||||
from mxk_history_login_apps
|
from mxk_history_login_apps
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<include refid="dao_where_statement"/>
|
<include refid="dao_where_statement"/>
|
||||||
|
|
||||||
order by logintime desc
|
order by logintime desc
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
date_format(logintime, '%Y-%m-%d %H:%i:%s') as logintime,
|
date_format(logintime, '%Y-%m-%d %H:%i:%s') as logintime,
|
||||||
date_format(logouttime, '%Y-%m-%d %H:%i:%s') as logouttime
|
date_format(logouttime, '%Y-%m-%d %H:%i:%s') as logouttime
|
||||||
from mxk_history_login
|
from mxk_history_login
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<include refid="dao_where_statement"/>
|
<include refid="dao_where_statement"/>
|
||||||
|
|
||||||
order by logintime desc
|
order by logintime desc
|
||||||
@ -83,7 +83,8 @@
|
|||||||
date_format(logintime, '%Y-%m-%d %H:%i:%s') as logintime,
|
date_format(logintime, '%Y-%m-%d %H:%i:%s') as logintime,
|
||||||
date_format(logouttime, '%Y-%m-%d %H:%i:%s') as logouttime
|
date_format(logouttime, '%Y-%m-%d %H:%i:%s') as logouttime
|
||||||
from mxk_history_login
|
from mxk_history_login
|
||||||
where sessionstatus = 1
|
where instid = #{instId}
|
||||||
|
and sessionstatus = 1
|
||||||
|
|
||||||
<include refid="dao_where_statement"/>
|
<include refid="dao_where_statement"/>
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
select
|
select
|
||||||
*
|
*
|
||||||
from mxk_history_synchronizer
|
from mxk_history_synchronizer
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
|
|
||||||
order by synctime desc
|
order by synctime desc
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
createddate,
|
createddate,
|
||||||
createdby
|
createdby
|
||||||
from mxk_history_logs
|
from mxk_history_logs
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
|
|
||||||
order by createddate desc
|
order by createddate desc
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
from
|
from
|
||||||
mxk_notices
|
mxk_notices
|
||||||
where
|
where
|
||||||
(1=1)
|
instid = #{instId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
order by modifieddate desc
|
order by modifieddate desc
|
||||||
</select>
|
</select>
|
||||||
@ -29,6 +29,7 @@
|
|||||||
*
|
*
|
||||||
from
|
from
|
||||||
mxk_notices
|
mxk_notices
|
||||||
|
where instid = #{instId}
|
||||||
order by modifieddate desc
|
order by modifieddate desc
|
||||||
limit 1
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
select
|
select
|
||||||
*
|
*
|
||||||
from mxk_organizations
|
from mxk_organizations
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<include refid="dao_where_statement"/>
|
<include refid="dao_where_statement"/>
|
||||||
order by sortindex,id
|
order by sortindex,id
|
||||||
</select>
|
</select>
|
||||||
@ -34,14 +34,14 @@
|
|||||||
select
|
select
|
||||||
*
|
*
|
||||||
from mxk_organizations
|
from mxk_organizations
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<include refid="dao_where_statement"/>
|
<include refid="dao_where_statement"/>
|
||||||
order by sortindex,id
|
order by sortindex,id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="logisticDelete" parameterType="Organizations" >
|
<update id="logisticDelete" parameterType="Organizations" >
|
||||||
update mxk_organizations set status = '2'
|
update mxk_organizations set status = '2'
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<if test="id != null and id != '' ">
|
<if test="id != null and id != '' ">
|
||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
@ -57,8 +57,10 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="logisticBatchDelete" parameterType="java.util.List">
|
<update id="logisticBatchDelete" parameterType="java.util.List">
|
||||||
UPDATE MXK_ORGANIZATIONS SET STATUS = '2'
|
UPDATE MXK_ORGANIZATIONS
|
||||||
WHERE ID IN
|
SET STATUS = '2'
|
||||||
|
WHERE instid = #{instId}
|
||||||
|
and id in
|
||||||
<foreach collection="ids" item="selectId" open="(" separator="," close=")">
|
<foreach collection="ids" item="selectId" open="(" separator="," close=")">
|
||||||
#{selectId}
|
#{selectId}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|||||||
@ -2,69 +2,70 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="org.maxkey.persistence.mapper.ReportMapper" >
|
<mapper namespace="org.maxkey.persistence.mapper.ReportMapper" >
|
||||||
<!-- DAY COUNT 一天访问量 -->
|
<!-- DAY COUNT 一天访问量 -->
|
||||||
<select id="analysisDay" parameterType="String" resultType="Integer">
|
<select id="analysisDay" parameterType="java.util.HashMap" resultType="Integer">
|
||||||
select
|
select
|
||||||
count(id) reportcount
|
count(id) reportcount
|
||||||
from mxk_history_login
|
from mxk_history_login
|
||||||
where
|
where instid = #{instId}
|
||||||
date(logintime) =curdate()
|
and date(logintime) =curdate()
|
||||||
</select>
|
</select>
|
||||||
<!-- 本月新用户统计 -->
|
<!-- 本月新用户统计 -->
|
||||||
<select id="analysisNewUsers" parameterType="String" resultType="Integer">
|
<select id="analysisNewUsers" parameterType="java.util.HashMap" resultType="Integer">
|
||||||
select
|
select
|
||||||
count(*) reportcount
|
count(*) reportcount
|
||||||
from mxk_userinfo
|
from mxk_userinfo
|
||||||
where
|
where instid = #{instId}
|
||||||
last_day(createddate) =last_day(curdate())
|
and last_day(createddate) =last_day(curdate())
|
||||||
</select>
|
</select>
|
||||||
<!-- 在线用户统计 -->
|
<!-- 在线用户统计 -->
|
||||||
<select id="analysisOnlineUsers" parameterType="String" resultType="Integer">
|
<select id="analysisOnlineUsers" parameterType="java.util.HashMap" resultType="Integer">
|
||||||
select
|
select
|
||||||
count(*) reportcount
|
count(*) reportcount
|
||||||
from mxk_userinfo
|
from mxk_userinfo
|
||||||
where online = 1
|
where instid = #{instId}
|
||||||
|
and online = 1
|
||||||
and now() - lastlogintime between 1 and 10000
|
and now() - lastlogintime between 1 and 10000
|
||||||
</select>
|
</select>
|
||||||
<!-- 30天活跃用户统计 -->
|
<!-- 30天活跃用户统计 -->
|
||||||
<select id="analysisActiveUsers" parameterType="String" resultType="Integer">
|
<select id="analysisActiveUsers" parameterType="java.util.HashMap" resultType="Integer">
|
||||||
select
|
select
|
||||||
count(*) reportcount
|
count(*) reportcount
|
||||||
from mxk_userinfo
|
from mxk_userinfo
|
||||||
where
|
where instid = #{instId}
|
||||||
date(lastlogintime) >date_add(curdate(), interval - day(curdate()) -31 day)
|
and date(lastlogintime) >date_add(curdate(), interval - day(curdate()) -31 day)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- DAY HOUR COUNT 当天每小时 -->
|
<!-- DAY HOUR COUNT 当天每小时 -->
|
||||||
<select id="analysisDayHour" parameterType="String" resultType="Map">
|
<select id="analysisDayHour" parameterType="java.util.HashMap" resultType="Map">
|
||||||
select
|
select
|
||||||
count(id) reportcount,
|
count(id) reportcount,
|
||||||
hour(logintime) reportstring
|
hour(logintime) reportstring
|
||||||
from mxk_history_login
|
from mxk_history_login
|
||||||
where
|
where instid = #{instId}
|
||||||
date(logintime) =curdate()
|
and date(logintime) =curdate()
|
||||||
group by reportstring
|
group by reportstring
|
||||||
order by reportstring
|
order by reportstring
|
||||||
</select>
|
</select>
|
||||||
<!-- 30 DAY COUNT 最近30天每天访问量-->
|
<!-- 30 DAY COUNT 最近30天每天访问量-->
|
||||||
<select id="analysisMonth" parameterType="String" resultType="Map">
|
<select id="analysisMonth" parameterType="java.util.HashMap" resultType="Map">
|
||||||
select
|
select
|
||||||
count(id) reportcount,
|
count(id) reportcount,
|
||||||
date(logintime) reportstring
|
date(logintime) reportstring
|
||||||
from mxk_history_login
|
from mxk_history_login
|
||||||
where
|
where instid = #{instId}
|
||||||
date(logintime) >date_add(curdate(), interval - day(curdate()) -31 day)
|
and date(logintime) >date_add(curdate(), interval - day(curdate()) -31 day)
|
||||||
group by reportstring
|
group by reportstring
|
||||||
order by reportstring
|
order by reportstring
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 30天浏览器的访问统计 -->
|
<!-- 30天浏览器的访问统计 -->
|
||||||
<select id="analysisBrowser" parameterType="Map" resultType="Map">
|
<select id="analysisBrowser" parameterType="java.util.HashMap" resultType="Map">
|
||||||
select
|
select
|
||||||
count(id) reportcount,
|
count(id) reportcount,
|
||||||
coalesce(browser,'Other') reportstring
|
coalesce(browser,'Other') reportstring
|
||||||
from mxk_history_login
|
from mxk_history_login
|
||||||
where
|
where instid = #{instId}
|
||||||
date(logintime) >date_add(curdate(), interval - day(curdate()) -31 day)
|
and date(logintime) >date_add(curdate(), interval - day(curdate()) -31 day)
|
||||||
group by reportstring
|
group by reportstring
|
||||||
order by reportcount desc
|
order by reportcount desc
|
||||||
</select>
|
</select>
|
||||||
@ -75,8 +76,8 @@
|
|||||||
count(id) reportcount,
|
count(id) reportcount,
|
||||||
appname
|
appname
|
||||||
from mxk_history_login_apps
|
from mxk_history_login_apps
|
||||||
where
|
where instid = #{instId}
|
||||||
date(logintime) >date_add(curdate(), interval - day(curdate()) -31 day)
|
and date(logintime) >date_add(curdate(), interval - day(curdate()) -31 day)
|
||||||
group by appname order by reportcount desc
|
group by appname order by reportcount desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,9 @@
|
|||||||
from
|
from
|
||||||
mxk_resources res, mxk_apps app
|
mxk_resources res, mxk_apps app
|
||||||
where
|
where
|
||||||
(1=1) and res.appid=app.id
|
res.instid = #{instId}
|
||||||
|
and app.instid = #{instId}
|
||||||
|
and res.appid=app.id
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
order by res.sortindex
|
order by res.sortindex
|
||||||
</select>
|
</select>
|
||||||
@ -34,7 +36,7 @@
|
|||||||
<update id="logisticDelete" parameterType="Resources" >
|
<update id="logisticDelete" parameterType="Resources" >
|
||||||
update mxk_resources set
|
update mxk_resources set
|
||||||
status = '2'
|
status = '2'
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
@ -45,7 +47,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<update id="logisticBatchDelete" parameterType="java.util.List">
|
<update id="logisticBatchDelete" parameterType="java.util.List">
|
||||||
update mxk_resources set status='2' where id in
|
update mxk_resources
|
||||||
|
set status='2'
|
||||||
|
where instid = #{instId}
|
||||||
|
and id in
|
||||||
<foreach item="item" collection="list" open="(" separator="," close=")">
|
<foreach item="item" collection="list" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|||||||
@ -50,7 +50,7 @@
|
|||||||
u.status
|
u.status
|
||||||
from
|
from
|
||||||
mxk_userinfo u
|
mxk_userinfo u
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="memberInRole" parameterType="RoleMember" resultType="RoleMember">
|
<select id="memberInRole" parameterType="RoleMember" resultType="RoleMember">
|
||||||
@ -93,7 +93,9 @@
|
|||||||
mxk_userinfo u,
|
mxk_userinfo u,
|
||||||
mxk_roles r,
|
mxk_roles r,
|
||||||
mxk_role_member rm
|
mxk_role_member rm
|
||||||
where 1 = 1
|
where u.instid = #{instId}
|
||||||
|
and r.instid = #{instId}
|
||||||
|
and rm.instid = #{instId}
|
||||||
<if test="roleId != null and roleId != ''">
|
<if test="roleId != null and roleId != ''">
|
||||||
and rm.roleid = #{roleId}
|
and rm.roleid = #{roleId}
|
||||||
and r.id = #{roleId}
|
and r.id = #{roleId}
|
||||||
|
|||||||
@ -15,9 +15,9 @@
|
|||||||
select
|
select
|
||||||
*
|
*
|
||||||
from
|
from
|
||||||
`mxk_groups`
|
mxk_roles
|
||||||
where
|
where instid = #{instId}
|
||||||
dynamic = '1'
|
and dynamic = '1'
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -27,7 +27,7 @@
|
|||||||
from
|
from
|
||||||
mxk_roles
|
mxk_roles
|
||||||
where
|
where
|
||||||
(1=1)
|
instid = #{instId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<update id="logisticDelete" parameterType="Roles" >
|
<update id="logisticDelete" parameterType="Roles" >
|
||||||
update mxk_roles set
|
update mxk_roles set
|
||||||
status = '2'
|
status = '2'
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
@ -46,7 +46,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<update id="logisticBatchDelete" parameterType="java.util.List">
|
<update id="logisticBatchDelete" parameterType="java.util.List">
|
||||||
update mxk_roles set status='2' where id in
|
update mxk_roles
|
||||||
|
set status='2'
|
||||||
|
where instid = #{instId}
|
||||||
|
and id in
|
||||||
<foreach item="item" collection="list" open="(" separator="," close=")">
|
<foreach item="item" collection="list" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
@ -58,8 +61,8 @@
|
|||||||
*
|
*
|
||||||
from
|
from
|
||||||
mxk_role_permissions
|
mxk_role_permissions
|
||||||
where
|
where instid = #{instId}
|
||||||
status = 1
|
and status = 1
|
||||||
<if test="id != null and id != ''">
|
<if test="id != null and id != ''">
|
||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
@ -73,17 +76,20 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="logisticDeleteRolePermissions" parameterType="java.util.List">
|
<update id="logisticDeleteRolePermissions" parameterType="java.util.List">
|
||||||
update mxk_role_permissions set status=9 where id in
|
update mxk_role_permissions
|
||||||
|
set status=9
|
||||||
|
where instid = #{instId}
|
||||||
|
and id in
|
||||||
<foreach item="item" collection="list" open="(" separator="," close=")">
|
<foreach item="item" collection="list" open="(" separator="," close=")">
|
||||||
#{item.id}
|
#{item.id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="insertRolePermissions" parameterType="java.util.List">
|
<insert id="insertRolePermissions" parameterType="java.util.List">
|
||||||
insert into mxk_role_permissions ( id,appid,roleid,resourceid,status)
|
insert into mxk_role_permissions ( id,appid,roleid,resourceid,status,instid)
|
||||||
values
|
values
|
||||||
<foreach collection="list" item="item" index="index" separator=",">
|
<foreach collection="list" item="item" index="index" separator=",">
|
||||||
(#{item.id},#{item.appId},#{item.roleId},#{item.resourceId},#{item.status})
|
(#{item.id},#{item.appId},#{item.roleId},#{item.resourceId},#{item.status},#{item.instId})
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
from
|
from
|
||||||
mxk_socials_provider
|
mxk_socials_provider
|
||||||
where
|
where
|
||||||
(1=1)
|
instid = #{instId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
order by sortindex
|
order by sortindex
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
from
|
from
|
||||||
mxk_synchronizers
|
mxk_synchronizers
|
||||||
where
|
where
|
||||||
(1=1)
|
instid = #{instId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
from
|
from
|
||||||
mxk_userinfo_adjunct
|
mxk_userinfo_adjunct
|
||||||
where
|
where
|
||||||
(1=1)
|
instid = #{instId}
|
||||||
<include refid="where_statement"/>
|
<include refid="where_statement"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -27,7 +27,7 @@
|
|||||||
<update id="logisticDelete" parameterType="UserInfoAdjoint" >
|
<update id="logisticDelete" parameterType="UserInfoAdjoint" >
|
||||||
update mxk_userinfo_adjunct set
|
update mxk_userinfo_adjunct set
|
||||||
status = '2'
|
status = '2'
|
||||||
where 1 = 1
|
where instid = #{instId}
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
@ -38,7 +38,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<update id="logisticBatchDelete" parameterType="java.util.List">
|
<update id="logisticBatchDelete" parameterType="java.util.List">
|
||||||
update mxk_userinfo_adjunct set status='2' where id in
|
update mxk_userinfo_adjunct
|
||||||
|
set status='2'
|
||||||
|
where instid = #{instId}
|
||||||
|
and id in
|
||||||
<foreach item="item" collection="list" open="(" separator="," close=")">
|
<foreach item="item" collection="list" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|||||||
@ -51,8 +51,7 @@
|
|||||||
status
|
status
|
||||||
from
|
from
|
||||||
mxk_userinfo
|
mxk_userinfo
|
||||||
where
|
where instid = #{instId}
|
||||||
(1=1)
|
|
||||||
<if test="username != null and username != ''">
|
<if test="username != null and username != ''">
|
||||||
and username = #{username}
|
and username = #{username}
|
||||||
</if>
|
</if>
|
||||||
@ -251,13 +250,17 @@
|
|||||||
|
|
||||||
<select id="loadDeptsByUserId" parameterType="string" resultType="Organizations">
|
<select id="loadDeptsByUserId" parameterType="string" resultType="Organizations">
|
||||||
select o.* , 1 isPrimary from mxk_organizations o,mxk_userinfo u
|
select o.* , 1 isPrimary from mxk_organizations o,mxk_userinfo u
|
||||||
where o.id=u.departmentid
|
where o.instid = #{instId}
|
||||||
|
and u.instid = #{instId}
|
||||||
|
and o.id=u.departmentid
|
||||||
and u.id=#{value}
|
and u.id=#{value}
|
||||||
|
|
||||||
union all
|
union all
|
||||||
|
|
||||||
select o.* , 0 isPrimary from mxk_organizations o,mxk_userinfo_adjunct ua
|
select o.* , 0 isPrimary from mxk_organizations o,mxk_userinfo_adjunct ua
|
||||||
where o.id=ua.departmentid
|
where o.instid = #{instId}
|
||||||
|
and ua.instid = #{instId}
|
||||||
|
and o.id=ua.departmentid
|
||||||
and ua.userid=#{value}
|
and ua.userid=#{value}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,7 @@ import java.util.List;
|
|||||||
import org.maxkey.configuration.ApplicationConfig;
|
import org.maxkey.configuration.ApplicationConfig;
|
||||||
import org.maxkey.constants.ConstantsOperateMessage;
|
import org.maxkey.constants.ConstantsOperateMessage;
|
||||||
import org.maxkey.constants.ConstantsProtocols;
|
import org.maxkey.constants.ConstantsProtocols;
|
||||||
|
import org.maxkey.constants.ConstantsStatus;
|
||||||
import org.maxkey.crypto.password.PasswordReciprocal;
|
import org.maxkey.crypto.password.PasswordReciprocal;
|
||||||
import org.maxkey.entity.Accounts;
|
import org.maxkey.entity.Accounts;
|
||||||
import org.maxkey.entity.UserInfo;
|
import org.maxkey.entity.UserInfo;
|
||||||
@ -92,7 +93,7 @@ public class AppListController {
|
|||||||
private List<UserApps> queryAccessableApps() {
|
private List<UserApps> queryAccessableApps() {
|
||||||
UserApps userApplications = new UserApps();
|
UserApps userApplications = new UserApps();
|
||||||
userApplications.setUsername(WebContext.getUserInfo().getUsername());
|
userApplications.setUsername(WebContext.getUserInfo().getUsername());
|
||||||
|
userApplications.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
List<UserApps> appList = appsService.queryMyApps(userApplications);
|
List<UserApps> appList = appsService.queryMyApps(userApplications);
|
||||||
for (UserApps app : appList) {
|
for (UserApps app : appList) {
|
||||||
WebContext.setAttribute(app.getId(), app.getIcon());
|
WebContext.setAttribute(app.getId(), app.getIcon());
|
||||||
@ -257,6 +258,8 @@ public class AppListController {
|
|||||||
|
|
||||||
appUsers.setRelatedUsername(identity_username);
|
appUsers.setRelatedUsername(identity_username);
|
||||||
appUsers.setRelatedPassword(PasswordReciprocal.getInstance().encode(identity_password));
|
appUsers.setRelatedPassword(PasswordReciprocal.getInstance().encode(identity_password));
|
||||||
|
appUsers.setInstId(userInfo.getInstId());
|
||||||
|
appUsers.setStatus(ConstantsStatus.ACTIVE);
|
||||||
appUsersService.insert(appUsers);
|
appUsersService.insert(appUsers);
|
||||||
} else {
|
} else {
|
||||||
appUsers.setRelatedUsername(identity_username);
|
appUsers.setRelatedUsername(identity_username);
|
||||||
|
|||||||
@ -37,6 +37,8 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import com.xkcoding.http.util.StringUtil;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* .
|
* .
|
||||||
@ -64,7 +66,11 @@ public class OneTimePasswordController {
|
|||||||
public ModelAndView timebased() {
|
public ModelAndView timebased() {
|
||||||
ModelAndView modelAndView = new ModelAndView("safe/timeBased");
|
ModelAndView modelAndView = new ModelAndView("safe/timeBased");
|
||||||
UserInfo userInfo = WebContext.getUserInfo();
|
UserInfo userInfo = WebContext.getUserInfo();
|
||||||
String sharedSecret = passwordReciprocal.decoder(userInfo.getSharedSecret());
|
|
||||||
|
String sharedSecret = userInfo.getId();
|
||||||
|
if(StringUtil.isNotEmpty(userInfo.getSharedSecret())) {
|
||||||
|
passwordReciprocal.decoder(userInfo.getSharedSecret());
|
||||||
|
}
|
||||||
otpKeyUriFormat.setSecret(sharedSecret);
|
otpKeyUriFormat.setSecret(sharedSecret);
|
||||||
String otpauth = otpKeyUriFormat.format(userInfo.getUsername());
|
String otpauth = otpKeyUriFormat.format(userInfo.getUsername());
|
||||||
byte[] byteSharedSecret = Base32Utils.decode(sharedSecret);
|
byte[] byteSharedSecret = Base32Utils.decode(sharedSecret);
|
||||||
|
|||||||
@ -67,6 +67,7 @@ public class HistoryLoginAppsController {
|
|||||||
@ModelAttribute("historyLoginApps") HistoryLoginApps historyLoginApps) {
|
@ModelAttribute("historyLoginApps") HistoryLoginApps historyLoginApps) {
|
||||||
_logger.debug("history/loginApps/grid/ logsGrid() " + historyLoginApps);
|
_logger.debug("history/loginApps/grid/ logsGrid() " + historyLoginApps);
|
||||||
historyLoginApps.setId(null);
|
historyLoginApps.setId(null);
|
||||||
|
historyLoginApps.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
historyLoginApps.setUsername(WebContext.getUserInfo().getUsername());
|
historyLoginApps.setUsername(WebContext.getUserInfo().getUsername());
|
||||||
return historyLoginAppsService.queryPageResults(historyLoginApps);
|
return historyLoginAppsService.queryPageResults(historyLoginApps);
|
||||||
|
|
||||||
|
|||||||
@ -66,6 +66,7 @@ public class HistoryLoginController {
|
|||||||
public JpaPageResults<HistoryLogin> logAuthsGrid(@ModelAttribute("historyLogin") HistoryLogin historyLogin) {
|
public JpaPageResults<HistoryLogin> logAuthsGrid(@ModelAttribute("historyLogin") HistoryLogin historyLogin) {
|
||||||
_logger.debug("history/login/grid/ logsGrid() " + historyLogin);
|
_logger.debug("history/login/grid/ logsGrid() " + historyLogin);
|
||||||
historyLogin.setUserId(WebContext.getUserInfo().getId());
|
historyLogin.setUserId(WebContext.getUserInfo().getId());
|
||||||
|
historyLogin.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return historyLoginService.queryPageResults(historyLogin);
|
return historyLoginService.queryPageResults(historyLogin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,7 @@ import org.apache.mybatis.jpa.persistence.JpaPageResults;
|
|||||||
import org.maxkey.entity.HistoryLogs;
|
import org.maxkey.entity.HistoryLogs;
|
||||||
import org.maxkey.persistence.service.HistorySystemLogsService;
|
import org.maxkey.persistence.service.HistorySystemLogsService;
|
||||||
import org.maxkey.util.DateUtils;
|
import org.maxkey.util.DateUtils;
|
||||||
|
import org.maxkey.web.WebContext;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -64,6 +65,7 @@ public class HistorySystemLogsController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<HistoryLogs> logsDataGrid(@ModelAttribute("historyLogs") HistoryLogs historyLogs) {
|
public JpaPageResults<HistoryLogs> logsDataGrid(@ModelAttribute("historyLogs") HistoryLogs historyLogs) {
|
||||||
_logger.debug("history/systemLogs/grid/ systemLogs() " + historyLogs);
|
_logger.debug("history/systemLogs/grid/ systemLogs() " + historyLogs);
|
||||||
|
historyLogs.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return historySystemLogsService.queryPageResults(historyLogs);
|
return historySystemLogsService.queryPageResults(historyLogs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -83,6 +83,7 @@ public class LoginSessionController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<HistoryLogin> loginSessionListGrid(@ModelAttribute("historyLogin") HistoryLogin historyLogin) {
|
public JpaPageResults<HistoryLogin> loginSessionListGrid(@ModelAttribute("historyLogin") HistoryLogin historyLogin) {
|
||||||
_logger.debug("history/session/ sessionListGrid() " + historyLogin);
|
_logger.debug("history/session/ sessionListGrid() " + historyLogin);
|
||||||
|
historyLogin.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
historyLogin.setUserId(WebContext.getUserInfo().getId());
|
historyLogin.setUserId(WebContext.getUserInfo().getId());
|
||||||
return historyLoginService.queryOnlineSession(historyLogin);
|
return historyLoginService.queryOnlineSession(historyLogin);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -93,6 +93,7 @@ public class HistoryLoginAppAdapter implements AsyncHandlerInterceptor {
|
|||||||
historyLoginApps.setUserId(userInfo.getId());
|
historyLoginApps.setUserId(userInfo.getId());
|
||||||
historyLoginApps.setUsername(userInfo.getUsername());
|
historyLoginApps.setUsername(userInfo.getUsername());
|
||||||
historyLoginApps.setDisplayName(userInfo.getDisplayName());
|
historyLoginApps.setDisplayName(userInfo.getDisplayName());
|
||||||
|
historyLoginApps.setInstId(userInfo.getInstId());
|
||||||
historyLoginAppsService.insert(historyLoginApps);
|
historyLoginAppsService.insert(historyLoginApps);
|
||||||
WebContext.removeAttribute(WebConstants.CURRENT_SINGLESIGNON_URI);
|
WebContext.removeAttribute(WebConstants.CURRENT_SINGLESIGNON_URI);
|
||||||
WebContext.removeAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID);
|
WebContext.removeAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID);
|
||||||
|
|||||||
@ -75,6 +75,7 @@ public class HistoryLogsAdapter implements AsyncHandlerInterceptor {
|
|||||||
userInfo == null ? null : userInfo.getUsername(),
|
userInfo == null ? null : userInfo.getUsername(),
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
|
historyLogs.setInstId(userInfo.getInstId());
|
||||||
_logger.debug("insert db historyLogs content : " + historyLogs);
|
_logger.debug("insert db historyLogs content : " + historyLogs);
|
||||||
historySystemLogsService.insert(historyLogs);//日志插入数据库
|
historySystemLogsService.insert(historyLogs);//日志插入数据库
|
||||||
//message类型仅插入数据库
|
//message类型仅插入数据库
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<#list listSocialSignOnProvider as socialSignOnProvider>
|
<#list listSocialSignOnProvider as socialSignOnProvider>
|
||||||
<tr>
|
<tr>
|
||||||
<td>${socialSignOnProvider.sortOrder}</td>
|
<td>${socialSignOnProvider.sortIndex}</td>
|
||||||
<td><img src="<@base />/static/${socialSignOnProvider.icon}" title="${socialSignOnProvider.providerName}" width="32px;" height="32px;"/></td>
|
<td><img src="<@base />/static/${socialSignOnProvider.icon}" title="${socialSignOnProvider.providerName}" width="32px;" height="32px;"/></td>
|
||||||
<td>${socialSignOnProvider.providerName}</td>
|
<td>${socialSignOnProvider.providerName}</td>
|
||||||
<td>${socialSignOnProvider.bindTime!}</td>
|
<td>${socialSignOnProvider.bindTime!}</td>
|
||||||
|
|||||||
@ -63,6 +63,7 @@ public class ApplicationsController extends BaseAppContorller {
|
|||||||
@RequestMapping(value = { "/grid" })
|
@RequestMapping(value = { "/grid" })
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<Apps> queryDataGrid(@ModelAttribute("applications") Apps applications) {
|
public JpaPageResults<Apps> queryDataGrid(@ModelAttribute("applications") Apps applications) {
|
||||||
|
applications.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
JpaPageResults<Apps> apps=appsService.queryPageResults(applications);
|
JpaPageResults<Apps> apps=appsService.queryPageResults(applications);
|
||||||
if(apps!=null&&apps.getRows()!=null){
|
if(apps!=null&&apps.getRows()!=null){
|
||||||
for (Apps app : apps.getRows()){
|
for (Apps app : apps.getRows()){
|
||||||
@ -84,7 +85,7 @@ public class ApplicationsController extends BaseAppContorller {
|
|||||||
_logger.debug("-Add :" + application);
|
_logger.debug("-Add :" + application);
|
||||||
|
|
||||||
transform(application);
|
transform(application);
|
||||||
|
application.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (appsService.insert(application)) {
|
if (appsService.insert(application)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -150,6 +151,7 @@ public class ApplicationsController extends BaseAppContorller {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("application") Apps application) {
|
public Message update(@ModelAttribute("application") Apps application) {
|
||||||
_logger.debug("-update application :" + application);
|
_logger.debug("-update application :" + application);
|
||||||
|
application.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (appsService.update(application)) {
|
if (appsService.update(application)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ public class BasicDetailsController extends BaseAppContorller {
|
|||||||
_logger.debug("-Add :" + appDetails);
|
_logger.debug("-Add :" + appDetails);
|
||||||
|
|
||||||
transform(appDetails);
|
transform(appDetails);
|
||||||
|
appDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (appsService.insert(appDetails)) {
|
if (appsService.insert(appDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ public class BasicDetailsController extends BaseAppContorller {
|
|||||||
//
|
//
|
||||||
_logger.debug("-update application :" + appDetails);
|
_logger.debug("-update application :" + appDetails);
|
||||||
transform(appDetails);
|
transform(appDetails);
|
||||||
|
appDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (appsService.update(appDetails)) {
|
if (appsService.update(appDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,7 @@ public class CasDetailsController extends BaseAppContorller {
|
|||||||
_logger.debug("-Add :" + casDetails);
|
_logger.debug("-Add :" + casDetails);
|
||||||
|
|
||||||
transform(casDetails);
|
transform(casDetails);
|
||||||
|
casDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (casDetailsService.insert(casDetails)&&appsService.insertApp(casDetails)) {
|
if (casDetailsService.insert(casDetails)&&appsService.insertApp(casDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ public class CasDetailsController extends BaseAppContorller {
|
|||||||
//
|
//
|
||||||
_logger.debug("-update application :" + casDetails);
|
_logger.debug("-update application :" + casDetails);
|
||||||
transform(casDetails);
|
transform(casDetails);
|
||||||
|
casDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (casDetailsService.update(casDetails)&&appsService.updateApp(casDetails)) {
|
if (casDetailsService.update(casDetails)&&appsService.updateApp(casDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ public class ExtendApiDetailsController extends BaseAppContorller {
|
|||||||
_logger.debug("-Add :" + extendApiDetails);
|
_logger.debug("-Add :" + extendApiDetails);
|
||||||
|
|
||||||
transform(extendApiDetails);
|
transform(extendApiDetails);
|
||||||
|
extendApiDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (appsService.insertApp(extendApiDetails)) {
|
if (appsService.insertApp(extendApiDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ public class ExtendApiDetailsController extends BaseAppContorller {
|
|||||||
public ModelAndView update(@ModelAttribute("extendApiDetails") AppsExtendApiDetails extendApiDetails) {
|
public ModelAndView update(@ModelAttribute("extendApiDetails") AppsExtendApiDetails extendApiDetails) {
|
||||||
_logger.debug("-update extendApiDetails :" + extendApiDetails);
|
_logger.debug("-update extendApiDetails :" + extendApiDetails);
|
||||||
transform(extendApiDetails);
|
transform(extendApiDetails);
|
||||||
|
extendApiDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (appsService.updateApp(extendApiDetails)) {
|
if (appsService.updateApp(extendApiDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,7 @@ public class FormBasedDetailsController extends BaseAppContorller {
|
|||||||
_logger.debug("-Add :" + formBasedDetails);
|
_logger.debug("-Add :" + formBasedDetails);
|
||||||
|
|
||||||
transform(formBasedDetails);
|
transform(formBasedDetails);
|
||||||
|
formBasedDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (formBasedDetailsService.insert(formBasedDetails)&&appsService.insertApp(formBasedDetails)) {
|
if (formBasedDetailsService.insert(formBasedDetails)&&appsService.insertApp(formBasedDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -95,6 +95,7 @@ public class FormBasedDetailsController extends BaseAppContorller {
|
|||||||
//
|
//
|
||||||
_logger.debug("-update application :" + formBasedDetails);
|
_logger.debug("-update application :" + formBasedDetails);
|
||||||
transform(formBasedDetails);
|
transform(formBasedDetails);
|
||||||
|
formBasedDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (formBasedDetailsService.update(formBasedDetails)&&appsService.updateApp(formBasedDetails)) {
|
if (formBasedDetailsService.update(formBasedDetails)&&appsService.updateApp(formBasedDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -66,7 +66,7 @@ public class JwtDetailsController extends BaseAppContorller {
|
|||||||
transform(jwtDetails);
|
transform(jwtDetails);
|
||||||
|
|
||||||
jwtDetails.setAlgorithmKey(jwtDetails.getSecret());
|
jwtDetails.setAlgorithmKey(jwtDetails.getSecret());
|
||||||
|
jwtDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (jwtDetailsService.insert(jwtDetails)&&appsService.insertApp(jwtDetails)) {
|
if (jwtDetailsService.insert(jwtDetails)&&appsService.insertApp(jwtDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -99,6 +99,7 @@ public class JwtDetailsController extends BaseAppContorller {
|
|||||||
_logger.debug("-update application :" + jwtDetails);
|
_logger.debug("-update application :" + jwtDetails);
|
||||||
transform(jwtDetails);
|
transform(jwtDetails);
|
||||||
jwtDetails.setAlgorithmKey(jwtDetails.getSecret());
|
jwtDetails.setAlgorithmKey(jwtDetails.getSecret());
|
||||||
|
jwtDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (jwtDetailsService.update(jwtDetails)&&appsService.updateApp(jwtDetails)) {
|
if (jwtDetailsService.update(jwtDetails)&&appsService.updateApp(jwtDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -72,7 +72,7 @@ public class OAuth20DetailsController extends BaseAppContorller {
|
|||||||
transform(oauth20Details);
|
transform(oauth20Details);
|
||||||
|
|
||||||
oauth20Details.setClientSecret(oauth20Details.getSecret());
|
oauth20Details.setClientSecret(oauth20Details.getSecret());
|
||||||
|
oauth20Details.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
oauth20JdbcClientDetailsService.addClientDetails(oauth20Details.clientDetailsRowMapper());
|
oauth20JdbcClientDetailsService.addClientDetails(oauth20Details.clientDetailsRowMapper());
|
||||||
if (appsService.insertApp(oauth20Details)) {
|
if (appsService.insertApp(oauth20Details)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
@ -115,7 +115,7 @@ public class OAuth20DetailsController extends BaseAppContorller {
|
|||||||
oauth20JdbcClientDetailsService.updateClientSecret(oauth20Details.getClientId(), oauth20Details.getClientSecret());
|
oauth20JdbcClientDetailsService.updateClientSecret(oauth20Details.getClientId(), oauth20Details.getClientSecret());
|
||||||
|
|
||||||
transform(oauth20Details);
|
transform(oauth20Details);
|
||||||
|
oauth20Details.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (appsService.updateApp(oauth20Details)) {
|
if (appsService.updateApp(oauth20Details)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -90,6 +90,7 @@ public class SAML20DetailsController extends BaseAppContorller {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
saml20Details.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
saml20DetailsService.insert(saml20Details);
|
saml20DetailsService.insert(saml20Details);
|
||||||
if (appsService.insertApp(saml20Details)) {
|
if (appsService.insertApp(saml20Details)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
@ -125,6 +126,7 @@ public class SAML20DetailsController extends BaseAppContorller {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
saml20Details.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
saml20DetailsService.update(saml20Details);
|
saml20DetailsService.update(saml20Details);
|
||||||
if (appsService.updateApp(saml20Details)) {
|
if (appsService.updateApp(saml20Details)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|||||||
@ -66,7 +66,7 @@ public class TokenBasedDetailsController extends BaseAppContorller {
|
|||||||
transform(tokenBasedDetails);
|
transform(tokenBasedDetails);
|
||||||
|
|
||||||
tokenBasedDetails.setAlgorithmKey(tokenBasedDetails.getSecret());
|
tokenBasedDetails.setAlgorithmKey(tokenBasedDetails.getSecret());
|
||||||
|
tokenBasedDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (tokenBasedDetailsService.insert(tokenBasedDetails)&&appsService.insertApp(tokenBasedDetails)) {
|
if (tokenBasedDetailsService.insert(tokenBasedDetails)&&appsService.insertApp(tokenBasedDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -99,6 +99,7 @@ public class TokenBasedDetailsController extends BaseAppContorller {
|
|||||||
_logger.debug("-update application :" + tokenBasedDetails);
|
_logger.debug("-update application :" + tokenBasedDetails);
|
||||||
transform(tokenBasedDetails);
|
transform(tokenBasedDetails);
|
||||||
tokenBasedDetails.setAlgorithmKey(tokenBasedDetails.getSecret());
|
tokenBasedDetails.setAlgorithmKey(tokenBasedDetails.getSecret());
|
||||||
|
tokenBasedDetails.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (tokenBasedDetailsService.update(tokenBasedDetails)&&appsService.updateApp(tokenBasedDetails)) {
|
if (tokenBasedDetailsService.update(tokenBasedDetails)&&appsService.updateApp(tokenBasedDetails)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -72,6 +72,7 @@ public class AccountsController {
|
|||||||
@RequestMapping(value={"/grid"})
|
@RequestMapping(value={"/grid"})
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<Accounts> grid(@ModelAttribute("appAccounts") Accounts appAccounts){
|
public JpaPageResults<Accounts> grid(@ModelAttribute("appAccounts") Accounts appAccounts){
|
||||||
|
appAccounts.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return accountsService.queryPageResults(appAccounts);
|
return accountsService.queryPageResults(appAccounts);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -101,6 +102,7 @@ public class AccountsController {
|
|||||||
@RequestMapping(value={"/add"})
|
@RequestMapping(value={"/add"})
|
||||||
public Message add(@ModelAttribute("appAccounts") Accounts appAccounts ) {
|
public Message add(@ModelAttribute("appAccounts") Accounts appAccounts ) {
|
||||||
_logger.debug("-update :" + appAccounts);
|
_logger.debug("-update :" + appAccounts);
|
||||||
|
appAccounts.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
appAccounts.setRelatedPassword(PasswordReciprocal.getInstance().encode(appAccounts.getRelatedPassword()));
|
appAccounts.setRelatedPassword(PasswordReciprocal.getInstance().encode(appAccounts.getRelatedPassword()));
|
||||||
accountsService.insert(appAccounts);
|
accountsService.insert(appAccounts);
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
@ -128,7 +130,7 @@ public class AccountsController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("appAccounts") Accounts appAccounts ) {
|
public Message update(@ModelAttribute("appAccounts") Accounts appAccounts ) {
|
||||||
_logger.debug("-update :" + appAccounts);
|
_logger.debug("-update :" + appAccounts);
|
||||||
|
appAccounts.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
appAccounts.setRelatedPassword(PasswordReciprocal.getInstance().encode(appAccounts.getRelatedPassword()));
|
appAccounts.setRelatedPassword(PasswordReciprocal.getInstance().encode(appAccounts.getRelatedPassword()));
|
||||||
accountsService.update(appAccounts);
|
accountsService.update(appAccounts);
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|||||||
@ -66,6 +66,7 @@ public class AccountsStrategyController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<AccountsStrategy> queryDataGrid(@ModelAttribute("accountsStrategy") AccountsStrategy accountsStrategy) {
|
public JpaPageResults<AccountsStrategy> queryDataGrid(@ModelAttribute("accountsStrategy") AccountsStrategy accountsStrategy) {
|
||||||
_logger.debug(""+accountsStrategy);
|
_logger.debug(""+accountsStrategy);
|
||||||
|
accountsStrategy.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
JpaPageResults<AccountsStrategy> accountsStrategyList =accountsStrategyService.queryPageResults(accountsStrategy);
|
JpaPageResults<AccountsStrategy> accountsStrategyList =accountsStrategyService.queryPageResults(accountsStrategy);
|
||||||
for (AccountsStrategy strategy : accountsStrategyList.getRows()){
|
for (AccountsStrategy strategy : accountsStrategyList.getRows()){
|
||||||
WebContext.setAttribute(strategy.getId(), strategy.getAppIcon());
|
WebContext.setAttribute(strategy.getId(), strategy.getAppIcon());
|
||||||
@ -91,7 +92,7 @@ public class AccountsStrategyController {
|
|||||||
@RequestMapping(value={"/add"})
|
@RequestMapping(value={"/add"})
|
||||||
public Message insert(@ModelAttribute("accountsStrategy") AccountsStrategy accountsStrategy) {
|
public Message insert(@ModelAttribute("accountsStrategy") AccountsStrategy accountsStrategy) {
|
||||||
_logger.debug("-Add :" + accountsStrategy);
|
_logger.debug("-Add :" + accountsStrategy);
|
||||||
|
accountsStrategy.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (accountsStrategyService.insert(accountsStrategy)) {
|
if (accountsStrategyService.insert(accountsStrategy)) {
|
||||||
accountsService.refreshByStrategy(accountsStrategy);
|
accountsService.refreshByStrategy(accountsStrategy);
|
||||||
//rolesService.refreshDynamicRoles(role);
|
//rolesService.refreshDynamicRoles(role);
|
||||||
@ -112,6 +113,7 @@ public class AccountsStrategyController {
|
|||||||
@RequestMapping(value={"/query"})
|
@RequestMapping(value={"/query"})
|
||||||
public Message query(@ModelAttribute("accountsStrategy") AccountsStrategy accountsStrategy) {
|
public Message query(@ModelAttribute("accountsStrategy") AccountsStrategy accountsStrategy) {
|
||||||
_logger.debug("-query :" + accountsStrategy);
|
_logger.debug("-query :" + accountsStrategy);
|
||||||
|
accountsStrategy.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (accountsStrategyService.load(accountsStrategy)!=null) {
|
if (accountsStrategyService.load(accountsStrategy)!=null) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -130,7 +132,7 @@ public class AccountsStrategyController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("accountsStrategy") AccountsStrategy accountsStrategy) {
|
public Message update(@ModelAttribute("accountsStrategy") AccountsStrategy accountsStrategy) {
|
||||||
_logger.debug("-update AccountsStrategy :" + accountsStrategy);
|
_logger.debug("-update AccountsStrategy :" + accountsStrategy);
|
||||||
|
accountsStrategy.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (accountsStrategyService.update(accountsStrategy)) {
|
if (accountsStrategyService.update(accountsStrategy)) {
|
||||||
// rolesService.refreshDynamicRoles(role);
|
// rolesService.refreshDynamicRoles(role);
|
||||||
accountsService.refreshByStrategy(accountsStrategy);
|
accountsService.refreshByStrategy(accountsStrategy);
|
||||||
|
|||||||
@ -65,6 +65,7 @@ public class GroupMemberController {
|
|||||||
if(groupMember.getGroupId()==null||groupMember.getGroupId().equals("")){
|
if(groupMember.getGroupId()==null||groupMember.getGroupId().equals("")){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
groupMember.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return groupMemberService.queryPageResults(groupMember);
|
return groupMemberService.queryPageResults(groupMember);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,6 +87,7 @@ public class GroupMemberController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<GroupMember> queryMemberInGroup(@ModelAttribute("groupMember") GroupMember groupMember) {
|
public JpaPageResults<GroupMember> queryMemberInGroup(@ModelAttribute("groupMember") GroupMember groupMember) {
|
||||||
_logger.debug("groupMember : "+groupMember);
|
_logger.debug("groupMember : "+groupMember);
|
||||||
|
groupMember.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if(groupMember.getGroupId()==null||groupMember.getGroupId().equals("")||groupMember.getGroupId().equals("ROLE_ALL_USER")){
|
if(groupMember.getGroupId()==null||groupMember.getGroupId().equals("")||groupMember.getGroupId().equals("ROLE_ALL_USER")){
|
||||||
return groupMemberService.queryPageResults("allMemberInGroup",groupMember);
|
return groupMemberService.queryPageResults("allMemberInGroup",groupMember);
|
||||||
}else{
|
}else{
|
||||||
@ -105,7 +107,8 @@ public class GroupMemberController {
|
|||||||
@RequestMapping(value = { "/queryMemberNotInGroup" })
|
@RequestMapping(value = { "/queryMemberNotInGroup" })
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<GroupMember> queryMemberNotInGroupGrid(@ModelAttribute("groupMember") GroupMember groupMember) {
|
public JpaPageResults<GroupMember> queryMemberNotInGroupGrid(@ModelAttribute("groupMember") GroupMember groupMember) {
|
||||||
return groupMemberService.queryPageResults("memberNotInGroup",groupMember);
|
groupMember.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
|
return groupMemberService.queryPageResults("memberNotInGroup",groupMember);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -128,6 +131,7 @@ public class GroupMemberController {
|
|||||||
for (int i = 0; i < arrMemberIds.length; i++) {
|
for (int i = 0; i < arrMemberIds.length; i++) {
|
||||||
GroupMember newGroupMember = new GroupMember(groupId,groupMember.getGroupName(), arrMemberIds[i], arrMemberNames[i],"USER");
|
GroupMember newGroupMember = new GroupMember(groupId,groupMember.getGroupName(), arrMemberIds[i], arrMemberNames[i],"USER");
|
||||||
newGroupMember.setId(WebContext.genId());
|
newGroupMember.setId(WebContext.genId());
|
||||||
|
newGroupMember.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
result = groupMemberService.insert(newGroupMember);
|
result = groupMemberService.insert(newGroupMember);
|
||||||
}
|
}
|
||||||
if(!result) {
|
if(!result) {
|
||||||
|
|||||||
@ -57,7 +57,7 @@ public class GroupPrivilegesController {
|
|||||||
public JpaPageResults<GroupPrivileges> queryAppsInGroup(@ModelAttribute("groupApp") GroupPrivileges groupApp) {
|
public JpaPageResults<GroupPrivileges> queryAppsInGroup(@ModelAttribute("groupApp") GroupPrivileges groupApp) {
|
||||||
|
|
||||||
JpaPageResults<GroupPrivileges> groupPrivileges;
|
JpaPageResults<GroupPrivileges> groupPrivileges;
|
||||||
|
groupApp.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
groupPrivileges= groupPrivilegesService.queryPageResults("appsInGroup",groupApp);
|
groupPrivileges= groupPrivilegesService.queryPageResults("appsInGroup",groupApp);
|
||||||
|
|
||||||
if(groupPrivileges!=null&&groupPrivileges.getRows()!=null){
|
if(groupPrivileges!=null&&groupPrivileges.getRows()!=null){
|
||||||
@ -81,7 +81,7 @@ public class GroupPrivilegesController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<GroupPrivileges> queryAppsNotInGroup(@ModelAttribute("groupApp") GroupPrivileges groupApp) {
|
public JpaPageResults<GroupPrivileges> queryAppsNotInGroup(@ModelAttribute("groupApp") GroupPrivileges groupApp) {
|
||||||
JpaPageResults<GroupPrivileges> groupPrivileges;
|
JpaPageResults<GroupPrivileges> groupPrivileges;
|
||||||
|
groupApp.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
groupPrivileges= groupPrivilegesService.queryPageResults("appsNotInGroup",groupApp);
|
groupPrivileges= groupPrivilegesService.queryPageResults("appsNotInGroup",groupApp);
|
||||||
|
|
||||||
if(groupPrivileges!=null&&groupPrivileges.getRows()!=null){
|
if(groupPrivileges!=null&&groupPrivileges.getRows()!=null){
|
||||||
@ -111,6 +111,7 @@ public class GroupPrivilegesController {
|
|||||||
for (int i = 0; i < arrAppIds.length; i++) {
|
for (int i = 0; i < arrAppIds.length; i++) {
|
||||||
GroupPrivileges newGroupApp = new GroupPrivileges(groupId, arrAppIds[i]);
|
GroupPrivileges newGroupApp = new GroupPrivileges(groupId, arrAppIds[i]);
|
||||||
newGroupApp.setId(WebContext.genId());
|
newGroupApp.setId(WebContext.genId());
|
||||||
|
newGroupApp.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
result = groupPrivilegesService.insert(newGroupApp);
|
result = groupPrivilegesService.insert(newGroupApp);
|
||||||
}
|
}
|
||||||
if(!result) {
|
if(!result) {
|
||||||
|
|||||||
@ -62,6 +62,7 @@ public class GroupsController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<Groups> queryDataGrid(@ModelAttribute("groups") Groups groups) {
|
public JpaPageResults<Groups> queryDataGrid(@ModelAttribute("groups") Groups groups) {
|
||||||
_logger.debug(""+groups);
|
_logger.debug(""+groups);
|
||||||
|
groups.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return groupsService.queryPageResults(groups);
|
return groupsService.queryPageResults(groups);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +84,7 @@ public class GroupsController {
|
|||||||
@RequestMapping(value={"/add"})
|
@RequestMapping(value={"/add"})
|
||||||
public Message insert(@ModelAttribute("group") Groups group) {
|
public Message insert(@ModelAttribute("group") Groups group) {
|
||||||
_logger.debug("-Add :" + group);
|
_logger.debug("-Add :" + group);
|
||||||
|
group.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (groupsService.insert(group)) {
|
if (groupsService.insert(group)) {
|
||||||
groupsService.refreshDynamicGroups(group);
|
groupsService.refreshDynamicGroups(group);
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
@ -103,6 +104,7 @@ public class GroupsController {
|
|||||||
@RequestMapping(value={"/query"})
|
@RequestMapping(value={"/query"})
|
||||||
public Message query(@ModelAttribute("group") Groups group) {
|
public Message query(@ModelAttribute("group") Groups group) {
|
||||||
_logger.debug("-query :" + group);
|
_logger.debug("-query :" + group);
|
||||||
|
group.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (groupsService.load(group)!=null) {
|
if (groupsService.load(group)!=null) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -121,7 +123,7 @@ public class GroupsController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("group") Groups group) {
|
public Message update(@ModelAttribute("group") Groups group) {
|
||||||
_logger.debug("-update group :" + group);
|
_logger.debug("-update group :" + group);
|
||||||
|
group.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (groupsService.update(group)) {
|
if (groupsService.update(group)) {
|
||||||
groupsService.refreshDynamicGroups(group);
|
groupsService.refreshDynamicGroups(group);
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|||||||
@ -55,6 +55,7 @@ public class NoticesController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<Notices> queryDataGrid(@ModelAttribute("notices") Notices notice) {
|
public JpaPageResults<Notices> queryDataGrid(@ModelAttribute("notices") Notices notice) {
|
||||||
_logger.debug(""+notice);
|
_logger.debug(""+notice);
|
||||||
|
notice.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return noticesService.queryPageResults(notice);
|
return noticesService.queryPageResults(notice);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +77,7 @@ public class NoticesController {
|
|||||||
@RequestMapping(value={"/add"})
|
@RequestMapping(value={"/add"})
|
||||||
public Message insert(@ModelAttribute("notice")Notices notice) {
|
public Message insert(@ModelAttribute("notice")Notices notice) {
|
||||||
_logger.debug("-Add :" + notice);
|
_logger.debug("-Add :" + notice);
|
||||||
|
notice.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (noticesService.insert(notice)) {
|
if (noticesService.insert(notice)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -95,6 +96,7 @@ public class NoticesController {
|
|||||||
@RequestMapping(value={"/query"})
|
@RequestMapping(value={"/query"})
|
||||||
public Message query(@ModelAttribute("notice")Notices notice) {
|
public Message query(@ModelAttribute("notice")Notices notice) {
|
||||||
_logger.debug("-query :" + notice);
|
_logger.debug("-query :" + notice);
|
||||||
|
notice.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (noticesService.load(notice)!=null) {
|
if (noticesService.load(notice)!=null) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -113,7 +115,7 @@ public class NoticesController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("notice")Notices notice) {
|
public Message update(@ModelAttribute("notice")Notices notice) {
|
||||||
_logger.debug("-update notice :" + notice);
|
_logger.debug("-update notice :" + notice);
|
||||||
|
notice.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (noticesService.update(notice)) {
|
if (noticesService.update(notice)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -69,6 +69,7 @@ public class OrganizationsController {
|
|||||||
public List<HashMap<String, Object>> organizationsTree(@RequestParam(value = "id", required = false) String id) {
|
public List<HashMap<String, Object>> organizationsTree(@RequestParam(value = "id", required = false) String id) {
|
||||||
_logger.debug("organizationsTree id :" + id);
|
_logger.debug("organizationsTree id :" + id);
|
||||||
Organizations queryOrg = new Organizations();
|
Organizations queryOrg = new Organizations();
|
||||||
|
queryOrg.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
List<Organizations> organizationsList = this.organizationsService.queryOrgs(queryOrg);
|
List<Organizations> organizationsList = this.organizationsService.queryOrgs(queryOrg);
|
||||||
TreeNodeList treeNodeList = new TreeNodeList();
|
TreeNodeList treeNodeList = new TreeNodeList();
|
||||||
|
|
||||||
@ -100,6 +101,7 @@ public class OrganizationsController {
|
|||||||
@RequestMapping(value = { "/pageresults" })
|
@RequestMapping(value = { "/pageresults" })
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<Organizations> pageResults(@ModelAttribute("orgs") Organizations orgs) {
|
public JpaPageResults<Organizations> pageResults(@ModelAttribute("orgs") Organizations orgs) {
|
||||||
|
orgs.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return organizationsService.queryPageResults(orgs);
|
return organizationsService.queryPageResults(orgs);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -128,6 +130,7 @@ public class OrganizationsController {
|
|||||||
org.generateId();
|
org.generateId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
org.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (this.organizationsService.insert(org)) {
|
if (this.organizationsService.insert(org)) {
|
||||||
return new Message(WebContext.getI18nValue("message.action.insert.success"), MessageType.success);
|
return new Message(WebContext.getI18nValue("message.action.insert.success"), MessageType.success);
|
||||||
}
|
}
|
||||||
@ -139,6 +142,7 @@ public class OrganizationsController {
|
|||||||
@RequestMapping({"/query"})
|
@RequestMapping({"/query"})
|
||||||
public Message query(@ModelAttribute("org") Organizations org) {
|
public Message query(@ModelAttribute("org") Organizations org) {
|
||||||
_logger.debug("-query :" + org);
|
_logger.debug("-query :" + org);
|
||||||
|
org.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (this.organizationsService.load(org) != null) {
|
if (this.organizationsService.load(org) != null) {
|
||||||
return new Message(WebContext.getI18nValue("message.action.insert.success"), MessageType.success);
|
return new Message(WebContext.getI18nValue("message.action.insert.success"), MessageType.success);
|
||||||
}
|
}
|
||||||
@ -159,6 +163,7 @@ public class OrganizationsController {
|
|||||||
@RequestMapping({"/update"})
|
@RequestMapping({"/update"})
|
||||||
public Message update(@ModelAttribute("org") Organizations org) {
|
public Message update(@ModelAttribute("org") Organizations org) {
|
||||||
_logger.debug("-update organization :" + org);
|
_logger.debug("-update organization :" + org);
|
||||||
|
org.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (this.organizationsService.update(org)) {
|
if (this.organizationsService.update(org)) {
|
||||||
return new Message(WebContext.getI18nValue("message.action.update.success"), MessageType.success);
|
return new Message(WebContext.getI18nValue("message.action.update.success"), MessageType.success);
|
||||||
}
|
}
|
||||||
@ -268,6 +273,8 @@ public class OrganizationsController {
|
|||||||
// 详细描述
|
// 详细描述
|
||||||
organization.setDescription(ExcelUtils.getValue(row, 20));
|
organization.setDescription(ExcelUtils.getValue(row, 20));
|
||||||
organization.setStatus(1);
|
organization.setStatus(1);
|
||||||
|
|
||||||
|
organization.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return organization;
|
return organization;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,8 +61,10 @@ public class PermissionsController {
|
|||||||
public Message insert(@ModelAttribute("rolePermissions") RolePermissions rolePermissions) {
|
public Message insert(@ModelAttribute("rolePermissions") RolePermissions rolePermissions) {
|
||||||
_logger.debug("-save :" + rolePermissions);
|
_logger.debug("-save :" + rolePermissions);
|
||||||
//have
|
//have
|
||||||
List<RolePermissions> rolePermissionsedList = rolesService.queryRolePermissions(
|
|
||||||
new RolePermissions(rolePermissions.getAppId(),rolePermissions.getRoleId()));
|
RolePermissions queryRolePermissions = new RolePermissions(rolePermissions.getAppId(),rolePermissions.getRoleId());
|
||||||
|
queryRolePermissions.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
|
List<RolePermissions> rolePermissionsedList = rolesService.queryRolePermissions(queryRolePermissions);
|
||||||
|
|
||||||
HashMap<String,String >permedMap =new HashMap<String,String >();
|
HashMap<String,String >permedMap =new HashMap<String,String >();
|
||||||
for(RolePermissions rolePerms : rolePermissionsedList) {
|
for(RolePermissions rolePerms : rolePermissionsedList) {
|
||||||
@ -78,7 +80,7 @@ public class PermissionsController {
|
|||||||
rolePermissions.getAppId(),
|
rolePermissions.getAppId(),
|
||||||
rolePermissions.getRoleId(),
|
rolePermissions.getRoleId(),
|
||||||
resourceId);
|
resourceId);
|
||||||
|
newRolePermissions.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
newPermsMap.put(newRolePermissions.getUniqueId(), rolePermissions.getAppId());
|
newPermsMap.put(newRolePermissions.getUniqueId(), rolePermissions.getAppId());
|
||||||
|
|
||||||
if(!rolePermissions.getAppId().equalsIgnoreCase(resourceId) &&
|
if(!rolePermissions.getAppId().equalsIgnoreCase(resourceId) &&
|
||||||
@ -112,8 +114,9 @@ public class PermissionsController {
|
|||||||
public List<RolePermissions> querypermissions(@ModelAttribute("rolePermissions") RolePermissions rolePermissions) {
|
public List<RolePermissions> querypermissions(@ModelAttribute("rolePermissions") RolePermissions rolePermissions) {
|
||||||
_logger.debug("-querypermissions :" + rolePermissions);
|
_logger.debug("-querypermissions :" + rolePermissions);
|
||||||
//have
|
//have
|
||||||
List<RolePermissions> rolePermissionsedList = rolesService.queryRolePermissions(
|
RolePermissions queryRolePermissions = new RolePermissions(rolePermissions.getAppId(),rolePermissions.getRoleId());
|
||||||
new RolePermissions(rolePermissions.getAppId(),rolePermissions.getRoleId()));
|
queryRolePermissions.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
|
List<RolePermissions> rolePermissionsedList = rolesService.queryRolePermissions(queryRolePermissions);
|
||||||
return rolePermissionsedList;
|
return rolePermissionsedList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -68,6 +68,7 @@ public class ResourcesController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<Resources> queryDataGrid(@ModelAttribute("resources") Resources resources) {
|
public JpaPageResults<Resources> queryDataGrid(@ModelAttribute("resources") Resources resources) {
|
||||||
_logger.debug(""+resources);
|
_logger.debug(""+resources);
|
||||||
|
resources.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return resourcesService.queryPageResults(resources);
|
return resourcesService.queryPageResults(resources);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +90,7 @@ public class ResourcesController {
|
|||||||
@RequestMapping(value={"/add"})
|
@RequestMapping(value={"/add"})
|
||||||
public Message insert(@ModelAttribute("resource") Resources resource) {
|
public Message insert(@ModelAttribute("resource") Resources resource) {
|
||||||
_logger.debug("-Add :" + resource);
|
_logger.debug("-Add :" + resource);
|
||||||
|
resource.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (resourcesService.insert(resource)) {
|
if (resourcesService.insert(resource)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -108,6 +109,7 @@ public class ResourcesController {
|
|||||||
@RequestMapping(value={"/query"})
|
@RequestMapping(value={"/query"})
|
||||||
public Message query(@ModelAttribute("resource") Resources resource) {
|
public Message query(@ModelAttribute("resource") Resources resource) {
|
||||||
_logger.debug("-query :" + resource);
|
_logger.debug("-query :" + resource);
|
||||||
|
resource.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (resourcesService.load(resource)!=null) {
|
if (resourcesService.load(resource)!=null) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -126,7 +128,7 @@ public class ResourcesController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("resource") Resources resource) {
|
public Message update(@ModelAttribute("resource") Resources resource) {
|
||||||
_logger.debug("-update resource :" + resource);
|
_logger.debug("-update resource :" + resource);
|
||||||
|
resource.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (resourcesService.update(resource)) {
|
if (resourcesService.update(resource)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -160,6 +162,7 @@ public class ResourcesController {
|
|||||||
_logger.debug("resourcesTree appId :" + appId + " ,appName " + appName);
|
_logger.debug("resourcesTree appId :" + appId + " ,appName " + appName);
|
||||||
Resources queryRes = new Resources();
|
Resources queryRes = new Resources();
|
||||||
queryRes.setAppId(appId);
|
queryRes.setAppId(appId);
|
||||||
|
queryRes.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
List<Resources> resourcesList = this.resourcesService.queryResourcesTree(queryRes);
|
List<Resources> resourcesList = this.resourcesService.queryResourcesTree(queryRes);
|
||||||
TreeNodeList treeNodeList = new TreeNodeList();
|
TreeNodeList treeNodeList = new TreeNodeList();
|
||||||
|
|
||||||
|
|||||||
@ -65,6 +65,7 @@ public class RoleMemberController {
|
|||||||
if(roleMember.getRoleId()==null||roleMember.getRoleId().equals("")){
|
if(roleMember.getRoleId()==null||roleMember.getRoleId().equals("")){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
roleMember.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return roleMemberService.queryPageResults(roleMember);
|
return roleMemberService.queryPageResults(roleMember);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,6 +74,7 @@ public class RoleMemberController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<RoleMember> queryMemberInRole(@ModelAttribute("roleMember") RoleMember roleMember) {
|
public JpaPageResults<RoleMember> queryMemberInRole(@ModelAttribute("roleMember") RoleMember roleMember) {
|
||||||
_logger.debug("roleMember : "+roleMember);
|
_logger.debug("roleMember : "+roleMember);
|
||||||
|
roleMember.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if(roleMember.getRoleId()==null||roleMember.getRoleId().equals("")||roleMember.getRoleId().equals("ALL_USER_ROLE")){
|
if(roleMember.getRoleId()==null||roleMember.getRoleId().equals("")||roleMember.getRoleId().equals("ALL_USER_ROLE")){
|
||||||
return roleMemberService.queryPageResults("allMemberInRole",roleMember);
|
return roleMemberService.queryPageResults("allMemberInRole",roleMember);
|
||||||
}else{
|
}else{
|
||||||
@ -92,7 +94,8 @@ public class RoleMemberController {
|
|||||||
@RequestMapping(value = { "/queryMemberNotInRole" })
|
@RequestMapping(value = { "/queryMemberNotInRole" })
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<RoleMember> queryMemberNotInGroupGrid(@ModelAttribute("roleMember") RoleMember roleMember) {
|
public JpaPageResults<RoleMember> queryMemberNotInGroupGrid(@ModelAttribute("roleMember") RoleMember roleMember) {
|
||||||
return roleMemberService.queryPageResults("memberNotInRole",roleMember);
|
roleMember.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
|
return roleMemberService.queryPageResults("memberNotInRole",roleMember);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -115,6 +118,7 @@ public class RoleMemberController {
|
|||||||
for (int i = 0; i < arrMemberIds.length; i++) {
|
for (int i = 0; i < arrMemberIds.length; i++) {
|
||||||
RoleMember newRoleMember = new RoleMember(groupId,roleMember.getRoleName(), arrMemberIds[i], arrMemberNames[i],"USER");
|
RoleMember newRoleMember = new RoleMember(groupId,roleMember.getRoleName(), arrMemberIds[i], arrMemberNames[i],"USER");
|
||||||
newRoleMember.setId(WebContext.genId());
|
newRoleMember.setId(WebContext.genId());
|
||||||
|
newRoleMember.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
result = roleMemberService.insert(newRoleMember);
|
result = roleMemberService.insert(newRoleMember);
|
||||||
}
|
}
|
||||||
if(!result) {
|
if(!result) {
|
||||||
|
|||||||
@ -62,6 +62,7 @@ public class RolesController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<Roles> queryDataGrid(@ModelAttribute("roles") Roles roles) {
|
public JpaPageResults<Roles> queryDataGrid(@ModelAttribute("roles") Roles roles) {
|
||||||
_logger.debug(""+roles);
|
_logger.debug(""+roles);
|
||||||
|
roles.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return rolesService.queryPageResults(roles);
|
return rolesService.queryPageResults(roles);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +84,7 @@ public class RolesController {
|
|||||||
@RequestMapping(value={"/add"})
|
@RequestMapping(value={"/add"})
|
||||||
public Message insert(@ModelAttribute("role") Roles role) {
|
public Message insert(@ModelAttribute("role") Roles role) {
|
||||||
_logger.debug("-Add :" + role);
|
_logger.debug("-Add :" + role);
|
||||||
|
role.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (rolesService.insert(role)) {
|
if (rolesService.insert(role)) {
|
||||||
rolesService.refreshDynamicRoles(role);
|
rolesService.refreshDynamicRoles(role);
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
@ -103,6 +104,7 @@ public class RolesController {
|
|||||||
@RequestMapping(value={"/query"})
|
@RequestMapping(value={"/query"})
|
||||||
public Message query(@ModelAttribute("role") Roles role) {
|
public Message query(@ModelAttribute("role") Roles role) {
|
||||||
_logger.debug("-query :" + role);
|
_logger.debug("-query :" + role);
|
||||||
|
role.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (rolesService.load(role)!=null) {
|
if (rolesService.load(role)!=null) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -121,7 +123,7 @@ public class RolesController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("role") Roles role) {
|
public Message update(@ModelAttribute("role") Roles role) {
|
||||||
_logger.debug("-update role :" + role);
|
_logger.debug("-update role :" + role);
|
||||||
|
role.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (rolesService.update(role)) {
|
if (rolesService.update(role)) {
|
||||||
rolesService.refreshDynamicRoles(role);
|
rolesService.refreshDynamicRoles(role);
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|||||||
@ -53,6 +53,7 @@ public class SocialsProviderController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<SocialsProvider> queryDataGrid(@ModelAttribute("socialsProvider") SocialsProvider socialsProvider) {
|
public JpaPageResults<SocialsProvider> queryDataGrid(@ModelAttribute("socialsProvider") SocialsProvider socialsProvider) {
|
||||||
_logger.debug(""+socialsProvider);
|
_logger.debug(""+socialsProvider);
|
||||||
|
socialsProvider.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return socialsProviderService.queryPageResults(socialsProvider);
|
return socialsProviderService.queryPageResults(socialsProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +74,7 @@ public class SocialsProviderController {
|
|||||||
@RequestMapping(value={"/add"})
|
@RequestMapping(value={"/add"})
|
||||||
public Message insert(@ModelAttribute("socialsProvider") SocialsProvider socialsProvider) {
|
public Message insert(@ModelAttribute("socialsProvider") SocialsProvider socialsProvider) {
|
||||||
_logger.debug("-Add :" + socialsProvider);
|
_logger.debug("-Add :" + socialsProvider);
|
||||||
|
socialsProvider.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (socialsProviderService.insert(socialsProvider)) {
|
if (socialsProviderService.insert(socialsProvider)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -92,6 +93,7 @@ public class SocialsProviderController {
|
|||||||
@RequestMapping(value={"/query"})
|
@RequestMapping(value={"/query"})
|
||||||
public Message query(@ModelAttribute("socialsProvider") SocialsProvider socialsProvider) {
|
public Message query(@ModelAttribute("socialsProvider") SocialsProvider socialsProvider) {
|
||||||
_logger.debug("-query :" + socialsProvider);
|
_logger.debug("-query :" + socialsProvider);
|
||||||
|
socialsProvider.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (socialsProviderService.load(socialsProvider)!=null) {
|
if (socialsProviderService.load(socialsProvider)!=null) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -110,7 +112,7 @@ public class SocialsProviderController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("socialsProvider") SocialsProvider socialsProvider) {
|
public Message update(@ModelAttribute("socialsProvider") SocialsProvider socialsProvider) {
|
||||||
_logger.debug("-update socialsProvider :" + socialsProvider);
|
_logger.debug("-update socialsProvider :" + socialsProvider);
|
||||||
|
socialsProvider.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (socialsProviderService.update(socialsProvider)) {
|
if (socialsProviderService.update(socialsProvider)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -61,6 +61,7 @@ public class SynchronizersController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<Synchronizers> queryDataGrid(@ModelAttribute("synchronizers") Synchronizers synchronizers) {
|
public JpaPageResults<Synchronizers> queryDataGrid(@ModelAttribute("synchronizers") Synchronizers synchronizers) {
|
||||||
_logger.debug(""+synchronizers);
|
_logger.debug(""+synchronizers);
|
||||||
|
synchronizers.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return synchronizersService.queryPageResults(synchronizers);
|
return synchronizersService.queryPageResults(synchronizers);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ public class SynchronizersController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("synchronizers") Synchronizers synchronizers) {
|
public Message update(@ModelAttribute("synchronizers") Synchronizers synchronizers) {
|
||||||
_logger.debug("-update synchronizers :" + synchronizers);
|
_logger.debug("-update synchronizers :" + synchronizers);
|
||||||
|
synchronizers.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (synchronizersService.update(synchronizers)) {
|
if (synchronizersService.update(synchronizers)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -58,6 +58,7 @@ public class UserAdjointController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<UserInfoAdjoint> queryDataGrid(@ModelAttribute("userInfoAdjoint") UserInfoAdjoint userInfoAdjoint) {
|
public JpaPageResults<UserInfoAdjoint> queryDataGrid(@ModelAttribute("userInfoAdjoint") UserInfoAdjoint userInfoAdjoint) {
|
||||||
_logger.debug(""+userInfoAdjoint);
|
_logger.debug(""+userInfoAdjoint);
|
||||||
|
userInfoAdjoint.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return userInfoAdjointService.queryPageResults(userInfoAdjoint);
|
return userInfoAdjointService.queryPageResults(userInfoAdjoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +82,7 @@ public class UserAdjointController {
|
|||||||
@RequestMapping(value={"/add"})
|
@RequestMapping(value={"/add"})
|
||||||
public Message insert(@ModelAttribute("userInfoAdjoint") UserInfoAdjoint userInfoAdjoint) {
|
public Message insert(@ModelAttribute("userInfoAdjoint") UserInfoAdjoint userInfoAdjoint) {
|
||||||
_logger.debug("-Add :" + userInfoAdjoint);
|
_logger.debug("-Add :" + userInfoAdjoint);
|
||||||
|
userInfoAdjoint.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (userInfoAdjointService.insert(userInfoAdjoint)) {
|
if (userInfoAdjointService.insert(userInfoAdjoint)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -100,6 +101,7 @@ public class UserAdjointController {
|
|||||||
@RequestMapping(value={"/query"})
|
@RequestMapping(value={"/query"})
|
||||||
public Message query(@ModelAttribute("userInfoAdjoint") UserInfoAdjoint userInfoAdjoint) {
|
public Message query(@ModelAttribute("userInfoAdjoint") UserInfoAdjoint userInfoAdjoint) {
|
||||||
_logger.debug("-query :" + userInfoAdjoint);
|
_logger.debug("-query :" + userInfoAdjoint);
|
||||||
|
userInfoAdjoint.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (userInfoAdjointService.load(userInfoAdjoint)!=null) {
|
if (userInfoAdjointService.load(userInfoAdjoint)!=null) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.INSERT_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
@ -118,7 +120,7 @@ public class UserAdjointController {
|
|||||||
@RequestMapping(value={"/update"})
|
@RequestMapping(value={"/update"})
|
||||||
public Message update(@ModelAttribute("userInfoAdjoint") UserInfoAdjoint userInfoAdjoint) {
|
public Message update(@ModelAttribute("userInfoAdjoint") UserInfoAdjoint userInfoAdjoint) {
|
||||||
_logger.debug("-update userInfoAdjoint :" + userInfoAdjoint);
|
_logger.debug("-update userInfoAdjoint :" + userInfoAdjoint);
|
||||||
|
userInfoAdjoint.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if (userInfoAdjointService.update(userInfoAdjoint)) {
|
if (userInfoAdjointService.update(userInfoAdjoint)) {
|
||||||
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
return new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),MessageType.success);
|
||||||
|
|
||||||
|
|||||||
@ -91,6 +91,7 @@ public class UserInfoController {
|
|||||||
@RequestMapping(value={"/grid"})
|
@RequestMapping(value={"/grid"})
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<UserInfo> forwardUsersList(@ModelAttribute("userInfo") UserInfo userInfo){
|
public JpaPageResults<UserInfo> forwardUsersList(@ModelAttribute("userInfo") UserInfo userInfo){
|
||||||
|
userInfo.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return userInfoService.queryPageResults(userInfo);
|
return userInfoService.queryPageResults(userInfo);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -128,6 +129,7 @@ public class UserInfoController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
userInfo.setId(WebContext.genId());
|
userInfo.setId(WebContext.genId());
|
||||||
|
userInfo.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
//userInfo.setNameZHShortSpell(StringUtils.hanYu2Pinyin(userInfo.getDisplayName(), true));
|
//userInfo.setNameZHShortSpell(StringUtils.hanYu2Pinyin(userInfo.getDisplayName(), true));
|
||||||
//userInfo.setNameZHSpell(StringUtils.hanYu2Pinyin(userInfo.getDisplayName(), false));
|
//userInfo.setNameZHSpell(StringUtils.hanYu2Pinyin(userInfo.getDisplayName(), false));
|
||||||
if( userInfoService.insert(userInfo)) {
|
if( userInfoService.insert(userInfo)) {
|
||||||
@ -196,6 +198,7 @@ public class UserInfoController {
|
|||||||
//userInfo.setNameZHSpell(StringUtils.hanYu2Pinyin(userInfo.getDisplayName(), false));
|
//userInfo.setNameZHSpell(StringUtils.hanYu2Pinyin(userInfo.getDisplayName(), false));
|
||||||
convertExtraAttribute(userInfo) ;
|
convertExtraAttribute(userInfo) ;
|
||||||
_logger.info(userInfo.getExtraAttribute());
|
_logger.info(userInfo.getExtraAttribute());
|
||||||
|
userInfo.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
if(userInfoService.update(userInfo)) {
|
if(userInfoService.update(userInfo)) {
|
||||||
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),userInfo,MessageType.success,OperateType.add,MessageScope.DB);
|
new Message(WebContext.getI18nValue(ConstantsOperateMessage.UPDATE_SUCCESS),userInfo,MessageType.success,OperateType.add,MessageScope.DB);
|
||||||
|
|
||||||
@ -448,6 +451,7 @@ public class UserInfoController {
|
|||||||
userInfo.setHomeEmail(ExcelUtils.getValue(row, 46));
|
userInfo.setHomeEmail(ExcelUtils.getValue(row, 46));
|
||||||
userInfoService.passwordEncoder(userInfo);
|
userInfoService.passwordEncoder(userInfo);
|
||||||
userInfo.setStatus(1);
|
userInfo.setStatus(1);
|
||||||
|
userInfo.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return userInfo;
|
return userInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,10 @@
|
|||||||
|
|
||||||
package org.maxkey.web.endpoint;
|
package org.maxkey.web.endpoint;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
import org.maxkey.persistence.service.ReportService;
|
import org.maxkey.persistence.service.ReportService;
|
||||||
|
import org.maxkey.web.WebContext;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -43,15 +46,17 @@ public class IndexEndpoint {
|
|||||||
public ModelAndView home() {
|
public ModelAndView home() {
|
||||||
_logger.debug("IndexController /main.");
|
_logger.debug("IndexController /main.");
|
||||||
ModelAndView mainMView=new ModelAndView("main");
|
ModelAndView mainMView=new ModelAndView("main");
|
||||||
mainMView.addObject("rptDayCount", reportService.analysisDay(""));
|
HashMap<String,Object> reportParameter = new HashMap<String,Object>();
|
||||||
mainMView.addObject("rptNewUsers", reportService.analysisNewUsers(""));
|
reportParameter.put("instId", WebContext.getUserInfo().getInstId());
|
||||||
mainMView.addObject("rptOnlineUsers", reportService.analysisOnlineUsers(""));
|
mainMView.addObject("rptDayCount", reportService.analysisDay(reportParameter));
|
||||||
mainMView.addObject("rptActiveUsers", reportService.analysisActiveUsers(""));
|
mainMView.addObject("rptNewUsers", reportService.analysisNewUsers(reportParameter));
|
||||||
|
mainMView.addObject("rptOnlineUsers", reportService.analysisOnlineUsers(reportParameter));
|
||||||
|
mainMView.addObject("rptActiveUsers", reportService.analysisActiveUsers(reportParameter));
|
||||||
|
|
||||||
mainMView.addObject("rptMonth", reportService.analysisMonth(""));
|
mainMView.addObject("rptMonth", reportService.analysisMonth(reportParameter));
|
||||||
mainMView.addObject("rptDayHour", reportService.analysisDayHour(""));
|
mainMView.addObject("rptDayHour", reportService.analysisDayHour(reportParameter));
|
||||||
mainMView.addObject("rptBrowser", reportService.analysisBrowser(null));
|
mainMView.addObject("rptBrowser", reportService.analysisBrowser(reportParameter));
|
||||||
mainMView.addObject("rptApp", reportService.analysisApp(null));
|
mainMView.addObject("rptApp", reportService.analysisApp(reportParameter));
|
||||||
return mainMView;
|
return mainMView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,7 @@ import org.apache.mybatis.jpa.persistence.JpaPageResults;
|
|||||||
import org.maxkey.entity.HistoryConnector;
|
import org.maxkey.entity.HistoryConnector;
|
||||||
import org.maxkey.persistence.service.HistoryConnectorService;
|
import org.maxkey.persistence.service.HistoryConnectorService;
|
||||||
import org.maxkey.util.DateUtils;
|
import org.maxkey.util.DateUtils;
|
||||||
|
import org.maxkey.web.WebContext;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -65,6 +66,7 @@ final static Logger _logger = LoggerFactory.getLogger(ConnectorHistoryController
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<HistoryConnector> historySynchronizerGrid(@ModelAttribute("historyConnector") HistoryConnector historyConnector){
|
public JpaPageResults<HistoryConnector> historySynchronizerGrid(@ModelAttribute("historyConnector") HistoryConnector historyConnector){
|
||||||
_logger.debug("historys/historyConnector/grid/ "+historyConnector);
|
_logger.debug("historys/historyConnector/grid/ "+historyConnector);
|
||||||
|
historyConnector.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return historyConnectorService.queryPageResults(historyConnector);
|
return historyConnectorService.queryPageResults(historyConnector);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,7 @@ import org.apache.mybatis.jpa.persistence.JpaPageResults;
|
|||||||
import org.maxkey.entity.HistoryLoginApps;
|
import org.maxkey.entity.HistoryLoginApps;
|
||||||
import org.maxkey.persistence.service.HistoryLoginAppsService;
|
import org.maxkey.persistence.service.HistoryLoginAppsService;
|
||||||
import org.maxkey.util.DateUtils;
|
import org.maxkey.util.DateUtils;
|
||||||
|
import org.maxkey.web.WebContext;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -64,6 +65,7 @@ final static Logger _logger = LoggerFactory.getLogger(LoginAppsHistoryController
|
|||||||
public JpaPageResults<HistoryLoginApps> loginAppsHistoryGrid(@ModelAttribute("historyLoginApp") HistoryLoginApps historyLoginApp){
|
public JpaPageResults<HistoryLoginApps> loginAppsHistoryGrid(@ModelAttribute("historyLoginApp") HistoryLoginApps historyLoginApp){
|
||||||
_logger.debug("historys/loginAppsHistory/datagrid/ "+historyLoginApp);
|
_logger.debug("historys/loginAppsHistory/datagrid/ "+historyLoginApp);
|
||||||
historyLoginApp.setId(null);
|
historyLoginApp.setId(null);
|
||||||
|
historyLoginApp.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return historyLoginAppsService.queryPageResults(historyLoginApp);
|
return historyLoginAppsService.queryPageResults(historyLoginApp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,7 @@ import org.apache.mybatis.jpa.persistence.JpaPageResults;
|
|||||||
import org.maxkey.entity.HistoryLogin;
|
import org.maxkey.entity.HistoryLogin;
|
||||||
import org.maxkey.persistence.service.HistoryLoginService;
|
import org.maxkey.persistence.service.HistoryLoginService;
|
||||||
import org.maxkey.util.DateUtils;
|
import org.maxkey.util.DateUtils;
|
||||||
|
import org.maxkey.web.WebContext;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -63,6 +64,7 @@ final static Logger _logger = LoggerFactory.getLogger(LoginHistoryController.cla
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JpaPageResults<HistoryLogin> logAuthsGrid(@ModelAttribute("historyLogin") HistoryLogin historyLogin){
|
public JpaPageResults<HistoryLogin> logAuthsGrid(@ModelAttribute("historyLogin") HistoryLogin historyLogin){
|
||||||
_logger.debug("historys/loginHistory/datagrid/ "+historyLogin);
|
_logger.debug("historys/loginHistory/datagrid/ "+historyLogin);
|
||||||
|
historyLogin.setInstId(WebContext.getUserInfo().getInstId());
|
||||||
return loginHistoryService.queryPageResults(historyLogin);
|
return loginHistoryService.queryPageResults(historyLogin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user