package com.kwxy.insurance.controller;
import java.io.File;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
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 org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.kwxy.insurance.base.BaseController;
import com.kwxy.insurance.po.*;
import com.kwxy.insurance.utils.DateUtil;
import com.kwxy.insurance.utils.HttpClientUtil;
import com.kwxy.insurance.utils.HttpClientUtil2;
import com.kwxy.insurance.utils.Pager;
import com.kwxy.insurance.utils.UUIDUtils;
import java.util.*;
import com.kwxy.insurance.po.*;
import com.kwxy.insurance.mapper.*;
import com.kwxy.insurance.service.*;
/**
* @ClassName:
* @Description:
* @author - - admin
* @date - 2018年10月29日 21时07分19秒
*/
@Controller
@RequestMapping("/workOrder")
public class WorkOrderController extends BaseController {
@Autowired
private BxService bxService;
/**
* 依赖注入 start dao/service/===
*/
@Autowired
private WorkOrderService workOrderService;
@Autowired
private BxOrderService bxOrderService;
/**
* 分页查询 返回list对象(通过对By Sql)
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/findBySql")
public String findBySql(WorkOrder workOrder, Model model, HttpServletRequest request, HttpServletResponse response) {
//分页查询
Object attribute = request.getSession().getAttribute("userId");
if (attribute == null){
return "redirect:/login/login.action";
}
Integer userId = Integer.valueOf(attribute.toString());
String sql = "SELECT * FROM work_order WHERE userId= "+userId;
if(!isEmpty(workOrder.getUserId())){
sql += " and userId like '%"+workOrder.getUserId()+"%'";
}
if(!isEmpty(workOrder.getCode())){
sql += " and code like '%"+workOrder.getCode()+"%'";
}
if(!isEmpty(workOrder.getAddress())){
sql += " and address like '%"+workOrder.getAddress()+"%'";
}
if(!isEmpty(workOrder.getShrId())){
sql += " and shrId like '%"+workOrder.getShrId()+"%'";
}
if(!isEmpty(workOrder.getWprId())){
sql += " and wprId like '%"+workOrder.getWprId()+"%'";
}
if(!isEmpty(workOrder.getCwrId())){
sql += " and cwrId like '%"+workOrder.getCwrId()+"%'";
}
if(!isEmpty(workOrder.getStatus())){
sql += " and status like '%"+workOrder.getStatus()+"%'";
}
if(!isEmpty(workOrder.getMoney())){
sql += " and money like '%"+workOrder.getMoney()+"%'";
}
if(!isEmpty(workOrder.getContent())){
sql += " and content like '%"+workOrder.getContent()+"%'";
}
sql += " ORDER BY ID DESC ";
Pager<WorkOrder> pagers = workOrderService.findBySqlRerturnEntity(sql);
model.addAttribute("pagers", pagers);
//存储查询条件
model.addAttribute("obj", workOrder);
return "workOrder/workOrder";
}
/**
* 审核员事故认定审核
* @param workOrder
* @param model
* @param request
* @param response
* @return
*/
//shfindBySql1
@RequestMapping(value = "/shfindBySql1")
public String shfindBySql1(WorkOrder workOrder, Model model, HttpServletRequest request, HttpServletResponse response) {
//分页查询
Object attribute = request.getSession().getAttribute("userId");
if (attribute == null){
return "redirect:/login/login.action";
}
Integer userId = Integer.valueOf(attribute.toString());
String sql = "SELECT * FROM work_order WHERE status = 1 ";
if(!isEmpty(workOrder.getUserId())){
sql += " and userId like '%"+workOrder.getUserId()+"%'";
}
if(!isEmpty(workOrder.getCode())){
sql += " and code like '%"+workOrder.getCode()+"%'";
}
if(!isEmpty(workOrder.getAddress())){
sql += " and address like '%"+workOrder.getAddress()+"%'";
}
if(!isEmpty(workOrder.getShrId())){
sql += " and shrId like '%"+workOrder.getShrId()+"%'";
}
if(!isEmpty(workOrder.getWprId())){
sql += " and wprId like '%"+workOrder.getWprId()+"%'";
}
if(!isEmpty(workOrder.getCwrId())){
sql += " and cwrId like '%"+workOrder.getCwrId()+"%'";
}
if(!isEmpty(workOrder.getStatus())){
sql += " and status like '%"+workOrder.getStatus()+"%'";
}
if(!isEmpty(workOrder.getMoney())){
sql += " and money like '%"+workOrder.getMoney()+"%'";
}
if(!isEmpty(workOrder.getContent())){
sql += " and content like '%"+workOrder.getContent()+"%'";
}
sql += " ORDER BY ID DESC ";
Pager<WorkOrder> pagers = workOrderService.findBySqlRerturnEntity(sql);
model.addAttribute("pagers", pagers);
//存储查询条件
model.addAttribute("obj", workOrder);
return "workOrder/shfindBySql1";
}
/**
* 理赔审核
* @param workOrder
* @param model
* @param request
* @param response
* @return
*/
//shfindBySql2
@RequestMapping(value = "/shfindBySql2")
public String shfindBySql2(WorkOrder workOrder, Model model, HttpServletRequest request, HttpServletResponse response) {
//分页查询
Object attribute = request.getSession().getAttribute("userId");
if (attribute == null){
return "redirect:/login/login.action";
}
Integer userId = Integer.valueOf(attribute.toString());
String sql = "SELECT * FROM work_order WHERE shrId= "+userId +" and (status = 4 or status = 6) ";
if(!isEmpty(workOrder.getUserId())){
sql += " and userId like '%"+workOrder.getUserId()+"%'";
}
if(!isEmpty(workOrder.getCode())){
sql += " and code like '%"+workOrder.getCode()+"%'";
}
if(!isEmpty(workOrder.getAddress())){
sql += " and address like '%"+workOrder.getAddress()+"%'";
}
if(!isEmpty(workOrder.getShrId())){
sql += " and shrId like '%"+workOrder.getShrId()+"%'";
}
if(!isEmpty(workOrder.getWprId())){
sql += " and wprId like '%"+workOrder.getWprId()+"%'";
}
if(!isEmpty(workOrder.getCwrId())){
sql += " and cwrId like '%"+workOrder.getCwrId()+"%'";
}
if(!isEmpty(workOrder.getStatus())){
sql += " and status like '%"+workOrder.getStatus()+"%'";
}
if(!isEmpty(workOrder.getMoney())){
sql += " and money like '%"+workOrder.getMoney()+"%'";
}
if(!isEmpty(workOrder.getContent())){
sql += " and content like '%"+workOrder.getContent()+"%'";
}
sql += " ORDER BY ID DESC ";
Pager<WorkOrder> pagers = workOrderService.findBySqlRerturnEntity(sql);
model.addAttribute("pagers", pagers);
//存储查询条件
model.addAttribute("obj", workOrder);
return "workOrder/shfindBySql2";
}
/**
* wprfindBySql
* 外派人员
*/
@RequestMapping(value = "/wprfindBySql")
public String wprfindBySql(WorkOrder workOrder, Model model, HttpServletRequest request, HttpServletResponse response) {
//分页查询
Object attribute = request.getSession().getAttribute("userId");
if (attribute == null){
return "redirect:/login/login.action";
}
Integer userId = Integer.valueOf(attribute.toString());
String sql = "SE
没有合适的资源?快使用搜索试试~ 我知道了~
毕业设计javajsp保险理财ssm-qlkrp源码工具包
共2000个文件
png:637个
css:417个
js:415个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 59 浏览量
2024-08-10
23:43:23
上传
评论
收藏 74.77MB RAR 举报
温馨提示
毕业设计javajsp保险理财ssm-qlkrp源码工具包 后台是ssm框架,页面是jsp,数据库mysql,jdk1.8,开发工具用ecplise、myecplise、sts、idea都可以 我的保险 理赔知识 个人信息 密码修改 保单管理 我的理赔账单 包含:源码、数据库脚本、环境工具包、相同框架项目的安装教程(在说明文档中)
资源推荐
资源详情
资源评论
收起资源包目录
毕业设计javajsp保险理财ssm-qlkrp源码工具包 (2000个子文件)
WorkOrderController.class 14KB
HttpClientUtil2.class 10KB
HttpClientUtil.class 8KB
BaseServiceImpl.class 8KB
DateUtil.class 8KB
UserController.class 7KB
BxController.class 5KB
WorkOrder.class 5KB
NoticeController.class 4KB
BxOrderController.class 4KB
LoginController.class 4KB
UeditorController.class 3KB
Bx.class 3KB
BaseController.class 3KB
BxOrder.class 3KB
BaseService.class 2KB
JsonUtil.class 2KB
SystemContextFilter.class 2KB
UUIDUtils.class 2KB
SystemContext.class 2KB
BaseDao.class 2KB
User.class 2KB
Pager.class 2KB
Notice.class 2KB
Message.class 1KB
WorkOrderServiceImpl.class 996B
BxOrderServiceImpl.class 978B
NoticeServiceImpl.class 969B
UserServiceImpl.class 951B
BxServiceImpl.class 933B
HttpConstants.class 831B
WorkOrderService.class 296B
BxOrderService.class 290B
NoticeService.class 287B
WorkOrderMapper.class 285B
UserService.class 281B
BxOrderMapper.class 279B
NoticeMapper.class 276B
BxService.class 275B
UserMapper.class 270B
BxMapper.class 264B
.classpath 1KB
org.eclipse.wst.common.component 585B
org.eclipse.wst.jsdt.ui.superType.container 49B
doysu.min.css 253KB
H-ui.css 154KB
bootstrap.css 143KB
bootstrap.css 134KB
bootstrap.css 128KB
bootstrap.css 124KB
bootstrap.min.css 118KB
bootstrap.css 118KB
bootstrap.min.css 111KB
bootstrap.min.css 111KB
H-ui.min.css 111KB
pintuer.css 111KB
bootstrap.min.css 107KB
bootstrap.min.css 104KB
animate-custom.css 72KB
dpl-min.css 72KB
easyui.css 59KB
easyui.css 58KB
easyui.css 58KB
easyui2.css 58KB
easyui.css 58KB
easyui.css 56KB
easyui.css 55KB
jquery.mCustomScrollbar.css 52KB
style2.css 48KB
ueditor.css 45KB
ueditor.css 44KB
common.css 44KB
jquery.mCustomScrollbar.min.css 42KB
index.css 38KB
bui-min.css 38KB
ueditor.min.css 34KB
ueditor.min.css 34KB
datepicker3.css 33KB
uc.css 26KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
bootstrap-responsive.css 22KB
bootstrap-responsive.css 22KB
video-js.css 22KB
font-awesome.min.css 22KB
bootstrap-theme.css 21KB
bootstrap-theme.css 21KB
video-js.css 21KB
_all.css 21KB
style.css 20KB
bootstrap-theme.min.css 19KB
image.css 19KB
image.css 19KB
bootstrap-theme.min.css 18KB
datepicker.css 18KB
bootstrap-responsive.min.css 16KB
bootstrap-responsive.min.css 16KB
iconfont.css 16KB
video.css 15KB
video.css 15KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
言宇程序
- 粉丝: 2417
- 资源: 5259
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 具有PSK调制的LDPC编码模拟器,在雷利衰落信道中matlab代码.rar
- 具有采样频率、载波频率和比特率的2级PSK解调器。Matlab代码.rar
- 了Matlab通信工具箱函数convenc和vitdec(卷积编码器,维特比解码器)所需的格子结构,用于维特比编码和解码.rar
- 扩展欧几里得算法用于GF(2^m)上的多项式Matlab代码.rar
- 具有不同数量的发射和接收天线的瑞利衰落信道来驱动 MIMO 系统的容量Matlab代码.rar
- 蓝牙跳频选择方案simlunk实现.rar
- 雷达成像信道中BPSK的误码率曲线Matlab实现.rar
- 雷达成像信道中BPSK的误码率Matlab实现.rar
- 雷达成像信道上的差分BPSK时间,Jake模型Matlab代码.rar
- 具有低密度奇偶校验矩阵的周期性时变卷积码Matlab实现.rar
- 具有载波和定时恢复环路的 QPSK 调制Matlab代码.rar
- 雷达成形信道中QPSK的误码率Matlab代码.rar
- 雷达成像信道中QPSK的误码率曲线Matlab代码.rar
- 雷达成影信道驱动MIMO系统的容量Matlab代码.rar
- 雷利衰落信道生成器Matlab代码.rar
- 雷利信道无交织软解码的误码率Matlab代码.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功