首页>代码>基于ssm+echarts开发的医疗管理数据分析系统>/MedicalPensionSystem/src/main/java/com/xhu/controller/MangerController.java
package com.xhu.controller; import java.text.ParseException; import java.util.HashMap; import java.util.List; import java.util.Map; 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.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import com.xhu.entity.User; import com.xhu.entity.ifodoctor; import com.xhu.entity.roomlist; import com.xhu.service.ManagerService; import com.xhu.util.BaseAction; import com.xhu.util.BootPage; @Controller @RequestMapping("/Manager") public class MangerController extends BaseAction { @Autowired ManagerService ManSer; /** * * @Title: informationListMa * @Description: TODO(��ȡ�����б�) * @param page * @return * @author lb lb * @date 2019��1��1�� ����4:54:28 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("/roomlist") @ResponseBody public BootPage<roomlist> informationListMa(BootPage<roomlist> page, String search) { return ManSer.getMedicine(page, search); } /** * * @Title: getUser * @Description: ��ȡ�û��б� * @return * @author lb lb * @date 2019��5��26�� ����1:40:42 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("/listUser") @ResponseBody public BootPage<User> getUser(BootPage<User> page, String search){ return ManSer.listUser(page, search); } /** * * @Title: roommanger * @Description: TODO(�Ŀ�����Ϣ) * @return * @author lb lb * @date 2019��1��2�� ����4:17:15 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("update.json") @ResponseBody public ResultObj roommanger(roomlist list) { try { ManSer.update(list); return new ResultObj(SUCCESS); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); return new ResultObj(FAIL); } } /** * * @Title: chongzhi * @Description: �������� * @param user * @return * @author lb lb * @date 2019��5��26�� ����2:32:21 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("/cz.json") @ResponseBody public ResultObj chongzhi(User user) { try { ManSer.update1(user); return new ResultObj(SUCCESS); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); return new ResultObj(FAIL); } } /** * * @Title: addroom * @Description: TODO(���ӿ���) * @param list * @return * @author lb lb * @date 2019��1��3�� ����12:37:19 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("addroom") @ResponseBody public ResultObj addroom(roomlist list) { try { ManSer.addRoom(list); return new ResultObj(SUCCESS); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); return new ResultObj(FAIL); } } /** * * @Title: delRoom * @Description: TODO(ɾ�����) * @param list * @return * @author lb lb * @date 2019��1��3�� ����12:56:07 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("delroom") @ResponseBody public ResultObj delRoom(roomlist list) { try { ManSer.delroom(list); return new ResultObj(SUCCESS); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); return new ResultObj(FAIL); } } /** * * @Title: deluser * @Description: ɾ���û� * @param list * @return * @author lb lb * @date 2019��5��26�� ����2:45:41 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("deluser") @ResponseBody public ResultObj deluser(User list) { try { ManSer.deluser(list); return new ResultObj(SUCCESS); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); return new ResultObj(FAIL); } } /** * * @Title: getdocifo * @Description: TODO(��ȡҽ����Ϣ) * @param page * @return * @author lb lb * @date 2019��1��4�� ����12:30:50 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("/listdoctorifo") @ResponseBody public BootPage<ifodoctor> getdocifo(BootPage<ifodoctor> page, String search) { return ManSer.getDoctorIfo1(page, search); } /** * * @Title: listroom * @Description: TODO(��̬���ؿ�����Ϣ) * @return * @author lb lb * @date 2019��1��4�� ����2:17:12 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("listroom.json") @ResponseBody public List<roomlist> listroom() { return ManSer.listRoom(); } /** * * @Title: uodateifo * @Description: TODO(����Ϣ) * @param doc * @return * @author lb lb * @date 2019��1��4�� ����2:40:32 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("updateifo") @ResponseBody public ResultObj uodateifo(ifodoctor doc) { try { ManSer.updateifo(doc); return new ResultObj(SUCCESS); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); return new ResultObj(FAIL); } } /** * * @Title: deleteifo * @Description: TODO(ɾ��ҽ��) * @param doc * @return * @author lb lb * @date 2019��1��4�� ����2:56:01 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("delifo") @ResponseBody public ResultObj deleteifo(ifodoctor doc) { try { ManSer.delifo(doc); return new ResultObj(SUCCESS); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); return new ResultObj(FAIL); } } /** * * @Title: addroom * @Description: TODO(���ҽ��) * @param list * @return * @author lb lb * @date 2019��1��4�� ����3:29:31 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("adddocifo") @ResponseBody public ResultObj adddocifo(ifodoctor list, @RequestParam("doctordate") String doctorEntryTime) { try { ManSer.adddocifo(list, doctorEntryTime); return new ResultObj(SUCCESS); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); return new ResultObj(FAIL); } } /** * * @Title: getf * @Description: TODO(��ȡ������) * @param Page * @param reportperiod * @return * @author lb lb * @throws ParseException * @date 2019��1��6�� ����1:22:03 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("fabing.json") @ResponseBody public BootPage<Map<String, String>> getf(BootPage<Map<String, String>> Page, String year, String name) throws ParseException { return ManSer.getf(Page, year, name); } /** * * @Title: get * @Description: TODO(����ÿ��ÿ�ּ�������Ů����) * @param Page * @param reportperiod * @return * @throws ParseException * @author lb lb * @date 2019��1��6�� ����3:16:05 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("sex.json") @ResponseBody public BootPage<Map<String, String>> get(BootPage<Map<String, String>> Page, String year, String ilname) throws ParseException { return ManSer.getse(Page, year, ilname); } /** * * @Title: getsexage * @Description: ÿ������εĻ������� * @param Page * @param reportperiod * @return * @throws ParseException * @author lb lb * @date 2019��1��6�� ����5:26:22 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("sexage.json") @ResponseBody public BootPage<Map<String, String>> getsexage(BootPage<Map<String, String>> Page, String year, String ilname) throws ParseException { return ManSer.getsexage(Page, year, ilname); } /** * * @Title: listYear * @Description: TODO(��ȡ��2010������ij�м����ı仯����) * @param Page * @param reportperiod * @return * @throws ParseException * @author lb lb * @date 2019��1��7�� ����3:00:11 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("year.json") @ResponseBody public BootPage<Map<String, String>> listYear(BootPage<Map<String, String>> Page, String ilname) throws ParseException { return ManSer.getEveryYear(Page, ilname); } /** * * @Title: getM * @Description: TODO(��ȡ���) * @return * @author lb lb * @date 2019��1��8�� ����9:15:03 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("mouth.json") @ResponseBody public HashMap<String, Object> getM() { HashMap<String, Object> map = new HashMap<String, Object>(); // �·� map.put("list", ManSer.getMouth()); // ѧ����� map.put("stulist", ManSer.getS()); map.put("stulistone", ManSer.getS1()); map.put("stulisttwo", ManSer.getS2()); map.put("stulistthree", ManSer.getS3()); // ũ����� map.put("farmer", ManSer.getf()); map.put("farmerone", ManSer.getf1()); map.put("farmertwo", ManSer.getf2()); map.put("farmethree", ManSer.getf3()); // ���� map.put("white", ManSer.getwh()); map.put("whiteone", ManSer.getwh1()); map.put("whitetwo", ManSer.getwh2()); map.put("whitethree", ManSer.getwh3()); return map; } /** * * @Title: getNum * @Description: ��ȡ�����ͷ����� * @return * @author lb lb * @date 2019��1��11�� ����1:15:27 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("getNumAndIndex.json") @ResponseBody public HashMap<String, Object> getNum(String ilname, String year) { return ManSer.getNumAndIndex(ilname, year); } /** * * @Title: listYearData * @Description: ��������� * @param Page * @param year * @param name * @return * @throws ParseException * @author lb lb * @date 2019��3��10�� ����4:33:49 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("/listYearData") @ResponseBody public BootPage<Map<String, String>> listYearData(BootPage<Map<String, String>> Page, String year, String name) throws ParseException { return ManSer.listYearData(Page,year); } /** * * @Title: listIlname * @Description: ��ȡҩƷ��� * @return * @author lb lb * @date 2019��3��11�� ����7:50:43 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("/Medecine.json") @ResponseBody public HashMap<String,Object> listIlname(){ return ManSer.listilname(); } /** * * @Title: listIlname * @Description: ��ȡҩƷ��� * @return * @author lb lb * @date 2019��3��11�� ����7:50:43 * @����Ϣ (���������ݼ���ʱ��) */ @RequestMapping("/Medecine1.json") @ResponseBody public HashMap<String,Object> listIlnameYearData(String year){ return ManSer.listilnameYearData(year); } }

陈金龙 LV7
2024年11月12日
穿山甲1001 LV6
2024年9月12日
TY0165 LV20
2024年6月24日
James24 LV3
2024年4月17日
Highlighz LV4
2024年4月8日
lilong007 LV23
2023年12月30日
泓鼎168 LV20
2023年6月14日
微信网友_6512020493586432 LV2
2023年6月9日
GeminiLong LV6
2023年4月26日
Demo1111 LV30
2023年4月1日

微信网友_7401010226024448
2月26日
暂无贡献等级
ryadmin123 LV2
2月11日
超级大佬
1月2日
暂无贡献等级
水墨红尘 LV2
2024年12月24日
cnm3210
2024年12月18日
暂无贡献等级
陈金龙 LV7
2024年11月12日
微信网友_7211237575856128
2024年10月23日
暂无贡献等级
清清凉 LV5
2024年10月14日
yvimib LV3
2024年9月19日
穿山甲1001 LV6
2024年9月12日