• 大小: 39.58MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-28
  • 语言: 其他
  • 标签: App  

资源简介

北大青鸟Y2 SSM --App信息管理系统(简单易懂)-----------------

资源截图

代码片段和文件信息

package cn.lsp.appsys.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.jws.WebParam.Mode;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

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 com.alibaba.fastjson.JSON;

import cn.lsp.appsys.pojo.app_category;
import cn.lsp.appsys.pojo.app_info;
import cn.lsp.appsys.pojo.app_version;
import cn.lsp.appsys.pojo.backendUser;
import cn.lsp.appsys.pojo.dataDictionary;
import cn.lsp.appsys.service.BackendUserService;
import cn.lsp.appsys.service.DevUserService;
import cn.lsp.appsys.tools.PageSupport;

@Controller
@RequestMapping(“/Backend“)
public class BackendUserController {

private Logger logger = Logger.getLogger(BackendUserController.class);

@Resource(name=“backenduserservice“)
private BackendUserService service;

@Resource(name=“devuserservice“)
private DevUserService devService;

//后台用户登录页面
@RequestMapping(value=“/Login“method=RequestMethod.GET)
public String Login(){
return “jsp/backendlogin“;
}

//验证登录
@RequestMapping(value=“/goLogin“method=RequestMethod.POST)
public String goLogin(@RequestParam String userCode@RequestParam String userPasswordHttpSession sessionModel modelHttpServletRequest request){
logger.debug(“========>进入后台登录验证:“ + userCode + ““ + userPassword);
backendUser bkUser = service.Login(userCode userPassword);
if(null != bkUser){
session.setAttribute(“userSession“ bkUser);
logger.debug(“==========>后台用户登录成功!“);
return “jsp/backend/main“;
}
logger.debug(“==========>后台用户登录失败!“);
request.setAttribute(“error“ “用户名或密码错误!“);
return “jsp/backendlogin“;
}

//注销开发者页面
@RequestMapping(value=“/logout“method=RequestMethod.GET)
public String Logout(HttpSession session){
session.removeAttribute(“userSession“);
return “redirect:/Backend/Login“;
}

//ajax联动分类下拉框
@RequestMapping(value=“categorylevellist.json“method=RequestMethod.GET)
@ResponseBody
public object Classification(@RequestParam String pid){
logger.debug(“===========联动分类 pid=“+pid);
List categoriesList = null;
if(pid != null && pid != ““){
categoriesList = service.MainClassification(Integer.valueOf(pid));
}else{
categoriesList = service.OneClassification();
}
return JSON.toJSONString(categoriesList);
}

//APP审核页面
@RequestMapping(value=“/bkUserList“)
public String bkUserList(Model model
@RequestParam(value=“querySoftwareName“required=false)String querySoftwareName
@RequestParam(value=“queryFlatformId“required=false)Integer queryFlatformId
@RequestPar

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-08 08:53  AppInfoSystem\
     文件        3224  2017-06-23 16:31  AppInfoSystem\.classpath
     目录           0  2017-09-08 08:53  AppInfoSystem\.externalToolBuilders\
     文件         548  2017-07-03 17:34  AppInfoSystem\.externalToolBuilders\org.eclipse.wst.jsdt.core.javascriptValidator (1).launch
     文件        1281  2017-07-03 17:34  AppInfoSystem\.project
     目录           0  2017-09-08 08:53  AppInfoSystem\.settings\
     文件         503  2017-06-23 16:17  AppInfoSystem\.settings\.jsdtscope
     文件         175  2017-07-05 21:26  AppInfoSystem\.settings\org.eclipse.core.resources.prefs
     文件         364  2017-06-23 16:17  AppInfoSystem\.settings\org.eclipse.jdt.core.prefs
     文件         573  2017-06-23 16:31  AppInfoSystem\.settings\org.eclipse.wst.common.component
     文件         345  2017-06-23 16:17  AppInfoSystem\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-06-23 16:17  AppInfoSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-06-23 16:17  AppInfoSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2017-09-08 08:53  AppInfoSystem\build\
     目录           0  2017-09-08 08:53  AppInfoSystem\build\classes\
     文件        3699  2017-06-23 16:37  AppInfoSystem\build\classes\applicationContext-mybatis.xml
     目录           0  2017-09-08 08:53  AppInfoSystem\build\classes\cn\
     目录           0  2017-09-08 08:53  AppInfoSystem\build\classes\cn\lsp\
     目录           0  2017-09-08 08:53  AppInfoSystem\build\classes\cn\lsp\appsys\
     目录           0  2017-09-08 08:53  AppInfoSystem\build\classes\cn\lsp\appsys\controller\
     文件        8084  2017-07-31 20:52  AppInfoSystem\build\classes\cn\lsp\appsys\controller\BackendUserController.class
     文件       23047  2017-07-31 20:52  AppInfoSystem\build\classes\cn\lsp\appsys\controller\DevUserController.class
     文件        4350  2017-07-31 20:52  AppInfoSystem\build\classes\cn\lsp\appsys\controller\LoginController.class
     目录           0  2017-09-08 08:53  AppInfoSystem\build\classes\cn\lsp\appsys\dao\
     文件        1644  2017-07-31 20:52  AppInfoSystem\build\classes\cn\lsp\appsys\dao\BackendUserMapper.class
     文件        3938  2017-07-05 16:23  AppInfoSystem\build\classes\cn\lsp\appsys\dao\BackendUserMapper.xml
     文件        2614  2017-07-31 20:52  AppInfoSystem\build\classes\cn\lsp\appsys\dao\DevUserMapper.class
     文件       10429  2017-07-06 09:38  AppInfoSystem\build\classes\cn\lsp\appsys\dao\DevUserMapper.xml
     目录           0  2017-09-08 08:53  AppInfoSystem\build\classes\cn\lsp\appsys\interceptor\
     文件        1761  2017-07-31 20:52  AppInfoSystem\build\classes\cn\lsp\appsys\interceptor\SysInterceptor.class
     目录           0  2017-09-08 08:53  AppInfoSystem\build\classes\cn\lsp\appsys\pojo\
............此处省略193个文件信息

评论

共有 条评论