• 大小: 1.59M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-11
  • 语言: 其他
  • 标签: 其他  

资源简介

基于SSM+Redis的停车场管理系统.zip

资源截图

代码片段和文件信息

package com.depot.ex.admin.controller;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpSession;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;
import org.springframework.util.StringUtils;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.depot.ex.admin.dto.CouponData;
import com.depot.ex.admin.dto.DepotcardManagerData;
import com.depot.ex.admin.entity.CardType;
import com.depot.ex.admin.entity.Coupon;
import com.depot.ex.admin.entity.Depotcard;
import com.depot.ex.admin.entity.Income;
import com.depot.ex.admin.entity.ParkInfo;
import com.depot.ex.admin.entity.User;
import com.depot.ex.admin.service.CardtypeService;
import com.depot.ex.admin.service.CouponService;
import com.depot.ex.admin.service.DepotcardService;
import com.depot.ex.admin.service.IllegalInfoService;
import com.depot.ex.admin.service.IncomeService;
import com.depot.ex.admin.service.ParkinfoService;
import com.depot.ex.admin.service.ParkinfoallService;
import com.depot.ex.admin.service.UserService;
import com.depot.ex.utils.Constants;
import com.depot.ex.utils.Msg;

/**
 * *
 * 
 * @author 作者 E-mail: *
 * @date 创建时间:2017年11月27日 下午2:07:13 *
 * @version 1.0 *
 * @parameter *
 * @since *
 * @return
 */
@Controller
public class CardController {

@Autowired
private DepotcardService depotcardService;
@Autowired 
private CardtypeService cardtypeService;
@Autowired
private UserService userService;
@Autowired
private ParkinfoService parkinfoService;
@Autowired
private IncomeService incomeService;
@Autowired
private CouponService couponService;
@Autowired
private IllegalInfoService illegalInfoService;
@Autowired
private ParkinfoallService parkinfoallService;

@ResponseBody
@RequestMapping(“/index/card/findAllCardType“)
public Msg findAllCardType()
{
List cardTypes=cardtypeService.findAllCardType();
return Msg.success().add(“cardTypes“ cardTypes);
}
@ResponseBody
@RequestMapping(“/index/card/addDepotCard“)
@Transactional
public Msg addDepotCard(DepotcardManagerData depotcardManagerData)
{
if(Integer.parseInt(depotcardManagerData.getType())!=1)
{
depotcardManagerData.setDeductedtime(new Date());
}
Depotcard depotcard=depotcardService.save(depotcardManagerData);
double money=0;
Income income=new Income();
if(depotcard==null)
{
 return Msg.fail().add(“va_msg“ “账号已存在!“);
}
int type=Integer.parseInt(depotcardManagerData.getType());
/*if(type==1)
{
income.setTru

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-22 07:47  depot-system\
     文件        1006  2018-02-22 07:47  depot-system\.classpath
     文件        1429  2018-02-22 07:47  depot-system\.project
     目录           0  2018-02-22 07:47  depot-system\.settings\
     文件         639  2018-02-22 07:47  depot-system\.settings\.jsdtscope
     文件        1017  2018-02-22 07:47  depot-system\.settings\oracle.eclipse.tools.webtier.ui.prefs
     文件         593  2018-02-22 07:47  depot-system\.settings\org.eclipse.core.resources.prefs
     文件         430  2018-02-22 07:47  depot-system\.settings\org.eclipse.jdt.core.prefs
     文件          90  2018-02-22 07:47  depot-system\.settings\org.eclipse.m2e.core.prefs
     文件         850  2018-02-22 07:47  depot-system\.settings\org.eclipse.wst.common.component
     文件         252  2018-02-22 07:47  depot-system\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-02-22 07:47  depot-system\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-02-22 07:47  depot-system\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          50  2018-02-22 07:47  depot-system\.settings\org.eclipse.wst.validation.prefs
     文件        4617  2018-02-22 07:47  depot-system\pom.xml
     目录           0  2018-02-22 07:47  depot-system\src\
     目录           0  2018-02-22 07:47  depot-system\src\main\
     目录           0  2018-02-22 07:47  depot-system\src\main\java\
     目录           0  2018-02-22 07:47  depot-system\src\main\java\com\
     目录           0  2018-02-22 07:47  depot-system\src\main\java\com\depot\
     目录           0  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\
     目录           0  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\
     目录           0  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\
     文件       10115  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\CardController.java
     文件       11802  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\CheckController.java
     文件        3145  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\CouponController.java
     文件        1710  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\DepotController.java
     文件        3802  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\EmailController.java
     文件        1889  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\IllegalAction.java
     文件        1484  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\IncomeController.java
     文件       18971  2018-02-22 07:47  depot-system\src\main\java\com\depot\ex\admin\controller\IndexController.java
............此处省略147个文件信息

评论

共有 条评论