資源簡介
用idea ssm框架 maven的web app編寫的可以運行 答辯完美通過 無bug 自己還改了點界面樣式 使界面更好看!
代碼片段和文件信息
package?cn.appInfo.controller;
import?cn.appInfo.dao.appInfo.AppInfoMapper;
import?cn.appInfo.pojo.*;
import?cn.appInfo.service.Backend_user.Backend_userService;
import?cn.appInfo.service.Dev_user.AppInfoService;
import?cn.appInfo.tools.Constants;
import?cn.appInfo.tools.PageSupport;
import?com.alibaba.fastjson.JSONArray;
import?org.apache.log4j.Logger;
import?org.springframework.stereotype.Controller;
import?org.springframework.ui.Model;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.RequestMethod;
import?org.springframework.web.bind.annotation.RequestParam;
import?org.springframework.web.bind.annotation.ResponseBody;
import?javax.annotation.Resource;
import?javax.servlet.http.HttpSession;
import?java.util.List;
/**
?*?后臺管理者controller
?*?Created?by?Administrator?on?2018/12/3.
?*/
@Controller
@RequestMapping(“/back“)
public?class?BackenController?{
//????日志
????private?Logger?logger=Logger.getLogger(BackenController.class);
????@Resource
????private?Backend_userService?backend_userService;
????@Resource
????private?AppInfoService?appInfoService;
//????后臺系統管理者登錄
????@RequestMapping(“/backendLogin“)
????public?String?backendLogin(String?userCode?String?userPassword?HttpSession?session){
????????Backend_user?backend_user=backend_userService.login(userCodeuserPassword);
????????if(null!=backend_user){
//????????????登錄成功
//?????????????放入session
????????????session.setAttribute(Constants.USER_SESSIONbackend_user);
//????????????頁面跳轉
????????????return?“redirect:/back/main“;
????????}else?{
????????????session.setAttribute(“error“?“用戶名或密碼不正確“);
????????????return?“backendlogin“;
????????}
????}
????//????主頁面
????@RequestMapping(“/main“)
????public?String?main(HttpSession?session){
????????if(session.getAttribute(Constants.USER_SESSION)==null){
????????????return?“redirect:/back/backendLogin“;
????????}
????????return?“backend/main“;
????}
????//app審核
????@RequestMapping(“/list“)
????public?String?list(Model?model?String?querySoftwareName?@RequestParam(value?=?“queryFlatformId“required?=?false)?String?_queryFlatformId
???????????????????????@RequestParam(value?=?“queryCategoryLevel1“required?=?false)String?_queryCategoryLevel1?@RequestParam(value?=?“queryCategoryLevel2“required?=?false)String?_queryCategoryLevel2
???????????????????????@RequestParam(value?=?“queryCategoryLevel3“required?=?false)String?_queryCategoryLevel3
???????????????????????String?pageIndex){
????????//轉換參數類型
????????Integer?queryFlatformId=null;
????????Integer?queryCategoryLevel1=null;
????????Integer?queryCategoryLevel2=null;
????????Integer?queryCategoryLevel3=null;
????????if?(_queryFlatformId!=null&&!_queryFlatformId.equals(““)){
????????????queryFlatformId=Integer.parseInt(_queryFlatformId);
????????}
????????if?(_queryCategoryLevel1!=null&&!_queryCategoryLevel1.equals(““)){
????????????queryCategoryLevel1=Integer.parseInt(
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????13??2018-12-04?09:55??appSystem\.git\COMMIT_EDITMSG
?????文件????????268??2018-12-04?09:46??appSystem\.git\config
?????文件?????????73??2018-12-04?09:21??appSystem\.git\desc
?????文件?????????98??2018-12-04?09:57??appSystem\.git\FETCH_HEAD
?????文件?????????23??2018-12-04?09:21??appSystem\.git\HEAD
?????文件????????478??2018-12-04?09:21??appSystem\.git\hooks\applypatch-msg.sample
?????文件????????896??2018-12-04?09:21??appSystem\.git\hooks\commit-msg.sample
?????文件????????189??2018-12-04?09:21??appSystem\.git\hooks\post-update.sample
?????文件????????424??2018-12-04?09:21??appSystem\.git\hooks\pre-applypatch.sample
?????文件???????1642??2018-12-04?09:21??appSystem\.git\hooks\pre-commit.sample
?????文件???????1348??2018-12-04?09:21??appSystem\.git\hooks\pre-push.sample
?????文件???????4951??2018-12-04?09:21??appSystem\.git\hooks\pre-reba
?????文件???????1239??2018-12-04?09:21??appSystem\.git\hooks\prepare-commit-msg.sample
?????文件???????3611??2018-12-04?09:21??appSystem\.git\hooks\update.sample
?????文件??????18344??2018-12-10?09:14??appSystem\.git\index
?????文件????????240??2018-12-04?09:21??appSystem\.git\info\exclude
?????文件????????708??2018-12-04?09:57??appSystem\.git\logs\HEAD
?????文件????????708??2018-12-04?09:57??appSystem\.git\logs\refs\heads\master
?????文件????????353??2018-12-04?09:57??appSystem\.git\logs\refs\remotes\origin\master
?????文件????????295??2018-12-04?09:57??appSystem\.git\ob
?????文件?????????65??2018-12-04?09:57??appSystem\.git\ob
?????文件??????14869??2018-12-04?09:24??appSystem\.git\ob
?????文件??????13407??2018-12-04?09:24??appSystem\.git\ob
?????文件????????277??2018-12-04?09:24??appSystem\.git\ob
?????文件?????????72??2018-12-04?09:57??appSystem\.git\ob
?????文件????????102??2018-12-04?09:24??appSystem\.git\ob
?????文件????????153??2018-12-04?09:57??appSystem\.git\ob
?????文件????????638??2018-12-04?09:24??appSystem\.git\ob
?????文件??????22061??2018-12-04?09:24??appSystem\.git\ob
?????文件????????235??2018-12-04?09:30??appSystem\.git\ob
............此處省略912個文件信息
評論
共有 條評論