From 0f53613e9e1fa61a7f612a59c3ccda6ca1cbdeff Mon Sep 17 00:00:00 2001 From: loser <12524321+loser111@user.noreply.gitee.com> Date: Sat, 22 Apr 2023 18:26:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=89=A9=E4=BD=99=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/CheckController.java | 127 +++++++++++++ .../web/controller/CheckManageController.java | 127 +++++++++++++ .../web/controller/PatientManageController.java | 127 +++++++++++++ .../web/controller/supplies/NucleicController.java | 127 +++++++++++++ .../web/controller/supplies/VaccineController.java | 127 +++++++++++++ .../src/main/resources/templates/check/add.html | 84 +++++++++ .../src/main/resources/templates/check/check.html | 142 ++++++++++++++ .../src/main/resources/templates/check/edit.html | 85 +++++++++ .../main/resources/templates/checkManage/add.html | 85 +++++++++ .../templates/checkManage/checkManage.html | 162 ++++++++++++++++ .../main/resources/templates/checkManage/edit.html | 86 +++++++++ .../resources/templates/patientManage/add.html | 102 ++++++++++ .../resources/templates/patientManage/edit.html | 103 ++++++++++ .../templates/patientManage/patientManage.html | 170 +++++++++++++++++ .../resources/templates/supplies/nucleic/add.html | 43 +++++ .../resources/templates/supplies/nucleic/edit.html | 44 +++++ .../templates/supplies/nucleic/nucleic.html | 102 ++++++++++ .../resources/templates/supplies/vaccine/add.html | 43 +++++ .../resources/templates/supplies/vaccine/edit.html | 44 +++++ .../templates/supplies/vaccine/vaccine.html | 102 ++++++++++ .../main/java/com/ruoyi/system/domain/Check.java | 152 +++++++++++++++ .../java/com/ruoyi/system/domain/CheckManage.java | 191 +++++++++++++++++++ .../main/java/com/ruoyi/system/domain/Nucleic.java | 79 ++++++++ .../com/ruoyi/system/domain/PatientManage.java | 208 +++++++++++++++++++++ .../main/java/com/ruoyi/system/domain/Vaccine.java | 79 ++++++++ .../com/ruoyi/system/mapper/CheckManageMapper.java | 61 ++++++ .../java/com/ruoyi/system/mapper/CheckMapper.java | 61 ++++++ .../com/ruoyi/system/mapper/NucleicMapper.java | 61 ++++++ .../ruoyi/system/mapper/PatientManageMapper.java | 61 ++++++ .../com/ruoyi/system/mapper/VaccineMapper.java | 61 ++++++ .../ruoyi/system/service/ICheckManageService.java | 61 ++++++ .../com/ruoyi/system/service/ICheckService.java | 61 ++++++ .../com/ruoyi/system/service/INucleicService.java | 61 ++++++ .../system/service/IPatientManageService.java | 61 ++++++ .../com/ruoyi/system/service/IVaccineService.java | 61 ++++++ .../service/impl/CheckManageServiceImpl.java | 94 ++++++++++ .../system/service/impl/CheckServiceImpl.java | 94 ++++++++++ .../system/service/impl/NucleicServiceImpl.java | 94 ++++++++++ .../service/impl/PatientManageServiceImpl.java | 94 ++++++++++ .../system/service/impl/VaccineServiceImpl.java | 94 ++++++++++ .../main/resources/mapper/CheckManageMapper.xml | 107 +++++++++++ .../src/main/resources/mapper/CheckMapper.xml | 92 +++++++++ .../main/resources/mapper/PatientManageMapper.xml | 112 +++++++++++ .../mapper/suppliesManage/NucleicMapper.xml | 67 +++++++ .../mapper/suppliesManage/VaccineMapper.xml | 67 +++++++ 45 files changed, 4266 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckManageController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/PatientManageController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/NucleicController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/VaccineController.java create mode 100644 ruoyi-admin/src/main/resources/templates/check/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/check/check.html create mode 100644 ruoyi-admin/src/main/resources/templates/check/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/checkManage/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/checkManage/checkManage.html create mode 100644 ruoyi-admin/src/main/resources/templates/checkManage/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/patientManage/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/patientManage/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/patientManage/patientManage.html create mode 100644 ruoyi-admin/src/main/resources/templates/supplies/nucleic/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/supplies/nucleic/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/supplies/nucleic/nucleic.html create mode 100644 ruoyi-admin/src/main/resources/templates/supplies/vaccine/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/supplies/vaccine/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/supplies/vaccine/vaccine.html create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/Nucleic.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/PatientManage.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/Vaccine.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/NucleicMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/PatientManageMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/VaccineMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckManageService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/INucleicService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IPatientManageService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IVaccineService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/NucleicServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PatientManageServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VaccineServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/CheckMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/suppliesManage/NucleicMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/suppliesManage/VaccineMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java new file mode 100644 index 0000000..32f0d0b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java @@ -0,0 +1,127 @@ +package com.ruoyi.web.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.system.domain.Check; +import com.ruoyi.system.service.ICheckService; +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 zlx + * @date 2023-04-22 + */ +@Controller +@RequestMapping("/individual/check") +public class CheckController extends BaseController +{ + private String prefix = "individual/check"; + + @Autowired + private ICheckService checkService; + + @RequiresPermissions("individual:check:view") + @GetMapping() + public String check() + { + return prefix + "/check"; + } + + /** + * 查询个人打卡列表 + */ + @RequiresPermissions("individual:check:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Check check) + { + startPage(); + List list = checkService.selectCheckList(check); + return getDataTable(list); + } + + /** + * 导出个人打卡列表 + */ + @RequiresPermissions("individual:check:export") + @Log(title = "个人打卡", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Check check) + { + List list = checkService.selectCheckList(check); + ExcelUtil util = new ExcelUtil(Check.class); + return util.exportExcel(list, "个人打卡数据"); + } + + /** + * 新增个人打卡 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存个人打卡 + */ + @RequiresPermissions("individual:check:add") + @Log(title = "个人打卡", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Check check) + { + return toAjax(checkService.insertCheck(check)); + } + + /** + * 修改个人打卡 + */ + @RequiresPermissions("individual:check:edit") + @GetMapping("/edit/{checkId}") + public String edit(@PathVariable("checkId") Long checkId, ModelMap mmap) + { + Check check = checkService.selectCheckByCheckId(checkId); + mmap.put("check", check); + return prefix + "/edit"; + } + + /** + * 修改保存个人打卡 + */ + @RequiresPermissions("individual:check:edit") + @Log(title = "个人打卡", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Check check) + { + return toAjax(checkService.updateCheck(check)); + } + + /** + * 删除个人打卡 + */ + @RequiresPermissions("individual:check:remove") + @Log(title = "个人打卡", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(checkService.deleteCheckByCheckIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckManageController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckManageController.java new file mode 100644 index 0000000..90fdbb2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckManageController.java @@ -0,0 +1,127 @@ +package com.ruoyi.web.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.system.domain.CheckManage; +import com.ruoyi.system.service.ICheckManageService; +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 ruoyi + * @date 2023-04-22 + */ +@Controller +@RequestMapping("/check/checkManage") +public class CheckManageController extends BaseController +{ + private String prefix = "check/checkManage"; + + @Autowired + private ICheckManageService checkManageService; + + @RequiresPermissions("check:checkManage:view") + @GetMapping() + public String checkManage() + { + return prefix + "/checkManage"; + } + + /** + * 查询打卡管理列表 + */ + @RequiresPermissions("check:checkManage:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(CheckManage checkManage) + { + startPage(); + List list = checkManageService.selectCheckManageList(checkManage); + return getDataTable(list); + } + + /** + * 导出打卡管理列表 + */ + @RequiresPermissions("check:checkManage:export") + @Log(title = "打卡管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(CheckManage checkManage) + { + List list = checkManageService.selectCheckManageList(checkManage); + ExcelUtil util = new ExcelUtil(CheckManage.class); + return util.exportExcel(list, "打卡管理数据"); + } + + /** + * 新增打卡管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存打卡管理 + */ + @RequiresPermissions("check:checkManage:add") + @Log(title = "打卡管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(CheckManage checkManage) + { + return toAjax(checkManageService.insertCheckManage(checkManage)); + } + + /** + * 修改打卡管理 + */ + @RequiresPermissions("check:checkManage:edit") + @GetMapping("/edit/{checkManageId}") + public String edit(@PathVariable("checkManageId") Long checkManageId, ModelMap mmap) + { + CheckManage checkManage = checkManageService.selectCheckManageByCheckManageId(checkManageId); + mmap.put("checkManage", checkManage); + return prefix + "/edit"; + } + + /** + * 修改保存打卡管理 + */ + @RequiresPermissions("check:checkManage:edit") + @Log(title = "打卡管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(CheckManage checkManage) + { + return toAjax(checkManageService.updateCheckManage(checkManage)); + } + + /** + * 删除打卡管理 + */ + @RequiresPermissions("check:checkManage:remove") + @Log(title = "打卡管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(checkManageService.deleteCheckManageByCheckManageIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/PatientManageController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/PatientManageController.java new file mode 100644 index 0000000..3c64456 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/PatientManageController.java @@ -0,0 +1,127 @@ +package com.ruoyi.web.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.system.domain.PatientManage; +import com.ruoyi.system.service.IPatientManageService; +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 zlx + * @date 2023-04-22 + */ +@Controller +@RequestMapping("/patient/patientManage") +public class PatientManageController extends BaseController +{ + private String prefix = "patient/patientManage"; + + @Autowired + private IPatientManageService patientManageService; + + @RequiresPermissions("patient:patientManage:view") + @GetMapping() + public String patientManage() + { + return prefix + "/patientManage"; + } + + /** + * 查询患者管理列表 + */ + @RequiresPermissions("patient:patientManage:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(PatientManage patientManage) + { + startPage(); + List list = patientManageService.selectPatientManageList(patientManage); + return getDataTable(list); + } + + /** + * 导出患者管理列表 + */ + @RequiresPermissions("patient:patientManage:export") + @Log(title = "患者管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(PatientManage patientManage) + { + List list = patientManageService.selectPatientManageList(patientManage); + ExcelUtil util = new ExcelUtil(PatientManage.class); + return util.exportExcel(list, "患者管理数据"); + } + + /** + * 新增患者管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存患者管理 + */ + @RequiresPermissions("patient:patientManage:add") + @Log(title = "患者管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(PatientManage patientManage) + { + return toAjax(patientManageService.insertPatientManage(patientManage)); + } + + /** + * 修改患者管理 + */ + @RequiresPermissions("patient:patientManage:edit") + @GetMapping("/edit/{patientId}") + public String edit(@PathVariable("patientId") Long patientId, ModelMap mmap) + { + PatientManage patientManage = patientManageService.selectPatientManageByPatientId(patientId); + mmap.put("patientManage", patientManage); + return prefix + "/edit"; + } + + /** + * 修改保存患者管理 + */ + @RequiresPermissions("patient:patientManage:edit") + @Log(title = "患者管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(PatientManage patientManage) + { + return toAjax(patientManageService.updatePatientManage(patientManage)); + } + + /** + * 删除患者管理 + */ + @RequiresPermissions("patient:patientManage:remove") + @Log(title = "患者管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(patientManageService.deletePatientManageByPatientIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/NucleicController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/NucleicController.java new file mode 100644 index 0000000..da22803 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/NucleicController.java @@ -0,0 +1,127 @@ +package com.ruoyi.web.controller.supplies; + +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.system.domain.Nucleic; +import com.ruoyi.system.service.INucleicService; +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 ruoyi + * @date 2023-04-22 + */ +@Controller +@RequestMapping("/supplies/nucleic") +public class NucleicController extends BaseController +{ + private String prefix = "supplies/nucleic"; + + @Autowired + private INucleicService nucleicService; + + @RequiresPermissions("supplies:nucleic:view") + @GetMapping() + public String nucleic() + { + return prefix + "/nucleic"; + } + + /** + * 查询核酸管理列表 + */ + @RequiresPermissions("supplies:nucleic:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Nucleic nucleic) + { + startPage(); + List list = nucleicService.selectNucleicList(nucleic); + return getDataTable(list); + } + + /** + * 导出核酸管理列表 + */ + @RequiresPermissions("supplies:nucleic:export") + @Log(title = "核酸管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Nucleic nucleic) + { + List list = nucleicService.selectNucleicList(nucleic); + ExcelUtil util = new ExcelUtil(Nucleic.class); + return util.exportExcel(list, "核酸管理数据"); + } + + /** + * 新增核酸管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存核酸管理 + */ + @RequiresPermissions("supplies:nucleic:add") + @Log(title = "核酸管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Nucleic nucleic) + { + return toAjax(nucleicService.insertNucleic(nucleic)); + } + + /** + * 修改核酸管理 + */ + @RequiresPermissions("supplies:nucleic:edit") + @GetMapping("/edit/{nucleinId}") + public String edit(@PathVariable("nucleinId") Long nucleinId, ModelMap mmap) + { + Nucleic nucleic = nucleicService.selectNucleicByNucleinId(nucleinId); + mmap.put("nucleic", nucleic); + return prefix + "/edit"; + } + + /** + * 修改保存核酸管理 + */ + @RequiresPermissions("supplies:nucleic:edit") + @Log(title = "核酸管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Nucleic nucleic) + { + return toAjax(nucleicService.updateNucleic(nucleic)); + } + + /** + * 删除核酸管理 + */ + @RequiresPermissions("supplies:nucleic:remove") + @Log(title = "核酸管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(nucleicService.deleteNucleicByNucleinIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/VaccineController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/VaccineController.java new file mode 100644 index 0000000..73141f6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/VaccineController.java @@ -0,0 +1,127 @@ +package com.ruoyi.web.controller.supplies; + +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.system.domain.Vaccine; +import com.ruoyi.system.service.IVaccineService; +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 zlx + * @date 2023-04-22 + */ +@Controller +@RequestMapping("/supplies/vaccine") +public class VaccineController extends BaseController +{ + private String prefix = "supplies/vaccine"; + + @Autowired + private IVaccineService vaccineService; + + @RequiresPermissions("supplies:vaccine:view") + @GetMapping() + public String vaccine() + { + return prefix + "/vaccine"; + } + + /** + * 查询疫苗管理列表 + */ + @RequiresPermissions("supplies:vaccine:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Vaccine vaccine) + { + startPage(); + List list = vaccineService.selectVaccineList(vaccine); + return getDataTable(list); + } + + /** + * 导出疫苗管理列表 + */ + @RequiresPermissions("supplies:vaccine:export") + @Log(title = "疫苗管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Vaccine vaccine) + { + List list = vaccineService.selectVaccineList(vaccine); + ExcelUtil util = new ExcelUtil(Vaccine.class); + return util.exportExcel(list, "疫苗管理数据"); + } + + /** + * 新增疫苗管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存疫苗管理 + */ + @RequiresPermissions("supplies:vaccine:add") + @Log(title = "疫苗管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Vaccine vaccine) + { + return toAjax(vaccineService.insertVaccine(vaccine)); + } + + /** + * 修改疫苗管理 + */ + @RequiresPermissions("supplies:vaccine:edit") + @GetMapping("/edit/{vaccineId}") + public String edit(@PathVariable("vaccineId") Long vaccineId, ModelMap mmap) + { + Vaccine vaccine = vaccineService.selectVaccineByVaccineId(vaccineId); + mmap.put("vaccine", vaccine); + return prefix + "/edit"; + } + + /** + * 修改保存疫苗管理 + */ + @RequiresPermissions("supplies:vaccine:edit") + @Log(title = "疫苗管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Vaccine vaccine) + { + return toAjax(vaccineService.updateVaccine(vaccine)); + } + + /** + * 删除疫苗管理 + */ + @RequiresPermissions("supplies:vaccine:remove") + @Log(title = "疫苗管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(vaccineService.deleteVaccineByVaccineIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/resources/templates/check/add.html b/ruoyi-admin/src/main/resources/templates/check/add.html new file mode 100644 index 0000000..86f906c --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/check/add.html @@ -0,0 +1,84 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/check/check.html b/ruoyi-admin/src/main/resources/templates/check/check.html new file mode 100644 index 0000000..e46c173 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/check/check.html @@ -0,0 +1,142 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/check/edit.html b/ruoyi-admin/src/main/resources/templates/check/edit.html new file mode 100644 index 0000000..8fc86e0 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/check/edit.html @@ -0,0 +1,85 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/checkManage/add.html b/ruoyi-admin/src/main/resources/templates/checkManage/add.html new file mode 100644 index 0000000..d374f0f --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/checkManage/add.html @@ -0,0 +1,85 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/checkManage/checkManage.html b/ruoyi-admin/src/main/resources/templates/checkManage/checkManage.html new file mode 100644 index 0000000..54bdfff --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/checkManage/checkManage.html @@ -0,0 +1,162 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/checkManage/edit.html b/ruoyi-admin/src/main/resources/templates/checkManage/edit.html new file mode 100644 index 0000000..d1b0a42 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/checkManage/edit.html @@ -0,0 +1,86 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/patientManage/add.html b/ruoyi-admin/src/main/resources/templates/patientManage/add.html new file mode 100644 index 0000000..cd598ba --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/patientManage/add.html @@ -0,0 +1,102 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/patientManage/edit.html b/ruoyi-admin/src/main/resources/templates/patientManage/edit.html new file mode 100644 index 0000000..4cedb58 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/patientManage/edit.html @@ -0,0 +1,103 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/patientManage/patientManage.html b/ruoyi-admin/src/main/resources/templates/patientManage/patientManage.html new file mode 100644 index 0000000..2c313a2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/patientManage/patientManage.html @@ -0,0 +1,170 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/supplies/nucleic/add.html b/ruoyi-admin/src/main/resources/templates/supplies/nucleic/add.html new file mode 100644 index 0000000..a1c3f94 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/supplies/nucleic/add.html @@ -0,0 +1,43 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/supplies/nucleic/edit.html b/ruoyi-admin/src/main/resources/templates/supplies/nucleic/edit.html new file mode 100644 index 0000000..932faec --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/supplies/nucleic/edit.html @@ -0,0 +1,44 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/supplies/nucleic/nucleic.html b/ruoyi-admin/src/main/resources/templates/supplies/nucleic/nucleic.html new file mode 100644 index 0000000..768869d --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/supplies/nucleic/nucleic.html @@ -0,0 +1,102 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/supplies/vaccine/add.html b/ruoyi-admin/src/main/resources/templates/supplies/vaccine/add.html new file mode 100644 index 0000000..2199dab --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/supplies/vaccine/add.html @@ -0,0 +1,43 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/supplies/vaccine/edit.html b/ruoyi-admin/src/main/resources/templates/supplies/vaccine/edit.html new file mode 100644 index 0000000..dcb53dd --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/supplies/vaccine/edit.html @@ -0,0 +1,44 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/supplies/vaccine/vaccine.html b/ruoyi-admin/src/main/resources/templates/supplies/vaccine/vaccine.html new file mode 100644 index 0000000..cc75e44 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/supplies/vaccine/vaccine.html @@ -0,0 +1,102 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java new file mode 100644 index 0000000..114371e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java @@ -0,0 +1,152 @@ +package com.ruoyi.system.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 个人打卡对象 check + * + * @author zlx + * @date 2023-04-22 + */ +public class Check extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 打卡id */ + private Long checkId; + + /** 打卡人姓名 */ + @Excel(name = "打卡人姓名") + private String checkName; + + /** 体温 */ + @Excel(name = "体温") + private String temperature; + + /** 健康状况 */ + @Excel(name = "健康状况") + private String state; + + /** 是否去过高风险地区 */ + @Excel(name = "是否去过高风险地区") + private Integer isHigh; + + /** 是否接触过密接人员 */ + @Excel(name = "是否接触过密接人员") + private Integer isTouch; + + /** 个人状况描述 */ + @Excel(name = "个人状况描述") + private String description; + + /** 当前时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "当前时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date checkDatetime; + + /** 打卡位置 */ + @Excel(name = "打卡位置") + private String currentPosition; + + public void setCheckId(Long checkId) + { + this.checkId = checkId; + } + + public Long getCheckId() + { + return checkId; + } + public void setCheckName(String checkName) + { + this.checkName = checkName; + } + + public String getCheckName() + { + return checkName; + } + public void setTemperature(String temperature) + { + this.temperature = temperature; + } + + public String getTemperature() + { + return temperature; + } + public void setState(String state) + { + this.state = state; + } + + public String getState() + { + return state; + } + public void setIsHigh(Integer isHigh) + { + this.isHigh = isHigh; + } + + public Integer getIsHigh() + { + return isHigh; + } + public void setIsTouch(Integer isTouch) + { + this.isTouch = isTouch; + } + + public Integer getIsTouch() + { + return isTouch; + } + public void setDescription(String description) + { + this.description = description; + } + + public String getDescription() + { + return description; + } + public void setCheckDatetime(Date checkDatetime) + { + this.checkDatetime = checkDatetime; + } + + public Date getCheckDatetime() + { + return checkDatetime; + } + public void setCurrentPosition(String currentPosition) + { + this.currentPosition = currentPosition; + } + + public String getCurrentPosition() + { + return currentPosition; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("checkId", getCheckId()) + .append("checkName", getCheckName()) + .append("temperature", getTemperature()) + .append("state", getState()) + .append("isHigh", getIsHigh()) + .append("isTouch", getIsTouch()) + .append("description", getDescription()) + .append("checkDatetime", getCheckDatetime()) + .append("currentPosition", getCurrentPosition()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java new file mode 100644 index 0000000..373517b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java @@ -0,0 +1,191 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 打卡管理对象 check_manage + * + * @author ruoyi + * @date 2023-04-22 + */ +public class CheckManage extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 打卡管理ID */ + private Long checkManageId; + + /** 打卡人姓名 */ + @Excel(name = "打卡人姓名") + private String checkName; + + /** 打卡人年龄 */ + @Excel(name = "打卡人年龄") + private String checkAge; + + /** 打卡人性别 */ + @Excel(name = "打卡人性别") + private Integer checkSex; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String patientPhone; + + /** 确诊状态 */ + @Excel(name = "确诊状态") + private Integer isDiagnosed; + + /** 治愈状态 */ + @Excel(name = "治愈状态") + private Integer isCure; + + /** 密接状态 */ + @Excel(name = "密接状态") + private Integer isTouch; + + /** 死亡状态 */ + @Excel(name = "死亡状态") + private Integer isDead; + + /** 备注 */ + @Excel(name = "备注") + private String description; + + /** 最近接触地区 */ + @Excel(name = "最近接触地区") + private String checkPostition; + + /** 体温 */ + @Excel(name = "体温") + private String temperature; + + public void setCheckManageId(Long checkManageId) + { + this.checkManageId = checkManageId; + } + + public Long getCheckManageId() + { + return checkManageId; + } + public void setCheckName(String checkName) + { + this.checkName = checkName; + } + + public String getCheckName() + { + return checkName; + } + public void setCheckAge(String checkAge) + { + this.checkAge = checkAge; + } + + public String getCheckAge() + { + return checkAge; + } + public void setCheckSex(Integer checkSex) + { + this.checkSex = checkSex; + } + + public Integer getCheckSex() + { + return checkSex; + } + public void setPatientPhone(String patientPhone) + { + this.patientPhone = patientPhone; + } + + public String getPatientPhone() + { + return patientPhone; + } + public void setIsDiagnosed(Integer isDiagnosed) + { + this.isDiagnosed = isDiagnosed; + } + + public Integer getIsDiagnosed() + { + return isDiagnosed; + } + public void setIsCure(Integer isCure) + { + this.isCure = isCure; + } + + public Integer getIsCure() + { + return isCure; + } + public void setIsTouch(Integer isTouch) + { + this.isTouch = isTouch; + } + + public Integer getIsTouch() + { + return isTouch; + } + public void setIsDead(Integer isDead) + { + this.isDead = isDead; + } + + public Integer getIsDead() + { + return isDead; + } + public void setDescription(String description) + { + this.description = description; + } + + public String getDescription() + { + return description; + } + public void setCheckPostition(String checkPostition) + { + this.checkPostition = checkPostition; + } + + public String getCheckPostition() + { + return checkPostition; + } + public void setTemperature(String temperature) + { + this.temperature = temperature; + } + + public String getTemperature() + { + return temperature; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("checkManageId", getCheckManageId()) + .append("checkName", getCheckName()) + .append("checkAge", getCheckAge()) + .append("checkSex", getCheckSex()) + .append("patientPhone", getPatientPhone()) + .append("isDiagnosed", getIsDiagnosed()) + .append("isCure", getIsCure()) + .append("isTouch", getIsTouch()) + .append("isDead", getIsDead()) + .append("description", getDescription()) + .append("checkPostition", getCheckPostition()) + .append("temperature", getTemperature()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Nucleic.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Nucleic.java new file mode 100644 index 0000000..f850c15 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Nucleic.java @@ -0,0 +1,79 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 核酸管理对象 nucleic + * + * @author ruoyi + * @date 2023-04-22 + */ +public class Nucleic extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 核酸ID */ + private Long nucleinId; + + /** 核酸名字 */ + @Excel(name = "核酸名字") + private String nucleinName; + + /** 核酸数量 */ + @Excel(name = "核酸数量") + private String nucleinNumber; + + /** 核酸描述 */ + @Excel(name = "核酸描述") + private String nucleinDescription; + + public void setNucleinId(Long nucleinId) + { + this.nucleinId = nucleinId; + } + + public Long getNucleinId() + { + return nucleinId; + } + public void setNucleinName(String nucleinName) + { + this.nucleinName = nucleinName; + } + + public String getNucleinName() + { + return nucleinName; + } + public void setNucleinNumber(String nucleinNumber) + { + this.nucleinNumber = nucleinNumber; + } + + public String getNucleinNumber() + { + return nucleinNumber; + } + public void setNucleinDescription(String nucleinDescription) + { + this.nucleinDescription = nucleinDescription; + } + + public String getNucleinDescription() + { + return nucleinDescription; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("nucleinId", getNucleinId()) + .append("nucleinName", getNucleinName()) + .append("nucleinNumber", getNucleinNumber()) + .append("nucleinDescription", getNucleinDescription()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/PatientManage.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/PatientManage.java new file mode 100644 index 0000000..e7059a9 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/PatientManage.java @@ -0,0 +1,208 @@ +package com.ruoyi.system.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 患者管理对象 patient_manage + * + * @author zlx + * @date 2023-04-22 + */ +public class PatientManage extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 患者ID */ + private Long patientId; + + /** 患者姓名 */ + @Excel(name = "患者姓名") + private String patientName; + + /** 患者年龄 */ + @Excel(name = "患者年龄") + private String patientAge; + + /** 患者性别 */ + @Excel(name = "患者性别") + private String patientSex; + + /** 患者联系电话 */ + @Excel(name = "患者联系电话") + private String patientPhone; + + /** 备注 */ + @Excel(name = "备注") + private String description; + + /** 最近感染地区 */ + @Excel(name = "最近感染地区") + private String currenPostition; + + /** 当天体温 */ + @Excel(name = "当天体温") + private String temperature; + + /** 感染时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "感染时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date diagonosedTime; + + /** 确诊状态 */ + @Excel(name = "确诊状态") + private Integer isDiagnosed; + + /** 治愈状态 */ + @Excel(name = "治愈状态") + private Integer isCure; + + /** 密接状态 */ + @Excel(name = "密接状态") + private Integer isTouch; + + /** 死亡状态 */ + @Excel(name = "死亡状态") + private Integer isDead; + + public void setPatientId(Long patientId) + { + this.patientId = patientId; + } + + public Long getPatientId() + { + return patientId; + } + public void setPatientName(String patientName) + { + this.patientName = patientName; + } + + public String getPatientName() + { + return patientName; + } + public void setPatientAge(String patientAge) + { + this.patientAge = patientAge; + } + + public String getPatientAge() + { + return patientAge; + } + public void setPatientSex(String patientSex) + { + this.patientSex = patientSex; + } + + public String getPatientSex() + { + return patientSex; + } + public void setPatientPhone(String patientPhone) + { + this.patientPhone = patientPhone; + } + + public String getPatientPhone() + { + return patientPhone; + } + public void setDescription(String description) + { + this.description = description; + } + + public String getDescription() + { + return description; + } + public void setCurrenPostition(String currenPostition) + { + this.currenPostition = currenPostition; + } + + public String getCurrenPostition() + { + return currenPostition; + } + public void setTemperature(String temperature) + { + this.temperature = temperature; + } + + public String getTemperature() + { + return temperature; + } + public void setDiagonosedTime(Date diagonosedTime) + { + this.diagonosedTime = diagonosedTime; + } + + public Date getDiagonosedTime() + { + return diagonosedTime; + } + public void setIsDiagnosed(Integer isDiagnosed) + { + this.isDiagnosed = isDiagnosed; + } + + public Integer getIsDiagnosed() + { + return isDiagnosed; + } + public void setIsCure(Integer isCure) + { + this.isCure = isCure; + } + + public Integer getIsCure() + { + return isCure; + } + public void setIsTouch(Integer isTouch) + { + this.isTouch = isTouch; + } + + public Integer getIsTouch() + { + return isTouch; + } + public void setIsDead(Integer isDead) + { + this.isDead = isDead; + } + + public Integer getIsDead() + { + return isDead; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("patientId", getPatientId()) + .append("patientName", getPatientName()) + .append("patientAge", getPatientAge()) + .append("patientSex", getPatientSex()) + .append("patientPhone", getPatientPhone()) + .append("description", getDescription()) + .append("currenPostition", getCurrenPostition()) + .append("temperature", getTemperature()) + .append("diagonosedTime", getDiagonosedTime()) + .append("isDiagnosed", getIsDiagnosed()) + .append("isCure", getIsCure()) + .append("isTouch", getIsTouch()) + .append("isDead", getIsDead()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Vaccine.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Vaccine.java new file mode 100644 index 0000000..e84811a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Vaccine.java @@ -0,0 +1,79 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 疫苗管理对象 vaccine + * + * @author zlx + * @date 2023-04-22 + */ +public class Vaccine extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 疫苗d */ + private Long vaccineId; + + /** 疫苗数量 */ + @Excel(name = "疫苗数量") + private String vaccineNumber; + + /** 疫苗描述 */ + @Excel(name = "疫苗描述") + private String vaccineDescription; + + /** 疫苗名字 */ + @Excel(name = "疫苗名字") + private String vaccineName; + + public void setVaccineId(Long vaccineId) + { + this.vaccineId = vaccineId; + } + + public Long getVaccineId() + { + return vaccineId; + } + public void setVaccineNumber(String vaccineNumber) + { + this.vaccineNumber = vaccineNumber; + } + + public String getVaccineNumber() + { + return vaccineNumber; + } + public void setVaccineDescription(String vaccineDescription) + { + this.vaccineDescription = vaccineDescription; + } + + public String getVaccineDescription() + { + return vaccineDescription; + } + public void setVaccineName(String vaccineName) + { + this.vaccineName = vaccineName; + } + + public String getVaccineName() + { + return vaccineName; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("vaccineId", getVaccineId()) + .append("vaccineNumber", getVaccineNumber()) + .append("vaccineDescription", getVaccineDescription()) + .append("vaccineName", getVaccineName()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java new file mode 100644 index 0000000..b69759f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.CheckManage; + +/** + * 打卡管理Mapper接口 + * + * @author ruoyi + * @date 2023-04-22 + */ +public interface CheckManageMapper +{ + /** + * 查询打卡管理 + * + * @param checkManageId 打卡管理主键 + * @return 打卡管理 + */ + public CheckManage selectCheckManageByCheckManageId(Long checkManageId); + + /** + * 查询打卡管理列表 + * + * @param checkManage 打卡管理 + * @return 打卡管理集合 + */ + public List selectCheckManageList(CheckManage checkManage); + + /** + * 新增打卡管理 + * + * @param checkManage 打卡管理 + * @return 结果 + */ + public int insertCheckManage(CheckManage checkManage); + + /** + * 修改打卡管理 + * + * @param checkManage 打卡管理 + * @return 结果 + */ + public int updateCheckManage(CheckManage checkManage); + + /** + * 删除打卡管理 + * + * @param checkManageId 打卡管理主键 + * @return 结果 + */ + public int deleteCheckManageByCheckManageId(Long checkManageId); + + /** + * 批量删除打卡管理 + * + * @param checkManageIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteCheckManageByCheckManageIds(String[] checkManageIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java new file mode 100644 index 0000000..a74b4f4 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Check; + +/** + * 个人打卡Mapper接口 + * + * @author zlx + * @date 2023-04-22 + */ +public interface CheckMapper +{ + /** + * 查询个人打卡 + * + * @param checkId 个人打卡主键 + * @return 个人打卡 + */ + public Check selectCheckByCheckId(Long checkId); + + /** + * 查询个人打卡列表 + * + * @param check 个人打卡 + * @return 个人打卡集合 + */ + public List selectCheckList(Check check); + + /** + * 新增个人打卡 + * + * @param check 个人打卡 + * @return 结果 + */ + public int insertCheck(Check check); + + /** + * 修改个人打卡 + * + * @param check 个人打卡 + * @return 结果 + */ + public int updateCheck(Check check); + + /** + * 删除个人打卡 + * + * @param checkId 个人打卡主键 + * @return 结果 + */ + public int deleteCheckByCheckId(Long checkId); + + /** + * 批量删除个人打卡 + * + * @param checkIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteCheckByCheckIds(String[] checkIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/NucleicMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/NucleicMapper.java new file mode 100644 index 0000000..c140895 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/NucleicMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Nucleic; + +/** + * 核酸管理Mapper接口 + * + * @author ruoyi + * @date 2023-04-22 + */ +public interface NucleicMapper +{ + /** + * 查询核酸管理 + * + * @param nucleinId 核酸管理主键 + * @return 核酸管理 + */ + public Nucleic selectNucleicByNucleinId(Long nucleinId); + + /** + * 查询核酸管理列表 + * + * @param nucleic 核酸管理 + * @return 核酸管理集合 + */ + public List selectNucleicList(Nucleic nucleic); + + /** + * 新增核酸管理 + * + * @param nucleic 核酸管理 + * @return 结果 + */ + public int insertNucleic(Nucleic nucleic); + + /** + * 修改核酸管理 + * + * @param nucleic 核酸管理 + * @return 结果 + */ + public int updateNucleic(Nucleic nucleic); + + /** + * 删除核酸管理 + * + * @param nucleinId 核酸管理主键 + * @return 结果 + */ + public int deleteNucleicByNucleinId(Long nucleinId); + + /** + * 批量删除核酸管理 + * + * @param nucleinIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteNucleicByNucleinIds(String[] nucleinIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/PatientManageMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/PatientManageMapper.java new file mode 100644 index 0000000..1f7f01d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/PatientManageMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.PatientManage; + +/** + * 患者管理Mapper接口 + * + * @author zlx + * @date 2023-04-22 + */ +public interface PatientManageMapper +{ + /** + * 查询患者管理 + * + * @param patientId 患者管理主键 + * @return 患者管理 + */ + public PatientManage selectPatientManageByPatientId(Long patientId); + + /** + * 查询患者管理列表 + * + * @param patientManage 患者管理 + * @return 患者管理集合 + */ + public List selectPatientManageList(PatientManage patientManage); + + /** + * 新增患者管理 + * + * @param patientManage 患者管理 + * @return 结果 + */ + public int insertPatientManage(PatientManage patientManage); + + /** + * 修改患者管理 + * + * @param patientManage 患者管理 + * @return 结果 + */ + public int updatePatientManage(PatientManage patientManage); + + /** + * 删除患者管理 + * + * @param patientId 患者管理主键 + * @return 结果 + */ + public int deletePatientManageByPatientId(Long patientId); + + /** + * 批量删除患者管理 + * + * @param patientIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePatientManageByPatientIds(String[] patientIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/VaccineMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/VaccineMapper.java new file mode 100644 index 0000000..43f07d9 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/VaccineMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Vaccine; + +/** + * 疫苗管理Mapper接口 + * + * @author zlx + * @date 2023-04-22 + */ +public interface VaccineMapper +{ + /** + * 查询疫苗管理 + * + * @param vaccineId 疫苗管理主键 + * @return 疫苗管理 + */ + public Vaccine selectVaccineByVaccineId(Long vaccineId); + + /** + * 查询疫苗管理列表 + * + * @param vaccine 疫苗管理 + * @return 疫苗管理集合 + */ + public List selectVaccineList(Vaccine vaccine); + + /** + * 新增疫苗管理 + * + * @param vaccine 疫苗管理 + * @return 结果 + */ + public int insertVaccine(Vaccine vaccine); + + /** + * 修改疫苗管理 + * + * @param vaccine 疫苗管理 + * @return 结果 + */ + public int updateVaccine(Vaccine vaccine); + + /** + * 删除疫苗管理 + * + * @param vaccineId 疫苗管理主键 + * @return 结果 + */ + public int deleteVaccineByVaccineId(Long vaccineId); + + /** + * 批量删除疫苗管理 + * + * @param vaccineIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteVaccineByVaccineIds(String[] vaccineIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckManageService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckManageService.java new file mode 100644 index 0000000..1feff3b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckManageService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.CheckManage; + +/** + * 打卡管理Service接口 + * + * @author ruoyi + * @date 2023-04-22 + */ +public interface ICheckManageService +{ + /** + * 查询打卡管理 + * + * @param checkManageId 打卡管理主键 + * @return 打卡管理 + */ + public CheckManage selectCheckManageByCheckManageId(Long checkManageId); + + /** + * 查询打卡管理列表 + * + * @param checkManage 打卡管理 + * @return 打卡管理集合 + */ + public List selectCheckManageList(CheckManage checkManage); + + /** + * 新增打卡管理 + * + * @param checkManage 打卡管理 + * @return 结果 + */ + public int insertCheckManage(CheckManage checkManage); + + /** + * 修改打卡管理 + * + * @param checkManage 打卡管理 + * @return 结果 + */ + public int updateCheckManage(CheckManage checkManage); + + /** + * 批量删除打卡管理 + * + * @param checkManageIds 需要删除的打卡管理主键集合 + * @return 结果 + */ + public int deleteCheckManageByCheckManageIds(String checkManageIds); + + /** + * 删除打卡管理信息 + * + * @param checkManageId 打卡管理主键 + * @return 结果 + */ + public int deleteCheckManageByCheckManageId(Long checkManageId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java new file mode 100644 index 0000000..77a8738 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.Check; + +/** + * 个人打卡Service接口 + * + * @author zlx + * @date 2023-04-22 + */ +public interface ICheckService +{ + /** + * 查询个人打卡 + * + * @param checkId 个人打卡主键 + * @return 个人打卡 + */ + public Check selectCheckByCheckId(Long checkId); + + /** + * 查询个人打卡列表 + * + * @param check 个人打卡 + * @return 个人打卡集合 + */ + public List selectCheckList(Check check); + + /** + * 新增个人打卡 + * + * @param check 个人打卡 + * @return 结果 + */ + public int insertCheck(Check check); + + /** + * 修改个人打卡 + * + * @param check 个人打卡 + * @return 结果 + */ + public int updateCheck(Check check); + + /** + * 批量删除个人打卡 + * + * @param checkIds 需要删除的个人打卡主键集合 + * @return 结果 + */ + public int deleteCheckByCheckIds(String checkIds); + + /** + * 删除个人打卡信息 + * + * @param checkId 个人打卡主键 + * @return 结果 + */ + public int deleteCheckByCheckId(Long checkId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/INucleicService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/INucleicService.java new file mode 100644 index 0000000..45412c5 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/INucleicService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.Nucleic; + +/** + * 核酸管理Service接口 + * + * @author ruoyi + * @date 2023-04-22 + */ +public interface INucleicService +{ + /** + * 查询核酸管理 + * + * @param nucleinId 核酸管理主键 + * @return 核酸管理 + */ + public Nucleic selectNucleicByNucleinId(Long nucleinId); + + /** + * 查询核酸管理列表 + * + * @param nucleic 核酸管理 + * @return 核酸管理集合 + */ + public List selectNucleicList(Nucleic nucleic); + + /** + * 新增核酸管理 + * + * @param nucleic 核酸管理 + * @return 结果 + */ + public int insertNucleic(Nucleic nucleic); + + /** + * 修改核酸管理 + * + * @param nucleic 核酸管理 + * @return 结果 + */ + public int updateNucleic(Nucleic nucleic); + + /** + * 批量删除核酸管理 + * + * @param nucleinIds 需要删除的核酸管理主键集合 + * @return 结果 + */ + public int deleteNucleicByNucleinIds(String nucleinIds); + + /** + * 删除核酸管理信息 + * + * @param nucleinId 核酸管理主键 + * @return 结果 + */ + public int deleteNucleicByNucleinId(Long nucleinId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IPatientManageService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IPatientManageService.java new file mode 100644 index 0000000..3c485b6 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IPatientManageService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.PatientManage; + +/** + * 患者管理Service接口 + * + * @author zlx + * @date 2023-04-22 + */ +public interface IPatientManageService +{ + /** + * 查询患者管理 + * + * @param patientId 患者管理主键 + * @return 患者管理 + */ + public PatientManage selectPatientManageByPatientId(Long patientId); + + /** + * 查询患者管理列表 + * + * @param patientManage 患者管理 + * @return 患者管理集合 + */ + public List selectPatientManageList(PatientManage patientManage); + + /** + * 新增患者管理 + * + * @param patientManage 患者管理 + * @return 结果 + */ + public int insertPatientManage(PatientManage patientManage); + + /** + * 修改患者管理 + * + * @param patientManage 患者管理 + * @return 结果 + */ + public int updatePatientManage(PatientManage patientManage); + + /** + * 批量删除患者管理 + * + * @param patientIds 需要删除的患者管理主键集合 + * @return 结果 + */ + public int deletePatientManageByPatientIds(String patientIds); + + /** + * 删除患者管理信息 + * + * @param patientId 患者管理主键 + * @return 结果 + */ + public int deletePatientManageByPatientId(Long patientId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IVaccineService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IVaccineService.java new file mode 100644 index 0000000..c8c1450 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IVaccineService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.Vaccine; + +/** + * 疫苗管理Service接口 + * + * @author zlx + * @date 2023-04-22 + */ +public interface IVaccineService +{ + /** + * 查询疫苗管理 + * + * @param vaccineId 疫苗管理主键 + * @return 疫苗管理 + */ + public Vaccine selectVaccineByVaccineId(Long vaccineId); + + /** + * 查询疫苗管理列表 + * + * @param vaccine 疫苗管理 + * @return 疫苗管理集合 + */ + public List selectVaccineList(Vaccine vaccine); + + /** + * 新增疫苗管理 + * + * @param vaccine 疫苗管理 + * @return 结果 + */ + public int insertVaccine(Vaccine vaccine); + + /** + * 修改疫苗管理 + * + * @param vaccine 疫苗管理 + * @return 结果 + */ + public int updateVaccine(Vaccine vaccine); + + /** + * 批量删除疫苗管理 + * + * @param vaccineIds 需要删除的疫苗管理主键集合 + * @return 结果 + */ + public int deleteVaccineByVaccineIds(String vaccineIds); + + /** + * 删除疫苗管理信息 + * + * @param vaccineId 疫苗管理主键 + * @return 结果 + */ + public int deleteVaccineByVaccineId(Long vaccineId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java new file mode 100644 index 0000000..a62d064 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.CheckManageMapper; +import com.ruoyi.system.domain.CheckManage; +import com.ruoyi.system.service.ICheckManageService; +import com.ruoyi.common.core.text.Convert; + +/** + * 打卡管理Service业务层处理 + * + * @author ruoyi + * @date 2023-04-22 + */ +@Service +public class CheckManageServiceImpl implements ICheckManageService +{ + @Autowired + private CheckManageMapper checkManageMapper; + + /** + * 查询打卡管理 + * + * @param checkManageId 打卡管理主键 + * @return 打卡管理 + */ + @Override + public CheckManage selectCheckManageByCheckManageId(Long checkManageId) + { + return checkManageMapper.selectCheckManageByCheckManageId(checkManageId); + } + + /** + * 查询打卡管理列表 + * + * @param checkManage 打卡管理 + * @return 打卡管理 + */ + @Override + public List selectCheckManageList(CheckManage checkManage) + { + return checkManageMapper.selectCheckManageList(checkManage); + } + + /** + * 新增打卡管理 + * + * @param checkManage 打卡管理 + * @return 结果 + */ + @Override + public int insertCheckManage(CheckManage checkManage) + { + return checkManageMapper.insertCheckManage(checkManage); + } + + /** + * 修改打卡管理 + * + * @param checkManage 打卡管理 + * @return 结果 + */ + @Override + public int updateCheckManage(CheckManage checkManage) + { + return checkManageMapper.updateCheckManage(checkManage); + } + + /** + * 批量删除打卡管理 + * + * @param checkManageIds 需要删除的打卡管理主键 + * @return 结果 + */ + @Override + public int deleteCheckManageByCheckManageIds(String checkManageIds) + { + return checkManageMapper.deleteCheckManageByCheckManageIds(Convert.toStrArray(checkManageIds)); + } + + /** + * 删除打卡管理信息 + * + * @param checkManageId 打卡管理主键 + * @return 结果 + */ + @Override + public int deleteCheckManageByCheckManageId(Long checkManageId) + { + return checkManageMapper.deleteCheckManageByCheckManageId(checkManageId); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java new file mode 100644 index 0000000..1253404 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.CheckMapper; +import com.ruoyi.system.domain.Check; +import com.ruoyi.system.service.ICheckService; +import com.ruoyi.common.core.text.Convert; + +/** + * 个人打卡Service业务层处理 + * + * @author zlx + * @date 2023-04-22 + */ +@Service +public class CheckServiceImpl implements ICheckService +{ + @Autowired + private CheckMapper checkMapper; + + /** + * 查询个人打卡 + * + * @param checkId 个人打卡主键 + * @return 个人打卡 + */ + @Override + public Check selectCheckByCheckId(Long checkId) + { + return checkMapper.selectCheckByCheckId(checkId); + } + + /** + * 查询个人打卡列表 + * + * @param check 个人打卡 + * @return 个人打卡 + */ + @Override + public List selectCheckList(Check check) + { + return checkMapper.selectCheckList(check); + } + + /** + * 新增个人打卡 + * + * @param check 个人打卡 + * @return 结果 + */ + @Override + public int insertCheck(Check check) + { + return checkMapper.insertCheck(check); + } + + /** + * 修改个人打卡 + * + * @param check 个人打卡 + * @return 结果 + */ + @Override + public int updateCheck(Check check) + { + return checkMapper.updateCheck(check); + } + + /** + * 批量删除个人打卡 + * + * @param checkIds 需要删除的个人打卡主键 + * @return 结果 + */ + @Override + public int deleteCheckByCheckIds(String checkIds) + { + return checkMapper.deleteCheckByCheckIds(Convert.toStrArray(checkIds)); + } + + /** + * 删除个人打卡信息 + * + * @param checkId 个人打卡主键 + * @return 结果 + */ + @Override + public int deleteCheckByCheckId(Long checkId) + { + return checkMapper.deleteCheckByCheckId(checkId); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/NucleicServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/NucleicServiceImpl.java new file mode 100644 index 0000000..b287681 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/NucleicServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NucleicMapper; +import com.ruoyi.system.domain.Nucleic; +import com.ruoyi.system.service.INucleicService; +import com.ruoyi.common.core.text.Convert; + +/** + * 核酸管理Service业务层处理 + * + * @author ruoyi + * @date 2023-04-22 + */ +@Service +public class NucleicServiceImpl implements INucleicService +{ + @Autowired + private NucleicMapper nucleicMapper; + + /** + * 查询核酸管理 + * + * @param nucleinId 核酸管理主键 + * @return 核酸管理 + */ + @Override + public Nucleic selectNucleicByNucleinId(Long nucleinId) + { + return nucleicMapper.selectNucleicByNucleinId(nucleinId); + } + + /** + * 查询核酸管理列表 + * + * @param nucleic 核酸管理 + * @return 核酸管理 + */ + @Override + public List selectNucleicList(Nucleic nucleic) + { + return nucleicMapper.selectNucleicList(nucleic); + } + + /** + * 新增核酸管理 + * + * @param nucleic 核酸管理 + * @return 结果 + */ + @Override + public int insertNucleic(Nucleic nucleic) + { + return nucleicMapper.insertNucleic(nucleic); + } + + /** + * 修改核酸管理 + * + * @param nucleic 核酸管理 + * @return 结果 + */ + @Override + public int updateNucleic(Nucleic nucleic) + { + return nucleicMapper.updateNucleic(nucleic); + } + + /** + * 批量删除核酸管理 + * + * @param nucleinIds 需要删除的核酸管理主键 + * @return 结果 + */ + @Override + public int deleteNucleicByNucleinIds(String nucleinIds) + { + return nucleicMapper.deleteNucleicByNucleinIds(Convert.toStrArray(nucleinIds)); + } + + /** + * 删除核酸管理信息 + * + * @param nucleinId 核酸管理主键 + * @return 结果 + */ + @Override + public int deleteNucleicByNucleinId(Long nucleinId) + { + return nucleicMapper.deleteNucleicByNucleinId(nucleinId); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PatientManageServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PatientManageServiceImpl.java new file mode 100644 index 0000000..b5649f2 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PatientManageServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.PatientManageMapper; +import com.ruoyi.system.domain.PatientManage; +import com.ruoyi.system.service.IPatientManageService; +import com.ruoyi.common.core.text.Convert; + +/** + * 患者管理Service业务层处理 + * + * @author zlx + * @date 2023-04-22 + */ +@Service +public class PatientManageServiceImpl implements IPatientManageService +{ + @Autowired + private PatientManageMapper patientManageMapper; + + /** + * 查询患者管理 + * + * @param patientId 患者管理主键 + * @return 患者管理 + */ + @Override + public PatientManage selectPatientManageByPatientId(Long patientId) + { + return patientManageMapper.selectPatientManageByPatientId(patientId); + } + + /** + * 查询患者管理列表 + * + * @param patientManage 患者管理 + * @return 患者管理 + */ + @Override + public List selectPatientManageList(PatientManage patientManage) + { + return patientManageMapper.selectPatientManageList(patientManage); + } + + /** + * 新增患者管理 + * + * @param patientManage 患者管理 + * @return 结果 + */ + @Override + public int insertPatientManage(PatientManage patientManage) + { + return patientManageMapper.insertPatientManage(patientManage); + } + + /** + * 修改患者管理 + * + * @param patientManage 患者管理 + * @return 结果 + */ + @Override + public int updatePatientManage(PatientManage patientManage) + { + return patientManageMapper.updatePatientManage(patientManage); + } + + /** + * 批量删除患者管理 + * + * @param patientIds 需要删除的患者管理主键 + * @return 结果 + */ + @Override + public int deletePatientManageByPatientIds(String patientIds) + { + return patientManageMapper.deletePatientManageByPatientIds(Convert.toStrArray(patientIds)); + } + + /** + * 删除患者管理信息 + * + * @param patientId 患者管理主键 + * @return 结果 + */ + @Override + public int deletePatientManageByPatientId(Long patientId) + { + return patientManageMapper.deletePatientManageByPatientId(patientId); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VaccineServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VaccineServiceImpl.java new file mode 100644 index 0000000..b9e1cea --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VaccineServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.VaccineMapper; +import com.ruoyi.system.domain.Vaccine; +import com.ruoyi.system.service.IVaccineService; +import com.ruoyi.common.core.text.Convert; + +/** + * 疫苗管理Service业务层处理 + * + * @author zlx + * @date 2023-04-22 + */ +@Service +public class VaccineServiceImpl implements IVaccineService +{ + @Autowired + private VaccineMapper vaccineMapper; + + /** + * 查询疫苗管理 + * + * @param vaccineId 疫苗管理主键 + * @return 疫苗管理 + */ + @Override + public Vaccine selectVaccineByVaccineId(Long vaccineId) + { + return vaccineMapper.selectVaccineByVaccineId(vaccineId); + } + + /** + * 查询疫苗管理列表 + * + * @param vaccine 疫苗管理 + * @return 疫苗管理 + */ + @Override + public List selectVaccineList(Vaccine vaccine) + { + return vaccineMapper.selectVaccineList(vaccine); + } + + /** + * 新增疫苗管理 + * + * @param vaccine 疫苗管理 + * @return 结果 + */ + @Override + public int insertVaccine(Vaccine vaccine) + { + return vaccineMapper.insertVaccine(vaccine); + } + + /** + * 修改疫苗管理 + * + * @param vaccine 疫苗管理 + * @return 结果 + */ + @Override + public int updateVaccine(Vaccine vaccine) + { + return vaccineMapper.updateVaccine(vaccine); + } + + /** + * 批量删除疫苗管理 + * + * @param vaccineIds 需要删除的疫苗管理主键 + * @return 结果 + */ + @Override + public int deleteVaccineByVaccineIds(String vaccineIds) + { + return vaccineMapper.deleteVaccineByVaccineIds(Convert.toStrArray(vaccineIds)); + } + + /** + * 删除疫苗管理信息 + * + * @param vaccineId 疫苗管理主键 + * @return 结果 + */ + @Override + public int deleteVaccineByVaccineId(Long vaccineId) + { + return vaccineMapper.deleteVaccineByVaccineId(vaccineId); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml b/ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml new file mode 100644 index 0000000..81bd41c --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + select check_manage_id, check_name, check_age, check_sex, patient_phone, is_diagnosed, is_cure, is_touch, is_dead, description, check_postition, temperature from check_manage + + + + + + + + insert into check_manage + + check_name, + check_age, + check_sex, + patient_phone, + is_diagnosed, + is_cure, + is_touch, + is_dead, + description, + check_postition, + temperature, + + + #{checkName}, + #{checkAge}, + #{checkSex}, + #{patientPhone}, + #{isDiagnosed}, + #{isCure}, + #{isTouch}, + #{isDead}, + #{description}, + #{checkPostition}, + #{temperature}, + + + + + update check_manage + + check_name = #{checkName}, + check_age = #{checkAge}, + check_sex = #{checkSex}, + patient_phone = #{patientPhone}, + is_diagnosed = #{isDiagnosed}, + is_cure = #{isCure}, + is_touch = #{isTouch}, + is_dead = #{isDead}, + description = #{description}, + check_postition = #{checkPostition}, + temperature = #{temperature}, + + where check_manage_id = #{checkManageId} + + + + delete from check_manage where check_manage_id = #{checkManageId} + + + + delete from check_manage where check_manage_id in + + #{checkManageId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/CheckMapper.xml b/ruoyi-system/src/main/resources/mapper/CheckMapper.xml new file mode 100644 index 0000000..9c5dbfa --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/CheckMapper.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + select check_id, check_name, temperature, state, is_high, is_touch, description, check_datetime, current_position from check + + + + + + + + insert into check + + check_name, + temperature, + state, + is_high, + is_touch, + description, + check_datetime, + current_position, + + + #{checkName}, + #{temperature}, + #{state}, + #{isHigh}, + #{isTouch}, + #{description}, + #{checkDatetime}, + #{currentPosition}, + + + + + update check + + check_name = #{checkName}, + temperature = #{temperature}, + state = #{state}, + is_high = #{isHigh}, + is_touch = #{isTouch}, + description = #{description}, + check_datetime = #{checkDatetime}, + current_position = #{currentPosition}, + + where check_id = #{checkId} + + + + delete from check where check_id = #{checkId} + + + + delete from check where check_id in + + #{checkId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml b/ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml new file mode 100644 index 0000000..5f18451 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + select patient_id, patient_name, patient_age, patient_sex, patient_phone, description, curren_postition, temperature, diagonosed_time, is_diagnosed, is_cure, is_touch, is_dead from patient_manage + + + + + + + + insert into patient_manage + + patient_name, + patient_age, + patient_sex, + patient_phone, + description, + curren_postition, + temperature, + diagonosed_time, + is_diagnosed, + is_cure, + is_touch, + is_dead, + + + #{patientName}, + #{patientAge}, + #{patientSex}, + #{patientPhone}, + #{description}, + #{currenPostition}, + #{temperature}, + #{diagonosedTime}, + #{isDiagnosed}, + #{isCure}, + #{isTouch}, + #{isDead}, + + + + + update patient_manage + + patient_name = #{patientName}, + patient_age = #{patientAge}, + patient_sex = #{patientSex}, + patient_phone = #{patientPhone}, + description = #{description}, + curren_postition = #{currenPostition}, + temperature = #{temperature}, + diagonosed_time = #{diagonosedTime}, + is_diagnosed = #{isDiagnosed}, + is_cure = #{isCure}, + is_touch = #{isTouch}, + is_dead = #{isDead}, + + where patient_id = #{patientId} + + + + delete from patient_manage where patient_id = #{patientId} + + + + delete from patient_manage where patient_id in + + #{patientId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/suppliesManage/NucleicMapper.xml b/ruoyi-system/src/main/resources/mapper/suppliesManage/NucleicMapper.xml new file mode 100644 index 0000000..0183291 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/suppliesManage/NucleicMapper.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + select nuclein_id, nuclein_name, nuclein_number, nuclein_description from nucleic + + + + + + + + insert into nucleic + + nuclein_name, + nuclein_number, + nuclein_description, + + + #{nucleinName}, + #{nucleinNumber}, + #{nucleinDescription}, + + + + + update nucleic + + nuclein_name = #{nucleinName}, + nuclein_number = #{nucleinNumber}, + nuclein_description = #{nucleinDescription}, + + where nuclein_id = #{nucleinId} + + + + delete from nucleic where nuclein_id = #{nucleinId} + + + + delete from nucleic where nuclein_id in + + #{nucleinId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/suppliesManage/VaccineMapper.xml b/ruoyi-system/src/main/resources/mapper/suppliesManage/VaccineMapper.xml new file mode 100644 index 0000000..d9319d0 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/suppliesManage/VaccineMapper.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + select vaccine_id, vaccine_number, vaccine_description, vaccine_name from vaccine + + + + + + + + insert into vaccine + + vaccine_number, + vaccine_description, + vaccine_name, + + + #{vaccineNumber}, + #{vaccineDescription}, + #{vaccineName}, + + + + + update vaccine + + vaccine_number = #{vaccineNumber}, + vaccine_description = #{vaccineDescription}, + vaccine_name = #{vaccineName}, + + where vaccine_id = #{vaccineId} + + + + delete from vaccine where vaccine_id = #{vaccineId} + + + + delete from vaccine where vaccine_id in + + #{vaccineId} + + + + \ No newline at end of file