From 37d51adeaa6eec8e044440b8dba4dafecf26c205 Mon Sep 17 00:00:00 2001 From: zhangheng <3226558941@qq.com> Date: Thu, 28 Mar 2024 17:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E9=97=AE=E5=8D=B7=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E7=BB=93=E6=9E=9C=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...PatientQuestionOptionResultController.java | 91 ++++ ...atientQuestionSubjectResultController.java | 92 ++++ ...PatientQuestionSubmitResultController.java | 91 ++++ .../PatientQuestionOptionResult.java | 126 ++++++ .../PatientQuestionSubjectResult.java | 147 +++++++ .../PatientQuestionSubmitResult.java | 200 +++++++++ .../SignPatientManageRouteNode.java | 4 + .../PatientQuestionOptionResultMapper.java | 61 +++ .../PatientQuestionSubjectResultMapper.java | 61 +++ .../PatientQuestionSubmitResultMapper.java | 64 +++ .../agency/impl/AgencyServiceImpl.java | 24 +- .../IPatientQuestionOptionResultService.java | 61 +++ ...atientQuestionOptionResultServiceImpl.java | 90 ++++ .../IPatientQuestionSubjectResultService.java | 61 +++ ...tientQuestionSubjectResultServiceImpl.java | 90 ++++ .../IPatientQuestionSubmitResultService.java | 61 +++ ...atientQuestionSubmitResultServiceImpl.java | 93 ++++ .../PatientQuestionSubjectResultDTO.java | 23 + .../PatientQuestionSubmitResultDTO.java | 33 ++ .../PatientQuestionOptionResultMapper.xml | 213 +++++++++ .../PatientQuestionSubjectResultMapper.xml | 273 ++++++++++++ .../PatientQuestionSubmitResultMapper.xml | 413 ++++++++++++++++++ .../SignPatientManageRouteNodeMapper.xml | 17 +- .../mapper/manage/sysarea/SysAreaMapper.xml | 19 + 24 files changed, 2394 insertions(+), 14 deletions(-) create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionoptionresult/PatientQuestionOptionResultController.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionsubjectresult/PatientQuestionSubjectResultController.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionsubmitresult/PatientQuestionSubmitResultController.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionoptionresult/PatientQuestionOptionResult.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionsubjectresult/PatientQuestionSubjectResult.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionsubmitresult/PatientQuestionSubmitResult.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionoptionresult/PatientQuestionOptionResultMapper.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionsubjectresult/PatientQuestionSubjectResultMapper.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionsubmitresult/PatientQuestionSubmitResultMapper.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionoptionresult/IPatientQuestionOptionResultService.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionoptionresult/impl/PatientQuestionOptionResultServiceImpl.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubjectresult/IPatientQuestionSubjectResultService.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubjectresult/impl/PatientQuestionSubjectResultServiceImpl.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubmitresult/IPatientQuestionSubmitResultService.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubmitresult/impl/PatientQuestionSubmitResultServiceImpl.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientquestionsubjectresult/PatientQuestionSubjectResultDTO.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientquestionsubmitresult/PatientQuestionSubmitResultDTO.java create mode 100644 postdischarge-manage/src/main/resources/mapper/manage/patientquestionoptionresult/PatientQuestionOptionResultMapper.xml create mode 100644 postdischarge-manage/src/main/resources/mapper/manage/patientquestionsubjectresult/PatientQuestionSubjectResultMapper.xml create mode 100644 postdischarge-manage/src/main/resources/mapper/manage/patientquestionsubmitresult/PatientQuestionSubmitResultMapper.xml diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionoptionresult/PatientQuestionOptionResultController.java b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionoptionresult/PatientQuestionOptionResultController.java new file mode 100644 index 00000000..5678af2a --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionoptionresult/PatientQuestionOptionResultController.java @@ -0,0 +1,91 @@ +package com.xinelu.manage.controller.patientquestionoptionresult; + +import com.xinelu.common.annotation.Log; +import com.xinelu.common.core.controller.BaseController; +import com.xinelu.common.core.domain.AjaxResult; +import com.xinelu.common.core.page.TableDataInfo; +import com.xinelu.common.enums.BusinessType; +import com.xinelu.common.utils.poi.ExcelUtil; +import com.xinelu.manage.domain.patientquestionoptionresult.PatientQuestionOptionResult; +import com.xinelu.manage.service.patientquestionoptionresult.IPatientQuestionOptionResultService; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 患者问卷题目选项提交结果信息Controller + * + * @author xinelu + * @date 2024-03-28 + */ +@RestController +@RequestMapping("/system/patientQuestionOptionResult") +public class PatientQuestionOptionResultController extends BaseController { + @Resource + private IPatientQuestionOptionResultService patientQuestionOptionResultService; + + /** + * 查询患者问卷题目选项提交结果信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionOptionResult:list')") + @GetMapping("/list") + public TableDataInfo list(PatientQuestionOptionResult patientQuestionOptionResult) { + startPage(); + List list = patientQuestionOptionResultService.selectPatientQuestionOptionResultList(patientQuestionOptionResult); + return getDataTable(list); + } + + /** + * 导出患者问卷题目选项提交结果信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionOptionResult:export')") + @Log(title = "患者问卷题目选项提交结果信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, PatientQuestionOptionResult patientQuestionOptionResult) { + List list = patientQuestionOptionResultService.selectPatientQuestionOptionResultList(patientQuestionOptionResult); + ExcelUtil util = new ExcelUtil<>(PatientQuestionOptionResult.class); + util.exportExcel(response, list, "患者问卷题目选项提交结果信息数据"); + } + + /** + * 获取患者问卷题目选项提交结果信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionOptionResult:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return AjaxResult.success(patientQuestionOptionResultService.selectPatientQuestionOptionResultById(id)); + } + + /** + * 新增患者问卷题目选项提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionOptionResult:add')") + @Log(title = "患者问卷题目选项提交结果信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody PatientQuestionOptionResult patientQuestionOptionResult) { + return toAjax(patientQuestionOptionResultService.insertPatientQuestionOptionResult(patientQuestionOptionResult)); + } + + /** + * 修改患者问卷题目选项提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionOptionResult:edit')") + @Log(title = "患者问卷题目选项提交结果信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody PatientQuestionOptionResult patientQuestionOptionResult) { + return toAjax(patientQuestionOptionResultService.updatePatientQuestionOptionResult(patientQuestionOptionResult)); + } + + /** + * 删除患者问卷题目选项提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionOptionResult:remove')") + @Log(title = "患者问卷题目选项提交结果信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { + return toAjax(patientQuestionOptionResultService.deletePatientQuestionOptionResultByIds(ids)); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionsubjectresult/PatientQuestionSubjectResultController.java b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionsubjectresult/PatientQuestionSubjectResultController.java new file mode 100644 index 00000000..14992127 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionsubjectresult/PatientQuestionSubjectResultController.java @@ -0,0 +1,92 @@ +package com.xinelu.manage.controller.patientquestionsubjectresult; + + +import com.xinelu.common.annotation.Log; +import com.xinelu.common.core.controller.BaseController; +import com.xinelu.common.core.domain.AjaxResult; +import com.xinelu.common.core.page.TableDataInfo; +import com.xinelu.common.enums.BusinessType; +import com.xinelu.common.utils.poi.ExcelUtil; +import com.xinelu.manage.domain.patientquestionsubjectresult.PatientQuestionSubjectResult; +import com.xinelu.manage.service.patientquestionsubjectresult.IPatientQuestionSubjectResultService; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 患者问卷题目提交结果信息Controller + * + * @author xinelu + * @date 2024-03-28 + */ +@RestController +@RequestMapping("/system/patientQuestionSubjectResult") +public class PatientQuestionSubjectResultController extends BaseController { + @Resource + private IPatientQuestionSubjectResultService patientQuestionSubjectResultService; + + /** + * 查询患者问卷题目提交结果信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubjectResult:list')") + @GetMapping("/list") + public TableDataInfo list(PatientQuestionSubjectResult patientQuestionSubjectResult) { + startPage(); + List list = patientQuestionSubjectResultService.selectPatientQuestionSubjectResultList(patientQuestionSubjectResult); + return getDataTable(list); + } + + /** + * 导出患者问卷题目提交结果信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubjectResult:export')") + @Log(title = "患者问卷题目提交结果信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, PatientQuestionSubjectResult patientQuestionSubjectResult) { + List list = patientQuestionSubjectResultService.selectPatientQuestionSubjectResultList(patientQuestionSubjectResult); + ExcelUtil util = new ExcelUtil<>(PatientQuestionSubjectResult.class); + util.exportExcel(response, list, "患者问卷题目提交结果信息数据"); + } + + /** + * 获取患者问卷题目提交结果信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubjectResult:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return AjaxResult.success(patientQuestionSubjectResultService.selectPatientQuestionSubjectResultById(id)); + } + + /** + * 新增患者问卷题目提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubjectResult:add')") + @Log(title = "患者问卷题目提交结果信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody PatientQuestionSubjectResult patientQuestionSubjectResult) { + return toAjax(patientQuestionSubjectResultService.insertPatientQuestionSubjectResult(patientQuestionSubjectResult)); + } + + /** + * 修改患者问卷题目提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubjectResult:edit')") + @Log(title = "患者问卷题目提交结果信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody PatientQuestionSubjectResult patientQuestionSubjectResult) { + return toAjax(patientQuestionSubjectResultService.updatePatientQuestionSubjectResult(patientQuestionSubjectResult)); + } + + /** + * 删除患者问卷题目提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubjectResult:remove')") + @Log(title = "患者问卷题目提交结果信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { + return toAjax(patientQuestionSubjectResultService.deletePatientQuestionSubjectResultByIds(ids)); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionsubmitresult/PatientQuestionSubmitResultController.java b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionsubmitresult/PatientQuestionSubmitResultController.java new file mode 100644 index 00000000..568e9899 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/patientquestionsubmitresult/PatientQuestionSubmitResultController.java @@ -0,0 +1,91 @@ +package com.xinelu.manage.controller.patientquestionsubmitresult; + +import com.xinelu.common.annotation.Log; +import com.xinelu.common.core.controller.BaseController; +import com.xinelu.common.core.domain.AjaxResult; +import com.xinelu.common.core.page.TableDataInfo; +import com.xinelu.common.enums.BusinessType; +import com.xinelu.common.utils.poi.ExcelUtil; +import com.xinelu.manage.domain.patientquestionsubmitresult.PatientQuestionSubmitResult; +import com.xinelu.manage.service.patientquestionsubmitresult.IPatientQuestionSubmitResultService; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 患者问卷提交结果信息Controller + * + * @author xinelu + * @date 2024-03-28 + */ +@RestController +@RequestMapping("/system/patientQuestionSubmitResult") +public class PatientQuestionSubmitResultController extends BaseController { + @Resource + private IPatientQuestionSubmitResultService patientQuestionSubmitResultService; + + /** + * 查询患者问卷提交结果信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubmitResult:list')") + @GetMapping("/list") + public TableDataInfo list(PatientQuestionSubmitResult patientQuestionSubmitResult) { + startPage(); + List list = patientQuestionSubmitResultService.selectPatientQuestionSubmitResultList(patientQuestionSubmitResult); + return getDataTable(list); + } + + /** + * 导出患者问卷提交结果信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubmitResult:export')") + @Log(title = "患者问卷提交结果信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, PatientQuestionSubmitResult patientQuestionSubmitResult) { + List list = patientQuestionSubmitResultService.selectPatientQuestionSubmitResultList(patientQuestionSubmitResult); + ExcelUtil util = new ExcelUtil<>(PatientQuestionSubmitResult.class); + util.exportExcel(response, list, "患者问卷提交结果信息数据"); + } + + /** + * 获取患者问卷提交结果信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubmitResult:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return AjaxResult.success(patientQuestionSubmitResultService.selectPatientQuestionSubmitResultById(id)); + } + + /** + * 新增患者问卷提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubmitResult:add')") + @Log(title = "患者问卷提交结果信息", businessType = BusinessType.INSERT) + @PostMapping("/add") + public AjaxResult add(@RequestBody PatientQuestionSubmitResult patientQuestionSubmitResult) { + return toAjax(patientQuestionSubmitResultService.insertPatientQuestionSubmitResult(patientQuestionSubmitResult)); + } + + /** + * 修改患者问卷提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubmitResult:edit')") + @Log(title = "患者问卷提交结果信息", businessType = BusinessType.UPDATE) + @PutMapping("/edit") + public AjaxResult edit(@RequestBody PatientQuestionSubmitResult patientQuestionSubmitResult) { + return toAjax(patientQuestionSubmitResultService.updatePatientQuestionSubmitResult(patientQuestionSubmitResult)); + } + + /** + * 删除患者问卷提交结果信息 + */ + @PreAuthorize("@ss.hasPermi('system:patientQuestionSubmitResult:remove')") + @Log(title = "患者问卷提交结果信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { + return toAjax(patientQuestionSubmitResultService.deletePatientQuestionSubmitResultByIds(ids)); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionoptionresult/PatientQuestionOptionResult.java b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionoptionresult/PatientQuestionOptionResult.java new file mode 100644 index 00000000..d56413ea --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionoptionresult/PatientQuestionOptionResult.java @@ -0,0 +1,126 @@ +package com.xinelu.manage.domain.patientquestionoptionresult; + +import com.xinelu.common.annotation.Excel; +import com.xinelu.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +import java.math.BigDecimal; + +/** + * 患者问卷题目选项提交结果信息对象 patient_question_option_result + * + * @author xinelu + * @date 2024-03-28 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +@ApiModel(value = "患者问卷题目选项提交结果信息对象", description = "patient_question_option_result") +public class PatientQuestionOptionResult extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 主键id + */ + private Long id; + + /** + * 问卷题目提交结果信息表id + */ + @ApiModelProperty(value = "问卷题目提交结果信息表id") + @Excel(name = "问卷题目提交结果信息表id") + private Long questionSubjectResultId; + + /** + * 问卷题目表id + */ + @ApiModelProperty(value = "问卷题目表id") + @Excel(name = "问卷题目表id") + private Long questionnaireSubjectId; + + /** + * 题目名称 + */ + @ApiModelProperty(value = "题目名称") + @Excel(name = "题目名称") + private String questionName; + + /** + * 选项名称 + */ + @ApiModelProperty(value = "选项名称") + @Excel(name = "选项名称") + private String optionName; + + /** + * 选项答案 + */ + @ApiModelProperty(value = "选项答案") + @Excel(name = "选项答案") + private String optionAnswer; + + /** + * 选项分值 + */ + @ApiModelProperty(value = "选项分值") + @Excel(name = "选项分值") + private BigDecimal optionScore; + + /** + * 题目选项选择标识,0:已选择,1:未选择 + */ + @ApiModelProperty(value = "题目选项选择标识,0:已选择,1:未选择") + @Excel(name = "题目选项选择标识,0:已选择,1:未选择") + private Integer optionChooseSign; + + /** + * 选项题目提交答案 + */ + @ApiModelProperty(value = "选项题目提交答案") + @Excel(name = "选项题目提交答案") + private String optionSubmitAnswer; + + /** + * 选项排序 + */ + @ApiModelProperty(value = "选项排序") + @Excel(name = "选项排序") + private Integer optionSort; + + /** + * 选项备注 + */ + @ApiModelProperty(value = "选项备注") + @Excel(name = "选项备注") + private String optionRemark; + + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("questionSubjectResultId", getQuestionSubjectResultId()) + .append("questionnaireSubjectId", getQuestionnaireSubjectId()) + .append("questionName", getQuestionName()) + .append("optionName", getOptionName()) + .append("optionAnswer", getOptionAnswer()) + .append("optionScore", getOptionScore()) + .append("optionChooseSign", getOptionChooseSign()) + .append("optionSubmitAnswer", getOptionSubmitAnswer()) + .append("optionSort", getOptionSort()) + .append("optionRemark", getOptionRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionsubjectresult/PatientQuestionSubjectResult.java b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionsubjectresult/PatientQuestionSubjectResult.java new file mode 100644 index 00000000..4f498b01 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionsubjectresult/PatientQuestionSubjectResult.java @@ -0,0 +1,147 @@ +package com.xinelu.manage.domain.patientquestionsubjectresult; + +import com.xinelu.common.annotation.Excel; +import com.xinelu.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +import java.math.BigDecimal; + +/** + * 患者问卷题目提交结果信息对象 patient_question_subject_result + * + * @author xinelu + * @date 2024-03-28 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +@ApiModel(value = "患者问卷题目提交结果信息对象", description = "patient_question_subject_result") +public class PatientQuestionSubjectResult extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 主键id + */ + private Long id; + + /** + * 问卷提交结果信息表id + */ + @ApiModelProperty(value = "问卷提交结果信息表id") + @Excel(name = "问卷提交结果信息表id") + private Long questionSubmitResultId; + + /** + * 问卷表id + */ + @ApiModelProperty(value = "问卷表id") + @Excel(name = "问卷表id") + private Long questionInfoId; + + /** + * 题目序号 + */ + @ApiModelProperty(value = "题目序号") + @Excel(name = "题目序号") + private BigDecimal questionNumber; + + /** + * 题目类型,单选题:MULTIPLE_CHOICE,多选题:MULTIPLE_CHOICE_QUESTIONS,填空题:FILL_IN_THE_BLANKS,打分题:SCORING_QUESTIONS, + * 组合单选题:COMBINATION_RADIO_SUBJECT,组合多选题:COMBINATION_MULTIPLE_SUBJECT,组合填空题:COMBINATION_BLANKS_SUBJECT, + * 组合打分题:COMBINATION_SCORING_SUBJECT,日期填空题:DATE_BLANKS_SUBJECT,时间填空题:TIME_BLANKS_SUBJECT + */ + @ApiModelProperty(value = "题目类型,单选题:MULTIPLE_CHOICE,多选题:MULTIPLE_CHOICE_QUESTIONS,填空题:FILL_IN_THE_BLANKS,打分题:SCORING_QUESTIONS, 组合单选题:COMBINATION_RADIO_SUBJECT,组合多选题:COMBINATION_MULTIPLE_SUBJECT,组合填空题:COMBINATION_BLANKS_SUBJECT, 组合打分题:COMBINATION_SCORING_SUBJECT,日期填空题:DATE_BLANKS_SUBJECT,时间填空题:TIME_BLANKS_SUBJECT") + @Excel(name = "题目类型,单选题:MULTIPLE_CHOICE,多选题:MULTIPLE_CHOICE_QUESTIONS,填空题:FILL_IN_THE_BLANKS,打分题:SCORING_QUESTIONS, 组合单选题:COMBINATION_RADIO_SUBJECT,组合多选题:COMBINATION_MULTIPLE_SUBJECT,组合填空题:COMBINATION_BLANKS_SUBJECT, 组合打分题:COMBINATION_SCORING_SUBJECT,日期填空题:DATE_BLANKS_SUBJECT,时间填空题:TIME_BLANKS_SUBJECT") + private String questionType; + + /** + * 题目名称 + */ + @ApiModelProperty(value = "题目名称") + @Excel(name = "题目名称") + private String questionName; + + /** + * 题目说明 + */ + @ApiModelProperty(value = "题目说明") + @Excel(name = "题目说明") + private String questionDescription; + + /** + * 填写说明 + */ + @ApiModelProperty(value = "填写说明") + @Excel(name = "填写说明") + private String writeDescription; + + /** + * 回答(填空题) + */ + @ApiModelProperty(value = "回答") + @Excel(name = "回答", readConverterExp = "填=空题") + private String fillBlanksAnswer; + + /** + * 选项个数(打分题) + */ + @ApiModelProperty(value = "选项个数") + @Excel(name = "选项个数", readConverterExp = "打=分题") + private Integer optionCount; + + /** + * 是否计分,0:否,1:是 + */ + @ApiModelProperty(value = "是否计分,0:否,1:是") + @Excel(name = "是否计分,0:否,1:是") + private Integer whetherScore; + + /** + * 计分方式,每个选项都有对应分值:NOT_UNIQUE_ANSWER,全部答对才得分:UNIQUE_ANSWER + */ + @ApiModelProperty(value = "计分方式,每个选项都有对应分值:NOT_UNIQUE_ANSWER,全部答对才得分:UNIQUE_ANSWER") + @Excel(name = "计分方式,每个选项都有对应分值:NOT_UNIQUE_ANSWER,全部答对才得分:UNIQUE_ANSWER") + private String scoringMethod; + + /** + * 计分说明 + */ + @ApiModelProperty(value = "计分说明") + @Excel(name = "计分说明") + private String scoringDescription; + + /** + * 题目分值 + */ + @ApiModelProperty(value = "题目分值") + @Excel(name = "题目分值") + private BigDecimal questionScore; + + /** + * 题目排序 + */ + @ApiModelProperty(value = "题目排序") + @Excel(name = "题目排序") + private Integer questionSort; + + /** + * 题目备注 + */ + @ApiModelProperty(value = "题目备注") + @Excel(name = "题目备注") + private String questionRemark; + + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("questionSubmitResultId", getQuestionSubmitResultId()).append("questionInfoId", getQuestionInfoId()).append("questionNumber", getQuestionNumber()).append("questionType", getQuestionType()).append("questionName", getQuestionName()).append("questionDescription", getQuestionDescription()).append("writeDescription", getWriteDescription()).append("fillBlanksAnswer", getFillBlanksAnswer()).append("optionCount", getOptionCount()).append("whetherScore", getWhetherScore()).append("scoringMethod", getScoringMethod()).append("scoringDescription", getScoringDescription()).append("questionScore", getQuestionScore()).append("questionSort", getQuestionSort()).append("questionRemark", getQuestionRemark()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).toString(); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionsubmitresult/PatientQuestionSubmitResult.java b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionsubmitresult/PatientQuestionSubmitResult.java new file mode 100644 index 00000000..cff3107e --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/patientquestionsubmitresult/PatientQuestionSubmitResult.java @@ -0,0 +1,200 @@ +package com.xinelu.manage.domain.patientquestionsubmitresult; + + +import com.xinelu.common.annotation.Excel; +import com.xinelu.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +import java.math.BigDecimal; + +/** + * 患者问卷提交结果信息对象 patient_question_submit_result + * + * @author xinelu + * @date 2024-03-28 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +@ApiModel(value = "患者问卷提交结果信息对象", description = "patient_question_submit_result") +public class PatientQuestionSubmitResult extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 主键id + */ + private Long id; + + /** + * 管理任务执行记录表id + */ + @ApiModelProperty(value = "管理任务执行记录表id") + @Excel(name = "管理任务执行记录表id") + private Long taskExecuteRecordId; + + /** + * 患者表id + */ + @ApiModelProperty(value = "患者表id") + @Excel(name = "患者表id") + private Long patientId; + + /** + * 签约患者管理任务表id + */ + @ApiModelProperty(value = "签约患者管理任务表id") + @Excel(name = "签约患者管理任务表id") + private Long manageRouteId; + + /** + * 签约患者管理任务节点表id + */ + @ApiModelProperty(value = "签约患者管理任务节点表id") + @Excel(name = "签约患者管理任务节点表id") + private Long manageRouteNodeId; + + /** + * 患者姓名(提交者姓名) + */ + @ApiModelProperty(value = "患者姓名") + @Excel(name = "患者姓名", readConverterExp = "提=交者姓名") + private String patientName; + + /** + * 签约患者管理任务名称 + */ + @ApiModelProperty(value = "签约患者管理任务名称") + @Excel(name = "签约患者管理任务名称") + private String manageRouteName; + + /** + * 签约患者管理路径节点名称 + */ + @ApiModelProperty(value = "签约患者管理路径节点名称") + @Excel(name = "签约患者管理路径节点名称") + private String manageRouteNodeName; + + /** + * 问卷表id + */ + @ApiModelProperty(value = "问卷表id") + @Excel(name = "问卷表id") + private Long questionInfoId; + + /** + * 所属科室id + */ + @ApiModelProperty(value = "所属科室id") + @Excel(name = "所属科室id") + private Long departmentId; + + /** + * 所属科室名称 + */ + @ApiModelProperty(value = "所属科室名称") + @Excel(name = "所属科室名称") + private String departmentName; + + /** + * 病种id + */ + @ApiModelProperty(value = "病种id") + @Excel(name = "病种id") + private Long diseaseTypeId; + + /** + * 病种名称 + */ + @ApiModelProperty(value = "病种名称") + @Excel(name = "病种名称") + private String diseaseTypeName; + + /** + * 问卷标题 + */ + @ApiModelProperty(value = "问卷标题") + @Excel(name = "问卷标题") + private String questionnaireName; + + /** + * 问卷说明 + */ + @ApiModelProperty(value = "问卷说明") + @Excel(name = "问卷说明") + private String questionnaireDescription; + + /** + * 作答方式,一页一题:ONE_PAGE_ONE_QUESTION,非一页一题:NOT_ONE_PAGE_ONE_QUESTION + */ + @ApiModelProperty(value = "作答方式,一页一题:ONE_PAGE_ONE_QUESTION,非一页一题:NOT_ONE_PAGE_ONE_QUESTION") + @Excel(name = "作答方式,一页一题:ONE_PAGE_ONE_QUESTION,非一页一题:NOT_ONE_PAGE_ONE_QUESTION") + private String answeringMethod; + + /** + * 问卷ID + */ + @ApiModelProperty(value = "问卷ID") + @Excel(name = "问卷ID") + private String questionnaireId; + + /** + * 问题个数 + */ + @ApiModelProperty(value = "问题个数") + @Excel(name = "问题个数") + private Integer questionCount; + + /** + * 问卷总分值,小数点后两位 + */ + @ApiModelProperty(value = "问卷总分值,小数点后两位") + @Excel(name = "问卷总分值,小数点后两位") + private BigDecimal questionnaireTotalScore; + + /** + * 问卷总得分,根据患者提交问卷得出的分值 + */ + @ApiModelProperty(value = "问卷总得分,根据患者提交问卷得出的分值") + @Excel(name = "问卷总得分,根据患者提交问卷得出的分值") + private BigDecimal totalScore; + + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("taskExecuteRecordId", getTaskExecuteRecordId()) + .append("patientId", getPatientId()) + .append("manageRouteId", getManageRouteId()) + .append("manageRouteNodeId", getManageRouteNodeId()) + .append("patientName", getPatientName()) + .append("manageRouteName", getManageRouteName()) + .append("manageRouteNodeName", getManageRouteNodeName()) + .append("questionInfoId", getQuestionInfoId()) + .append("departmentId", getDepartmentId()) + .append("departmentName", getDepartmentName()) + .append("diseaseTypeId", getDiseaseTypeId()) + .append("diseaseTypeName", getDiseaseTypeName()) + .append("questionnaireName", getQuestionnaireName()) + .append("questionnaireDescription", getQuestionnaireDescription()) + .append("answeringMethod", getAnsweringMethod()) + .append("questionnaireId", getQuestionnaireId()) + .append("questionCount", getQuestionCount()) + .append("questionnaireTotalScore", getQuestionnaireTotalScore()) + .append("totalScore", getTotalScore()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/domain/signpatientmanageroutenode/SignPatientManageRouteNode.java b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/signpatientmanageroutenode/SignPatientManageRouteNode.java index ab016ca7..f3c28637 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/domain/signpatientmanageroutenode/SignPatientManageRouteNode.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/signpatientmanageroutenode/SignPatientManageRouteNode.java @@ -306,4 +306,8 @@ public class SignPatientManageRouteNode extends BaseEntity { @Excel(name = "任务链接") private String routeLink; + /** 文字提醒内容 */ + @ApiModelProperty(value = "文字提醒内容") + @Excel(name = "文字提醒内容") + private String textRemindContent; } diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionoptionresult/PatientQuestionOptionResultMapper.java b/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionoptionresult/PatientQuestionOptionResultMapper.java new file mode 100644 index 00000000..ed712d3a --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionoptionresult/PatientQuestionOptionResultMapper.java @@ -0,0 +1,61 @@ +package com.xinelu.manage.mapper.patientquestionoptionresult; + +import com.xinelu.manage.domain.patientquestionoptionresult.PatientQuestionOptionResult; + +import java.util.List; + +/** + * 患者问卷题目选项提交结果信息Mapper接口 + * + * @author xinelu + * @date 2024-03-28 + */ +public interface PatientQuestionOptionResultMapper { + /** + * 查询患者问卷题目选项提交结果信息 + * + * @param id 患者问卷题目选项提交结果信息主键 + * @return 患者问卷题目选项提交结果信息 + */ + PatientQuestionOptionResult selectPatientQuestionOptionResultById(Long id); + + /** + * 查询患者问卷题目选项提交结果信息列表 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 患者问卷题目选项提交结果信息集合 + */ + List selectPatientQuestionOptionResultList(PatientQuestionOptionResult patientQuestionOptionResult); + + /** + * 新增患者问卷题目选项提交结果信息 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 结果 + */ + int insertPatientQuestionOptionResult(PatientQuestionOptionResult patientQuestionOptionResult); + + /** + * 修改患者问卷题目选项提交结果信息 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 结果 + */ + int updatePatientQuestionOptionResult(PatientQuestionOptionResult patientQuestionOptionResult); + + /** + * 删除患者问卷题目选项提交结果信息 + * + * @param id 患者问卷题目选项提交结果信息主键 + * @return 结果 + */ + int deletePatientQuestionOptionResultById(Long id); + + /** + * 批量删除患者问卷题目选项提交结果信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + int deletePatientQuestionOptionResultByIds(Long[] ids); +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionsubjectresult/PatientQuestionSubjectResultMapper.java b/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionsubjectresult/PatientQuestionSubjectResultMapper.java new file mode 100644 index 00000000..ad7264a4 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionsubjectresult/PatientQuestionSubjectResultMapper.java @@ -0,0 +1,61 @@ +package com.xinelu.manage.mapper.patientquestionsubjectresult; + +import com.xinelu.manage.domain.patientquestionsubjectresult.PatientQuestionSubjectResult; + +import java.util.List; + +/** + * 患者问卷题目提交结果信息Mapper接口 + * + * @author xinelu + * @date 2024-03-28 + */ +public interface PatientQuestionSubjectResultMapper { + /** + * 查询患者问卷题目提交结果信息 + * + * @param id 患者问卷题目提交结果信息主键 + * @return 患者问卷题目提交结果信息 + */ + PatientQuestionSubjectResult selectPatientQuestionSubjectResultById(Long id); + + /** + * 查询患者问卷题目提交结果信息列表 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 患者问卷题目提交结果信息集合 + */ + List selectPatientQuestionSubjectResultList(PatientQuestionSubjectResult patientQuestionSubjectResult); + + /** + * 新增患者问卷题目提交结果信息 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 结果 + */ + int insertPatientQuestionSubjectResult(PatientQuestionSubjectResult patientQuestionSubjectResult); + + /** + * 修改患者问卷题目提交结果信息 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 结果 + */ + int updatePatientQuestionSubjectResult(PatientQuestionSubjectResult patientQuestionSubjectResult); + + /** + * 删除患者问卷题目提交结果信息 + * + * @param id 患者问卷题目提交结果信息主键 + * @return 结果 + */ + int deletePatientQuestionSubjectResultById(Long id); + + /** + * 批量删除患者问卷题目提交结果信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + int deletePatientQuestionSubjectResultByIds(Long[] ids); +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionsubmitresult/PatientQuestionSubmitResultMapper.java b/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionsubmitresult/PatientQuestionSubmitResultMapper.java new file mode 100644 index 00000000..11144866 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/patientquestionsubmitresult/PatientQuestionSubmitResultMapper.java @@ -0,0 +1,64 @@ +package com.xinelu.manage.mapper.patientquestionsubmitresult; + +import com.xinelu.manage.domain.patientquestionsubmitresult.PatientQuestionSubmitResult; +import com.xinelu.manage.vo.patientquestionsubmitresult.PatientQuestionSubmitResultDTO; + +import java.util.List; + +/** + * 患者问卷提交结果信息Mapper接口 + * + * @author xinelu + * @date 2024-03-28 + */ +public interface PatientQuestionSubmitResultMapper { + /** + * 查询患者问卷提交结果信息 + * + * @param id 患者问卷提交结果信息主键 + * @return 患者问卷提交结果信息 + */ + PatientQuestionSubmitResult selectPatientQuestionSubmitResultById(Long id); + + /** + * 查询患者问卷提交结果信息列表 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 患者问卷提交结果信息集合 + */ + List selectPatientQuestionSubmitResultList(PatientQuestionSubmitResult patientQuestionSubmitResult); + + /** + * 新增患者问卷提交结果信息 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 结果 + */ + int insertPatientQuestionSubmitResult(PatientQuestionSubmitResult patientQuestionSubmitResult); + + /** + * 修改患者问卷提交结果信息 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 结果 + */ + int updatePatientQuestionSubmitResult(PatientQuestionSubmitResult patientQuestionSubmitResult); + + /** + * 删除患者问卷提交结果信息 + * + * @param id 患者问卷提交结果信息主键 + * @return 结果 + */ + int deletePatientQuestionSubmitResultById(Long id); + + /** + * 批量删除患者问卷提交结果信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + int deletePatientQuestionSubmitResultByIds(Long[] ids); + + PatientQuestionSubmitResultDTO selectResultByTaskExecuteRecordId(Long taskExecuteRecordId); +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/agency/impl/AgencyServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/agency/impl/AgencyServiceImpl.java index 8a8f85a0..6b58c9d5 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/service/agency/impl/AgencyServiceImpl.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/agency/impl/AgencyServiceImpl.java @@ -59,18 +59,20 @@ public class AgencyServiceImpl implements IAgencyService { @Override public AgencyVO selectAgencyById(Long id) { AgencyVO agency = agencyMapper.selectAgencyVOById(id); - if (StringUtils.isNotBlank(agency.getAreaCode())) { + if (Objects.nonNull(agency) && StringUtils.isNotBlank(agency.getAreaCode())) { SysAreaVO nurseStationAndAreaCode = sysAreaMapper.getSubordinateRegionsFindSuperiorRegions(agency.getAreaCode()); - agency.setProvinceCode(StringUtils.isBlank(nurseStationAndAreaCode.getProvinceCode()) ? "" : nurseStationAndAreaCode.getProvinceCode()); - agency.setProvinceName(StringUtils.isBlank(nurseStationAndAreaCode.getProvinceName()) ? "" : nurseStationAndAreaCode.getProvinceName()); - agency.setCityCode(StringUtils.isBlank(nurseStationAndAreaCode.getCityCode()) ? "" : nurseStationAndAreaCode.getCityCode()); - agency.setCityName(StringUtils.isBlank(nurseStationAndAreaCode.getCityName()) ? "" : nurseStationAndAreaCode.getCityName()); - agency.setRegionCode(StringUtils.isBlank(nurseStationAndAreaCode.getRegionCode()) ? "" : nurseStationAndAreaCode.getRegionCode()); - agency.setRegionName(StringUtils.isBlank(nurseStationAndAreaCode.getRegionName()) ? "" : nurseStationAndAreaCode.getRegionName()); - agency.setStreetCode(StringUtils.isBlank(nurseStationAndAreaCode.getStreetCode()) ? "" : nurseStationAndAreaCode.getStreetCode()); - agency.setStreetName(StringUtils.isBlank(nurseStationAndAreaCode.getStreetName()) ? "" : nurseStationAndAreaCode.getStreetName()); - agency.setCommunityCode(StringUtils.isBlank(nurseStationAndAreaCode.getCommunityCode()) ? "" : nurseStationAndAreaCode.getCommunityCode()); - agency.setCommunityName(StringUtils.isBlank(nurseStationAndAreaCode.getCommunityName()) ? "" : nurseStationAndAreaCode.getCommunityName()); + if (Objects.nonNull(nurseStationAndAreaCode)) { + agency.setProvinceCode(StringUtils.isBlank(nurseStationAndAreaCode.getProvinceCode()) ? "" : nurseStationAndAreaCode.getProvinceCode()); + agency.setProvinceName(StringUtils.isBlank(nurseStationAndAreaCode.getProvinceName()) ? "" : nurseStationAndAreaCode.getProvinceName()); + agency.setCityCode(StringUtils.isBlank(nurseStationAndAreaCode.getCityCode()) ? "" : nurseStationAndAreaCode.getCityCode()); + agency.setCityName(StringUtils.isBlank(nurseStationAndAreaCode.getCityName()) ? "" : nurseStationAndAreaCode.getCityName()); + agency.setRegionCode(StringUtils.isBlank(nurseStationAndAreaCode.getRegionCode()) ? "" : nurseStationAndAreaCode.getRegionCode()); + agency.setRegionName(StringUtils.isBlank(nurseStationAndAreaCode.getRegionName()) ? "" : nurseStationAndAreaCode.getRegionName()); + agency.setStreetCode(StringUtils.isBlank(nurseStationAndAreaCode.getStreetCode()) ? "" : nurseStationAndAreaCode.getStreetCode()); + agency.setStreetName(StringUtils.isBlank(nurseStationAndAreaCode.getStreetName()) ? "" : nurseStationAndAreaCode.getStreetName()); + agency.setCommunityCode(StringUtils.isBlank(nurseStationAndAreaCode.getCommunityCode()) ? "" : nurseStationAndAreaCode.getCommunityCode()); + agency.setCommunityName(StringUtils.isBlank(nurseStationAndAreaCode.getCommunityName()) ? "" : nurseStationAndAreaCode.getCommunityName()); + } } return agency; } diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionoptionresult/IPatientQuestionOptionResultService.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionoptionresult/IPatientQuestionOptionResultService.java new file mode 100644 index 00000000..1259b732 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionoptionresult/IPatientQuestionOptionResultService.java @@ -0,0 +1,61 @@ +package com.xinelu.manage.service.patientquestionoptionresult; + +import com.xinelu.manage.domain.patientquestionoptionresult.PatientQuestionOptionResult; + +import java.util.List; + +/** + * 患者问卷题目选项提交结果信息Service接口 + * + * @author xinelu + * @date 2024-03-28 + */ +public interface IPatientQuestionOptionResultService { + /** + * 查询患者问卷题目选项提交结果信息 + * + * @param id 患者问卷题目选项提交结果信息主键 + * @return 患者问卷题目选项提交结果信息 + */ + PatientQuestionOptionResult selectPatientQuestionOptionResultById(Long id); + + /** + * 查询患者问卷题目选项提交结果信息列表 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 患者问卷题目选项提交结果信息集合 + */ + List selectPatientQuestionOptionResultList(PatientQuestionOptionResult patientQuestionOptionResult); + + /** + * 新增患者问卷题目选项提交结果信息 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 结果 + */ + int insertPatientQuestionOptionResult(PatientQuestionOptionResult patientQuestionOptionResult); + + /** + * 修改患者问卷题目选项提交结果信息 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 结果 + */ + int updatePatientQuestionOptionResult(PatientQuestionOptionResult patientQuestionOptionResult); + + /** + * 批量删除患者问卷题目选项提交结果信息 + * + * @param ids 需要删除的患者问卷题目选项提交结果信息主键集合 + * @return 结果 + */ + int deletePatientQuestionOptionResultByIds(Long[] ids); + + /** + * 删除患者问卷题目选项提交结果信息信息 + * + * @param id 患者问卷题目选项提交结果信息主键 + * @return 结果 + */ + int deletePatientQuestionOptionResultById(Long id); +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionoptionresult/impl/PatientQuestionOptionResultServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionoptionresult/impl/PatientQuestionOptionResultServiceImpl.java new file mode 100644 index 00000000..5640e6a7 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionoptionresult/impl/PatientQuestionOptionResultServiceImpl.java @@ -0,0 +1,90 @@ +package com.xinelu.manage.service.patientquestionoptionresult.impl; + +import com.xinelu.manage.domain.patientquestionoptionresult.PatientQuestionOptionResult; +import com.xinelu.manage.mapper.patientquestionoptionresult.PatientQuestionOptionResultMapper; +import com.xinelu.manage.service.patientquestionoptionresult.IPatientQuestionOptionResultService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.time.LocalDateTime; +import java.util.List; + +/** + * 患者问卷题目选项提交结果信息Service业务层处理 + * + * @author xinelu + * @date 2024-03-28 + */ +@Service +public class PatientQuestionOptionResultServiceImpl implements IPatientQuestionOptionResultService { + @Resource + private PatientQuestionOptionResultMapper patientQuestionOptionResultMapper; + + /** + * 查询患者问卷题目选项提交结果信息 + * + * @param id 患者问卷题目选项提交结果信息主键 + * @return 患者问卷题目选项提交结果信息 + */ + @Override + public PatientQuestionOptionResult selectPatientQuestionOptionResultById(Long id) { + return patientQuestionOptionResultMapper.selectPatientQuestionOptionResultById(id); + } + + /** + * 查询患者问卷题目选项提交结果信息列表 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 患者问卷题目选项提交结果信息 + */ + @Override + public List selectPatientQuestionOptionResultList(PatientQuestionOptionResult patientQuestionOptionResult) { + return patientQuestionOptionResultMapper.selectPatientQuestionOptionResultList(patientQuestionOptionResult); + } + + /** + * 新增患者问卷题目选项提交结果信息 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 结果 + */ + @Override + public int insertPatientQuestionOptionResult(PatientQuestionOptionResult patientQuestionOptionResult) { + patientQuestionOptionResult.setCreateTime(LocalDateTime.now()); + return patientQuestionOptionResultMapper.insertPatientQuestionOptionResult(patientQuestionOptionResult); + } + + /** + * 修改患者问卷题目选项提交结果信息 + * + * @param patientQuestionOptionResult 患者问卷题目选项提交结果信息 + * @return 结果 + */ + @Override + public int updatePatientQuestionOptionResult(PatientQuestionOptionResult patientQuestionOptionResult) { + patientQuestionOptionResult.setUpdateTime(LocalDateTime.now()); + return patientQuestionOptionResultMapper.updatePatientQuestionOptionResult(patientQuestionOptionResult); + } + + /** + * 批量删除患者问卷题目选项提交结果信息 + * + * @param ids 需要删除的患者问卷题目选项提交结果信息主键 + * @return 结果 + */ + @Override + public int deletePatientQuestionOptionResultByIds(Long[] ids) { + return patientQuestionOptionResultMapper.deletePatientQuestionOptionResultByIds(ids); + } + + /** + * 删除患者问卷题目选项提交结果信息信息 + * + * @param id 患者问卷题目选项提交结果信息主键 + * @return 结果 + */ + @Override + public int deletePatientQuestionOptionResultById(Long id) { + return patientQuestionOptionResultMapper.deletePatientQuestionOptionResultById(id); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubjectresult/IPatientQuestionSubjectResultService.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubjectresult/IPatientQuestionSubjectResultService.java new file mode 100644 index 00000000..8153bd9f --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubjectresult/IPatientQuestionSubjectResultService.java @@ -0,0 +1,61 @@ +package com.xinelu.manage.service.patientquestionsubjectresult; + +import com.xinelu.manage.domain.patientquestionsubjectresult.PatientQuestionSubjectResult; + +import java.util.List; + +/** + * 患者问卷题目提交结果信息Service接口 + * + * @author xinelu + * @date 2024-03-28 + */ +public interface IPatientQuestionSubjectResultService { + /** + * 查询患者问卷题目提交结果信息 + * + * @param id 患者问卷题目提交结果信息主键 + * @return 患者问卷题目提交结果信息 + */ + public PatientQuestionSubjectResult selectPatientQuestionSubjectResultById(Long id); + + /** + * 查询患者问卷题目提交结果信息列表 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 患者问卷题目提交结果信息集合 + */ + List selectPatientQuestionSubjectResultList(PatientQuestionSubjectResult patientQuestionSubjectResult); + + /** + * 新增患者问卷题目提交结果信息 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 结果 + */ + int insertPatientQuestionSubjectResult(PatientQuestionSubjectResult patientQuestionSubjectResult); + + /** + * 修改患者问卷题目提交结果信息 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 结果 + */ + int updatePatientQuestionSubjectResult(PatientQuestionSubjectResult patientQuestionSubjectResult); + + /** + * 批量删除患者问卷题目提交结果信息 + * + * @param ids 需要删除的患者问卷题目提交结果信息主键集合 + * @return 结果 + */ + int deletePatientQuestionSubjectResultByIds(Long[] ids); + + /** + * 删除患者问卷题目提交结果信息信息 + * + * @param id 患者问卷题目提交结果信息主键 + * @return 结果 + */ + int deletePatientQuestionSubjectResultById(Long id); +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubjectresult/impl/PatientQuestionSubjectResultServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubjectresult/impl/PatientQuestionSubjectResultServiceImpl.java new file mode 100644 index 00000000..821d7e97 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubjectresult/impl/PatientQuestionSubjectResultServiceImpl.java @@ -0,0 +1,90 @@ +package com.xinelu.manage.service.patientquestionsubjectresult.impl; + +import com.xinelu.manage.domain.patientquestionsubjectresult.PatientQuestionSubjectResult; +import com.xinelu.manage.mapper.patientquestionsubjectresult.PatientQuestionSubjectResultMapper; +import com.xinelu.manage.service.patientquestionsubjectresult.IPatientQuestionSubjectResultService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.time.LocalDateTime; +import java.util.List; + +/** + * 患者问卷题目提交结果信息Service业务层处理 + * + * @author xinelu + * @date 2024-03-28 + */ +@Service +public class PatientQuestionSubjectResultServiceImpl implements IPatientQuestionSubjectResultService { + @Resource + private PatientQuestionSubjectResultMapper patientQuestionSubjectResultMapper; + + /** + * 查询患者问卷题目提交结果信息 + * + * @param id 患者问卷题目提交结果信息主键 + * @return 患者问卷题目提交结果信息 + */ + @Override + public PatientQuestionSubjectResult selectPatientQuestionSubjectResultById(Long id) { + return patientQuestionSubjectResultMapper.selectPatientQuestionSubjectResultById(id); + } + + /** + * 查询患者问卷题目提交结果信息列表 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 患者问卷题目提交结果信息 + */ + @Override + public List selectPatientQuestionSubjectResultList(PatientQuestionSubjectResult patientQuestionSubjectResult) { + return patientQuestionSubjectResultMapper.selectPatientQuestionSubjectResultList(patientQuestionSubjectResult); + } + + /** + * 新增患者问卷题目提交结果信息 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 结果 + */ + @Override + public int insertPatientQuestionSubjectResult(PatientQuestionSubjectResult patientQuestionSubjectResult) { + patientQuestionSubjectResult.setCreateTime(LocalDateTime.now()); + return patientQuestionSubjectResultMapper.insertPatientQuestionSubjectResult(patientQuestionSubjectResult); + } + + /** + * 修改患者问卷题目提交结果信息 + * + * @param patientQuestionSubjectResult 患者问卷题目提交结果信息 + * @return 结果 + */ + @Override + public int updatePatientQuestionSubjectResult(PatientQuestionSubjectResult patientQuestionSubjectResult) { + patientQuestionSubjectResult.setUpdateTime(LocalDateTime.now()); + return patientQuestionSubjectResultMapper.updatePatientQuestionSubjectResult(patientQuestionSubjectResult); + } + + /** + * 批量删除患者问卷题目提交结果信息 + * + * @param ids 需要删除的患者问卷题目提交结果信息主键 + * @return 结果 + */ + @Override + public int deletePatientQuestionSubjectResultByIds(Long[] ids) { + return patientQuestionSubjectResultMapper.deletePatientQuestionSubjectResultByIds(ids); + } + + /** + * 删除患者问卷题目提交结果信息信息 + * + * @param id 患者问卷题目提交结果信息主键 + * @return 结果 + */ + @Override + public int deletePatientQuestionSubjectResultById(Long id) { + return patientQuestionSubjectResultMapper.deletePatientQuestionSubjectResultById(id); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubmitresult/IPatientQuestionSubmitResultService.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubmitresult/IPatientQuestionSubmitResultService.java new file mode 100644 index 00000000..c8535f0d --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubmitresult/IPatientQuestionSubmitResultService.java @@ -0,0 +1,61 @@ +package com.xinelu.manage.service.patientquestionsubmitresult; + +import com.xinelu.manage.domain.patientquestionsubmitresult.PatientQuestionSubmitResult; + +import java.util.List; + +/** + * 患者问卷提交结果信息Service接口 + * + * @author xinelu + * @date 2024-03-28 + */ +public interface IPatientQuestionSubmitResultService { + /** + * 查询患者问卷提交结果信息 + * + * @param id 患者问卷提交结果信息主键 + * @return 患者问卷提交结果信息 + */ + PatientQuestionSubmitResult selectPatientQuestionSubmitResultById(Long id); + + /** + * 查询患者问卷提交结果信息列表 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 患者问卷提交结果信息集合 + */ + List selectPatientQuestionSubmitResultList(PatientQuestionSubmitResult patientQuestionSubmitResult); + + /** + * 新增患者问卷提交结果信息 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 结果 + */ + int insertPatientQuestionSubmitResult(PatientQuestionSubmitResult patientQuestionSubmitResult); + + /** + * 修改患者问卷提交结果信息 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 结果 + */ + int updatePatientQuestionSubmitResult(PatientQuestionSubmitResult patientQuestionSubmitResult); + + /** + * 批量删除患者问卷提交结果信息 + * + * @param ids 需要删除的患者问卷提交结果信息主键集合 + * @return 结果 + */ + int deletePatientQuestionSubmitResultByIds(Long[] ids); + + /** + * 删除患者问卷提交结果信息信息 + * + * @param id 患者问卷提交结果信息主键 + * @return 结果 + */ + int deletePatientQuestionSubmitResultById(Long id); +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubmitresult/impl/PatientQuestionSubmitResultServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubmitresult/impl/PatientQuestionSubmitResultServiceImpl.java new file mode 100644 index 00000000..778b857d --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientquestionsubmitresult/impl/PatientQuestionSubmitResultServiceImpl.java @@ -0,0 +1,93 @@ +package com.xinelu.manage.service.patientquestionsubmitresult.impl; + +import java.time.LocalDateTime; +import java.util.List; + +import com.xinelu.manage.domain.patientquestionsubmitresult.PatientQuestionSubmitResult; +import com.xinelu.manage.mapper.patientquestionsubmitresult.PatientQuestionSubmitResultMapper; +import com.xinelu.manage.service.patientquestionsubmitresult.IPatientQuestionSubmitResultService; + +import org.springframework.stereotype.Service; + + +import javax.annotation.Resource; + +/** + * 患者问卷提交结果信息Service业务层处理 + * + * @author xinelu + * @date 2024-03-28 + */ +@Service +public class PatientQuestionSubmitResultServiceImpl implements IPatientQuestionSubmitResultService { + @Resource + private PatientQuestionSubmitResultMapper patientQuestionSubmitResultMapper; + + /** + * 查询患者问卷提交结果信息 + * + * @param id 患者问卷提交结果信息主键 + * @return 患者问卷提交结果信息 + */ + @Override + public PatientQuestionSubmitResult selectPatientQuestionSubmitResultById(Long id) { + return patientQuestionSubmitResultMapper.selectPatientQuestionSubmitResultById(id); + } + + /** + * 查询患者问卷提交结果信息列表 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 患者问卷提交结果信息 + */ + @Override + public List selectPatientQuestionSubmitResultList(PatientQuestionSubmitResult patientQuestionSubmitResult) { + return patientQuestionSubmitResultMapper.selectPatientQuestionSubmitResultList(patientQuestionSubmitResult); + } + + /** + * 新增患者问卷提交结果信息 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 结果 + */ + @Override + public int insertPatientQuestionSubmitResult(PatientQuestionSubmitResult patientQuestionSubmitResult) { + patientQuestionSubmitResult.setCreateTime(LocalDateTime.now()); + return patientQuestionSubmitResultMapper.insertPatientQuestionSubmitResult(patientQuestionSubmitResult); + } + + /** + * 修改患者问卷提交结果信息 + * + * @param patientQuestionSubmitResult 患者问卷提交结果信息 + * @return 结果 + */ + @Override + public int updatePatientQuestionSubmitResult(PatientQuestionSubmitResult patientQuestionSubmitResult) { + patientQuestionSubmitResult.setUpdateTime(LocalDateTime.now()); + return patientQuestionSubmitResultMapper.updatePatientQuestionSubmitResult(patientQuestionSubmitResult); + } + + /** + * 批量删除患者问卷提交结果信息 + * + * @param ids 需要删除的患者问卷提交结果信息主键 + * @return 结果 + */ + @Override + public int deletePatientQuestionSubmitResultByIds(Long[] ids) { + return patientQuestionSubmitResultMapper.deletePatientQuestionSubmitResultByIds(ids); + } + + /** + * 删除患者问卷提交结果信息信息 + * + * @param id 患者问卷提交结果信息主键 + * @return 结果 + */ + @Override + public int deletePatientQuestionSubmitResultById(Long id) { + return patientQuestionSubmitResultMapper.deletePatientQuestionSubmitResultById(id); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientquestionsubjectresult/PatientQuestionSubjectResultDTO.java b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientquestionsubjectresult/PatientQuestionSubjectResultDTO.java new file mode 100644 index 00000000..375d289b --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientquestionsubjectresult/PatientQuestionSubjectResultDTO.java @@ -0,0 +1,23 @@ +package com.xinelu.manage.vo.patientquestionsubjectresult; + +import com.xinelu.manage.domain.patientquestionoptionresult.PatientQuestionOptionResult; +import com.xinelu.manage.domain.patientquestionsubjectresult.PatientQuestionSubjectResult; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.List; + +/** + * 患者问卷题目提交结果信息对象 patient_question_subject_result + * + * @author xinelu + * @date 2024-03-28 + */ +@EqualsAndHashCode(callSuper = true) +@Data +public class PatientQuestionSubjectResultDTO extends PatientQuestionSubjectResult { + + private Long subjectResult; + + List optionResults; +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientquestionsubmitresult/PatientQuestionSubmitResultDTO.java b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientquestionsubmitresult/PatientQuestionSubmitResultDTO.java new file mode 100644 index 00000000..921e4826 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/patientquestionsubmitresult/PatientQuestionSubmitResultDTO.java @@ -0,0 +1,33 @@ +package com.xinelu.manage.vo.patientquestionsubmitresult; + + +import com.xinelu.manage.vo.patientquestionsubjectresult.PatientQuestionSubjectResultDTO; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.List; + +/** + * 患者问卷提交结果信息对象 patient_question_submit_result + * + * @author xinelu + * @date 2024-03-28 + */ +@Data +public class PatientQuestionSubmitResultDTO { + + private Long submitResulId; + /** + * 问卷标题 + */ + @ApiModelProperty(value = "问卷标题") + private String questionnaireName; + + /** + * 问卷说明 + */ + @ApiModelProperty(value = "问卷说明") + private String questionnaireDescription; + + List subjectResultList; +} diff --git a/postdischarge-manage/src/main/resources/mapper/manage/patientquestionoptionresult/PatientQuestionOptionResultMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/patientquestionoptionresult/PatientQuestionOptionResultMapper.xml new file mode 100644 index 00000000..b6b66f60 --- /dev/null +++ b/postdischarge-manage/src/main/resources/mapper/manage/patientquestionoptionresult/PatientQuestionOptionResultMapper.xml @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + select id, + question_subject_result_id, + questionnaire_subject_id, + question_name, + option_name, + option_answer, + option_score, + option_choose_sign, + option_submit_answer, + option_sort, + option_remark, + create_by, + create_time, + update_by, + update_time + from patient_question_option_result + + + + + + + + insert into patient_question_option_result + + question_subject_result_id, + + questionnaire_subject_id, + + question_name, + + option_name, + + option_answer, + + option_score, + + option_choose_sign, + + option_submit_answer, + + option_sort, + + option_remark, + + create_by, + + create_time, + + update_by, + + update_time, + + + + #{questionSubjectResultId}, + + #{questionnaireSubjectId}, + + #{questionName}, + + #{optionName}, + + #{optionAnswer}, + + #{optionScore}, + + #{optionChooseSign}, + + #{optionSubmitAnswer}, + + #{optionSort}, + + #{optionRemark}, + + #{createBy}, + + #{createTime}, + + #{updateBy}, + + #{updateTime}, + + + + + + update patient_question_option_result + + question_subject_result_id = + #{questionSubjectResultId}, + + questionnaire_subject_id = + #{questionnaireSubjectId}, + + question_name = + #{questionName}, + + option_name = + #{optionName}, + + option_answer = + #{optionAnswer}, + + option_score = + #{optionScore}, + + option_choose_sign = + #{optionChooseSign}, + + option_submit_answer = + #{optionSubmitAnswer}, + + option_sort = + #{optionSort}, + + option_remark = + #{optionRemark}, + + create_by = + #{createBy}, + + create_time = + #{createTime}, + + update_by = + #{updateBy}, + + update_time = + #{updateTime}, + + + where id = #{id} + + + + delete + from patient_question_option_result + where id = #{id} + + + + delete from patient_question_option_result where id in + + #{id} + + + \ No newline at end of file diff --git a/postdischarge-manage/src/main/resources/mapper/manage/patientquestionsubjectresult/PatientQuestionSubjectResultMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/patientquestionsubjectresult/PatientQuestionSubjectResultMapper.xml new file mode 100644 index 00000000..afd43561 --- /dev/null +++ b/postdischarge-manage/src/main/resources/mapper/manage/patientquestionsubjectresult/PatientQuestionSubjectResultMapper.xml @@ -0,0 +1,273 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, + question_submit_result_id, + question_info_id, + question_number, + question_type, + question_name, + question_description, + write_description, + fill_blanks_answer, + option_count, + whether_score, + scoring_method, + scoring_description, + question_score, + question_sort, + question_remark, + create_by, + create_time, + update_by, + update_time + from patient_question_subject_result + + + + + + + + insert into patient_question_subject_result + + question_submit_result_id, + + question_info_id, + + question_number, + + question_type, + + question_name, + + question_description, + + write_description, + + fill_blanks_answer, + + option_count, + + whether_score, + + scoring_method, + + scoring_description, + + question_score, + + question_sort, + + question_remark, + + create_by, + + create_time, + + update_by, + + update_time, + + + + #{questionSubmitResultId}, + + #{questionInfoId}, + + #{questionNumber}, + + #{questionType}, + + #{questionName}, + + #{questionDescription}, + + #{writeDescription}, + + #{fillBlanksAnswer}, + + #{optionCount}, + + #{whetherScore}, + + #{scoringMethod}, + + #{scoringDescription}, + + #{questionScore}, + + #{questionSort}, + + #{questionRemark}, + + #{createBy}, + + #{createTime}, + + #{updateBy}, + + #{updateTime}, + + + + + + update patient_question_subject_result + + question_submit_result_id = + #{questionSubmitResultId}, + + question_info_id = + #{questionInfoId}, + + question_number = + #{questionNumber}, + + question_type = + #{questionType}, + + question_name = + #{questionName}, + + question_description = + #{questionDescription}, + + write_description = + #{writeDescription}, + + fill_blanks_answer = + #{fillBlanksAnswer}, + + option_count = + #{optionCount}, + + whether_score = + #{whetherScore}, + + scoring_method = + #{scoringMethod}, + + scoring_description = + #{scoringDescription}, + + question_score = + #{questionScore}, + + question_sort = + #{questionSort}, + + question_remark = + #{questionRemark}, + + create_by = + #{createBy}, + + create_time = + #{createTime}, + + update_by = + #{updateBy}, + + update_time = + #{updateTime}, + + + where id = #{id} + + + + delete + from patient_question_subject_result + where id = #{id} + + + + delete from patient_question_subject_result where id in + + #{id} + + + \ No newline at end of file diff --git a/postdischarge-manage/src/main/resources/mapper/manage/patientquestionsubmitresult/PatientQuestionSubmitResultMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/patientquestionsubmitresult/PatientQuestionSubmitResultMapper.xml new file mode 100644 index 00000000..52dd70ce --- /dev/null +++ b/postdischarge-manage/src/main/resources/mapper/manage/patientquestionsubmitresult/PatientQuestionSubmitResultMapper.xml @@ -0,0 +1,413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, + task_execute_record_id, + patient_id, + manage_route_id, + manage_route_node_id, + patient_name, + manage_route_name, + manage_route_node_name, + question_info_id, + department_id, + department_name, + disease_type_id, + disease_type_name, + questionnaire_name, + questionnaire_description, + answering_method, + questionnaire_id, + question_count, + questionnaire_total_score, + total_score, + remark, + create_by, + create_time, + update_by, + update_time + from patient_question_submit_result + + + + + + + + insert into patient_question_submit_result + + task_execute_record_id, + + patient_id, + + manage_route_id, + + manage_route_node_id, + + patient_name, + + manage_route_name, + + manage_route_node_name, + + question_info_id, + + department_id, + + department_name, + + disease_type_id, + + disease_type_name, + + questionnaire_name, + + questionnaire_description, + + answering_method, + + questionnaire_id, + + question_count, + + questionnaire_total_score, + + total_score, + + remark, + + create_by, + + create_time, + + update_by, + + update_time, + + + + #{taskExecuteRecordId}, + + #{patientId}, + + #{manageRouteId}, + + #{manageRouteNodeId}, + + #{patientName}, + + #{manageRouteName}, + + #{manageRouteNodeName}, + + #{questionInfoId}, + + #{departmentId}, + + #{departmentName}, + + #{diseaseTypeId}, + + #{diseaseTypeName}, + + #{questionnaireName}, + + #{questionnaireDescription}, + + #{answeringMethod}, + + #{questionnaireId}, + + #{questionCount}, + + #{questionnaireTotalScore}, + + #{totalScore}, + + #{remark}, + + #{createBy}, + + #{createTime}, + + #{updateBy}, + + #{updateTime}, + + + + + + update patient_question_submit_result + + task_execute_record_id = + #{taskExecuteRecordId}, + + patient_id = + #{patientId}, + + manage_route_id = + #{manageRouteId}, + + manage_route_node_id = + #{manageRouteNodeId}, + + patient_name = + #{patientName}, + + manage_route_name = + #{manageRouteName}, + + manage_route_node_name = + #{manageRouteNodeName}, + + question_info_id = + #{questionInfoId}, + + department_id = + #{departmentId}, + + department_name = + #{departmentName}, + + disease_type_id = + #{diseaseTypeId}, + + disease_type_name = + #{diseaseTypeName}, + + questionnaire_name = + #{questionnaireName}, + + questionnaire_description = + #{questionnaireDescription}, + + answering_method = + #{answeringMethod}, + + questionnaire_id = + #{questionnaireId}, + + question_count = + #{questionCount}, + + questionnaire_total_score = + #{questionnaireTotalScore}, + + total_score = + #{totalScore}, + + remark = + #{remark}, + + create_by = + #{createBy}, + + create_time = + #{createTime}, + + update_by = + #{updateBy}, + + update_time = + #{updateTime}, + + + where id = #{id} + + + + delete + from patient_question_submit_result + where id = #{id} + + + + delete from patient_question_submit_result where id in + + #{id} + + + + + \ No newline at end of file diff --git a/postdischarge-manage/src/main/resources/mapper/manage/signpatientmanageroutenode/SignPatientManageRouteNodeMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/signpatientmanageroutenode/SignPatientManageRouteNodeMapper.xml index d7779776..ad5eae43 100644 --- a/postdischarge-manage/src/main/resources/mapper/manage/signpatientmanageroutenode/SignPatientManageRouteNodeMapper.xml +++ b/postdischarge-manage/src/main/resources/mapper/manage/signpatientmanageroutenode/SignPatientManageRouteNodeMapper.xml @@ -61,6 +61,7 @@ + @@ -68,7 +69,7 @@ - select id, manage_route_id, manage_route_name, route_node_name, route_node_day, task_type, task_status, task_subdivision, second_classify_describe, execute_time, phone_push_sign, phone_id, phone_template_id, phone_template_name, phone_node_content, phone_redial_times, phone_time_interval, phone_message_remind, phone_message_template_id, phone_message_template_name, question_info_id, questionnaire_name, questionnaire_content, question_expiration_date, propaganda_info_id, propaganda_title, propaganda_content, message_push_sign, message_template__id, message_template_name, message_preview, message_node_content, official_push_sign, official_template_id, official_template_name, official_remind_content, official_node_content, applet_push_sign, applet_template_id, applet_template_name, applet_remind_content, applet_prompt_description, applet_node_content, follow_template_id, follow_template_name, follow_content, route_check_status, route_check_person, route_check_date, route_check_remark, route_node_remark, node_execute_status, route_handle_remark, route_handle_id, route_handle_person, route_link, create_by, create_time, update_by, update_time from sign_patient_manage_route_node + select id, manage_route_id, manage_route_name, route_node_name, route_node_day, task_type, task_status, task_subdivision, second_classify_describe, execute_time, phone_push_sign, phone_id, phone_template_id, phone_template_name, phone_node_content, phone_redial_times, phone_time_interval, phone_message_remind, phone_message_template_id, phone_message_template_name, question_info_id, questionnaire_name, questionnaire_content, question_expiration_date, propaganda_info_id, propaganda_title, propaganda_content, message_push_sign, message_template__id, message_template_name, message_preview, message_node_content, official_push_sign, official_template_id, official_template_name, official_remind_content, official_node_content, applet_push_sign, applet_template_id, applet_template_name, applet_remind_content, applet_prompt_description, applet_node_content, follow_template_id, follow_template_name, follow_content, route_check_status, route_check_person, route_check_date, route_check_remark, route_node_remark, node_execute_status, route_handle_remark, route_handle_id, route_handle_person, route_link,text_remind_content, create_by, create_time, update_by, update_time from sign_patient_manage_route_node @@ -362,6 +366,8 @@ route_link, + text_remind_content, + create_by, create_time, @@ -482,6 +488,8 @@ #{routeLink}, + #{textRemindContent}, + #{createBy}, #{createTime}, @@ -499,7 +507,7 @@ message_template__id, message_template_name, message_preview, message_node_content, official_push_sign, official_template_id, official_template_name, official_remind_content, official_node_content, applet_push_sign, applet_template_id, applet_template_name, applet_remind_content, applet_prompt_description, applet_node_content, follow_template_id, follow_template_name, follow_content, route_check_status, route_check_person, route_check_date, route_check_remark, route_node_remark, node_execute_status, route_handle_remark, - route_handle_id, route_handle_person, route_link, create_by, create_time, update_by, update_time) + route_handle_id, route_handle_person, route_link, text_remind_content,create_by, create_time, update_by, update_time) values (#{item.manageRouteId},#{item.manageRouteName},#{item.routeNodeName},#{item.routeNodeDay},#{item.taskType},#{item.taskStatus},#{item.taskSubdivision},#{item.secondClassifyDescribe}, @@ -508,7 +516,7 @@ #{item.messageTemplateName},#{item.messagePreview},#{item.messageNodeContent},#{item.officialPushSign},#{item.officialTemplateId},#{item.officialTemplateName},#{item.officialRemindContent},#{item.officialNodeContent}, #{item.appletPushSign},#{item.appletTemplateId},#{item.appletTemplateName},#{item.appletRemindContent},#{item.appletPromptDescription},#{item.appletNodeContent},#{item.followTemplateId}, #{item.followTemplateName},#{item.followContent},#{item.routeCheckStatus},#{item.routeCheckPerson},#{item.routeCheckDate},#{item.routeCheckRemark},#{item.routeNodeRemark},#{item.nodeExecuteStatus},#{item.routeHandleRemark}, - #{item.routeHandleId},#{item.routeHandlePerson},#{item.routeLink},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime}) + #{item.routeHandleId},#{item.routeHandlePerson},#{item.routeLink},#{item.textRemindContent},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime}) @@ -679,6 +687,9 @@ route_link = #{routeLink}, + text_remind_content = + #{textRemindContent}, + create_by = #{createBy}, diff --git a/postdischarge-manage/src/main/resources/mapper/manage/sysarea/SysAreaMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/sysarea/SysAreaMapper.xml index 08ad85e8..4f585002 100644 --- a/postdischarge-manage/src/main/resources/mapper/manage/sysarea/SysAreaMapper.xml +++ b/postdischarge-manage/src/main/resources/mapper/manage/sysarea/SysAreaMapper.xml @@ -80,5 +80,24 @@ AND street.parent_code = region.area_code AND community.parent_code = street.area_code AND community.area_code = #{areaCode} + UNION ALL + SELECT province.area_name province_name, + province.area_code province_code, + city.area_name city_name, + city.area_code city_code, + region.area_name region_name, + region.area_code region_code, + street.area_name street_name, + street.area_code street_code, + '' community_name, + '' community_code + FROM sys_area province, + sys_area city, + sys_area region, + sys_area street + WHERE city.parent_code = province.area_code + AND region.parent_code = city.area_code + AND street.parent_code = region.area_code + and street.area_code = #{areaCode} limit 1;