diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/mappers/RuoYiBaseMapper.java b/ruoyi-common/src/main/java/com/ruoyi/common/mappers/RuoYiBaseMapper.java new file mode 100644 index 000000000..bea1fde71 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/mappers/RuoYiBaseMapper.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.mappers; + + +import com.ruoyi.common.core.domain.BaseEntity; +import tk.mybatis.mapper.common.IdsMapper; +import tk.mybatis.mapper.common.Mapper; +import tk.mybatis.mapper.common.MySqlMapper; +import tk.mybatis.mapper.common.special.InsertListMapper; + +/** + * 通用Mapper继承Mapper、MySqlMapper + * @param + */ +public interface RuoYiBaseMapper extends Mapper, MySqlMapper, IdsMapper, InsertListMapper { + +} \ No newline at end of file diff --git a/ruoyi-dependencies-bom/pom.xml b/ruoyi-dependencies-bom/pom.xml new file mode 100644 index 000000000..f9a7f8c77 --- /dev/null +++ b/ruoyi-dependencies-bom/pom.xml @@ -0,0 +1,137 @@ + + + 4.0.0 + + com.ruoyi + ruoyi-dependencies-bom + 4.4.0 + pom + http://www.ruoyi.vip + ${project.artifactId} + RuoYi dependencies BOM + + + 4.4.0 + UTF-8 + UTF-8 + 1.8 + 2.0.3 + + + + + + + com.ruoyi + ruoyi-his + ${ruoyi.version} + + + + com.bending.core + bending-his-core + 1.0.5-SNAPSHOT + + + + com.google.code.findbugs + annotations + 3.0.1 + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 2.1.3 + + + + tk.mybatis + mapper + 4.1.5 + + + + io.swagger + swagger-models + 1.5.21 + compile + + + io.swagger + swagger-annotations + 1.5.21 + compile + + + org.projectlombok + lombok + 1.18.12 + + + + com.github.xiaoymin + knife4j-spring-boot-starter + ${knife4j.version} + + + com.github.xiaoymin + knife4j-spring-ui + ${knife4j.version} + + + + io.zipkin.brave + brave-bom + 5.9.1 + pom + import + + + + + + + + + + + nexus + maven-releases + http://nexus.liudebin.cn/repository/maven-releases/ + + + snapshots + maven-snapshots + http://nexus.liudebin.cn/repository/maven-snapshots/ + + + + + + public + aliyun nexus + http://maven.aliyun.com/nexus/content/groups/public/ + + true + + + + + + + public + aliyun nexus + http://maven.aliyun.com/nexus/content/groups/public/ + + true + + + false + + + + + \ No newline at end of file diff --git a/ruoyi-his/pom.xml b/ruoyi-his/pom.xml new file mode 100644 index 000000000..22d7c62c0 --- /dev/null +++ b/ruoyi-his/pom.xml @@ -0,0 +1,32 @@ + + + + ruoyi + com.ruoyi + 4.4.0 + + 4.0.0 + + ruoyi-his + + + HIS 系统模块 + + + + + + com.ruoyi + ruoyi-common + + + + com.bending.core + bending-his-core + + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/controller/AgreementController.java b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/AgreementController.java new file mode 100644 index 000000000..a0814e2ac --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/AgreementController.java @@ -0,0 +1,126 @@ +package com.ruoyi.bend.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.bend.domain.Agreement; +import com.ruoyi.bend.service.IAgreementService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 协议管理Controller + * + * @author bend + * @date 2020-08-30 + */ +@Controller +@RequestMapping("/bend/agreement") +public class AgreementController extends BaseController +{ + private String prefix = "bend/agreement"; + + @Autowired + private IAgreementService agreementService; + + @RequiresPermissions("bend:agreement:view") + @GetMapping() + public String agreement() + { + return prefix + "/agreement"; + } + + /** + * 查询协议管理列表 + */ + @RequiresPermissions("bend:agreement:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Agreement agreement) + { + startPage(); + List list = agreementService.selectAgreementList(agreement); + return getDataTable(list); + } + + /** + * 导出协议管理列表 + */ + @RequiresPermissions("bend:agreement:export") + @Log(title = "协议管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Agreement agreement) + { + List list = agreementService.selectAgreementList(agreement); + ExcelUtil util = new ExcelUtil(Agreement.class); + return util.exportExcel(list, "agreement"); + } + + /** + * 新增协议管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存协议管理 + */ + @RequiresPermissions("bend:agreement:add") + @Log(title = "协议管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Agreement agreement) + { + return toAjax(agreementService.insertAgreement(agreement)); + } + + /** + * 修改协议管理 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + Agreement agreement = agreementService.selectAgreementById(id); + mmap.put("agreement", agreement); + return prefix + "/edit"; + } + + /** + * 修改保存协议管理 + */ + @RequiresPermissions("bend:agreement:edit") + @Log(title = "协议管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Agreement agreement) + { + return toAjax(agreementService.updateAgreement(agreement)); + } + + /** + * 删除协议管理 + */ + @RequiresPermissions("bend:agreement:remove") + @Log(title = "协议管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(agreementService.deleteAgreementByIds(ids)); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/controller/ArticleController.java b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/ArticleController.java new file mode 100644 index 000000000..6375afd0d --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/ArticleController.java @@ -0,0 +1,149 @@ +package com.ruoyi.bend.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.bend.domain.Article; +import com.ruoyi.bend.service.IArticleService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 内容管理Controller + * + * @author bend + * @date 2020-08-30 + */ +@Controller +@RequestMapping("/bend/article") +public class ArticleController extends BaseController +{ + private String prefix = "bend/article"; + + @Autowired + private IArticleService articleService; + + @RequiresPermissions("bend:article:view") + @GetMapping() + public String article() + { + return prefix + "/article"; + } + + /** + * 查询内容管理列表 + */ + @RequiresPermissions("bend:article:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Article article) + { + startPage(); + List
list = articleService.selectArticleList(article); + return getDataTable(list); + } + + /** + * 导出内容管理列表 + */ + @RequiresPermissions("bend:article:export") + @Log(title = "内容管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Article article) + { + List
list = articleService.selectArticleList(article); + ExcelUtil
util = new ExcelUtil
(Article.class); + return util.exportExcel(list, "article"); + } + + /** + * 草稿箱 页面 + */ + @RequiresPermissions("bend:article:view") + @GetMapping("/draft") + public String draftArticle(@RequestParam(value = "articleStatus")Integer articleStatus, ModelMap mmap) + { + mmap.put("articleStatus", articleStatus); + return prefix + "/draft"; + } + + /** + * 查询草稿箱内容列表 + * @param article 内容 + * @return 列表 + */ + @RequiresPermissions("bend:article:draft") + @PostMapping("/draft/list") + @ResponseBody + public TableDataInfo draftList(Article article) + { + startPage(); + List
list = articleService.selectArticleList(article); + return getDataTable(list); + } + + + /** + * 新增内容管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存内容管理 + */ + @RequiresPermissions("bend:article:add") + @Log(title = "内容管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Article article) + { + return toAjax(articleService.insertArticle(article)); + } + + /** + * 修改内容管理 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + Article article = articleService.selectArticleById(id); + mmap.put("article", article); + return prefix + "/edit"; + } + + /** + * 修改保存内容管理 + */ + @RequiresPermissions("bend:article:edit") + @Log(title = "内容管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Article article) + { + return toAjax(articleService.updateArticle(article)); + } + + /** + * 删除内容管理 + */ + @RequiresPermissions("bend:article:remove") + @Log(title = "内容管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(articleService.deleteArticleByIds(ids)); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/controller/BannerController.java b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/BannerController.java new file mode 100644 index 000000000..3fa5182f2 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/BannerController.java @@ -0,0 +1,126 @@ +package com.ruoyi.bend.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.bend.domain.Banner; +import com.ruoyi.bend.service.IBannerService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 首页管理Controller + * + * @author bend + * @date 2020-08-30 + */ +@Controller +@RequestMapping("/bend/banner") +public class BannerController extends BaseController +{ + private String prefix = "bend/banner"; + + @Autowired + private IBannerService bannerService; + + @RequiresPermissions("bend:banner:view") + @GetMapping() + public String banner() + { + return prefix + "/banner"; + } + + /** + * 查询首页管理列表 + */ + @RequiresPermissions("bend:banner:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Banner banner) + { + startPage(); + List list = bannerService.selectBannerList(banner); + return getDataTable(list); + } + + /** + * 导出首页管理列表 + */ + @RequiresPermissions("bend:banner:export") + @Log(title = "首页管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Banner banner) + { + List list = bannerService.selectBannerList(banner); + ExcelUtil util = new ExcelUtil(Banner.class); + return util.exportExcel(list, "banner"); + } + + /** + * 新增首页管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存首页管理 + */ + @RequiresPermissions("bend:banner:add") + @Log(title = "首页管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Banner banner) + { + return toAjax(bannerService.insertBanner(banner)); + } + + /** + * 修改首页管理 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + Banner banner = bannerService.selectBannerById(id); + mmap.put("banner", banner); + return prefix + "/edit"; + } + + /** + * 修改保存首页管理 + */ + @RequiresPermissions("bend:banner:edit") + @Log(title = "首页管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Banner banner) + { + return toAjax(bannerService.updateBanner(banner)); + } + + /** + * 删除首页管理 + */ + @RequiresPermissions("bend:banner:remove") + @Log(title = "首页管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(bannerService.deleteBannerByIds(ids)); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/controller/MemberController.java b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/MemberController.java new file mode 100644 index 000000000..516897f2a --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/MemberController.java @@ -0,0 +1,126 @@ +package com.ruoyi.bend.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.bend.domain.Member; +import com.ruoyi.bend.service.IMemberService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 会员列表Controller + * + * @author bend + * @date 2020-08-30 + */ +@Controller +@RequestMapping("/bend/member") +public class MemberController extends BaseController +{ + private String prefix = "bend/member"; + + @Autowired + private IMemberService memberService; + + @RequiresPermissions("bend:member:view") + @GetMapping() + public String member() + { + return prefix + "/member"; + } + + /** + * 查询会员列表列表 + */ + @RequiresPermissions("bend:member:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Member member) + { + startPage(); + List list = memberService.selectMemberList(member); + return getDataTable(list); + } + + /** + * 导出会员列表列表 + */ + @RequiresPermissions("bend:member:export") + @Log(title = "会员列表", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Member member) + { + List list = memberService.selectMemberList(member); + ExcelUtil util = new ExcelUtil(Member.class); + return util.exportExcel(list, "member"); + } + + /** + * 新增会员列表 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存会员列表 + */ + @RequiresPermissions("bend:member:add") + @Log(title = "会员列表", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Member member) + { + return toAjax(memberService.insertMember(member)); + } + + /** + * 修改会员列表 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + Member member = memberService.selectMemberById(id); + mmap.put("member", member); + return prefix + "/edit"; + } + + /** + * 修改保存会员列表 + */ + @RequiresPermissions("bend:member:edit") + @Log(title = "会员列表", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Member member) + { + return toAjax(memberService.updateMember(member)); + } + + /** + * 删除会员列表 + */ + @RequiresPermissions("bend:member:remove") + @Log(title = "会员列表", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(memberService.deleteMemberByIds(ids)); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/controller/MessageCodeController.java b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/MessageCodeController.java new file mode 100644 index 000000000..d2f405826 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/MessageCodeController.java @@ -0,0 +1,126 @@ +package com.ruoyi.bend.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.bend.domain.MessageCode; +import com.ruoyi.bend.service.IMessageCodeService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 短信管理Controller + * + * @author bend + * @date 2020-08-30 + */ +@Controller +@RequestMapping("/bend/messageCode") +public class MessageCodeController extends BaseController +{ + private String prefix = "bend/messageCode"; + + @Autowired + private IMessageCodeService messageCodeService; + + @RequiresPermissions("bend:messageCode:view") + @GetMapping() + public String messageCode() + { + return prefix + "/messageCode"; + } + + /** + * 查询短信管理列表 + */ + @RequiresPermissions("bend:messageCode:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(MessageCode messageCode) + { + startPage(); + List list = messageCodeService.selectMessageCodeList(messageCode); + return getDataTable(list); + } + + /** + * 导出短信管理列表 + */ + @RequiresPermissions("bend:messageCode:export") + @Log(title = "短信管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(MessageCode messageCode) + { + List list = messageCodeService.selectMessageCodeList(messageCode); + ExcelUtil util = new ExcelUtil(MessageCode.class); + return util.exportExcel(list, "messageCode"); + } + + /** + * 新增短信管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存短信管理 + */ + @RequiresPermissions("bend:messageCode:add") + @Log(title = "短信管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(MessageCode messageCode) + { + return toAjax(messageCodeService.insertMessageCode(messageCode)); + } + + /** + * 修改短信管理 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + MessageCode messageCode = messageCodeService.selectMessageCodeById(id); + mmap.put("messageCode", messageCode); + return prefix + "/edit"; + } + + /** + * 修改保存短信管理 + */ + @RequiresPermissions("bend:messageCode:edit") + @Log(title = "短信管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(MessageCode messageCode) + { + return toAjax(messageCodeService.updateMessageCode(messageCode)); + } + + /** + * 删除短信管理 + */ + @RequiresPermissions("bend:messageCode:remove") + @Log(title = "短信管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(messageCodeService.deleteMessageCodeByIds(ids)); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/controller/PatientListController.java b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/PatientListController.java new file mode 100644 index 000000000..bd1c4cfcc --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/PatientListController.java @@ -0,0 +1,126 @@ +package com.ruoyi.bend.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.bend.domain.PatientList; +import com.ruoyi.bend.service.IPatientListService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 就诊人列表Controller + * + * @author bend + * @date 2020-08-30 + */ +@Controller +@RequestMapping("/bend/patientList") +public class PatientListController extends BaseController +{ + private String prefix = "bend/patientList"; + + @Autowired + private IPatientListService patientListService; + + @RequiresPermissions("bend:patientList:view") + @GetMapping() + public String patientList() + { + return prefix + "/patientList"; + } + + /** + * 查询就诊人列表列表 + */ + @RequiresPermissions("bend:patientList:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(PatientList patientList) + { + startPage(); + List list = patientListService.selectPatientListList(patientList); + return getDataTable(list); + } + + /** + * 导出就诊人列表列表 + */ + @RequiresPermissions("bend:patientList:export") + @Log(title = "就诊人列表", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(PatientList patientList) + { + List list = patientListService.selectPatientListList(patientList); + ExcelUtil util = new ExcelUtil(PatientList.class); + return util.exportExcel(list, "patientList"); + } + + /** + * 新增就诊人列表 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存就诊人列表 + */ + @RequiresPermissions("bend:patientList:add") + @Log(title = "就诊人列表", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(PatientList patientList) + { + return toAjax(patientListService.insertPatientList(patientList)); + } + + /** + * 修改就诊人列表 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + PatientList patientList = patientListService.selectPatientListById(id); + mmap.put("patientList", patientList); + return prefix + "/edit"; + } + + /** + * 修改保存就诊人列表 + */ + @RequiresPermissions("bend:patientList:edit") + @Log(title = "就诊人列表", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(PatientList patientList) + { + return toAjax(patientListService.updatePatientList(patientList)); + } + + /** + * 删除就诊人列表 + */ + @RequiresPermissions("bend:patientList:remove") + @Log(title = "就诊人列表", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(patientListService.deletePatientListByIds(ids)); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/controller/WechatMemberController.java b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/WechatMemberController.java new file mode 100644 index 000000000..73c2f1f4c --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/controller/WechatMemberController.java @@ -0,0 +1,126 @@ +package com.ruoyi.bend.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.bend.domain.WechatMember; +import com.ruoyi.bend.service.IWechatMemberService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 微信用户Controller + * + * @author bend + * @date 2020-08-30 + */ +@Controller +@RequestMapping("/bend/wechatMember") +public class WechatMemberController extends BaseController +{ + private String prefix = "bend/wechatMember"; + + @Autowired + private IWechatMemberService wechatMemberService; + + @RequiresPermissions("bend:wechatMember:view") + @GetMapping() + public String wechatMember() + { + return prefix + "/wechatMember"; + } + + /** + * 查询微信用户列表 + */ + @RequiresPermissions("bend:wechatMember:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WechatMember wechatMember) + { + startPage(); + List list = wechatMemberService.selectWechatMemberList(wechatMember); + return getDataTable(list); + } + + /** + * 导出微信用户列表 + */ + @RequiresPermissions("bend:wechatMember:export") + @Log(title = "微信用户", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WechatMember wechatMember) + { + List list = wechatMemberService.selectWechatMemberList(wechatMember); + ExcelUtil util = new ExcelUtil(WechatMember.class); + return util.exportExcel(list, "wechatMember"); + } + + /** + * 新增微信用户 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存微信用户 + */ + @RequiresPermissions("bend:wechatMember:add") + @Log(title = "微信用户", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WechatMember wechatMember) + { + return toAjax(wechatMemberService.insertWechatMember(wechatMember)); + } + + /** + * 修改微信用户 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + WechatMember wechatMember = wechatMemberService.selectWechatMemberById(id); + mmap.put("wechatMember", wechatMember); + return prefix + "/edit"; + } + + /** + * 修改保存微信用户 + */ + @RequiresPermissions("bend:wechatMember:edit") + @Log(title = "微信用户", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WechatMember wechatMember) + { + return toAjax(wechatMemberService.updateWechatMember(wechatMember)); + } + + /** + * 删除微信用户 + */ + @RequiresPermissions("bend:wechatMember:remove") + @Log(title = "微信用户", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(wechatMemberService.deleteWechatMemberByIds(ids)); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Agreement.java b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Agreement.java new file mode 100644 index 000000000..f68f5a2bb --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Agreement.java @@ -0,0 +1,49 @@ +package com.ruoyi.bend.domain; + +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import javax.persistence.Table; + +/** + * 协议管理对象 bend_agreement + * + * @author bend + * @date 2020-08-30 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@ApiModel(value = "协议管理") +@Table(name = "bend_agreement") +public class Agreement extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + + /** 协议标题 */ + @ApiModelProperty(notes = "协议标题") + @Excel(name = "协议标题") + private String agreementTitle; + + /** 协议类型 */ + @ApiModelProperty(notes = "协议类型") + @Excel(name = "协议类型") + private Integer agreementType; + + /** 状态(0正常 1关闭) */ + @ApiModelProperty(notes = "状态(0正常 1关闭)") + @Excel(name = "状态", readConverterExp = "0=正常,1=关闭") + private Integer status; + + /** 协议内容 */ + @ApiModelProperty(notes = "协议内容") + private String agreementContent; + + /** 删除标记(0否 1是) */ + @ApiModelProperty(notes = "删除标记(0否 1是)") + private Integer deleted; + +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Article.java b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Article.java new file mode 100644 index 000000000..065a58db3 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Article.java @@ -0,0 +1,113 @@ +package com.ruoyi.bend.domain; + +import java.util.Date; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import javax.persistence.Table; + +/** + * 内容管理对象 bend_article + * + * @author bend + * @date 2020-08-30 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@ApiModel(value = "内容管理") +@Table(name = "bend_article") +public class Article extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 文章标题 */ + @ApiModelProperty(notes = "文章标题") + @Excel(name = "文章标题") + private String title; + + /** 副标题 */ + @ApiModelProperty(notes = "副标题") + @Excel(name = "副标题") + private String subTitle; + + /** 文章封面 */ + @ApiModelProperty(notes = "文章封面") + @Excel(name = "文章封面") + private String articleCover; + + /** 浏览量 */ + @ApiModelProperty(notes = "浏览量") + @Excel(name = "浏览量") + private Long pvCount; + + /** 评论数 */ + @ApiModelProperty(notes = "评论数") + @Excel(name = "评论数") + private Long commentCount; + + /** 转载量 */ + @ApiModelProperty(notes = "转载量") + @Excel(name = "转载量") + private Long quoteCount; + + /** 微信公众号 */ + @ApiModelProperty(notes = "微信公众号") + @Excel(name = "微信公众号") + private String wechatAccount; + + /** 署名名称(医生名称或医院名称) */ + @ApiModelProperty(notes = "署名名称(医生名称或医院名称)") + @Excel(name = "署名名称(医生名称或医院名称)") + private String signatureName; + + /** 文章类型(0公众号 1平台文章 2医院文章 3医生文章) */ + @ApiModelProperty(notes = "文章类型(0公众号 1平台文章 2医院文章 3医生文章)") + @Excel(name = "文章类型", readConverterExp = "0=公众号,1=平台文章,2=医院文章,3=医生文章") + private Integer articleType; + + /** 文章类别(0内容文章 1活动文章) */ + @ApiModelProperty(notes = "文章类别(0内容文章 1活动文章)") + @Excel(name = "文章类别", readConverterExp = "0=内容文章,1=活动文章") + private Integer articleClassify; + + /** 文章分类(0健康资讯 1惠民政策) */ + @ApiModelProperty(notes = "文章分类(0健康资讯 1惠民政策)") + @Excel(name = "文章分类", readConverterExp = "0=健康资讯,1=惠民政策") + private Integer articleCategory; + + /** 文章状态(0草稿 1正常 2删除) */ + @ApiModelProperty(notes = "文章状态(0草稿 1正常 2删除)") + @Excel(name = "文章状态", readConverterExp = "0=草稿,1=正常,2=删除") + private Integer articleStatus; + + /** 审核状态(0正常/审核通过 1审核中 2审核驳回) */ + @ApiModelProperty(notes = "审核状态(0正常/审核通过 1审核中 2审核驳回)") + @Excel(name = "审核状态", readConverterExp = "0=正常/审核通过,1=审核中,2=审核驳回") + private Integer approveStatus; + + /** 排序号 */ + @ApiModelProperty(notes = "排序号") + @Excel(name = "排序号") + private Long sortNo; + + /** 审核时间 */ + @ApiModelProperty(notes = "审核时间") + private Date auditTime; + + /** 发布时间 */ + @ApiModelProperty(notes = "发布时间") + @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date releaseTime; + + /** 文章内容 */ + @ApiModelProperty(notes = "文章内容") + private String content; + + /** 删除标记(0否 1是) */ + @ApiModelProperty(notes = "删除标记(0否 1是)") + private Integer deleted; + +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Banner.java b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Banner.java new file mode 100644 index 000000000..6f90569b6 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Banner.java @@ -0,0 +1,49 @@ +package com.ruoyi.bend.domain; + +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import javax.persistence.Table; + +/** + * 首页管理对象 bend_banner + * + * @author bend + * @date 2020-08-30 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@ApiModel(value = "首页管理") +@Table(name = "bend_banner") +public class Banner extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 广告标题 */ + @ApiModelProperty(notes = "广告标题") + @Excel(name = "广告标题") + private String adTitle; + + /** 图片地址 */ + @ApiModelProperty(notes = "图片地址") + @Excel(name = "图片地址") + private String adUrl; + + /** 活动详情 */ + @ApiModelProperty(notes = "活动详情") + @Excel(name = "活动详情") + private String adDetailUrl; + + /** 广告类型(0广告 1活动) */ + @ApiModelProperty(notes = "广告类型(0广告 1活动)") + @Excel(name = "广告类型", readConverterExp = "0=广告,1=活动") + private Integer adType; + + /** 删除标记(0否 1是) */ + @ApiModelProperty(notes = "删除标记(0否 1是)") + private Integer deleted; + +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Member.java b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Member.java new file mode 100644 index 000000000..ef7c14083 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/Member.java @@ -0,0 +1,58 @@ +package com.ruoyi.bend.domain; + +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import javax.persistence.Table; + +/** + * 会员列表对象 bend_member + * + * @author bend + * @date 2020-08-30 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@ApiModel(value = "会员列表") +@Table(name = "bend_member") +public class Member extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 手机号 */ + @ApiModelProperty(notes = "手机号") + @Excel(name = "手机号") + private String mobilePhone; + + /** 密码 */ + @ApiModelProperty(notes = "密码") + private String password; + + /** 真实姓名 */ + @ApiModelProperty(notes = "真实姓名") + @Excel(name = "真实姓名") + private String realName; + + /** 身份证号 */ + @ApiModelProperty(notes = "身份证号") + @Excel(name = "身份证号") + private String idCardNo; + + /** 用户状态(0正常 1冻结) */ + @ApiModelProperty(notes = "用户状态(0正常 1冻结)") + @Excel(name = "用户状态", readConverterExp = "0=正常,1=冻结") + private Integer memberStatus; + + /** 会员类型(0普通 1医生 2管理员) */ + @ApiModelProperty(notes = "会员类型(0普通 1医生 2管理员)") + @Excel(name = "会员类型", readConverterExp = "0=普通,1=医生,2=管理员") + private Integer memberType; + + /** 删除标记(0否 1是) */ + @ApiModelProperty(notes = "删除标记(0否 1是)") + private Integer deleted; + +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/domain/MessageCode.java b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/MessageCode.java new file mode 100644 index 000000000..9d9f368b8 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/MessageCode.java @@ -0,0 +1,68 @@ +package com.ruoyi.bend.domain; + +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import javax.persistence.Table; + +/** + * 短信管理对象 bend_message_code + * + * @author bend + * @date 2020-08-30 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@ApiModel(value = "短信管理") +@Table(name = "bend_message_code") +public class MessageCode extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 手机号 */ + @ApiModelProperty(notes = "手机号") + @Excel(name = "手机号") + private String mobilePhone; + + /** 短信签名 */ + @ApiModelProperty(notes = "短信签名") + @Excel(name = "短信签名") + private String signName; + + /** 短信类型 */ + @ApiModelProperty(notes = "短信类型") + private Integer smsType; + + /** 验证码 */ + @ApiModelProperty(notes = "验证码") + @Excel(name = "验证码") + private String smsCode; + + /** 短信内容 */ + @ApiModelProperty(notes = "短信内容") + @Excel(name = "短信内容") + private String messageText; + + /** 模板编号 */ + @ApiModelProperty(notes = "模板编号") + @Excel(name = "模板编号") + private String templateCode; + + /** 模板参数 */ + @ApiModelProperty(notes = "模板参数") + @Excel(name = "模板参数") + private String templateParam; + + /** 状态(0未使用 1已使用) */ + @ApiModelProperty(notes = "状态(0未使用 1已使用)") + @Excel(name = "状态", readConverterExp = "0=未使用,1=已使用") + private Integer smsStatus; + + /** 删除标记(0否 1是) */ + @ApiModelProperty(notes = "删除标记(0否 1是)") + private Integer deleted; + +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/domain/PatientList.java b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/PatientList.java new file mode 100644 index 000000000..a2e9402e8 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/PatientList.java @@ -0,0 +1,73 @@ +package com.ruoyi.bend.domain; + +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import javax.persistence.Table; + +/** + * 就诊人列表对象 bend_patient_list + * + * @author bend + * @date 2020-08-30 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@ApiModel(value = "就诊人列表") +@Table(name = "bend_patient_list") +public class PatientList extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 用户ID */ + @ApiModelProperty(notes = "用户ID") + private Long memberId; + + /** 真实姓名 */ + @ApiModelProperty(notes = "真实姓名") + @Excel(name = "真实姓名") + private String realName; + + /** 身份证号 */ + @ApiModelProperty(notes = "身份证号") + @Excel(name = "身份证号") + private String idCardNo; + + /** 手机号 */ + @ApiModelProperty(notes = "手机号") + @Excel(name = "手机号") + private String mobilePhone; + + /** 是否默认(0否 1是) */ + @ApiModelProperty(notes = "是否默认(0否 1是)") + @Excel(name = "是否默认", readConverterExp = "0=否,1=是") + private Integer defaultPatient; + + /** 就诊人关系(0未指定 1本人 2配偶 3父亲 4母亲 5儿子 6女儿 7亲友 8朋友 9其他) */ + @ApiModelProperty(notes = "就诊人关系(0未指定 1本人 2配偶 3父亲 4母亲 5儿子 6女儿 7亲友 8朋友 9其他)") + @Excel(name = "就诊人关系", readConverterExp = "0=未指定,1=本人,2=配偶,3=父亲,4=母亲,5=儿子,6=女儿,7=亲友,8=朋友,9=其他") + private Integer relationShip; + + /** 家庭关系(0未指定 1配偶 2父子 3母子 4儿子 5女儿) */ + @ApiModelProperty(notes = "家庭关系(0未指定 1配偶 2父子 3母子 4儿子 5女儿)") + @Excel(name = "家庭关系", readConverterExp = "0=未指定,1=配偶,2=父子,3=母子,4=儿子,5=女儿") + private Integer familyRelationship; + + /** 性别(0未知 1男 2女) */ + @ApiModelProperty(notes = "性别(0未知 1男 2女)") + @Excel(name = "性别", readConverterExp = "0=未知,1=男,2=女") + private Integer sex; + + /** 绑定状态(0绑定中 1已解绑) */ + @ApiModelProperty(notes = "绑定状态(0绑定中 1已解绑)") + @Excel(name = "绑定状态", readConverterExp = "0=绑定中,1=已解绑") + private Integer bindStatus; + + /** 删除标记(0否 1是) */ + @ApiModelProperty(notes = "删除标记(0否 1是)") + private Integer deleted; + +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/domain/WechatMember.java b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/WechatMember.java new file mode 100644 index 000000000..4ab3af971 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/domain/WechatMember.java @@ -0,0 +1,130 @@ +package com.ruoyi.bend.domain; + +import java.util.Date; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import javax.persistence.Table; + +/** + * 微信用户对象 bend_wechat_member + * + * @author bend + * @date 2020-08-30 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@ApiModel(value = "微信用户") +@Table(name = "bend_wechat_member") +public class WechatMember extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 用户ID */ + @ApiModelProperty(notes = "用户ID") + private Long memberId; + + /** 手机号 */ + @ApiModelProperty(notes = "手机号") + @Excel(name = "手机号") + private String mobilePhone; + + /** AppId */ + @ApiModelProperty(notes = "AppId") + @Excel(name = "AppId") + private String appId; + + /** OpenId */ + @ApiModelProperty(notes = "OpenId") + @Excel(name = "OpenId") + private String openId; + + /** 微信昵称 */ + @ApiModelProperty(notes = "微信昵称") + @Excel(name = "微信昵称") + private String nickname; + + /** 真实姓名 */ + @ApiModelProperty(notes = "真实姓名") + @Excel(name = "真实姓名") + private String realName; + + /** 性别(0未知 1男 2女) */ + @ApiModelProperty(notes = "性别(0未知 1男 2女)") + private Integer sex; + + /** 性别描述 */ + @ApiModelProperty(notes = "性别描述") + @Excel(name = "性别描述") + private String sexDesc; + + /** 关注状态(0未关注 1关注中 2已取消) */ + @ApiModelProperty(notes = "关注状态(0未关注 1关注中 2已取消)") + @Excel(name = "关注状态", readConverterExp = "0=未关注,1=关注中,2=已取消") + private Integer followStatus; + + /** 订阅标识(0未订阅 1订阅中 2已取消) */ + @ApiModelProperty(notes = "订阅标识(0未订阅 1订阅中 2已取消)") + @Excel(name = "订阅标识", readConverterExp = "0=未订阅,1=订阅中,2=已取消") + private Integer subscribe; + + /** 所在城市 */ + @ApiModelProperty(notes = "所在城市") + @Excel(name = "所在城市") + private String city; + + /** 所在省份 */ + @ApiModelProperty(notes = "所在省份") + @Excel(name = "所在省份") + private String province; + + /** 所在国家 */ + @ApiModelProperty(notes = "所在国家") + private String country; + + /** 用户语言 */ + @ApiModelProperty(notes = "用户语言") + private String language; + + /** 用户头像 */ + @ApiModelProperty(notes = "用户头像") + @Excel(name = "用户头像") + private String headImgUrl; + + /** 关注时间 */ + @ApiModelProperty(notes = "关注时间") + @Excel(name = "关注时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date subscribeTime; + + /** UnionID */ + @ApiModelProperty(notes = "UnionID") + private String unionid; + + /** 分组ID */ + @ApiModelProperty(notes = "分组ID") + private String groupId; + + /** 标签列表 */ + @ApiModelProperty(notes = "标签列表") + private String tagIds; + + /** 关注渠道 */ + @ApiModelProperty(notes = "关注渠道") + private String subscribeScene; + + /** 扫码场景 */ + @ApiModelProperty(notes = "扫码场景") + private String qrScene; + + /** 场景描述 */ + @ApiModelProperty(notes = "场景描述") + private String qrSceneStr; + + /** 删除标记(0否 1是) */ + @ApiModelProperty(notes = "删除标记(0否 1是)") + private Integer deleted; + +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/AgreementMapper.java b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/AgreementMapper.java new file mode 100644 index 000000000..833f47df2 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/AgreementMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.bend.mapper; + +import com.ruoyi.common.mappers.RuoYiBaseMapper; +import com.ruoyi.bend.domain.Agreement; +import java.util.List; + +/** + * 协议管理Mapper接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface AgreementMapper extends RuoYiBaseMapper +{ + /** + * 查询协议管理 + * + * @param id 协议管理ID + * @return 协议管理 + */ + public Agreement selectAgreementById(Long id); + + /** + * 查询协议管理列表 + * + * @param agreement 协议管理 + * @return 协议管理集合 + */ + public List selectAgreementList(Agreement agreement); + + /** + * 新增协议管理 + * + * @param agreement 协议管理 + * @return 结果 + */ + public int insertAgreement(Agreement agreement); + + /** + * 修改协议管理 + * + * @param agreement 协议管理 + * @return 结果 + */ + public int updateAgreement(Agreement agreement); + + /** + * 删除协议管理 + * + * @param id 协议管理ID + * @return 结果 + */ + public int deleteAgreementById(Long id); + + /** + * 批量删除协议管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteAgreementByIds(String[] ids); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/ArticleMapper.java b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/ArticleMapper.java new file mode 100644 index 000000000..a5b156933 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/ArticleMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.bend.mapper; + +import com.ruoyi.common.mappers.RuoYiBaseMapper; +import com.ruoyi.bend.domain.Article; +import java.util.List; + +/** + * 内容管理Mapper接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface ArticleMapper extends RuoYiBaseMapper
+{ + /** + * 查询内容管理 + * + * @param id 内容管理ID + * @return 内容管理 + */ + public Article selectArticleById(Long id); + + /** + * 查询内容管理列表 + * + * @param article 内容管理 + * @return 内容管理集合 + */ + public List
selectArticleList(Article article); + + /** + * 新增内容管理 + * + * @param article 内容管理 + * @return 结果 + */ + public int insertArticle(Article article); + + /** + * 修改内容管理 + * + * @param article 内容管理 + * @return 结果 + */ + public int updateArticle(Article article); + + /** + * 删除内容管理 + * + * @param id 内容管理ID + * @return 结果 + */ + public int deleteArticleById(Long id); + + /** + * 批量删除内容管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteArticleByIds(String[] ids); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/BannerMapper.java b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/BannerMapper.java new file mode 100644 index 000000000..b011ca9b7 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/BannerMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.bend.mapper; + +import com.ruoyi.common.mappers.RuoYiBaseMapper; +import com.ruoyi.bend.domain.Banner; +import java.util.List; + +/** + * 首页管理Mapper接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface BannerMapper extends RuoYiBaseMapper +{ + /** + * 查询首页管理 + * + * @param id 首页管理ID + * @return 首页管理 + */ + public Banner selectBannerById(Long id); + + /** + * 查询首页管理列表 + * + * @param banner 首页管理 + * @return 首页管理集合 + */ + public List selectBannerList(Banner banner); + + /** + * 新增首页管理 + * + * @param banner 首页管理 + * @return 结果 + */ + public int insertBanner(Banner banner); + + /** + * 修改首页管理 + * + * @param banner 首页管理 + * @return 结果 + */ + public int updateBanner(Banner banner); + + /** + * 删除首页管理 + * + * @param id 首页管理ID + * @return 结果 + */ + public int deleteBannerById(Long id); + + /** + * 批量删除首页管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteBannerByIds(String[] ids); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/MemberMapper.java b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/MemberMapper.java new file mode 100644 index 000000000..9ac000487 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/MemberMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.bend.mapper; + +import com.ruoyi.common.mappers.RuoYiBaseMapper; +import com.ruoyi.bend.domain.Member; +import java.util.List; + +/** + * 会员列表Mapper接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface MemberMapper extends RuoYiBaseMapper +{ + /** + * 查询会员列表 + * + * @param id 会员列表ID + * @return 会员列表 + */ + public Member selectMemberById(Long id); + + /** + * 查询会员列表列表 + * + * @param member 会员列表 + * @return 会员列表集合 + */ + public List selectMemberList(Member member); + + /** + * 新增会员列表 + * + * @param member 会员列表 + * @return 结果 + */ + public int insertMember(Member member); + + /** + * 修改会员列表 + * + * @param member 会员列表 + * @return 结果 + */ + public int updateMember(Member member); + + /** + * 删除会员列表 + * + * @param id 会员列表ID + * @return 结果 + */ + public int deleteMemberById(Long id); + + /** + * 批量删除会员列表 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteMemberByIds(String[] ids); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/MessageCodeMapper.java b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/MessageCodeMapper.java new file mode 100644 index 000000000..c9b1ab508 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/MessageCodeMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.bend.mapper; + +import com.ruoyi.common.mappers.RuoYiBaseMapper; +import com.ruoyi.bend.domain.MessageCode; +import java.util.List; + +/** + * 短信管理Mapper接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface MessageCodeMapper extends RuoYiBaseMapper +{ + /** + * 查询短信管理 + * + * @param id 短信管理ID + * @return 短信管理 + */ + public MessageCode selectMessageCodeById(Long id); + + /** + * 查询短信管理列表 + * + * @param messageCode 短信管理 + * @return 短信管理集合 + */ + public List selectMessageCodeList(MessageCode messageCode); + + /** + * 新增短信管理 + * + * @param messageCode 短信管理 + * @return 结果 + */ + public int insertMessageCode(MessageCode messageCode); + + /** + * 修改短信管理 + * + * @param messageCode 短信管理 + * @return 结果 + */ + public int updateMessageCode(MessageCode messageCode); + + /** + * 删除短信管理 + * + * @param id 短信管理ID + * @return 结果 + */ + public int deleteMessageCodeById(Long id); + + /** + * 批量删除短信管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteMessageCodeByIds(String[] ids); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/PatientListMapper.java b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/PatientListMapper.java new file mode 100644 index 000000000..38f02247a --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/PatientListMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.bend.mapper; + +import com.ruoyi.common.mappers.RuoYiBaseMapper; +import com.ruoyi.bend.domain.PatientList; +import java.util.List; + +/** + * 就诊人列表Mapper接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface PatientListMapper extends RuoYiBaseMapper +{ + /** + * 查询就诊人列表 + * + * @param id 就诊人列表ID + * @return 就诊人列表 + */ + public PatientList selectPatientListById(Long id); + + /** + * 查询就诊人列表列表 + * + * @param patientList 就诊人列表 + * @return 就诊人列表集合 + */ + public List selectPatientListList(PatientList patientList); + + /** + * 新增就诊人列表 + * + * @param patientList 就诊人列表 + * @return 结果 + */ + public int insertPatientList(PatientList patientList); + + /** + * 修改就诊人列表 + * + * @param patientList 就诊人列表 + * @return 结果 + */ + public int updatePatientList(PatientList patientList); + + /** + * 删除就诊人列表 + * + * @param id 就诊人列表ID + * @return 结果 + */ + public int deletePatientListById(Long id); + + /** + * 批量删除就诊人列表 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deletePatientListByIds(String[] ids); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/WechatMemberMapper.java b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/WechatMemberMapper.java new file mode 100644 index 000000000..b719201b4 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/mapper/WechatMemberMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.bend.mapper; + +import com.ruoyi.common.mappers.RuoYiBaseMapper; +import com.ruoyi.bend.domain.WechatMember; +import java.util.List; + +/** + * 微信用户Mapper接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface WechatMemberMapper extends RuoYiBaseMapper +{ + /** + * 查询微信用户 + * + * @param id 微信用户ID + * @return 微信用户 + */ + public WechatMember selectWechatMemberById(Long id); + + /** + * 查询微信用户列表 + * + * @param wechatMember 微信用户 + * @return 微信用户集合 + */ + public List selectWechatMemberList(WechatMember wechatMember); + + /** + * 新增微信用户 + * + * @param wechatMember 微信用户 + * @return 结果 + */ + public int insertWechatMember(WechatMember wechatMember); + + /** + * 修改微信用户 + * + * @param wechatMember 微信用户 + * @return 结果 + */ + public int updateWechatMember(WechatMember wechatMember); + + /** + * 删除微信用户 + * + * @param id 微信用户ID + * @return 结果 + */ + public int deleteWechatMemberById(Long id); + + /** + * 批量删除微信用户 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWechatMemberByIds(String[] ids); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/IAgreementService.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IAgreementService.java new file mode 100644 index 000000000..37934fb2c --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IAgreementService.java @@ -0,0 +1,61 @@ +package com.ruoyi.bend.service; + +import java.util.List; +import com.ruoyi.bend.domain.Agreement; + +/** + * 协议管理Service接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface IAgreementService +{ + /** + * 查询协议管理 + * + * @param id 协议管理ID + * @return 协议管理 + */ + public Agreement selectAgreementById(Long id); + + /** + * 查询协议管理列表 + * + * @param agreement 协议管理 + * @return 协议管理集合 + */ + public List selectAgreementList(Agreement agreement); + + /** + * 新增协议管理 + * + * @param agreement 协议管理 + * @return 结果 + */ + public int insertAgreement(Agreement agreement); + + /** + * 修改协议管理 + * + * @param agreement 协议管理 + * @return 结果 + */ + public int updateAgreement(Agreement agreement); + + /** + * 批量删除协议管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteAgreementByIds(String ids); + + /** + * 删除协议管理信息 + * + * @param id 协议管理ID + * @return 结果 + */ + public int deleteAgreementById(Long id); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/IArticleService.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IArticleService.java new file mode 100644 index 000000000..f9c3ff7a4 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IArticleService.java @@ -0,0 +1,61 @@ +package com.ruoyi.bend.service; + +import java.util.List; +import com.ruoyi.bend.domain.Article; + +/** + * 内容管理Service接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface IArticleService +{ + /** + * 查询内容管理 + * + * @param id 内容管理ID + * @return 内容管理 + */ + public Article selectArticleById(Long id); + + /** + * 查询内容管理列表 + * + * @param article 内容管理 + * @return 内容管理集合 + */ + public List
selectArticleList(Article article); + + /** + * 新增内容管理 + * + * @param article 内容管理 + * @return 结果 + */ + public int insertArticle(Article article); + + /** + * 修改内容管理 + * + * @param article 内容管理 + * @return 结果 + */ + public int updateArticle(Article article); + + /** + * 批量删除内容管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteArticleByIds(String ids); + + /** + * 删除内容管理信息 + * + * @param id 内容管理ID + * @return 结果 + */ + public int deleteArticleById(Long id); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/IBannerService.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IBannerService.java new file mode 100644 index 000000000..72c6230d8 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IBannerService.java @@ -0,0 +1,61 @@ +package com.ruoyi.bend.service; + +import java.util.List; +import com.ruoyi.bend.domain.Banner; + +/** + * 首页管理Service接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface IBannerService +{ + /** + * 查询首页管理 + * + * @param id 首页管理ID + * @return 首页管理 + */ + public Banner selectBannerById(Long id); + + /** + * 查询首页管理列表 + * + * @param banner 首页管理 + * @return 首页管理集合 + */ + public List selectBannerList(Banner banner); + + /** + * 新增首页管理 + * + * @param banner 首页管理 + * @return 结果 + */ + public int insertBanner(Banner banner); + + /** + * 修改首页管理 + * + * @param banner 首页管理 + * @return 结果 + */ + public int updateBanner(Banner banner); + + /** + * 批量删除首页管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteBannerByIds(String ids); + + /** + * 删除首页管理信息 + * + * @param id 首页管理ID + * @return 结果 + */ + public int deleteBannerById(Long id); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/IMemberService.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IMemberService.java new file mode 100644 index 000000000..3f677fe5b --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IMemberService.java @@ -0,0 +1,61 @@ +package com.ruoyi.bend.service; + +import java.util.List; +import com.ruoyi.bend.domain.Member; + +/** + * 会员列表Service接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface IMemberService +{ + /** + * 查询会员列表 + * + * @param id 会员列表ID + * @return 会员列表 + */ + public Member selectMemberById(Long id); + + /** + * 查询会员列表列表 + * + * @param member 会员列表 + * @return 会员列表集合 + */ + public List selectMemberList(Member member); + + /** + * 新增会员列表 + * + * @param member 会员列表 + * @return 结果 + */ + public int insertMember(Member member); + + /** + * 修改会员列表 + * + * @param member 会员列表 + * @return 结果 + */ + public int updateMember(Member member); + + /** + * 批量删除会员列表 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteMemberByIds(String ids); + + /** + * 删除会员列表信息 + * + * @param id 会员列表ID + * @return 结果 + */ + public int deleteMemberById(Long id); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/IMessageCodeService.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IMessageCodeService.java new file mode 100644 index 000000000..20533e627 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IMessageCodeService.java @@ -0,0 +1,61 @@ +package com.ruoyi.bend.service; + +import java.util.List; +import com.ruoyi.bend.domain.MessageCode; + +/** + * 短信管理Service接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface IMessageCodeService +{ + /** + * 查询短信管理 + * + * @param id 短信管理ID + * @return 短信管理 + */ + public MessageCode selectMessageCodeById(Long id); + + /** + * 查询短信管理列表 + * + * @param messageCode 短信管理 + * @return 短信管理集合 + */ + public List selectMessageCodeList(MessageCode messageCode); + + /** + * 新增短信管理 + * + * @param messageCode 短信管理 + * @return 结果 + */ + public int insertMessageCode(MessageCode messageCode); + + /** + * 修改短信管理 + * + * @param messageCode 短信管理 + * @return 结果 + */ + public int updateMessageCode(MessageCode messageCode); + + /** + * 批量删除短信管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteMessageCodeByIds(String ids); + + /** + * 删除短信管理信息 + * + * @param id 短信管理ID + * @return 结果 + */ + public int deleteMessageCodeById(Long id); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/IPatientListService.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IPatientListService.java new file mode 100644 index 000000000..f5b417bef --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IPatientListService.java @@ -0,0 +1,61 @@ +package com.ruoyi.bend.service; + +import java.util.List; +import com.ruoyi.bend.domain.PatientList; + +/** + * 就诊人列表Service接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface IPatientListService +{ + /** + * 查询就诊人列表 + * + * @param id 就诊人列表ID + * @return 就诊人列表 + */ + public PatientList selectPatientListById(Long id); + + /** + * 查询就诊人列表列表 + * + * @param patientList 就诊人列表 + * @return 就诊人列表集合 + */ + public List selectPatientListList(PatientList patientList); + + /** + * 新增就诊人列表 + * + * @param patientList 就诊人列表 + * @return 结果 + */ + public int insertPatientList(PatientList patientList); + + /** + * 修改就诊人列表 + * + * @param patientList 就诊人列表 + * @return 结果 + */ + public int updatePatientList(PatientList patientList); + + /** + * 批量删除就诊人列表 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deletePatientListByIds(String ids); + + /** + * 删除就诊人列表信息 + * + * @param id 就诊人列表ID + * @return 结果 + */ + public int deletePatientListById(Long id); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/IWechatMemberService.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IWechatMemberService.java new file mode 100644 index 000000000..55ee769e0 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/IWechatMemberService.java @@ -0,0 +1,61 @@ +package com.ruoyi.bend.service; + +import java.util.List; +import com.ruoyi.bend.domain.WechatMember; + +/** + * 微信用户Service接口 + * + * @author bend + * @date 2020-08-30 + */ +public interface IWechatMemberService +{ + /** + * 查询微信用户 + * + * @param id 微信用户ID + * @return 微信用户 + */ + public WechatMember selectWechatMemberById(Long id); + + /** + * 查询微信用户列表 + * + * @param wechatMember 微信用户 + * @return 微信用户集合 + */ + public List selectWechatMemberList(WechatMember wechatMember); + + /** + * 新增微信用户 + * + * @param wechatMember 微信用户 + * @return 结果 + */ + public int insertWechatMember(WechatMember wechatMember); + + /** + * 修改微信用户 + * + * @param wechatMember 微信用户 + * @return 结果 + */ + public int updateWechatMember(WechatMember wechatMember); + + /** + * 批量删除微信用户 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWechatMemberByIds(String ids); + + /** + * 删除微信用户信息 + * + * @param id 微信用户ID + * @return 结果 + */ + public int deleteWechatMemberById(Long id); +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/AgreementServiceImpl.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/AgreementServiceImpl.java new file mode 100644 index 000000000..683f10a3e --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/AgreementServiceImpl.java @@ -0,0 +1,97 @@ +package com.ruoyi.bend.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.bend.mapper.AgreementMapper; +import com.ruoyi.bend.domain.Agreement; +import com.ruoyi.bend.service.IAgreementService; +import com.ruoyi.common.core.text.Convert; + +/** + * 协议管理Service业务层处理 + * + * @author bend + * @date 2020-08-30 + */ +@Service +public class AgreementServiceImpl implements IAgreementService +{ + @Autowired + private AgreementMapper agreementMapper; + + /** + * 查询协议管理 + * + * @param id 协议管理ID + * @return 协议管理 + */ + @Override + public Agreement selectAgreementById(Long id) + { + return agreementMapper.selectAgreementById(id); + } + + /** + * 查询协议管理列表 + * + * @param agreement 协议管理 + * @return 协议管理 + */ + @Override + public List selectAgreementList(Agreement agreement) + { + return agreementMapper.selectAgreementList(agreement); + } + + /** + * 新增协议管理 + * + * @param agreement 协议管理 + * @return 结果 + */ + @Override + public int insertAgreement(Agreement agreement) + { + agreement.setCreateTime(DateUtils.getNowDate()); + return agreementMapper.insertAgreement(agreement); + } + + /** + * 修改协议管理 + * + * @param agreement 协议管理 + * @return 结果 + */ + @Override + public int updateAgreement(Agreement agreement) + { + agreement.setUpdateTime(DateUtils.getNowDate()); + return agreementMapper.updateAgreement(agreement); + } + + /** + * 删除协议管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteAgreementByIds(String ids) + { + return agreementMapper.deleteAgreementByIds(Convert.toStrArray(ids)); + } + + /** + * 删除协议管理信息 + * + * @param id 协议管理ID + * @return 结果 + */ + @Override + public int deleteAgreementById(Long id) + { + return agreementMapper.deleteAgreementById(id); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/ArticleServiceImpl.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/ArticleServiceImpl.java new file mode 100644 index 000000000..aaea5e406 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/ArticleServiceImpl.java @@ -0,0 +1,97 @@ +package com.ruoyi.bend.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.bend.mapper.ArticleMapper; +import com.ruoyi.bend.domain.Article; +import com.ruoyi.bend.service.IArticleService; +import com.ruoyi.common.core.text.Convert; + +/** + * 内容管理Service业务层处理 + * + * @author bend + * @date 2020-08-30 + */ +@Service +public class ArticleServiceImpl implements IArticleService +{ + @Autowired + private ArticleMapper articleMapper; + + /** + * 查询内容管理 + * + * @param id 内容管理ID + * @return 内容管理 + */ + @Override + public Article selectArticleById(Long id) + { + return articleMapper.selectArticleById(id); + } + + /** + * 查询内容管理列表 + * + * @param article 内容管理 + * @return 内容管理 + */ + @Override + public List
selectArticleList(Article article) + { + return articleMapper.selectArticleList(article); + } + + /** + * 新增内容管理 + * + * @param article 内容管理 + * @return 结果 + */ + @Override + public int insertArticle(Article article) + { + article.setCreateTime(DateUtils.getNowDate()); + return articleMapper.insertArticle(article); + } + + /** + * 修改内容管理 + * + * @param article 内容管理 + * @return 结果 + */ + @Override + public int updateArticle(Article article) + { + article.setUpdateTime(DateUtils.getNowDate()); + return articleMapper.updateArticle(article); + } + + /** + * 删除内容管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteArticleByIds(String ids) + { + return articleMapper.deleteArticleByIds(Convert.toStrArray(ids)); + } + + /** + * 删除内容管理信息 + * + * @param id 内容管理ID + * @return 结果 + */ + @Override + public int deleteArticleById(Long id) + { + return articleMapper.deleteArticleById(id); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/BannerServiceImpl.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/BannerServiceImpl.java new file mode 100644 index 000000000..c2d900a2a --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/BannerServiceImpl.java @@ -0,0 +1,97 @@ +package com.ruoyi.bend.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.bend.mapper.BannerMapper; +import com.ruoyi.bend.domain.Banner; +import com.ruoyi.bend.service.IBannerService; +import com.ruoyi.common.core.text.Convert; + +/** + * 首页管理Service业务层处理 + * + * @author bend + * @date 2020-08-30 + */ +@Service +public class BannerServiceImpl implements IBannerService +{ + @Autowired + private BannerMapper bannerMapper; + + /** + * 查询首页管理 + * + * @param id 首页管理ID + * @return 首页管理 + */ + @Override + public Banner selectBannerById(Long id) + { + return bannerMapper.selectBannerById(id); + } + + /** + * 查询首页管理列表 + * + * @param banner 首页管理 + * @return 首页管理 + */ + @Override + public List selectBannerList(Banner banner) + { + return bannerMapper.selectBannerList(banner); + } + + /** + * 新增首页管理 + * + * @param banner 首页管理 + * @return 结果 + */ + @Override + public int insertBanner(Banner banner) + { + banner.setCreateTime(DateUtils.getNowDate()); + return bannerMapper.insertBanner(banner); + } + + /** + * 修改首页管理 + * + * @param banner 首页管理 + * @return 结果 + */ + @Override + public int updateBanner(Banner banner) + { + banner.setUpdateTime(DateUtils.getNowDate()); + return bannerMapper.updateBanner(banner); + } + + /** + * 删除首页管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteBannerByIds(String ids) + { + return bannerMapper.deleteBannerByIds(Convert.toStrArray(ids)); + } + + /** + * 删除首页管理信息 + * + * @param id 首页管理ID + * @return 结果 + */ + @Override + public int deleteBannerById(Long id) + { + return bannerMapper.deleteBannerById(id); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/MemberServiceImpl.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/MemberServiceImpl.java new file mode 100644 index 000000000..9f696e730 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/MemberServiceImpl.java @@ -0,0 +1,97 @@ +package com.ruoyi.bend.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.bend.mapper.MemberMapper; +import com.ruoyi.bend.domain.Member; +import com.ruoyi.bend.service.IMemberService; +import com.ruoyi.common.core.text.Convert; + +/** + * 会员列表Service业务层处理 + * + * @author bend + * @date 2020-08-30 + */ +@Service +public class MemberServiceImpl implements IMemberService +{ + @Autowired + private MemberMapper memberMapper; + + /** + * 查询会员列表 + * + * @param id 会员列表ID + * @return 会员列表 + */ + @Override + public Member selectMemberById(Long id) + { + return memberMapper.selectMemberById(id); + } + + /** + * 查询会员列表列表 + * + * @param member 会员列表 + * @return 会员列表 + */ + @Override + public List selectMemberList(Member member) + { + return memberMapper.selectMemberList(member); + } + + /** + * 新增会员列表 + * + * @param member 会员列表 + * @return 结果 + */ + @Override + public int insertMember(Member member) + { + member.setCreateTime(DateUtils.getNowDate()); + return memberMapper.insertMember(member); + } + + /** + * 修改会员列表 + * + * @param member 会员列表 + * @return 结果 + */ + @Override + public int updateMember(Member member) + { + member.setUpdateTime(DateUtils.getNowDate()); + return memberMapper.updateMember(member); + } + + /** + * 删除会员列表对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteMemberByIds(String ids) + { + return memberMapper.deleteMemberByIds(Convert.toStrArray(ids)); + } + + /** + * 删除会员列表信息 + * + * @param id 会员列表ID + * @return 结果 + */ + @Override + public int deleteMemberById(Long id) + { + return memberMapper.deleteMemberById(id); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/MessageCodeServiceImpl.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/MessageCodeServiceImpl.java new file mode 100644 index 000000000..8e6852028 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/MessageCodeServiceImpl.java @@ -0,0 +1,97 @@ +package com.ruoyi.bend.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.bend.mapper.MessageCodeMapper; +import com.ruoyi.bend.domain.MessageCode; +import com.ruoyi.bend.service.IMessageCodeService; +import com.ruoyi.common.core.text.Convert; + +/** + * 短信管理Service业务层处理 + * + * @author bend + * @date 2020-08-30 + */ +@Service +public class MessageCodeServiceImpl implements IMessageCodeService +{ + @Autowired + private MessageCodeMapper messageCodeMapper; + + /** + * 查询短信管理 + * + * @param id 短信管理ID + * @return 短信管理 + */ + @Override + public MessageCode selectMessageCodeById(Long id) + { + return messageCodeMapper.selectMessageCodeById(id); + } + + /** + * 查询短信管理列表 + * + * @param messageCode 短信管理 + * @return 短信管理 + */ + @Override + public List selectMessageCodeList(MessageCode messageCode) + { + return messageCodeMapper.selectMessageCodeList(messageCode); + } + + /** + * 新增短信管理 + * + * @param messageCode 短信管理 + * @return 结果 + */ + @Override + public int insertMessageCode(MessageCode messageCode) + { + messageCode.setCreateTime(DateUtils.getNowDate()); + return messageCodeMapper.insertMessageCode(messageCode); + } + + /** + * 修改短信管理 + * + * @param messageCode 短信管理 + * @return 结果 + */ + @Override + public int updateMessageCode(MessageCode messageCode) + { + messageCode.setUpdateTime(DateUtils.getNowDate()); + return messageCodeMapper.updateMessageCode(messageCode); + } + + /** + * 删除短信管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteMessageCodeByIds(String ids) + { + return messageCodeMapper.deleteMessageCodeByIds(Convert.toStrArray(ids)); + } + + /** + * 删除短信管理信息 + * + * @param id 短信管理ID + * @return 结果 + */ + @Override + public int deleteMessageCodeById(Long id) + { + return messageCodeMapper.deleteMessageCodeById(id); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/PatientListServiceImpl.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/PatientListServiceImpl.java new file mode 100644 index 000000000..d7bf9d012 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/PatientListServiceImpl.java @@ -0,0 +1,97 @@ +package com.ruoyi.bend.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.bend.mapper.PatientListMapper; +import com.ruoyi.bend.domain.PatientList; +import com.ruoyi.bend.service.IPatientListService; +import com.ruoyi.common.core.text.Convert; + +/** + * 就诊人列表Service业务层处理 + * + * @author bend + * @date 2020-08-30 + */ +@Service +public class PatientListServiceImpl implements IPatientListService +{ + @Autowired + private PatientListMapper patientListMapper; + + /** + * 查询就诊人列表 + * + * @param id 就诊人列表ID + * @return 就诊人列表 + */ + @Override + public PatientList selectPatientListById(Long id) + { + return patientListMapper.selectPatientListById(id); + } + + /** + * 查询就诊人列表列表 + * + * @param patientList 就诊人列表 + * @return 就诊人列表 + */ + @Override + public List selectPatientListList(PatientList patientList) + { + return patientListMapper.selectPatientListList(patientList); + } + + /** + * 新增就诊人列表 + * + * @param patientList 就诊人列表 + * @return 结果 + */ + @Override + public int insertPatientList(PatientList patientList) + { + patientList.setCreateTime(DateUtils.getNowDate()); + return patientListMapper.insertPatientList(patientList); + } + + /** + * 修改就诊人列表 + * + * @param patientList 就诊人列表 + * @return 结果 + */ + @Override + public int updatePatientList(PatientList patientList) + { + patientList.setUpdateTime(DateUtils.getNowDate()); + return patientListMapper.updatePatientList(patientList); + } + + /** + * 删除就诊人列表对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deletePatientListByIds(String ids) + { + return patientListMapper.deletePatientListByIds(Convert.toStrArray(ids)); + } + + /** + * 删除就诊人列表信息 + * + * @param id 就诊人列表ID + * @return 结果 + */ + @Override + public int deletePatientListById(Long id) + { + return patientListMapper.deletePatientListById(id); + } +} diff --git a/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/WechatMemberServiceImpl.java b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/WechatMemberServiceImpl.java new file mode 100644 index 000000000..0b91dcf40 --- /dev/null +++ b/ruoyi-his/src/main/java/com/ruoyi/bend/service/impl/WechatMemberServiceImpl.java @@ -0,0 +1,97 @@ +package com.ruoyi.bend.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.bend.mapper.WechatMemberMapper; +import com.ruoyi.bend.domain.WechatMember; +import com.ruoyi.bend.service.IWechatMemberService; +import com.ruoyi.common.core.text.Convert; + +/** + * 微信用户Service业务层处理 + * + * @author bend + * @date 2020-08-30 + */ +@Service +public class WechatMemberServiceImpl implements IWechatMemberService +{ + @Autowired + private WechatMemberMapper wechatMemberMapper; + + /** + * 查询微信用户 + * + * @param id 微信用户ID + * @return 微信用户 + */ + @Override + public WechatMember selectWechatMemberById(Long id) + { + return wechatMemberMapper.selectWechatMemberById(id); + } + + /** + * 查询微信用户列表 + * + * @param wechatMember 微信用户 + * @return 微信用户 + */ + @Override + public List selectWechatMemberList(WechatMember wechatMember) + { + return wechatMemberMapper.selectWechatMemberList(wechatMember); + } + + /** + * 新增微信用户 + * + * @param wechatMember 微信用户 + * @return 结果 + */ + @Override + public int insertWechatMember(WechatMember wechatMember) + { + wechatMember.setCreateTime(DateUtils.getNowDate()); + return wechatMemberMapper.insertWechatMember(wechatMember); + } + + /** + * 修改微信用户 + * + * @param wechatMember 微信用户 + * @return 结果 + */ + @Override + public int updateWechatMember(WechatMember wechatMember) + { + wechatMember.setUpdateTime(DateUtils.getNowDate()); + return wechatMemberMapper.updateWechatMember(wechatMember); + } + + /** + * 删除微信用户对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWechatMemberByIds(String ids) + { + return wechatMemberMapper.deleteWechatMemberByIds(Convert.toStrArray(ids)); + } + + /** + * 删除微信用户信息 + * + * @param id 微信用户ID + * @return 结果 + */ + @Override + public int deleteWechatMemberById(Long id) + { + return wechatMemberMapper.deleteWechatMemberById(id); + } +} diff --git a/ruoyi-his/src/main/resources/mapper/bend/AgreementMapper.xml b/ruoyi-his/src/main/resources/mapper/bend/AgreementMapper.xml new file mode 100644 index 000000000..f71cf0c33 --- /dev/null +++ b/ruoyi-his/src/main/resources/mapper/bend/AgreementMapper.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + select id, agreement_title, agreement_type, status, create_by, create_time, update_time, agreement_content, deleted from bend_agreement + + + + + + + + insert into bend_agreement + + agreement_title, + agreement_type, + status, + create_by, + create_time, + update_time, + agreement_content, + deleted, + + + #{agreementTitle}, + #{agreementType}, + #{status}, + #{createBy}, + #{createTime}, + #{updateTime}, + #{agreementContent}, + #{deleted}, + + + + + update bend_agreement + + agreement_title = #{agreementTitle}, + agreement_type = #{agreementType}, + status = #{status}, + create_by = #{createBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + agreement_content = #{agreementContent}, + deleted = #{deleted}, + + where id = #{id} + + + + delete from bend_agreement where id = #{id} + + + + delete from bend_agreement where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/mapper/bend/ArticleMapper.xml b/ruoyi-his/src/main/resources/mapper/bend/ArticleMapper.xml new file mode 100644 index 000000000..59aef6cc0 --- /dev/null +++ b/ruoyi-his/src/main/resources/mapper/bend/ArticleMapper.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, title, sub_title, article_cover, pv_count, comment_count, quote_count, wechat_account, signature_name, article_type, article_classify, article_category, article_status, approve_status, sort_no, create_by, audit_time, release_time, create_time, update_time, content, deleted from bend_article + + + + + + + + insert into bend_article + + title, + sub_title, + article_cover, + pv_count, + comment_count, + quote_count, + wechat_account, + signature_name, + article_type, + article_classify, + article_category, + article_status, + approve_status, + sort_no, + create_by, + audit_time, + release_time, + create_time, + update_time, + content, + deleted, + + + #{title}, + #{subTitle}, + #{articleCover}, + #{pvCount}, + #{commentCount}, + #{quoteCount}, + #{wechatAccount}, + #{signatureName}, + #{articleType}, + #{articleClassify}, + #{articleCategory}, + #{articleStatus}, + #{approveStatus}, + #{sortNo}, + #{createBy}, + #{auditTime}, + #{releaseTime}, + #{createTime}, + #{updateTime}, + #{content}, + #{deleted}, + + + + + update bend_article + + title = #{title}, + sub_title = #{subTitle}, + article_cover = #{articleCover}, + pv_count = #{pvCount}, + comment_count = #{commentCount}, + quote_count = #{quoteCount}, + wechat_account = #{wechatAccount}, + signature_name = #{signatureName}, + article_type = #{articleType}, + article_classify = #{articleClassify}, + article_category = #{articleCategory}, + article_status = #{articleStatus}, + approve_status = #{approveStatus}, + sort_no = #{sortNo}, + create_by = #{createBy}, + audit_time = #{auditTime}, + release_time = #{releaseTime}, + create_time = #{createTime}, + update_time = #{updateTime}, + content = #{content}, + deleted = #{deleted}, + + where id = #{id} + + + + delete from bend_article where id = #{id} + + + + delete from bend_article where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/mapper/bend/BannerMapper.xml b/ruoyi-his/src/main/resources/mapper/bend/BannerMapper.xml new file mode 100644 index 000000000..4426ce0bb --- /dev/null +++ b/ruoyi-his/src/main/resources/mapper/bend/BannerMapper.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + select id, ad_title, ad_url, ad_detail_url, ad_type, create_time, update_time, deleted from bend_banner + + + + + + + + insert into bend_banner + + ad_title, + ad_url, + ad_detail_url, + ad_type, + create_time, + update_time, + deleted, + + + #{adTitle}, + #{adUrl}, + #{adDetailUrl}, + #{adType}, + #{createTime}, + #{updateTime}, + #{deleted}, + + + + + update bend_banner + + ad_title = #{adTitle}, + ad_url = #{adUrl}, + ad_detail_url = #{adDetailUrl}, + ad_type = #{adType}, + create_time = #{createTime}, + update_time = #{updateTime}, + deleted = #{deleted}, + + where id = #{id} + + + + delete from bend_banner where id = #{id} + + + + delete from bend_banner where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/mapper/bend/MemberMapper.xml b/ruoyi-his/src/main/resources/mapper/bend/MemberMapper.xml new file mode 100644 index 000000000..816614dcf --- /dev/null +++ b/ruoyi-his/src/main/resources/mapper/bend/MemberMapper.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + select id, mobile_phone, password, real_name, id_card_no, member_status, member_type, create_time, update_time, deleted from bend_member + + + + + + + + insert into bend_member + + mobile_phone, + password, + real_name, + id_card_no, + member_status, + member_type, + create_time, + update_time, + deleted, + + + #{mobilePhone}, + #{password}, + #{realName}, + #{idCardNo}, + #{memberStatus}, + #{memberType}, + #{createTime}, + #{updateTime}, + #{deleted}, + + + + + update bend_member + + mobile_phone = #{mobilePhone}, + password = #{password}, + real_name = #{realName}, + id_card_no = #{idCardNo}, + member_status = #{memberStatus}, + member_type = #{memberType}, + create_time = #{createTime}, + update_time = #{updateTime}, + deleted = #{deleted}, + + where id = #{id} + + + + delete from bend_member where id = #{id} + + + + delete from bend_member where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/mapper/bend/MessageCodeMapper.xml b/ruoyi-his/src/main/resources/mapper/bend/MessageCodeMapper.xml new file mode 100644 index 000000000..52d712de7 --- /dev/null +++ b/ruoyi-his/src/main/resources/mapper/bend/MessageCodeMapper.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + select id, mobile_phone, sign_name, sms_type, sms_code, message_text, template_code, template_param, sms_status, create_time, update_time, deleted from bend_message_code + + + + + + + + insert into bend_message_code + + mobile_phone, + sign_name, + sms_type, + sms_code, + message_text, + template_code, + template_param, + sms_status, + create_time, + update_time, + deleted, + + + #{mobilePhone}, + #{signName}, + #{smsType}, + #{smsCode}, + #{messageText}, + #{templateCode}, + #{templateParam}, + #{smsStatus}, + #{createTime}, + #{updateTime}, + #{deleted}, + + + + + update bend_message_code + + mobile_phone = #{mobilePhone}, + sign_name = #{signName}, + sms_type = #{smsType}, + sms_code = #{smsCode}, + message_text = #{messageText}, + template_code = #{templateCode}, + template_param = #{templateParam}, + sms_status = #{smsStatus}, + create_time = #{createTime}, + update_time = #{updateTime}, + deleted = #{deleted}, + + where id = #{id} + + + + delete from bend_message_code where id = #{id} + + + + delete from bend_message_code where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/mapper/bend/PatientListMapper.xml b/ruoyi-his/src/main/resources/mapper/bend/PatientListMapper.xml new file mode 100644 index 000000000..aa57ca33c --- /dev/null +++ b/ruoyi-his/src/main/resources/mapper/bend/PatientListMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + select id, member_id, real_name, id_card_no, mobile_phone, default_patient, relation_ship, family_relationship, sex, bind_status, create_time, update_time, deleted from bend_patient_list + + + + + + + + insert into bend_patient_list + + member_id, + real_name, + id_card_no, + mobile_phone, + default_patient, + relation_ship, + family_relationship, + sex, + bind_status, + create_time, + update_time, + deleted, + + + #{memberId}, + #{realName}, + #{idCardNo}, + #{mobilePhone}, + #{defaultPatient}, + #{relationShip}, + #{familyRelationship}, + #{sex}, + #{bindStatus}, + #{createTime}, + #{updateTime}, + #{deleted}, + + + + + update bend_patient_list + + member_id = #{memberId}, + real_name = #{realName}, + id_card_no = #{idCardNo}, + mobile_phone = #{mobilePhone}, + default_patient = #{defaultPatient}, + relation_ship = #{relationShip}, + family_relationship = #{familyRelationship}, + sex = #{sex}, + bind_status = #{bindStatus}, + create_time = #{createTime}, + update_time = #{updateTime}, + deleted = #{deleted}, + + where id = #{id} + + + + delete from bend_patient_list where id = #{id} + + + + delete from bend_patient_list where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/mapper/bend/WechatMemberMapper.xml b/ruoyi-his/src/main/resources/mapper/bend/WechatMemberMapper.xml new file mode 100644 index 000000000..16d089429 --- /dev/null +++ b/ruoyi-his/src/main/resources/mapper/bend/WechatMemberMapper.xml @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, member_id, mobile_phone, app_id, open_id, nickname, real_name, sex, sex_desc, follow_status, subscribe, city, province, country, language, head_img_url, subscribe_time, unionid, remark, group_id, tag_ids, subscribe_scene, qr_scene, qr_scene_str, create_time, update_time, deleted from bend_wechat_member + + + + + + + + insert into bend_wechat_member + + member_id, + mobile_phone, + app_id, + open_id, + nickname, + real_name, + sex, + sex_desc, + follow_status, + subscribe, + city, + province, + country, + language, + head_img_url, + subscribe_time, + unionid, + remark, + group_id, + tag_ids, + subscribe_scene, + qr_scene, + qr_scene_str, + create_time, + update_time, + deleted, + + + #{memberId}, + #{mobilePhone}, + #{appId}, + #{openId}, + #{nickname}, + #{realName}, + #{sex}, + #{sexDesc}, + #{followStatus}, + #{subscribe}, + #{city}, + #{province}, + #{country}, + #{language}, + #{headImgUrl}, + #{subscribeTime}, + #{unionid}, + #{remark}, + #{groupId}, + #{tagIds}, + #{subscribeScene}, + #{qrScene}, + #{qrSceneStr}, + #{createTime}, + #{updateTime}, + #{deleted}, + + + + + update bend_wechat_member + + member_id = #{memberId}, + mobile_phone = #{mobilePhone}, + app_id = #{appId}, + open_id = #{openId}, + nickname = #{nickname}, + real_name = #{realName}, + sex = #{sex}, + sex_desc = #{sexDesc}, + follow_status = #{followStatus}, + subscribe = #{subscribe}, + city = #{city}, + province = #{province}, + country = #{country}, + language = #{language}, + head_img_url = #{headImgUrl}, + subscribe_time = #{subscribeTime}, + unionid = #{unionid}, + remark = #{remark}, + group_id = #{groupId}, + tag_ids = #{tagIds}, + subscribe_scene = #{subscribeScene}, + qr_scene = #{qrScene}, + qr_scene_str = #{qrSceneStr}, + create_time = #{createTime}, + update_time = #{updateTime}, + deleted = #{deleted}, + + where id = #{id} + + + + delete from bend_wechat_member where id = #{id} + + + + delete from bend_wechat_member where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/agreement/add.html b/ruoyi-his/src/main/resources/templates/bend/agreement/add.html new file mode 100644 index 000000000..d971bdfa0 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/agreement/add.html @@ -0,0 +1,94 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/agreement/agreement.html b/ruoyi-his/src/main/resources/templates/bend/agreement/agreement.html new file mode 100644 index 000000000..8007987d9 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/agreement/agreement.html @@ -0,0 +1,128 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/agreement/edit.html b/ruoyi-his/src/main/resources/templates/bend/agreement/edit.html new file mode 100644 index 000000000..824accf7a --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/agreement/edit.html @@ -0,0 +1,99 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/article/add.html b/ruoyi-his/src/main/resources/templates/bend/article/add.html new file mode 100644 index 000000000..b2eb545eb --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/article/add.html @@ -0,0 +1,163 @@ + + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+
+
+
+   +   + +
+
+ + + + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/article/article.html b/ruoyi-his/src/main/resources/templates/bend/article/article.html new file mode 100644 index 000000000..a08339d97 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/article/article.html @@ -0,0 +1,252 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/article/draft.html b/ruoyi-his/src/main/resources/templates/bend/article/draft.html new file mode 100644 index 000000000..db2d5fafa --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/article/draft.html @@ -0,0 +1,205 @@ + + + + + + +
+
+
+
+ +
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/article/edit.html b/ruoyi-his/src/main/resources/templates/bend/article/edit.html new file mode 100644 index 000000000..5a624b23e --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/article/edit.html @@ -0,0 +1,173 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+
+
+
+   +   + +
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/banner/add.html b/ruoyi-his/src/main/resources/templates/bend/banner/add.html new file mode 100644 index 000000000..163646f57 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/banner/add.html @@ -0,0 +1,51 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/banner/banner.html b/ruoyi-his/src/main/resources/templates/bend/banner/banner.html new file mode 100644 index 000000000..8c2579064 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/banner/banner.html @@ -0,0 +1,109 @@ + + + + + + +
+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/banner/edit.html b/ruoyi-his/src/main/resources/templates/bend/banner/edit.html new file mode 100644 index 000000000..3756601fa --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/banner/edit.html @@ -0,0 +1,52 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/member/add.html b/ruoyi-his/src/main/resources/templates/bend/member/add.html new file mode 100644 index 000000000..ba5e7866b --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/member/add.html @@ -0,0 +1,25 @@ + + + + + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/member/edit.html b/ruoyi-his/src/main/resources/templates/bend/member/edit.html new file mode 100644 index 000000000..6eeaafd75 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/member/edit.html @@ -0,0 +1,26 @@ + + + + + + +
+
+ +
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/member/member.html b/ruoyi-his/src/main/resources/templates/bend/member/member.html new file mode 100644 index 000000000..f9ea5bf8c --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/member/member.html @@ -0,0 +1,142 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/messageCode/add.html b/ruoyi-his/src/main/resources/templates/bend/messageCode/add.html new file mode 100644 index 000000000..a0dda716e --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/messageCode/add.html @@ -0,0 +1,25 @@ + + + + + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/messageCode/edit.html b/ruoyi-his/src/main/resources/templates/bend/messageCode/edit.html new file mode 100644 index 000000000..0bc0674e4 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/messageCode/edit.html @@ -0,0 +1,26 @@ + + + + + + +
+
+ +
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/messageCode/messageCode.html b/ruoyi-his/src/main/resources/templates/bend/messageCode/messageCode.html new file mode 100644 index 000000000..7cbd2b101 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/messageCode/messageCode.html @@ -0,0 +1,131 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/patientList/add.html b/ruoyi-his/src/main/resources/templates/bend/patientList/add.html new file mode 100644 index 000000000..9a73d4dbb --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/patientList/add.html @@ -0,0 +1,25 @@ + + + + + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/patientList/edit.html b/ruoyi-his/src/main/resources/templates/bend/patientList/edit.html new file mode 100644 index 000000000..c74b52b7d --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/patientList/edit.html @@ -0,0 +1,26 @@ + + + + + + +
+
+ +
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/patientList/patientList.html b/ruoyi-his/src/main/resources/templates/bend/patientList/patientList.html new file mode 100644 index 000000000..50dea0f0b --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/patientList/patientList.html @@ -0,0 +1,159 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/wechatMember/add.html b/ruoyi-his/src/main/resources/templates/bend/wechatMember/add.html new file mode 100644 index 000000000..7348029ee --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/wechatMember/add.html @@ -0,0 +1,25 @@ + + + + + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/wechatMember/edit.html b/ruoyi-his/src/main/resources/templates/bend/wechatMember/edit.html new file mode 100644 index 000000000..ff577e888 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/wechatMember/edit.html @@ -0,0 +1,26 @@ + + + + + + +
+
+ +
+
+ + + + \ No newline at end of file diff --git a/ruoyi-his/src/main/resources/templates/bend/wechatMember/wechatMember.html b/ruoyi-his/src/main/resources/templates/bend/wechatMember/wechatMember.html new file mode 100644 index 000000000..985d9cf87 --- /dev/null +++ b/ruoyi-his/src/main/resources/templates/bend/wechatMember/wechatMember.html @@ -0,0 +1,153 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file