Browse Source

增加剩余功能模块

ry
loser 1 year ago
parent
commit
0f53613e9e
  1. 127
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckController.java
  2. 127
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/CheckManageController.java
  3. 127
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/PatientManageController.java
  4. 127
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/NucleicController.java
  5. 127
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/supplies/VaccineController.java
  6. 84
      ruoyi-admin/src/main/resources/templates/check/add.html
  7. 142
      ruoyi-admin/src/main/resources/templates/check/check.html
  8. 85
      ruoyi-admin/src/main/resources/templates/check/edit.html
  9. 85
      ruoyi-admin/src/main/resources/templates/checkManage/add.html
  10. 162
      ruoyi-admin/src/main/resources/templates/checkManage/checkManage.html
  11. 86
      ruoyi-admin/src/main/resources/templates/checkManage/edit.html
  12. 102
      ruoyi-admin/src/main/resources/templates/patientManage/add.html
  13. 103
      ruoyi-admin/src/main/resources/templates/patientManage/edit.html
  14. 170
      ruoyi-admin/src/main/resources/templates/patientManage/patientManage.html
  15. 43
      ruoyi-admin/src/main/resources/templates/supplies/nucleic/add.html
  16. 44
      ruoyi-admin/src/main/resources/templates/supplies/nucleic/edit.html
  17. 102
      ruoyi-admin/src/main/resources/templates/supplies/nucleic/nucleic.html
  18. 43
      ruoyi-admin/src/main/resources/templates/supplies/vaccine/add.html
  19. 44
      ruoyi-admin/src/main/resources/templates/supplies/vaccine/edit.html
  20. 102
      ruoyi-admin/src/main/resources/templates/supplies/vaccine/vaccine.html
  21. 152
      ruoyi-system/src/main/java/com/ruoyi/system/domain/Check.java
  22. 191
      ruoyi-system/src/main/java/com/ruoyi/system/domain/CheckManage.java
  23. 79
      ruoyi-system/src/main/java/com/ruoyi/system/domain/Nucleic.java
  24. 208
      ruoyi-system/src/main/java/com/ruoyi/system/domain/PatientManage.java
  25. 79
      ruoyi-system/src/main/java/com/ruoyi/system/domain/Vaccine.java
  26. 61
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckManageMapper.java
  27. 61
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/CheckMapper.java
  28. 61
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/NucleicMapper.java
  29. 61
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/PatientManageMapper.java
  30. 61
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/VaccineMapper.java
  31. 61
      ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckManageService.java
  32. 61
      ruoyi-system/src/main/java/com/ruoyi/system/service/ICheckService.java
  33. 61
      ruoyi-system/src/main/java/com/ruoyi/system/service/INucleicService.java
  34. 61
      ruoyi-system/src/main/java/com/ruoyi/system/service/IPatientManageService.java
  35. 61
      ruoyi-system/src/main/java/com/ruoyi/system/service/IVaccineService.java
  36. 94
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckManageServiceImpl.java
  37. 94
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CheckServiceImpl.java
  38. 94
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/NucleicServiceImpl.java
  39. 94
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PatientManageServiceImpl.java
  40. 94
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VaccineServiceImpl.java
  41. 107
      ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml
  42. 92
      ruoyi-system/src/main/resources/mapper/CheckMapper.xml
  43. 112
      ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml
  44. 67
      ruoyi-system/src/main/resources/mapper/suppliesManage/NucleicMapper.xml
  45. 67
      ruoyi-system/src/main/resources/mapper/suppliesManage/VaccineMapper.xml

127
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<Check> 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<Check> list = checkService.selectCheckList(check);
ExcelUtil<Check> util = new ExcelUtil<Check>(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));
}
}

127
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<CheckManage> 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<CheckManage> list = checkManageService.selectCheckManageList(checkManage);
ExcelUtil<CheckManage> util = new ExcelUtil<CheckManage>(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));
}
}

127
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<PatientManage> 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<PatientManage> list = patientManageService.selectPatientManageList(patientManage);
ExcelUtil<PatientManage> util = new ExcelUtil<PatientManage>(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));
}
}

127
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<Nucleic> 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<Nucleic> list = nucleicService.selectNucleicList(nucleic);
ExcelUtil<Nucleic> util = new ExcelUtil<Nucleic>(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));
}
}

127
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<Vaccine> 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<Vaccine> list = vaccineService.selectVaccineList(vaccine);
ExcelUtil<Vaccine> util = new ExcelUtil<Vaccine>(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));
}
}

84
ruoyi-admin/src/main/resources/templates/check/add.html

