package com.aaa.controller;
import com.aaa.entity.*;
import com.aaa.service.DepartmentService;
import com.aaa.service.PrjectTypeService;
import com.aaa.service.UnitService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Controller
@RequestMapping("prjectType")
public class PrjectTypeController {
@Autowired
private PrjectTypeService prjectTypeService;
/*
* 查询生产项目大类
* */
@RequestMapping("findAllProjecttype")
@ResponseBody
public Object ProjecttypeList(Projecttype projecttype, Integer page, Integer limit){
PageHelper.startPage(page, limit);
List<Projecttype> listAll = prjectTypeService.findAllProjecttype(projecttype);
PageInfo pageInfo = new PageInfo(listAll);
Map<String, Object> tableData = new HashMap<String, Object>();
//这是layui要求返回的json数据格式
tableData.put("code", 0);
tableData.put("msg", "");
//将全部数据的条数作为count传给前台(一共多少条)
tableData.put("count", pageInfo.getTotal());
//将分页后的数据返回(每页要显示的数据)
tableData.put("data", pageInfo.getList());
return tableData;
}
/*
* 添加生产项目大类
* */
@RequestMapping("addProjecttype")
@ResponseBody
public Object addProjecttype(Projecttype projecttype){
int i1 = prjectTypeService.count1(projecttype);
if(i1==0){
int i = prjectTypeService.addProjecttype(projecttype);
if(i==1){
return "添加成功";
}else{
return "添加失败";
}
}else{
return projecttype.getProjectName()+"已存在";
}
}
/*
* 删除生产项目大类
* */
@RequestMapping("deleteProjecttype")
@ResponseBody
public Object deleteProjecttype(Integer projectId){
int i = prjectTypeService.deleteProjecttype(projectId);
if(i==1){
return "删除成功";
}else{
return "删除失败";
}
}
/*------------------------------------------------------------*/
/*
* 查询收费类型
* */
@RequestMapping("findAllMoneytype")
@ResponseBody
public Object MoneytypeList(Moneytype moneytype, Integer page, Integer limit){
PageHelper.startPage(page, limit);
List<Moneytype> listAll = prjectTypeService.findAllMoneytype(moneytype);
PageInfo pageInfo = new PageInfo(listAll);
Map<String, Object> tableData = new HashMap<String, Object>();
//这是layui要求返回的json数据格式
tableData.put("code", 0);
tableData.put("msg", "");
//将全部数据的条数作为count传给前台(一共多少条)
tableData.put("count", pageInfo.getTotal());
//将分页后的数据返回(每页要显示的数据)
tableData.put("data", pageInfo.getList());
return tableData;
}
/*
* 添加收费类型
* */
@RequestMapping("addMoneytype")
@ResponseBody
public Object addMoneytype(Moneytype moneytype){
int i1 = prjectTypeService.count4(moneytype);
if(i1==0){
int i = prjectTypeService.addMoneytype(moneytype);
if(i==1){
return "添加成功";
}else{
return "添加失败";
}
}else{
return moneytype.getMoneytype()+"已存在";
}
}
/*
* 修改收费类型
* */
@RequestMapping("editMoneytype")
@ResponseBody
public Object editMoneytype(Moneytype moneytype){
int i = prjectTypeService.editMoneytype(moneytype);
if(i==1){
return "修改成功";
}else{
return "修改失败";
}
}
/*
* 删除收费类型
* */
@RequestMapping("deleteMoneytype")
@ResponseBody
public Object deleteMoneytype(Integer moneyId){
int i = prjectTypeService.deleteMoneytype(moneyId);
if(i==1){
return "删除成功";
}else{
return "删除失败";
}
}
/*--------------------------------------------------------------*/
/*
* 查询门诊收费项
* */
@RequestMapping("findAllOutpatienttype")
@ResponseBody
public Object OutpatienttypeList(Outpatienttype outpatienttype, Integer page, Integer limit){
PageHelper.startPage(page, limit);
List<Outpatienttype> listAll = prjectTypeService.findAllOutpatienttype(outpatienttype);
PageInfo pageInfo = new PageInfo(listAll);
Map<String, Object> tableData = new HashMap<String, Object>();
//这是layui要求返回的json数据格式
tableData.put("code", 0);
tableData.put("msg", "");
//将全部数据的条数作为count传给前台(一共多少条)
tableData.put("count", pageInfo.getTotal());
//将分页后的数据返回(每页要显示的数据)
tableData.put("data", pageInfo.getList());
return tableData;
}
@Autowired
private UnitService unitService;
/*
* 查询计量单位
* */
@RequestMapping("findAllUnit")
@ResponseBody
public Object UnitList(){
List<Unit> listAll = unitService.findAllUnit(null);
return listAll;
}
@RequestMapping("findAllProjecttype1")
@ResponseBody
public Object ProjecttypeList(){
List<Projecttype> listAll = prjectTypeService.findAllProjecttype(null);
return listAll;
}
/*
* 添加门诊收费项
* */
@RequestMapping("addOutpatienttype")
@ResponseBody
public Object addOutpatienttype(Outpatienttype outpatienttype,Integer projectId,Integer unitId){
outpatienttype.setBigprojectId(projectId);
outpatienttype.setUnit(unitId);
int i1 = prjectTypeService.count2(outpatienttype);
if(i1==0){
int i = prjectTypeService.addOutpatienttype(outpatienttype);
if(i==1){
return "添加成功";
}else{
return "添加失败";
}
}else {
return outpatienttype.getProjectName()+"已存在";
}
}
/*
* 修改门诊收费项
* */
@RequestMapping("editOutpatienttype")
@ResponseBody
public Object editOutpatienttype(Outpatienttype outpatienttype,Integer projectId,Integer unitId){
outpatienttype.setBigprojectId(projectId);
outpatienttype.setUnit(unitId);
int i = prjectTypeService.editOutpatienttype(outpatienttype);
if(i==1){
return "修改成功";
}else{
return "修改失败";
}
}
/*
* 删除门诊收费项
* */
@RequestMapping("deleteOutpatienttype")
@ResponseBody
public Object deleteOutpatienttype(Integer outpatientId){
int i = prjectTypeService.deleteOutpatienttype(outpatientId);
if(i==1){
return "删除成功";
}else{
return "删除失败";
}
}
/*------------------------------------------------------------------------*/
/*
* 查询住院收费项
* */
@RequestMapping("findAllInoutpatienttype")
@ResponseBody
public Object InoutpatienttypeList(Inoutpatienttype inoutpatienttype, Int
没有合适的资源?快使用搜索试试~ 我知道了~
Java项目:医院管理系统(java+Springboot+ssm+mysql+maven)

共2000个文件
java:191个
class:191个
xml:162个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉

温馨提示
一、项目简述 功能:该项目是用springboot+layui+shiro写的医院管理系 统,该系统的业务比较复杂,数据库一共有36张表。 项目分为门诊管理、住院管理、系统管理、统计管理、数 据中心、排班管理、仓库管理、药房管理 二、项目运行 环境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持) 项目技术: JSP +Springboot+ SpringMVC + MyBatis + html+ css + JavaScript + JQuery + Ajax + Layui+ maven等等
资源推荐
资源详情
资源评论

















收起资源包目录





































































































共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20

qq1334611189
- 粉丝: 7531
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 有效的品牌管理国讯通信集团品牌理念及输出(1).ppt
- 电子商务物流配送系统分析与设计(1).doc
- AutoCAD第04讲-使用AutoCAD绘制直线市公开课特等奖市赛课微课一等奖课件(1).pptx
- 第二章2联合站自动化(1).pptx
- 2023年安徽省2级c语言水平考试试卷(1).doc
- 香料公司信息化管理讲座(1).pptx
- 医院门诊一卡通收费信息化发展研究(1).docx
- 计算机图像识别技术的发展现状与趋势(1).docx
- 互联网+背景下物业管理的问题研究(1).docx
- 基于51单片机控制的自动停泊小车的设计与实现毕业设计论文(2)(1).doc
- windows通过bat调用fffmpeg转换MP4->MP3
- Git commit写得烂?这套提交规范我收藏了三年.doc
- Spring Boot与Docker镜像构建实战,从本地跑通到云部署.doc
- 前端跨域彻底搞懂:CORS原理 + Nginx代理配置实战.doc
- 别再用if-else写逻辑了!策略模式实战+线上案例.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

- 1
- 2
- 3
前往页