资源简介
基于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.xm
文件 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.xm
目录 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个文件信息
相关资源
- 基于安卓的定制化数字课堂考勤考评
- qwer-nut-shop.zip
- 期刊在线投稿系统.rar
- 实变函数与泛函分析基础第三版.zip
- c4d.rar
- zw_20161130200146607.zip
- zw_CH3_Test.zip
- zw_code-CSS3.zip
- zw_poker.zip
- zw_C提取特征点并进行图像匹配.zip
- zw_ebook相控阵天线手册.zip
- zw_PATCHantenna方向图的计算方法.zip
- zw_ssd.zip
- zw_PhotogramMetry7.30.zip
- zw_STM32F107参考手册中文版.zip
- weixin_44339798_10897235.zip
- zw_cmake-2.8.10.2.zip
- zw_DeskClock.zip
- zw_C多线程进度条源码.zip
- 进销存管理系统.zip
- 实验8测试文件.zip
- LightSNS_1.6.14.zip
- zw_emguFace.zip
- zw_《我和LabVIEW》程序2010.04.02.1.zip
- zw_串口.zip
- zw_20161030151454664.zip
- zw_Hibernate4.1.1中文文档.zip
- zw_C写的山寨QQ.zip
- zw_7版配套ppt及资料.zip
- zw_PlaneGame.zip
评论
共有 条评论