@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增个人打卡')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-check-add">
<div class="form-group">
<label class="col-sm-3 control-label">打卡人姓名:</label>
<div class="col-sm-8">
<input name="checkName" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">体温:</label>
<div class="col-sm-8">
<input name="temperature" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">健康状况:</label>
<div class="col-sm-8">
<input name="state" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否去过高风险地区:</label>
<div class="col-sm-8">
<input name="isHigh" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否接触过密接人员:</label>
<div class="col-sm-8">
<input name="isTouch" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">个人状况描述:</label>
<div class="col-sm-8">
<input name="description" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">当前时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="checkDatetime" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">打卡位置:</label>
<div class="col-sm-8">
<input name="currentPosition" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/check"
$("#form-check-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-check-add').serialize());
}
}
$("input[name='checkDatetime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

142
ruoyi-admin/src/main/resources/templates/check/check.html

@ -0,0 +1,142 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('个人打卡列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>打卡人姓名:</label>
<input type="text" name="checkName"/>
</li>
<li>
<label>体温:</label>
<input type="text" name="temperature"/>
</li>
<li>
<label>健康状况:</label>
<input type="text" name="state"/>
</li>
<li>
<label>是否去过高风险地区:</label>
<input type="text" name="isHigh"/>
</li>
<li>
<label>是否接触过密接人员:</label>
<input type="text" name="isTouch"/>
</li>
<li>
<label>个人状况描述:</label>
<input type="text" name="description"/>
</li>
<li>
<label>当前时间:</label>
<input type="text" class="time-input" placeholder="请选择当前时间" name="checkDatetime"/>
</li>
<li>
<label>打卡位置:</label>
<input type="text" name="currentPosition"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:check:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:check:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:check:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:check:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:check:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:check:remove')}]];
var prefix = ctx + "system/check";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "个人打卡",
columns: [{
checkbox: true
},
{
field: 'checkId',
title: '打卡id',
visible: false
},
{
field: 'checkName',
title: '打卡人姓名'
},
{
field: 'temperature',
title: '体温'
},
{
field: 'state',
title: '健康状况'
},
{
field: 'isHigh',
title: '是否去过高风险地区'
},
{
field: 'isTouch',
title: '是否接触过密接人员'
},
{
field: 'description',
title: '个人状况描述'
},
{
field: 'checkDatetime',
title: '当前时间'
},
{
field: 'currentPosition',
title: '打卡位置'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.checkId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.checkId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

85
ruoyi-admin/src/main/resources/templates/check/edit.html

@ -0,0 +1,85 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改个人打卡')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-check-edit" th:object="${check}">
<input name="checkId" th:field="*{checkId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">打卡人姓名:</label>
<div class="col-sm-8">
<input name="checkName" th:field="*{checkName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">体温:</label>
<div class="col-sm-8">
<input name="temperature" th:field="*{temperature}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">健康状况:</label>
<div class="col-sm-8">
<input name="state" th:field="*{state}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否去过高风险地区:</label>
<div class="col-sm-8">
<input name="isHigh" th:field="*{isHigh}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否接触过密接人员:</label>
<div class="col-sm-8">
<input name="isTouch" th:field="*{isTouch}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">个人状况描述:</label>
<div class="col-sm-8">
<input name="description" th:field="*{description}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">当前时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="checkDatetime" th:value="${#dates.format(check.checkDatetime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">打卡位置:</label>
<div class="col-sm-8">
<input name="currentPosition" th:field="*{currentPosition}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/check";
$("#form-check-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-check-edit').serialize());
}
}
$("input[name='checkDatetime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

85
ruoyi-admin/src/main/resources/templates/checkManage/add.html

@ -0,0 +1,85 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增打卡管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-checkManage-add">
<div class="form-group">
<label class="col-sm-3 control-label">打卡人姓名:</label>
<div class="col-sm-8">
<input name="checkName" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">打卡人年龄:</label>
<div class="col-sm-8">
<input name="checkAge" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">联系电话:</label>
<div class="col-sm-8">
<input name="patientPhone" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">确诊状态:</label>
<div class="col-sm-8">
<input name="isDiagnosed" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">治愈状态:</label>
<div class="col-sm-8">
<input name="isCure" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">密接状态:</label>
<div class="col-sm-8">
<input name="isTouch" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">死亡状态:</label>
<div class="col-sm-8">
<input name="isDead" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="description" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">最近接触地区:</label>
<div class="col-sm-8">
<input name="checkPostition" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">体温:</label>
<div class="col-sm-8">
<input name="temperature" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "check/checkManage"
$("#form-checkManage-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-checkManage-add').serialize());
}
}
</script>
</body>
</html>

162
ruoyi-admin/src/main/resources/templates/checkManage/checkManage.html

@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('打卡管理列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>打卡人姓名:</label>
<input type="text" name="checkName"/>
</li>
<li>
<label>打卡人年龄:</label>
<input type="text" name="checkAge"/>
</li>
<li>
<label>联系电话:</label>
<input type="text" name="patientPhone"/>
</li>
<li>
<label>确诊状态:</label>
<input type="text" name="isDiagnosed"/>
</li>
<li>
<label>治愈状态:</label>
<input type="text" name="isCure"/>
</li>
<li>
<label>密接状态:</label>
<input type="text" name="isTouch"/>
</li>
<li>
<label>死亡状态:</label>
<input type="text" name="isDead"/>
</li>
<li>
<label>备注:</label>
<input type="text" name="description"/>
</li>
<li>
<label>最近接触地区:</label>
<input type="text" name="checkPostition"/>
</li>
<li>
<label>体温:</label>
<input type="text" name="temperature"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="check:checkManage:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="check:checkManage:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="check:checkManage:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="check:checkManage:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('check:checkManage:edit')}]];
var removeFlag = [[${@permission.hasPermi('check:checkManage:remove')}]];
var prefix = ctx + "check/checkManage";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "打卡管理",
columns: [{
checkbox: true
},
{
field: 'checkManageId',
title: '打卡管理ID',
visible: false
},
{
field: 'checkName',
title: '打卡人姓名'
},
{
field: 'checkAge',
title: '打卡人年龄'
},
{
field: 'checkSex',
title: '打卡人性别'
},
{
field: 'patientPhone',
title: '联系电话'
},
{
field: 'isDiagnosed',
title: '确诊状态'
},
{
field: 'isCure',
title: '治愈状态'
},
{
field: 'isTouch',
title: '密接状态'
},
{
field: 'isDead',
title: '死亡状态'
},
{
field: 'description',
title: '备注'
},
{
field: 'checkPostition',
title: '最近接触地区'
},
{
field: 'temperature',
title: '体温'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.checkManageId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.checkManageId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

86
ruoyi-admin/src/main/resources/templates/checkManage/edit.html

@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改打卡管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-checkManage-edit" th:object="${checkManage}">
<input name="checkManageId" th:field="*{checkManageId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">打卡人姓名:</label>
<div class="col-sm-8">
<input name="checkName" th:field="*{checkName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">打卡人年龄:</label>
<div class="col-sm-8">
<input name="checkAge" th:field="*{checkAge}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">联系电话:</label>
<div class="col-sm-8">
<input name="patientPhone" th:field="*{patientPhone}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">确诊状态:</label>
<div class="col-sm-8">
<input name="isDiagnosed" th:field="*{isDiagnosed}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">治愈状态:</label>
<div class="col-sm-8">
<input name="isCure" th:field="*{isCure}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">密接状态:</label>
<div class="col-sm-8">
<input name="isTouch" th:field="*{isTouch}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">死亡状态:</label>
<div class="col-sm-8">
<input name="isDead" th:field="*{isDead}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="description" th:field="*{description}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">最近接触地区:</label>
<div class="col-sm-8">
<input name="checkPostition" th:field="*{checkPostition}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">体温:</label>
<div class="col-sm-8">
<input name="temperature" th:field="*{temperature}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "check/checkManage";
$("#form-checkManage-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-checkManage-edit').serialize());
}
}
</script>
</body>
</html>

102
ruoyi-admin/src/main/resources/templates/patientManage/add.html

@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增患者管理')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-patientManage-add">
<div class="form-group">
<label class="col-sm-3 control-label">患者姓名:</label>
<div class="col-sm-8">
<input name="patientName" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">患者年龄:</label>
<div class="col-sm-8">
<input name="patientAge" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">患者联系电话:</label>
<div class="col-sm-8">
<input name="patientPhone" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="description" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">最近感染地区:</label>
<div class="col-sm-8">
<input name="currenPostition" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">当天体温:</label>
<div class="col-sm-8">
<input name="temperature" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">感染时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="diagonosedTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">确诊状态:</label>
<div class="col-sm-8">
<input name="isDiagnosed" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">治愈状态:</label>
<div class="col-sm-8">
<input name="isCure" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">密接状态:</label>
<div class="col-sm-8">
<input name="isTouch" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">死亡状态:</label>
<div class="col-sm-8">
<input name="isDead" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "patient/patientManage"
$("#form-patientManage-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-patientManage-add').serialize());
}
}
$("input[name='diagonosedTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

103
ruoyi-admin/src/main/resources/templates/patientManage/edit.html

@ -0,0 +1,103 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改患者管理')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-patientManage-edit" th:object="${patientManage}">
<input name="patientId" th:field="*{patientId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">患者姓名:</label>
<div class="col-sm-8">
<input name="patientName" th:field="*{patientName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">患者年龄:</label>
<div class="col-sm-8">
<input name="patientAge" th:field="*{patientAge}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">患者联系电话:</label>
<div class="col-sm-8">
<input name="patientPhone" th:field="*{patientPhone}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="description" th:field="*{description}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">最近感染地区:</label>
<div class="col-sm-8">
<input name="currenPostition" th:field="*{currenPostition}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">当天体温:</label>
<div class="col-sm-8">
<input name="temperature" th:field="*{temperature}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">感染时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="diagonosedTime" th:value="${#dates.format(patientManage.diagonosedTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">确诊状态:</label>
<div class="col-sm-8">
<input name="isDiagnosed" th:field="*{isDiagnosed}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">治愈状态:</label>
<div class="col-sm-8">
<input name="isCure" th:field="*{isCure}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">密接状态:</label>
<div class="col-sm-8">
<input name="isTouch" th:field="*{isTouch}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">死亡状态:</label>
<div class="col-sm-8">
<input name="isDead" th:field="*{isDead}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "patient/patientManage";
$("#form-patientManage-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-patientManage-edit').serialize());
}
}
$("input[name='diagonosedTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

170
ruoyi-admin/src/main/resources/templates/patientManage/patientManage.html

@ -0,0 +1,170 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('患者管理列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>患者姓名:</label>
<input type="text" name="patientName"/>
</li>
<li>
<label>患者年龄:</label>
<input type="text" name="patientAge"/>
</li>
<li>
<label>患者联系电话:</label>
<input type="text" name="patientPhone"/>
</li>
<li>
<label>备注:</label>
<input type="text" name="description"/>
</li>
<li>
<label>最近感染地区:</label>
<input type="text" name="currenPostition"/>
</li>
<li>
<label>当天体温:</label>
<input type="text" name="temperature"/>
</li>
<li>
<label>感染时间:</label>
<input type="text" class="time-input" placeholder="请选择感染时间" name="diagonosedTime"/>
</li>
<li>
<label>确诊状态:</label>
<input type="text" name="isDiagnosed"/>
</li>
<li>
<label>治愈状态:</label>
<input type="text" name="isCure"/>
</li>
<li>
<label>密接状态:</label>
<input type="text" name="isTouch"/>
</li>
<li>
<label>死亡状态:</label>
<input type="text" name="isDead"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="patient:patientManage:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="patient:patientManage:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="patient:patientManage:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="patient:patientManage:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('patient:patientManage:edit')}]];
var removeFlag = [[${@permission.hasPermi('patient:patientManage:remove')}]];
var prefix = ctx + "patient/patientManage";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "患者管理",
columns: [{
checkbox: true
},
{
field: 'patientId',
title: '患者ID',
visible: false
},
{
field: 'patientName',
title: '患者姓名'
},
{
field: 'patientAge',
title: '患者年龄'
},
{
field: 'patientSex',
title: '患者性别'
},
{
field: 'patientPhone',
title: '患者联系电话'
},
{
field: 'description',
title: '备注'
},
{
field: 'currenPostition',
title: '最近感染地区'
},
{
field: 'temperature',
title: '当天体温'
},
{
field: 'diagonosedTime',
title: '感染时间'
},
{
field: 'isDiagnosed',
title: '确诊状态'
},
{
field: 'isCure',
title: '治愈状态'
},
{
field: 'isTouch',
title: '密接状态'
},
{
field: 'isDead',
title: '死亡状态'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.patientId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.patientId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

43
ruoyi-admin/src/main/resources/templates/supplies/nucleic/add.html

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增核酸管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-nucleic-add">
<div class="form-group">
<label class="col-sm-3 control-label">核酸名字:</label>
<div class="col-sm-8">
<input name="nucleinName" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">核酸数量:</label>
<div class="col-sm-8">
<input name="nucleinNumber" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">核酸描述:</label>
<div class="col-sm-8">
<input name="nucleinDescription" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/nucleic"
$("#form-nucleic-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-nucleic-add').serialize());
}
}
</script>
</body>
</html>

44
ruoyi-admin/src/main/resources/templates/supplies/nucleic/edit.html

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改核酸管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-nucleic-edit" th:object="${nucleic}">
<input name="nucleinId" th:field="*{nucleinId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">核酸名字:</label>
<div class="col-sm-8">
<input name="nucleinName" th:field="*{nucleinName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">核酸数量:</label>
<div class="col-sm-8">
<input name="nucleinNumber" th:field="*{nucleinNumber}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">核酸描述:</label>
<div class="col-sm-8">
<input name="nucleinDescription" th:field="*{nucleinDescription}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/nucleic";
$("#form-nucleic-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-nucleic-edit').serialize());
}
}
</script>
</body>
</html>

