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.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 3 下载量 19 浏览量
2022-02-11
08:28:33
上传
评论 10
收藏 8.46MB ZIP 举报
温馨提示
一、项目简述 功能:该项目是用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等等
资源推荐
资源详情
资源评论
收起资源包目录
Java项目:医院管理系统(java+Springboot+ssm+mysql+maven) (2000个子文件)
001efa00ad0fe6a0ee8ed010d9213d020e1a7e 161B
003aabc4219e3e2e6b454b99eb1c1d90255edd 160B
003f202b2f80ec95d42b9ee1fe4997fd8af940 5KB
004fa3ef376bc5242d8ccb0018dd56b1ae1cdf 121B
005aa1ee9cff102c3257745e5fd2bb07936045 235B
006946896ada2bae0c740d9da6f26b0c428faa 268B
0093c3946fb86e21127aa1232d3773451e4409 784B
00e98884947d7ca8c677a97f152a5b5dbb003a 936B
01119aa0703a203d7202e0984e0dff8f1354f8 805B
01411623fb1b0b2c625af056d5dcc00bcf6c95 131B
01610c5b87ec89969febdf86f90fbbc48d285b 146B
0180237dcc8e6574cc6d97d07745e1472f3d45 284B
018999dbd7c951bd10c459c31666c9729e8620 323B
018c83186fd82dd46f7190c6aecaf645d04f3c 1KB
01d50bd4c1aabb1385b4cd72b59633e127656c 1KB
01f55b98482331d31a367e619b475c09918d69 266B
01f8880b46ae3c21555e2e1111f3102f467b9c 161B
02031ef9e1fe02170f0c5e44a84d1bec734652 1KB
021465958e4430238af7d39f6487dd4c1101f5 160B
024401cf6512a9465e49ff06b11ec2dcb4e91d 227B
02530be4ee45afd1734407a57746f15be54900 317B
0270ac507d273efac901baea9f7d772b0a11dd 160B
027b7f2cff33545425f586ef79b9bb41be1f04 774B
02810cea076dc06da67c97b88f42432e93bb2e 1KB
028cd1fc8ae094875ba3b8481cddd652b3ce91 267B
02a28c64fbc514af626995b3c2db8d9a21b7e6 45B
02aca34b59114f19320f672430b4d65d1a75ab 79B
02c2f7a8e871e1c3ace8c613440bc289582d07 230B
02f4417d033d653d037b1db888d443ebb47786 155B
02f52d0832113b82e8681b27758f91184b3c6f 227B
030d772227405d33ac6f451bbdc52624884ada 609B
03190003bb114fef220d99d871aa8d06037905 75B
031f14a1c3bc38ac5e469b533324227821d6ed 75B
039a5b50b9d440f43fec03a705bb08fd8fd17c 3KB
03b20527de133f8dd0ed4ad09a61013a3f8654 79B
03d072466b08038447dcbfb9f4eab216da879e 691B
03e06e9d408e4c0d97f6f20131af9212906c10 321B
0417b8f3317ba836b48428929838620e5c55c2 3KB
0435f4e58892e2eeb5525443817747db8f1fc4 307B
043ac305a9e8f4fe336282dc112318df46fe4e 1KB
044b646a25c9e39d8ca822a7bdc279face8329 227B
04778b8f9945bd41de8a7c08e122724d8f719b 227B
047af71b3b55010096f53e5282afd0b850e5ff 1001B
04c632c007d0d9195bbd2c93c1bee1fccd5ab7 45B
04c919eb2ce5c8c15cf22e487540cc85454aac 1KB
04deeac96a4435ce0e5f20647126b8fab33b6e 267B
04f5fb54ac7d344861504653b5391bdb8df929 1KB
05014cb08556a122def958a642697742a7c7c0 227B
05174b4cdbf71b12a8d9d812be746ae1e1e723 937B
0535f58bade1b4ced2ad9a50ed0295a324e934 213B
05394f0c1cef8866917a1d38954526b2b4b850 2KB
0548f9f0bd93e7e5ebd941620d0fba9eddc40c 531B
05597449df731673384834b087e143125e653e 154B
0571b3688731eb584da5a8db01ea9a6a116cbf 113B
05c40e9ef075bc2fc74d7f230ea4b57f72210f 227B
0607f6d8bf10e6e467803c2c9f011b5ca3c94e 409B
0631cea0fd56031db19fc3edbb4db4bfbb923a 66KB
064a230d13e215ea2c8b408aa30398fc91b576 265B
065087d4720326776b26c7b9d2482c9e467bca 2KB
06612b90bad7ee2a3f9b2428436c443bc27984 4KB
067222db911a1729fc3936db0624b66289de30 154B
06b49641b796bdc55e67c300f359a21bee5f7a 397B
06bba773d47defd3416e73b47a7c8132d90863 214B
06cab11c671afb762bdd4f0a3706afd7a87ef2 1KB
06cbc45641a50fdcca3009ccea4497fa5bdc40 368B
070dd09f6a54428f65905614ff03ff803547ce 271B
0718137f73dbe747e34bcc6c5a0afb4a7afdb5 227B
07338c74abd7d54752e824b0c027f84698a09e 180B
0753ce25f09ab85423e1f87620ba6416d288d6 259B
0753f299b46d3d0b7089929a73243367a1e7ba 28KB
0767dabf6b50f8a46eaf6e1d51697497fc3ca3 617B
079707043953ecfb2e4d48a80fc2406fffdcd2 2KB
079c8ad1ecc9dc595f11ce4ca3862663a656c8 1014B
07a41e24b346835d18d90b07912112acfb74aa 4KB
07d2d7ffcd30db8c5b58895b8f1cd5ab087032 210B
07f2e6d4daf4fa529cf3367cf64dd7dcbd5284 258B
082eaf8dbc3b2f04167f10baa714a369cf0244 46B
08414b322ef03516b4883e08a04b7bae31e7ee 45B
084450070395e7db7ecc58c085699a885100b3 161B
085e3632f20cb599217bbb9e5095fe8c6b433d 259B
0868252cba021d39a5f334d20373d83eae7ad6 171B
0873d4ad2510e7f3916cfb41998275db15a4ac 159B
088ff565c1026f4964bcfedabc593432101c6c 160B
08954c628d4069c3ec9fd77236480d536491be 190B
08d9293249d61644b7859634965f06dd8bfabb 644B
08f59304af55dfe4f869cce4e9939e95348715 74B
09031b54f1d820b8d0112191076ae6891f9636 79B
0952a8c3f1b16da2a67bec91a084d64a02746c 445B
097a8ad476e8ad53a532a10f12640a8c78bcd0 938B
09830a853bad5f3c54c7554666affac1a04e5a 161B
09830f4f063b7dd6f0dca93e66f33dd2444b8c 79B
098f1ba4a079b1132a58aad23d54f584e198ec 644B
099fa8dad49c5b39bdca0bb13c58025568683b 5KB
09a8ff30828c901aabaa6911e38ef5f429d914 697B
09a96fdcae132e67e67eb2cdc554fe61987013 78B
09b911ed71c0f29935fd727add1632fdd0aa2d 228B
09f41a027579ce0d8bbabed592479b376dac2c 1KB
0a3df3c034facd69806c623d7c7166c3186d08 75B
0a415666427f12580d37a112c711bd847a539a 937B
0a443e48bbc356dbb0a3615045dcf492a07e94 45B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
qq1334611189
- 粉丝: 7120
- 资源: 413
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页