package com.controller;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.PrintWriter;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.entity.Zulinxinxi;
import com.server.ZulinxinxiServer;
import com.util.PageBean;
import net.sf.json.JSONObject;
import com.util.db;
import java.sql.SQLException;
import java.sql.*;
@Controller
public class ZulinxinxiController {
@Resource
private ZulinxinxiServer zulinxinxiService;
@RequestMapping("addZulinxinxi.do")
public String addZulinxinxi(HttpServletRequest request,Zulinxinxi zulinxinxi,HttpSession session) throws SQLException{
Timestamp time=new Timestamp(System.currentTimeMillis());
zulinxinxi.setAddtime(time.toString().substring(0, 19));
String sql="";
sql="update wupinxinxi set zhuangtai='出租' where wupinbianhao='"+zulinxinxi.getWupinbianhao()+"'";
db dbo = new db();
dbo.hsgexecute(sql);
zulinxinxiService.add(zulinxinxi);
session.setAttribute("backxx", "添加成功");
session.setAttribute("backurl", request.getHeader("Referer"));
//session.setAttribute("backurl", "zulinxinxiList.do");
return "redirect:postback.jsp";
//return "redirect:zulinxinxiList.do";
}
// 处理编辑
@RequestMapping("doUpdateZulinxinxi.do")
public String doUpdateZulinxinxi(int id,ModelMap map,Zulinxinxi zulinxinxi){
zulinxinxi=zulinxinxiService.getById(id);
map.put("zulinxinxi", zulinxinxi);
return "zulinxinxi_updt";
}
// 后台详细
@RequestMapping("zulinxinxiDetail.do")
public String zulinxinxiDetail(int id,ModelMap map,Zulinxinxi zulinxinxi){
zulinxinxi=zulinxinxiService.getById(id);
map.put("zulinxinxi", zulinxinxi);
return "zulinxinxi_detail";
}
// 前台详细
@RequestMapping("zlxxDetail.do")
public String zlxxDetail(int id,ModelMap map,Zulinxinxi zulinxinxi){
zulinxinxi=zulinxinxiService.getById(id);
map.put("zulinxinxi", zulinxinxi);
return "zulinxinxidetail";
}
//
@RequestMapping("updateZulinxinxi.do")
public String updateZulinxinxi(int id,ModelMap map,Zulinxinxi zulinxinxi,HttpServletRequest request,HttpSession session){
zulinxinxiService.update(zulinxinxi);
session.setAttribute("backxx", "修改成功");
session.setAttribute("backurl", request.getHeader("Referer"));
return "redirect:postback.jsp";
//String url = request.getHeader("Referer");
//return "redirect:"+url;
//return "redirect:zulinxinxiList.do";
}
// 分页查询
@RequestMapping("zulinxinxiList.do")
public String zulinxinxiList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Zulinxinxi zulinxinxi, String wupinbianhao, String wupinmingcheng, String leibie, String zujin, String zhuangtai, String chuzushijian1,String chuzushijian2, String chuzutianshu1,String chuzutianshu2, String chuzujine, String yonghuming, String xingming, String shenfenzheng, String shouji){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(wupinbianhao==null||wupinbianhao.equals("")){pmap.put("wupinbianhao", null);}else{pmap.put("wupinbianhao", wupinbianhao);}
if(wupinmingcheng==null||wupinmingcheng.equals("")){pmap.put("wupinmingcheng", null);}else{pmap.put("wupinmingcheng", wupinmingcheng);}
if(leibie==null||leibie.equals("")){pmap.put("leibie", null);}else{pmap.put("leibie", leibie);}
if(zujin==null||zujin.equals("")){pmap.put("zujin", null);}else{pmap.put("zujin", zujin);}
if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
if(chuzushijian1==null||chuzushijian1.equals("")){pmap.put("chuzushijian1", null);}else{pmap.put("chuzushijian1", chuzushijian1);}
if(chuzushijian2==null||chuzushijian2.equals("")){pmap.put("chuzushijian2", null);}else{pmap.put("chuzushijian2", chuzushijian2);}
if(chuzutianshu1==null||chuzutianshu1.equals("")){pmap.put("chuzutianshu1", null);}else{pmap.put("chuzutianshu1", chuzutianshu1);}
if(chuzutianshu2==null||chuzutianshu2.equals("")){pmap.put("chuzutianshu2", null);}else{pmap.put("chuzutianshu2", chuzutianshu2);}
if(chuzujine==null||chuzujine.equals("")){pmap.put("chuzujine", null);}else{pmap.put("chuzujine", chuzujine);}
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
int total=zulinxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Zulinxinxi> list=zulinxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "zulinxinxi_list";
}
@RequestMapping("zulinxinxi_yanben1.do")
public String zulinxinxi_yanben1(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Zulinxinxi zulinxinxi, String wupinbianhao, String wupinmingcheng, String leibie, String zujin, String zhuangtai, String chuzushijian1,String chuzushijian2, String chuzutianshu1,String chuzutianshu2, String chuzujine, String yonghuming, String xingming, String shenfenzheng, String shouji){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(wupinbianhao==null||wupinbianhao.equals("")){pmap.put("wupinbianhao", null);}else{pmap.put("wupinbianhao", wupinbianhao);}
if(wupinmingcheng==null||wupinmingcheng.equals("")){pmap.put("wupinmingcheng", null);}else{pmap.put("wupinmingcheng", wupinmingcheng);}
if(leibie==null||leibie.equals("")){pmap.put("leibie", null);}else{pmap.put("leibie", leibie);}
if(zujin==null||zujin.equals("")){pmap.put("zujin", null);}else{pmap.put("zujin", zujin);}
if(zhuangtai==null||zhuangtai.equals("")){pmap.put("zhuangtai", null);}else{pmap.put("zhuangtai", zhuangtai);}
if(chuzushijian1==null||chuzushijian1.equals("")){pmap.put("chuzushijian1", null);}else{pmap.put("chuzushijian1", chuzushijian1);}
if(chuzushijian2==null||chuzushijian2.equals("")){pmap.put("chuzushijian2", null);}else{pmap.put("chuzushijian2", chuzushijian2);}
if(chuzutianshu1==null||chuzutianshu1.equals("")){pmap.put("chuzutianshu1", null);}else{pmap.put("chuzutianshu1", chuzutianshu1);}
if(chuzutianshu2==null||chuzutianshu2.equals("")){pmap.put("chuzutianshu2", null);}else{pmap.put("chuzutianshu2", chuzutianshu2);}
if(chuzujine==null||chuzujine.equals("")){pmap.put("chuzujine", null);}else{pmap.put("chuzujine", chuzujine);}
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", nul
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
基于ssm+mysql融资租赁管理系统源码数据库.zip (914个子文件)
alipay_md5.asp 11KB
alipay_function.asp 6KB
alipay_notify.asp 5KB
alipay_service.asp 2KB
Info.class 18KB
ZulinxinxiController.class 17KB
YonghuxinxiController.class 15KB
WupinxinxiController.class 14KB
db.class 14KB
HetongxinxiController.class 11KB
RenwuxinxiController.class 10KB
YonghuzhuceController.class 9KB
VeDate.class 9KB
LeixingxinxiController.class 9KB
AllusersController.class 7KB
ShoucangjiluController.class 7KB
LiuyanbanController.class 7KB
XinwentongzhiController.class 6KB
YouqinglianjieController.class 6KB
PinglunController.class 6KB
Zulinxinxi.class 4KB
Yonghuzhuce.class 4KB
StrUtil.class 4KB
Yonghuxinxi.class 3KB
LiuyanbanServerImpi.class 3KB
YouqinglianjieServerImpi.class 3KB
LeixingxinxiServerImpi.class 3KB
HetongxinxiServerImpi.class 3KB
YonghuxinxiServerImpi.class 3KB
YonghuzhuceServerImpi.class 3KB
ZulinxinxiServerImpi.class 3KB
RenwuxinxiServerImpi.class 3KB
WupinxinxiServerImpi.class 3KB
XinwentongzhiServerImpi.class 3KB
AllusersServerImpi.class 3KB
Wupinxinxi.class 3KB
Xinwentongzhi.class 2KB
Liuyanban.class 2KB
ShoucangjiluServerImpi.class 2KB
PinglunServerImpi.class 2KB
hsgloginController.class 2KB
Hetongxinxi.class 2KB
Pinglun.class 2KB
Shoucangjilu.class 2KB
Md5.class 2KB
SetChar.class 2KB
Renwuxinxi.class 2KB
IndexController.class 2KB
Youqinglianjie.class 2KB
Allusers.class 2KB
PageBean.class 1KB
PageInfo.class 1KB
testFilter.class 1KB
Leixingxinxi.class 1KB
YouqinglianjieMapper.class 1KB
XinwentongzhiMapper.class 1020B
LiuyanbanMapper.class 1016B
LeixingxinxiMapper.class 1009B
YonghuxinxiMapper.class 998B
HetongxinxiMapper.class 998B
YonghuzhuceMapper.class 998B
RenwuxinxiMapper.class 987B
WupinxinxiMapper.class 987B
ZulinxinxiMapper.class 987B
CheckCode.class 922B
ShoucangjiluMapper.class 898B
AllusersMapper.class 898B
YouqinglianjieServer.class 896B
LeixingxinxiServer.class 874B
YonghuzhuceServer.class 863B
YonghuxinxiServer.class 863B
HetongxinxiServer.class 863B
LiuyanbanServer.class 860B
PinglunMapper.class 858B
ZulinxinxiServer.class 852B
RenwuxinxiServer.class 852B
WupinxinxiServer.class 852B
XinwentongzhiServer.class 796B
ShoucangjiluServer.class 763B
AllusersServer.class 763B
PinglunServer.class 723B
Constant.class 674B
.classpath 1KB
org.eclipse.wst.common.component 598B
org.eclipse.wst.jsdt.ui.superType.container 49B
bootstrap.css 185KB
bootstrap.min.css 150KB
common.css 136KB
common.css 136KB
common.css 118KB
bootstrap-grid.css 63KB
style.default.css 60KB
style.green.css 60KB
jquery.mCustomScrollbar.css 54KB
bootstrap-grid.min.css 47KB
font-awesome.css 37KB
font-awesome.min.css 30KB
layout.css 15KB
bootstrap-reboot.css 5KB
datepicker.css 4KB
共 914 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
入伍击寇
- 粉丝: 129
- 资源: 4706
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功