102
ruoyi-admin/src/main/resources/templates/supplies/nucleic/nucleic.html

@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('核酸管理列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>核酸名字:</label>
<input type="text" name="nucleinName"/>
</li>
<li>
<label>核酸数量:</label>
<input type="text" name="nucleinNumber"/>
</li>
<li>
<label>核酸描述:</label>
<input type="text" name="nucleinDescription"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:nucleic:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:nucleic:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:nucleic:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:nucleic:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:nucleic:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:nucleic:remove')}]];
var prefix = ctx + "system/nucleic";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "核酸管理",
columns: [{
checkbox: true
},
{
field: 'nucleinId',
title: '核酸ID',
visible: false
},
{
field: 'nucleinName',
title: '核酸名字'
},
{
field: 'nucleinNumber',
title: '核酸数量'
},
{
field: 'nucleinDescription',
title: '核酸描述'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.nucleinId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.nucleinId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

43
ruoyi-admin/src/main/resources/templates/supplies/vaccine/add.html

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增疫苗管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-vaccine-add">
<div class="form-group">
<label class="col-sm-3 control-label">疫苗数量:</label>
<div class="col-sm-8">
<input name="vaccineNumber" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">疫苗描述:</label>
<div class="col-sm-8">
<input name="vaccineDescription" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">疫苗名字:</label>
<div class="col-sm-8">
<input name="vaccineName" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/vaccine"
$("#form-vaccine-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-vaccine-add').serialize());
}
}
</script>
</body>
</html>

44
ruoyi-admin/src/main/resources/templates/supplies/vaccine/edit.html

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改疫苗管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-vaccine-edit" th:object="${vaccine}">
<input name="vaccineId" th:field="*{vaccineId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">疫苗数量:</label>
<div class="col-sm-8">
<input name="vaccineNumber" th:field="*{vaccineNumber}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">疫苗描述:</label>
<div class="col-sm-8">
<input name="vaccineDescription" th:field="*{vaccineDescription}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">疫苗名字:</label>
<div class="col-sm-8">
<input name="vaccineName" th:field="*{vaccineName}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/vaccine";
$("#form-vaccine-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-vaccine-edit').serialize());
}
}
</script>
</body>
</html>

102
ruoyi-admin/src/main/resources/templates/supplies/vaccine/vaccine.html

@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('疫苗管理列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>疫苗数量:</label>
<input type="text" name="vaccineNumber"/>
</li>
<li>
<label>疫苗描述:</label>
<input type="text" name="vaccineDescription"/>
</li>
<li>
<label>疫苗名字:</label>
<input type="text" name="vaccineName"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:vaccine:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:vaccine:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:vaccine:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:vaccine:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:vaccine:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:vaccine:remove')}]];
var prefix = ctx + "system/vaccine";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "疫苗管理",
columns: [{
checkbox: true
},
{
field: 'vaccineId',
title: '疫苗d',
visible: false
},
{
field: 'vaccineNumber',
title: '疫苗数量'
},
{
field: 'vaccineDescription',
title: '疫苗描述'
},
{
field: 'vaccineName',
title: '疫苗名字'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.vaccineId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.vaccineId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

152
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();
}
}

191
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();
}
}

