package com.yeshi.buwan.util;
|
|
import com.yeshi.buwan.domain.DetailSystem;
|
import com.yeshi.buwan.domain.SystemInfo;
|
|
import javax.servlet.http.HttpSession;
|
import java.util.List;
|
|
public class SystemUtil {
|
|
public static long getDetailSystemId() {
|
return 44L;
|
}
|
|
public static DetailSystem getDetailSystem() {
|
return new DetailSystem(44 + "");
|
}
|
|
/**
|
* 获取默认版本
|
*
|
* @return
|
*/
|
public static int getDefaultVersion() {
|
return 1;
|
}
|
|
|
/**
|
* 获取system
|
*
|
* @param session
|
* @return
|
*/
|
public static SystemInfo getAdminSelectedSystem(HttpSession session) {
|
SystemInfo systemInfo = (SystemInfo) session.getAttribute("SELECTED-SYSTEM");
|
return systemInfo;
|
}
|
|
/**
|
* 保存System
|
*
|
* @param session
|
* @param systemInfo
|
*/
|
public static void saveAdminSelectedSystem(HttpSession session, SystemInfo systemInfo) {
|
session.setAttribute("SELECTED-SYSTEM", systemInfo);
|
}
|
|
|
}
|