• (免费分享)基于springboot医院管理系统


    源码获取:关注文末gongzhonghao,输入012领取下载链接

    开发工具IDEA ,数据库mysql5.7

    技术:springboot+jpa+thymeleaf

    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述

    package com.xgs.hisystem.controller;
    
    import com.xgs.hisystem.pojo.bo.BaseResponse;
    import com.xgs.hisystem.pojo.bo.PageRspBO;
    import com.xgs.hisystem.pojo.vo.*;
    import com.xgs.hisystem.service.IUserService;
    import io.swagger.annotations.Api;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.ui.Model;
    import org.springframework.validation.annotation.Validated;
    import org.springframework.web.bind.annotation.*;
    
    import java.util.List;
    
    @RestController
    @RequestMapping(value = "/user")
    @Api(tags = "用户管理API")
    public class UserController {
    
        @Autowired
        private IUserService iUserService;
    
    
        /**
         * 登录验证
         *
         * @param reqVO
         * @param model
         * @return
         */
        @RequestMapping(value = "/dologin", method = RequestMethod.POST)
        public BaseResponse<String> doLogin(@RequestBody @Validated UserLoginReqVO reqVO, Model model) {
    
            return iUserService.doLogin(reqVO);
        }
    
        /**
         * 保存用户注册信息,向用户发送激活链接
         *
         * @param reqVO
         * @return
         */
        @RequestMapping(value = "/doregister", method = RequestMethod.POST)
        public BaseResponse<String> registered(@RequestBody @Validated UserRegisterReqVO reqVO, Model model) {
    
            return iUserService.saveUserAndSendEmail(reqVO);
        }
    
    
        /**
         * 获取登录日志
         *
         * @param reqVO
         * @return
         */
        @RequestMapping(value = "/getLoginfor",method = RequestMethod.GET)
        public PageRspBO<LoginInforRspVO> getLoginfor(BasePageReqVO reqVO) {
    
            return iUserService.getLoginfor(reqVO);
        }
    
        /**
         * 修改密码
         *
         * @param reqVO
         * @return
         */
        @PostMapping(value = "/changePassword")
        public BaseResponse<String> changePassword(@RequestBody @Validated ChangePasswordReqVO reqVO) {
    
            return iUserService.changePassword(reqVO);
        }
    
        /**
         * 个人资料设置
         *
         * @return
         */
        @PostMapping(value = "/getUserInfo")
        public List<UserInfoVO> getUserInfo() {
    
            return iUserService.getUserInfo();
        }
    
        @PostMapping(value = "/changeUserInfo")
        public BaseResponse<String> changeUserInfo(@RequestBody @Validated UserInfoVO reqVO) {
    
            return  iUserService.changeUserInfo(reqVO);
        }
    
        @PostMapping(value = "/getAnnContent")
        public AnnRspVO getAnnContent(@RequestParam String id) {
    
            return iUserService.getAnnContent(id);
        }
    
        @PostMapping(value = "/addAnotherRole")
        public BaseResponse<String> addAnotherRole(@RequestBody @Validated AccountRoleVO reqVO) {
    
            return iUserService.addAnotherRole(reqVO);
        }
    
    
        /**
         * 获取所有角色
         * @param
         * @return
         */
        @PostMapping(value = "/getAllRole")
        public List<GetAllRoleRspVO> getAllRole() {
            return iUserService.getAllRole();
        }
    
    }
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115

    package com.xgs.hisystem.controller;

    import com.xgs.hisystem.pojo.bo.BaseResponse;
    import com.xgs.hisystem.pojo.vo.takingdrug.MedicalRecordRspVO;
    import com.xgs.hisystem.service.ITakingDrugService;
    import io.swagger.annotations.Api;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.web.bind.annotation.PostMapping;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestParam;
    import org.springframework.web.bind.annotation.RestController;

    /**

    • @author xgs

    • @date 2019-5-15

    • @description:
      */
      @RestController
      @RequestMapping(value = “/takingdrug”)
      @Api(tags = “拿药管理API”)
      public class TakingDrugController {

      @Autowired
      private ITakingDrugService iTakingDrugService;

      /**

      • 获取处方笺信息

      • @param prescriptionNum

      • @return

      • @throws Exception
        */
        @PostMapping(value = “/getMedicalRecord”)
        public MedicalRecordRspVO getMedicalRecord(@RequestParam String prescriptionNum) throws Exception {

        return iTakingDrugService.getMedicalRecord(prescriptionNum);
        }

      /**

      • 保存拿药信息

      • @param prescriptionNum

      • @return
        */
        @PostMapping(value = “/saveTakingDrugInfo”)
        public BaseResponse saveTakingDrugInfo(@RequestParam String prescriptionNum) {

        return iTakingDrugService.saveTakingDrugInfo(prescriptionNum);
        }
        }

  • 相关阅读:
    [请回答C++] C++11&&auto&&右值引用&&移动语义&&完美转发
    杰理之编码请求参数解析【篇】
    第十一章 JavaScript操作DOM对象
    Springboot毕设项目购物网站3ztkv(java+VUE+Mybatis+Maven+Mysql)
    小脚本:文件保存后,自动上传到git
    从0到1学会Git(第三部分):Git的远程仓库链接与操作
    CAS:385437-57-0 DSPE-PEG-Biotin 磷脂-聚乙二醇-生物素 常用生物活性分子
    【Git】快速入门安装及使用&git与svn的区别&常用命令
    git远程仓库分支推送与常见问题
    vmware虚拟机安装centos7及网络配置
  • 原文地址:https://blog.csdn.net/qq_35334787/article/details/127931370