79
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();
}
}

208
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();
}
}

79
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();
}
}

61
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<CheckManage> 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);
}

61
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<Check> 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);
}

61
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<Nucleic> 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);
}

61
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<PatientManage> 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);
}

61
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<Vaccine> 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);
}

61
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<CheckManage> 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);
}

61
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<Check> 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);
}

61
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<Nucleic> 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);
}

61
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<PatientManage> 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);
}

61
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<Vaccine> 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);
}

94
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<CheckManage> 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);
}
}

94
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<Check> 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);
}
}

94
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<Nucleic> 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);
}
}

94
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<PatientManage> 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);
}
}

94
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<Vaccine> 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);
}
}

107
ruoyi-system/src/main/resources/mapper/CheckManageMapper.xml

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.CheckManageMapper">
<resultMap type="CheckManage" id="CheckManageResult">
<result property="checkManageId" column="check_manage_id" />
<result property="checkName" column="check_name" />
<result property="checkAge" column="check_age" />
<result property="checkSex" column="check_sex" />
<result property="patientPhone" column="patient_phone" />
<result property="isDiagnosed" column="is_diagnosed" />
<result property="isCure" column="is_cure" />
<result property="isTouch" column="is_touch" />
<result property="isDead" column="is_dead" />
<result property="description" column="description" />
<result property="checkPostition" column="check_postition" />
<result property="temperature" column="temperature" />
</resultMap>
<sql id="selectCheckManageVo">
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
</sql>
<select id="selectCheckManageList" parameterType="CheckManage" resultMap="CheckManageResult">
<include refid="selectCheckManageVo"/>
<where>
<if test="checkName != null and checkName != ''"> and check_name like concat('%', #{checkName}, '%')</if>
<if test="checkAge != null and checkAge != ''"> and check_age = #{checkAge}</if>
<if test="checkSex != null "> and check_sex = #{checkSex}</if>
<if test="patientPhone != null and patientPhone != ''"> and patient_phone = #{patientPhone}</if>
<if test="isDiagnosed != null "> and is_diagnosed = #{isDiagnosed}</if>
<if test="isCure != null "> and is_cure = #{isCure}</if>
<if test="isTouch != null "> and is_touch = #{isTouch}</if>
<if test="isDead != null "> and is_dead = #{isDead}</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="checkPostition != null and checkPostition != ''"> and check_postition = #{checkPostition}</if>
<if test="temperature != null and temperature != ''"> and temperature = #{temperature}</if>
</where>
</select>
<select id="selectCheckManageByCheckManageId" parameterType="Long" resultMap="CheckManageResult">
<include refid="selectCheckManageVo"/>
where check_manage_id = #{checkManageId}
</select>
<insert id="insertCheckManage" parameterType="CheckManage" useGeneratedKeys="true" keyProperty="checkManageId">
insert into check_manage
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="checkName != null">check_name,</if>
<if test="checkAge != null">check_age,</if>
<if test="checkSex != null">check_sex,</if>
<if test="patientPhone != null">patient_phone,</if>
<if test="isDiagnosed != null">is_diagnosed,</if>
<if test="isCure != null">is_cure,</if>
<if test="isTouch != null">is_touch,</if>
<if test="isDead != null">is_dead,</if>
<if test="description != null">description,</if>
<if test="checkPostition != null">check_postition,</if>
<if test="temperature != null">temperature,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="checkName != null">#{checkName},</if>
<if test="checkAge != null">#{checkAge},</if>
<if test="checkSex != null">#{checkSex},</if>
<if test="patientPhone != null">#{patientPhone},</if>
<if test="isDiagnosed != null">#{isDiagnosed},</if>
<if test="isCure != null">#{isCure},</if>
<if test="isTouch != null">#{isTouch},</if>
<if test="isDead != null">#{isDead},</if>
<if test="description != null">#{description},</if>
<if test="checkPostition != null">#{checkPostition},</if>
<if test="temperature != null">#{temperature},</if>
</trim>
</insert>
<update id="updateCheckManage" parameterType="CheckManage">
update check_manage
<trim prefix="SET" suffixOverrides=",">
<if test="checkName != null">check_name = #{checkName},</if>
<if test="checkAge != null">check_age = #{checkAge},</if>
<if test="checkSex != null">check_sex = #{checkSex},</if>
<if test="patientPhone != null">patient_phone = #{patientPhone},</if>
<if test="isDiagnosed != null">is_diagnosed = #{isDiagnosed},</if>
<if test="isCure != null">is_cure = #{isCure},</if>
<if test="isTouch != null">is_touch = #{isTouch},</if>
<if test="isDead != null">is_dead = #{isDead},</if>
<if test="description != null">description = #{description},</if>
<if test="checkPostition != null">check_postition = #{checkPostition},</if>
<if test="temperature != null">temperature = #{temperature},</if>
</trim>
where check_manage_id = #{checkManageId}
</update>
<delete id="deleteCheckManageByCheckManageId" parameterType="Long">
delete from check_manage where check_manage_id = #{checkManageId}
</delete>
<delete id="deleteCheckManageByCheckManageIds" parameterType="String">
delete from check_manage where check_manage_id in
<foreach item="checkManageId" collection="array" open="(" separator="," close=")">
#{checkManageId}
</foreach>
</delete>
</mapper>

92
ruoyi-system/src/main/resources/mapper/CheckMapper.xml

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.CheckMapper">
<resultMap type="Check" id="CheckResult">
<result property="checkId" column="check_id" />
<result property="checkName" column="check_name" />
<result property="temperature" column="temperature" />
<result property="state" column="state" />
<result property="isHigh" column="is_high" />
<result property="isTouch" column="is_touch" />
<result property="description" column="description" />
<result property="checkDatetime" column="check_datetime" />
<result property="currentPosition" column="current_position" />
</resultMap>
<sql id="selectCheckVo">
select check_id, check_name, temperature, state, is_high, is_touch, description, check_datetime, current_position from check
</sql>
<select id="selectCheckList" parameterType="Check" resultMap="CheckResult">
<include refid="selectCheckVo"/>
<where>
<if test="checkName != null and checkName != ''"> and check_name like concat('%', #{checkName}, '%')</if>
<if test="temperature != null and temperature != ''"> and temperature = #{temperature}</if>
<if test="state != null and state != ''"> and state like concat('%', #{state}, '%')</if>
<if test="isHigh != null "> and is_high = #{isHigh}</if>
<if test="isTouch != null "> and is_touch = #{isTouch}</if>
<if test="description != null and description != ''"> and description like concat('%', #{description}, '%')</if>
<if test="checkDatetime != null "> and check_datetime = #{checkDatetime}</if>
<if test="currentPosition != null and currentPosition != ''"> and current_position = #{currentPosition}</if>
</where>
</select>
<select id="selectCheckByCheckId" parameterType="Long" resultMap="CheckResult">
<include refid="selectCheckVo"/>
where check_id = #{checkId}
</select>
<insert id="insertCheck" parameterType="Check" useGeneratedKeys="true" keyProperty="checkId">
insert into check
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="checkName != null">check_name,</if>
<if test="temperature != null">temperature,</if>
<if test="state != null">state,</if>
<if test="isHigh != null">is_high,</if>
<if test="isTouch != null">is_touch,</if>
<if test="description != null">description,</if>
<if test="checkDatetime != null">check_datetime,</if>
<if test="currentPosition != null">current_position,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="checkName != null">#{checkName},</if>
<if test="temperature != null">#{temperature},</if>
<if test="state != null">#{state},</if>
<if test="isHigh != null">#{isHigh},</if>
<if test="isTouch != null">#{isTouch},</if>
<if test="description != null">#{description},</if>
<if test="checkDatetime != null">#{checkDatetime},</if>
<if test="currentPosition != null">#{currentPosition},</if>
</trim>
</insert>
<update id="updateCheck" parameterType="Check">
update check
<trim prefix="SET" suffixOverrides=",">
<if test="checkName != null">check_name = #{checkName},</if>
<if test="temperature != null">temperature = #{temperature},</if>
<if test="state != null">state = #{state},</if>
<if test="isHigh != null">is_high = #{isHigh},</if>
<if test="isTouch != null">is_touch = #{isTouch},</if>
<if test="description != null">description = #{description},</if>
<if test="checkDatetime != null">check_datetime = #{checkDatetime},</if>
<if test="currentPosition != null">current_position = #{currentPosition},</if>
</trim>
where check_id = #{checkId}
</update>
<delete id="deleteCheckByCheckId" parameterType="Long">
delete from check where check_id = #{checkId}
</delete>
<delete id="deleteCheckByCheckIds" parameterType="String">
delete from check where check_id in
<foreach item="checkId" collection="array" open="(" separator="," close=")">
#{checkId}
</foreach>
</delete>
</mapper>

112
ruoyi-system/src/main/resources/mapper/PatientManageMapper.xml

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.PatientManageMapper">
<resultMap type="PatientManage" id="PatientManageResult">
<result property="patientId" column="patient_id" />
<result property="patientName" column="patient_name" />
<result property="patientAge" column="patient_age" />
<result property="patientSex" column="patient_sex" />
<result property="patientPhone" column="patient_phone" />
<result property="description" column="description" />
<result property="currenPostition" column="curren_postition" />
<result property="temperature" column="temperature" />
<result property="diagonosedTime" column="diagonosed_time" />
<result property="isDiagnosed" column="is_diagnosed" />
<result property="isCure" column="is_cure" />
<result property="isTouch" column="is_touch" />
<result property="isDead" column="is_dead" />
</resultMap>
<sql id="selectPatientManageVo">
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
</sql>
<select id="selectPatientManageList" parameterType="PatientManage" resultMap="PatientManageResult">
<include refid="selectPatientManageVo"/>
<where>
<if test="patientName != null and patientName != ''"> and patient_name like concat('%', #{patientName}, '%')</if>
<if test="patientAge != null and patientAge != ''"> and patient_age = #{patientAge}</if>
<if test="patientSex != null and patientSex != ''"> and patient_sex = #{patientSex}</if>
<if test="patientPhone != null and patientPhone != ''"> and patient_phone = #{patientPhone}</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="currenPostition != null and currenPostition != ''"> and curren_postition = #{currenPostition}</if>
<if test="temperature != null and temperature != ''"> and temperature = #{temperature}</if>
<if test="diagonosedTime != null "> and diagonosed_time = #{diagonosedTime}</if>
<if test="isDiagnosed != null "> and is_diagnosed = #{isDiagnosed}</if>
<if test="isCure != null "> and is_cure = #{isCure}</if>
<if test="isTouch != null "> and is_touch = #{isTouch}</if>
<if test="isDead != null "> and is_dead = #{isDead}</if>
</where>
</select>
<select id="selectPatientManageByPatientId" parameterType="Long" resultMap="PatientManageResult">
<include refid="selectPatientManageVo"/>
where patient_id = #{patientId}
</select>
<insert id="insertPatientManage" parameterType="PatientManage" useGeneratedKeys="true" keyProperty="patientId">
insert into patient_manage
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="patientName != null">patient_name,</if>
<if test="patientAge != null">patient_age,</if>
<if test="patientSex != null">patient_sex,</if>
<if test="patientPhone != null">patient_phone,</if>
<if test="description != null">description,</if>
<if test="currenPostition != null">curren_postition,</if>
<if test="temperature != null">temperature,</if>
<if test="diagonosedTime != null">diagonosed_time,</if>
<if test="isDiagnosed != null">is_diagnosed,</if>
<if test="isCure != null">is_cure,</if>
<if test="isTouch != null">is_touch,</if>
<if test="isDead != null">is_dead,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="patientName != null">#{patientName},</if>
<if test="patientAge != null">#{patientAge},</if>
<if test="patientSex != null">#{patientSex},</if>
<if test="patientPhone != null">#{patientPhone},</if>
<if test="description != null">#{description},</if>
<if test="currenPostition != null">#{currenPostition},</if>
<if test="temperature != null">#{temperature},</if>
<if test="diagonosedTime != null">#{diagonosedTime},</if>
<if test="isDiagnosed != null">#{isDiagnosed},</if>
<if test="isCure != null">#{isCure},</if>
<if test="isTouch != null">#{isTouch},</if>
<if test="isDead != null">#{isDead},</if>
</trim>
</insert>
<update id="updatePatientManage" parameterType="PatientManage">
update patient_manage
<trim prefix="SET" suffixOverrides=",">
<if test="patientName != null">patient_name = #{patientName},</if>
<if test="patientAge != null">patient_age = #{patientAge},</if>
<if test="patientSex != null">patient_sex = #{patientSex},</if>
<if test="patientPhone != null">patient_phone = #{patientPhone},</if>
<if test="description != null">description = #{description},</if>
<if test="currenPostition != null">curren_postition = #{currenPostition},</if>
<if test="temperature != null">temperature = #{temperature},</if>
<if test="diagonosedTime != null">diagonosed_time = #{diagonosedTime},</if>
<if test="isDiagnosed != null">is_diagnosed = #{isDiagnosed},</if>
<if test="isCure != null">is_cure = #{isCure},</if>
<if test="isTouch != null">is_touch = #{isTouch},</if>
<if test="isDead != null">is_dead = #{isDead},</if>
</trim>
where patient_id = #{patientId}
</update>
<delete id="deletePatientManageByPatientId" parameterType="Long">
delete from patient_manage where patient_id = #{patientId}
</delete>
<delete id="deletePatientManageByPatientIds" parameterType="String">
delete from patient_manage where patient_id in
<foreach item="patientId" collection="array" open="(" separator="," close=")">
#{patientId}
</foreach>
</delete>
</mapper>

67
ruoyi-system/src/main/resources/mapper/suppliesManage/NucleicMapper.xml

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.NucleicMapper">
<resultMap type="Nucleic" id="NucleicResult">
<result property="nucleinId" column="nuclein_id" />
<result property="nucleinName" column="nuclein_name" />
<result property="nucleinNumber" column="nuclein_number" />
<result property="nucleinDescription" column="nuclein_description" />
</resultMap>
<sql id="selectNucleicVo">
select nuclein_id, nuclein_name, nuclein_number, nuclein_description from nucleic
</sql>
<select id="selectNucleicList" parameterType="Nucleic" resultMap="NucleicResult">
<include refid="selectNucleicVo"/>
<where>
<if test="nucleinName != null and nucleinName != ''"> and nuclein_name like concat('%', #{nucleinName}, '%')</if>
<if test="nucleinNumber != null and nucleinNumber != ''"> and nuclein_number = #{nucleinNumber}</if>
<if test="nucleinDescription != null and nucleinDescription != ''"> and nuclein_description = #{nucleinDescription}</if>
</where>
</select>
<select id="selectNucleicByNucleinId" parameterType="Long" resultMap="NucleicResult">
<include refid="selectNucleicVo"/>
where nuclein_id = #{nucleinId}
</select>
<insert id="insertNucleic" parameterType="Nucleic" useGeneratedKeys="true" keyProperty="nucleinId">
insert into nucleic
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="nucleinName != null">nuclein_name,</if>
<if test="nucleinNumber != null">nuclein_number,</if>
<if test="nucleinDescription != null">nuclein_description,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="nucleinName != null">#{nucleinName},</if>
<if test="nucleinNumber != null">#{nucleinNumber},</if>
<if test="nucleinDescription != null">#{nucleinDescription},</if>
</trim>
</insert>
<update id="updateNucleic" parameterType="Nucleic">
update nucleic
<trim prefix="SET" suffixOverrides=",">
<if test="nucleinName != null">nuclein_name = #{nucleinName},</if>
<if test="nucleinNumber != null">nuclein_number = #{nucleinNumber},</if>
<if test="nucleinDescription != null">nuclein_description = #{nucleinDescription},</if>
</trim>
where nuclein_id = #{nucleinId}
</update>
<delete id="deleteNucleicByNucleinId" parameterType="Long">
delete from nucleic where nuclein_id = #{nucleinId}
</delete>
<delete id="deleteNucleicByNucleinIds" parameterType="String">
delete from nucleic where nuclein_id in
<foreach item="nucleinId" collection="array" open="(" separator="," close=")">
#{nucleinId}
</foreach>
</delete>
</mapper>

67
ruoyi-system/src/main/resources/mapper/suppliesManage/VaccineMapper.xml

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.VaccineMapper">
<resultMap type="Vaccine" id="VaccineResult">
<result property="vaccineId" column="vaccine_id" />
<result property="vaccineNumber" column="vaccine_number" />
<result property="vaccineDescription" column="vaccine_description" />
<result property="vaccineName" column="vaccine_name" />
</resultMap>
<sql id="selectVaccineVo">
select vaccine_id, vaccine_number, vaccine_description, vaccine_name from vaccine
</sql>
<select id="selectVaccineList" parameterType="Vaccine" resultMap="VaccineResult">
<include refid="selectVaccineVo"/>
<where>
<if test="vaccineNumber != null and vaccineNumber != ''"> and vaccine_number = #{vaccineNumber}</if>
<if test="vaccineDescription != null and vaccineDescription != ''"> and vaccine_description = #{vaccineDescription}</if>
<if test="vaccineName != null and vaccineName != ''"> and vaccine_name like concat('%', #{vaccineName}, '%')</if>
</where>
</select>
<select id="selectVaccineByVaccineId" parameterType="Long" resultMap="VaccineResult">
<include refid="selectVaccineVo"/>
where vaccine_id = #{vaccineId}
</select>
<insert id="insertVaccine" parameterType="Vaccine" useGeneratedKeys="true" keyProperty="vaccineId">
insert into vaccine
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="vaccineNumber != null">vaccine_number,</if>
<if test="vaccineDescription != null">vaccine_description,</if>
<if test="vaccineName != null">vaccine_name,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="vaccineNumber != null">#{vaccineNumber},</if>
<if test="vaccineDescription != null">#{vaccineDescription},</if>
<if test="vaccineName != null">#{vaccineName},</if>
</trim>
</insert>
<update id="updateVaccine" parameterType="Vaccine">
update vaccine
<trim prefix="SET" suffixOverrides=",">
<if test="vaccineNumber != null">vaccine_number = #{vaccineNumber},</if>
<if test="vaccineDescription != null">vaccine_description = #{vaccineDescription},</if>
<if test="vaccineName != null">vaccine_name = #{vaccineName},</if>
</trim>
where vaccine_id = #{vaccineId}
</update>
<delete id="deleteVaccineByVaccineId" parameterType="Long">
delete from vaccine where vaccine_id = #{vaccineId}
</delete>
<delete id="deleteVaccineByVaccineIds" parameterType="String">
delete from vaccine where vaccine_id in
<foreach item="vaccineId" collection="array" open="(" separator="," close=")">
#{vaccineId}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save