Merge branch '3.11_院后第二增量' of http://182.92.166.109:3000/jihan/PostDischargePatientManage into 3.11_院后第二增量

This commit is contained in:
haown 2024-03-29 11:04:58 +08:00
commit aab7881e27
24 changed files with 2394 additions and 14 deletions

View File

@ -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<PatientQuestionOptionResult> 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<PatientQuestionOptionResult> list = patientQuestionOptionResultService.selectPatientQuestionOptionResultList(patientQuestionOptionResult);
ExcelUtil<PatientQuestionOptionResult> 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));
}
}

View File

@ -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<PatientQuestionSubjectResult> 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<PatientQuestionSubjectResult> list = patientQuestionSubjectResultService.selectPatientQuestionSubjectResultList(patientQuestionSubjectResult);
ExcelUtil<PatientQuestionSubjectResult> 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));
}
}

View File

@ -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<PatientQuestionSubmitResult> 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<PatientQuestionSubmitResult> list = patientQuestionSubmitResultService.selectPatientQuestionSubmitResultList(patientQuestionSubmitResult);
ExcelUtil<PatientQuestionSubmitResult> 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));
}
}

View File

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

View File

@ -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;
/**
* 是否计分01
*/
@ApiModelProperty(value = "是否计分01")
@Excel(name = "是否计分01")
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();
}
}

View File

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

View File

@ -306,4 +306,8 @@ public class SignPatientManageRouteNode extends BaseEntity {
@Excel(name = "任务链接")
private String routeLink;
/** 文字提醒内容 */
@ApiModelProperty(value = "文字提醒内容")
@Excel(name = "文字提醒内容")
private String textRemindContent;
}

View File

@ -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<PatientQuestionOptionResult> 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);
}

View File

@ -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<PatientQuestionSubjectResult> 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);
}

View File

@ -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<PatientQuestionSubmitResult> 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);
}

View File

@ -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;
}

View File

@ -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<PatientQuestionOptionResult> 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);
}

View File

@ -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<PatientQuestionOptionResult> 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);
}
}

View File

@ -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<PatientQuestionSubjectResult> 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);
}

View File

@ -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<PatientQuestionSubjectResult> 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);
}
}

View File

@ -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<PatientQuestionSubmitResult> 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);
}

View File

@ -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<PatientQuestionSubmitResult> 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);
}
}

View File

@ -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<PatientQuestionOptionResult> optionResults;
}

View File

@ -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<PatientQuestionSubjectResultDTO> subjectResultList;
}

View File

@ -0,0 +1,213 @@
<?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.xinelu.manage.mapper.patientquestionoptionresult.PatientQuestionOptionResultMapper">
<resultMap type="PatientQuestionOptionResult" id="PatientQuestionOptionResultResult">
<result property="id" column="id"/>
<result property="questionSubjectResultId" column="question_subject_result_id"/>
<result property="questionnaireSubjectId" column="questionnaire_subject_id"/>
<result property="questionName" column="question_name"/>
<result property="optionName" column="option_name"/>
<result property="optionAnswer" column="option_answer"/>
<result property="optionScore" column="option_score"/>
<result property="optionChooseSign" column="option_choose_sign"/>
<result property="optionSubmitAnswer" column="option_submit_answer"/>
<result property="optionSort" column="option_sort"/>
<result property="optionRemark" column="option_remark"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="selectPatientQuestionOptionResultVo">
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
</sql>
<select id="selectPatientQuestionOptionResultList" parameterType="PatientQuestionOptionResult"
resultMap="PatientQuestionOptionResultResult">
<include refid="selectPatientQuestionOptionResultVo"/>
<where>
<if test="questionSubjectResultId != null ">
and question_subject_result_id = #{questionSubjectResultId}
</if>
<if test="questionnaireSubjectId != null ">
and questionnaire_subject_id = #{questionnaireSubjectId}
</if>
<if test="questionName != null and questionName != ''">
and question_name like concat('%', #{questionName}, '%')
</if>
<if test="optionName != null and optionName != ''">
and option_name like concat('%', #{optionName}, '%')
</if>
<if test="optionAnswer != null and optionAnswer != ''">
and option_answer = #{optionAnswer}
</if>
<if test="optionScore != null ">
and option_score = #{optionScore}
</if>
<if test="optionChooseSign != null ">
and option_choose_sign = #{optionChooseSign}
</if>
<if test="optionSubmitAnswer != null and optionSubmitAnswer != ''">
and option_submit_answer = #{optionSubmitAnswer}
</if>
<if test="optionSort != null ">
and option_sort = #{optionSort}
</if>
<if test="optionRemark != null and optionRemark != ''">
and option_remark = #{optionRemark}
</if>
</where>
</select>
<select id="selectPatientQuestionOptionResultById" parameterType="Long"
resultMap="PatientQuestionOptionResultResult">
<include refid="selectPatientQuestionOptionResultVo"/>
where id = #{id}
</select>
<insert id="insertPatientQuestionOptionResult" parameterType="PatientQuestionOptionResult" useGeneratedKeys="true"
keyProperty="id">
insert into patient_question_option_result
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="questionSubjectResultId != null">question_subject_result_id,
</if>
<if test="questionnaireSubjectId != null">questionnaire_subject_id,
</if>
<if test="questionName != null">question_name,
</if>
<if test="optionName != null">option_name,
</if>
<if test="optionAnswer != null">option_answer,
</if>
<if test="optionScore != null">option_score,
</if>
<if test="optionChooseSign != null">option_choose_sign,
</if>
<if test="optionSubmitAnswer != null">option_submit_answer,
</if>
<if test="optionSort != null">option_sort,
</if>
<if test="optionRemark != null">option_remark,
</if>
<if test="createBy != null">create_by,
</if>
<if test="createTime != null">create_time,
</if>
<if test="updateBy != null">update_by,
</if>
<if test="updateTime != null">update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="questionSubjectResultId != null">#{questionSubjectResultId},
</if>
<if test="questionnaireSubjectId != null">#{questionnaireSubjectId},
</if>
<if test="questionName != null">#{questionName},
</if>
<if test="optionName != null">#{optionName},
</if>
<if test="optionAnswer != null">#{optionAnswer},
</if>
<if test="optionScore != null">#{optionScore},
</if>
<if test="optionChooseSign != null">#{optionChooseSign},
</if>
<if test="optionSubmitAnswer != null">#{optionSubmitAnswer},
</if>
<if test="optionSort != null">#{optionSort},
</if>
<if test="optionRemark != null">#{optionRemark},
</if>
<if test="createBy != null">#{createBy},
</if>
<if test="createTime != null">#{createTime},
</if>
<if test="updateBy != null">#{updateBy},
</if>
<if test="updateTime != null">#{updateTime},
</if>
</trim>
</insert>
<update id="updatePatientQuestionOptionResult" parameterType="PatientQuestionOptionResult">
update patient_question_option_result
<trim prefix="SET" suffixOverrides=",">
<if test="questionSubjectResultId != null">question_subject_result_id =
#{questionSubjectResultId},
</if>
<if test="questionnaireSubjectId != null">questionnaire_subject_id =
#{questionnaireSubjectId},
</if>
<if test="questionName != null">question_name =
#{questionName},
</if>
<if test="optionName != null">option_name =
#{optionName},
</if>
<if test="optionAnswer != null">option_answer =
#{optionAnswer},
</if>
<if test="optionScore != null">option_score =
#{optionScore},
</if>
<if test="optionChooseSign != null">option_choose_sign =
#{optionChooseSign},
</if>
<if test="optionSubmitAnswer != null">option_submit_answer =
#{optionSubmitAnswer},
</if>
<if test="optionSort != null">option_sort =
#{optionSort},
</if>
<if test="optionRemark != null">option_remark =
#{optionRemark},
</if>
<if test="createBy != null">create_by =
#{createBy},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="updateBy != null">update_by =
#{updateBy},
</if>
<if test="updateTime != null">update_time =
#{updateTime},
</if>
</trim>
where id = #{id}
</update>
<delete id="deletePatientQuestionOptionResultById" parameterType="Long">
delete
from patient_question_option_result
where id = #{id}
</delete>
<delete id="deletePatientQuestionOptionResultByIds" parameterType="String">
delete from patient_question_option_result where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,273 @@
<?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.xinelu.manage.mapper.patientquestionsubjectresult.PatientQuestionSubjectResultMapper">
<resultMap type="PatientQuestionSubjectResult" id="PatientQuestionSubjectResultResult">
<result property="id" column="id"/>
<result property="questionSubmitResultId" column="question_submit_result_id"/>
<result property="questionInfoId" column="question_info_id"/>
<result property="questionNumber" column="question_number"/>
<result property="questionType" column="question_type"/>
<result property="questionName" column="question_name"/>
<result property="questionDescription" column="question_description"/>
<result property="writeDescription" column="write_description"/>
<result property="fillBlanksAnswer" column="fill_blanks_answer"/>
<result property="optionCount" column="option_count"/>
<result property="whetherScore" column="whether_score"/>
<result property="scoringMethod" column="scoring_method"/>
<result property="scoringDescription" column="scoring_description"/>
<result property="questionScore" column="question_score"/>
<result property="questionSort" column="question_sort"/>
<result property="questionRemark" column="question_remark"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="selectPatientQuestionSubjectResultVo">
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
</sql>
<select id="selectPatientQuestionSubjectResultList" parameterType="PatientQuestionSubjectResult"
resultMap="PatientQuestionSubjectResultResult">
<include refid="selectPatientQuestionSubjectResultVo"/>
<where>
<if test="questionSubmitResultId != null ">
and question_submit_result_id = #{questionSubmitResultId}
</if>
<if test="questionInfoId != null ">
and question_info_id = #{questionInfoId}
</if>
<if test="questionNumber != null ">
and question_number = #{questionNumber}
</if>
<if test="questionType != null and questionType != ''">
and question_type = #{questionType}
</if>
<if test="questionName != null and questionName != ''">
and question_name like concat('%', #{questionName}, '%')
</if>
<if test="questionDescription != null and questionDescription != ''">
and question_description = #{questionDescription}
</if>
<if test="writeDescription != null and writeDescription != ''">
and write_description = #{writeDescription}
</if>
<if test="fillBlanksAnswer != null and fillBlanksAnswer != ''">
and fill_blanks_answer = #{fillBlanksAnswer}
</if>
<if test="optionCount != null ">
and option_count = #{optionCount}
</if>
<if test="whetherScore != null ">
and whether_score = #{whetherScore}
</if>
<if test="scoringMethod != null and scoringMethod != ''">
and scoring_method = #{scoringMethod}
</if>
<if test="scoringDescription != null and scoringDescription != ''">
and scoring_description = #{scoringDescription}
</if>
<if test="questionScore != null ">
and question_score = #{questionScore}
</if>
<if test="questionSort != null ">
and question_sort = #{questionSort}
</if>
<if test="questionRemark != null and questionRemark != ''">
and question_remark = #{questionRemark}
</if>
</where>
</select>
<select id="selectPatientQuestionSubjectResultById" parameterType="Long"
resultMap="PatientQuestionSubjectResultResult">
<include refid="selectPatientQuestionSubjectResultVo"/>
where id = #{id}
</select>
<insert id="insertPatientQuestionSubjectResult" parameterType="PatientQuestionSubjectResult" useGeneratedKeys="true"
keyProperty="id">
insert into patient_question_subject_result
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="questionSubmitResultId != null">question_submit_result_id,
</if>
<if test="questionInfoId != null">question_info_id,
</if>
<if test="questionNumber != null">question_number,
</if>
<if test="questionType != null">question_type,
</if>
<if test="questionName != null">question_name,
</if>
<if test="questionDescription != null">question_description,
</if>
<if test="writeDescription != null">write_description,
</if>
<if test="fillBlanksAnswer != null">fill_blanks_answer,
</if>
<if test="optionCount != null">option_count,
</if>
<if test="whetherScore != null">whether_score,
</if>
<if test="scoringMethod != null">scoring_method,
</if>
<if test="scoringDescription != null">scoring_description,
</if>
<if test="questionScore != null">question_score,
</if>
<if test="questionSort != null">question_sort,
</if>
<if test="questionRemark != null">question_remark,
</if>
<if test="createBy != null">create_by,
</if>
<if test="createTime != null">create_time,
</if>
<if test="updateBy != null">update_by,
</if>
<if test="updateTime != null">update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="questionSubmitResultId != null">#{questionSubmitResultId},
</if>
<if test="questionInfoId != null">#{questionInfoId},
</if>
<if test="questionNumber != null">#{questionNumber},
</if>
<if test="questionType != null">#{questionType},
</if>
<if test="questionName != null">#{questionName},
</if>
<if test="questionDescription != null">#{questionDescription},
</if>
<if test="writeDescription != null">#{writeDescription},
</if>
<if test="fillBlanksAnswer != null">#{fillBlanksAnswer},
</if>
<if test="optionCount != null">#{optionCount},
</if>
<if test="whetherScore != null">#{whetherScore},
</if>
<if test="scoringMethod != null">#{scoringMethod},
</if>
<if test="scoringDescription != null">#{scoringDescription},
</if>
<if test="questionScore != null">#{questionScore},
</if>
<if test="questionSort != null">#{questionSort},
</if>
<if test="questionRemark != null">#{questionRemark},
</if>
<if test="createBy != null">#{createBy},
</if>
<if test="createTime != null">#{createTime},
</if>
<if test="updateBy != null">#{updateBy},
</if>
<if test="updateTime != null">#{updateTime},
</if>
</trim>
</insert>
<update id="updatePatientQuestionSubjectResult" parameterType="PatientQuestionSubjectResult">
update patient_question_subject_result
<trim prefix="SET" suffixOverrides=",">
<if test="questionSubmitResultId != null">question_submit_result_id =
#{questionSubmitResultId},
</if>
<if test="questionInfoId != null">question_info_id =
#{questionInfoId},
</if>
<if test="questionNumber != null">question_number =
#{questionNumber},
</if>
<if test="questionType != null">question_type =
#{questionType},
</if>
<if test="questionName != null">question_name =
#{questionName},
</if>
<if test="questionDescription != null">question_description =
#{questionDescription},
</if>
<if test="writeDescription != null">write_description =
#{writeDescription},
</if>
<if test="fillBlanksAnswer != null">fill_blanks_answer =
#{fillBlanksAnswer},
</if>
<if test="optionCount != null">option_count =
#{optionCount},
</if>
<if test="whetherScore != null">whether_score =
#{whetherScore},
</if>
<if test="scoringMethod != null">scoring_method =
#{scoringMethod},
</if>
<if test="scoringDescription != null">scoring_description =
#{scoringDescription},
</if>
<if test="questionScore != null">question_score =
#{questionScore},
</if>
<if test="questionSort != null">question_sort =
#{questionSort},
</if>
<if test="questionRemark != null">question_remark =
#{questionRemark},
</if>
<if test="createBy != null">create_by =
#{createBy},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="updateBy != null">update_by =
#{updateBy},
</if>
<if test="updateTime != null">update_time =
#{updateTime},
</if>
</trim>
where id = #{id}
</update>
<delete id="deletePatientQuestionSubjectResultById" parameterType="Long">
delete
from patient_question_subject_result
where id = #{id}
</delete>
<delete id="deletePatientQuestionSubjectResultByIds" parameterType="String">
delete from patient_question_subject_result where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,413 @@
<?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.xinelu.manage.mapper.patientquestionsubmitresult.PatientQuestionSubmitResultMapper">
<resultMap type="PatientQuestionSubmitResult" id="PatientQuestionSubmitResultResult">
<result property="id" column="id"/>
<result property="taskExecuteRecordId" column="task_execute_record_id"/>
<result property="patientId" column="patient_id"/>
<result property="manageRouteId" column="manage_route_id"/>
<result property="manageRouteNodeId" column="manage_route_node_id"/>
<result property="patientName" column="patient_name"/>
<result property="manageRouteName" column="manage_route_name"/>
<result property="manageRouteNodeName" column="manage_route_node_name"/>
<result property="questionInfoId" column="question_info_id"/>
<result property="departmentId" column="department_id"/>
<result property="departmentName" column="department_name"/>
<result property="diseaseTypeId" column="disease_type_id"/>
<result property="diseaseTypeName" column="disease_type_name"/>
<result property="questionnaireName" column="questionnaire_name"/>
<result property="questionnaireDescription" column="questionnaire_description"/>
<result property="answeringMethod" column="answering_method"/>
<result property="questionnaireId" column="questionnaire_id"/>
<result property="questionCount" column="question_count"/>
<result property="questionnaireTotalScore" column="questionnaire_total_score"/>
<result property="totalScore" column="total_score"/>
<result property="remark" column="remark"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<resultMap type="com.xinelu.manage.vo.patientquestionsubmitresult.PatientQuestionSubmitResultDTO"
id="PatientQuestionSubmitResultDTO">
<result property="submitResulId" column="id"/>
<result property="questionnaireName" column="questionnaire_name"/>
<result property="questionnaireDescription" column="questionnaire_description"/>
<collection property="subjectResultList" javaType="java.util.List"
resultMap="PatientQuestionSubjectResultResult"/>
</resultMap>
<resultMap type="com.xinelu.manage.vo.patientquestionsubjectresult.PatientQuestionSubjectResultDTO"
id="PatientQuestionSubjectResultResult">
<result property="subjectResult" column="id"/>
<result property="questionSubmitResultId" column="question_submit_result_id"/>
<result property="questionInfoId" column="question_info_id"/>
<result property="questionNumber" column="question_number"/>
<result property="questionType" column="question_type"/>
<result property="questionName" column="question_name"/>
<result property="questionDescription" column="question_description"/>
<result property="writeDescription" column="write_description"/>
<result property="fillBlanksAnswer" column="fill_blanks_answer"/>
<result property="optionCount" column="option_count"/>
<result property="whetherScore" column="whether_score"/>
<result property="scoringMethod" column="scoring_method"/>
<result property="scoringDescription" column="scoring_description"/>
<result property="questionScore" column="question_score"/>
<result property="questionSort" column="question_sort"/>
<result property="questionRemark" column="question_remark"/>
<collection property="optionResults" javaType="java.util.List"
resultMap="PatientQuestionOptionResultResult"/>
</resultMap>
<resultMap type="PatientQuestionOptionResult" id="PatientQuestionOptionResultResult">
<result property="id" column="id"/>
<result property="questionSubjectResultId" column="question_subject_result_id"/>
<result property="questionnaireSubjectId" column="questionnaire_subject_id"/>
<result property="questionName" column="question_name"/>
<result property="optionName" column="option_name"/>
<result property="optionAnswer" column="option_answer"/>
<result property="optionScore" column="option_score"/>
<result property="optionChooseSign" column="option_choose_sign"/>
<result property="optionSubmitAnswer" column="option_submit_answer"/>
<result property="optionSort" column="option_sort"/>
<result property="optionRemark" column="option_remark"/>
</resultMap>
<sql id="selectPatientQuestionSubmitResultVo">
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
</sql>
<select id="selectPatientQuestionSubmitResultList" parameterType="PatientQuestionSubmitResult"
resultMap="PatientQuestionSubmitResultResult">
<include refid="selectPatientQuestionSubmitResultVo"/>
<where>
<if test="taskExecuteRecordId != null ">
and task_execute_record_id = #{taskExecuteRecordId}
</if>
<if test="patientId != null ">
and patient_id = #{patientId}
</if>
<if test="manageRouteId != null ">
and manage_route_id = #{manageRouteId}
</if>
<if test="manageRouteNodeId != null ">
and manage_route_node_id = #{manageRouteNodeId}
</if>
<if test="patientName != null and patientName != ''">
and patient_name like concat('%', #{patientName}, '%')
</if>
<if test="manageRouteName != null and manageRouteName != ''">
and manage_route_name like concat('%', #{manageRouteName}, '%')
</if>
<if test="manageRouteNodeName != null and manageRouteNodeName != ''">
and manage_route_node_name like concat('%', #{manageRouteNodeName}, '%')
</if>
<if test="questionInfoId != null ">
and question_info_id = #{questionInfoId}
</if>
<if test="departmentId != null ">
and department_id = #{departmentId}
</if>
<if test="departmentName != null and departmentName != ''">
and department_name like concat('%', #{departmentName}, '%')
</if>
<if test="diseaseTypeId != null ">
and disease_type_id = #{diseaseTypeId}
</if>
<if test="diseaseTypeName != null and diseaseTypeName != ''">
and disease_type_name like concat('%', #{diseaseTypeName}, '%')
</if>
<if test="questionnaireName != null and questionnaireName != ''">
and questionnaire_name like concat('%', #{questionnaireName}, '%')
</if>
<if test="questionnaireDescription != null and questionnaireDescription != ''">
and questionnaire_description = #{questionnaireDescription}
</if>
<if test="answeringMethod != null and answeringMethod != ''">
and answering_method = #{answeringMethod}
</if>
<if test="questionnaireId != null and questionnaireId != ''">
and questionnaire_id = #{questionnaireId}
</if>
<if test="questionCount != null ">
and question_count = #{questionCount}
</if>
<if test="questionnaireTotalScore != null ">
and questionnaire_total_score = #{questionnaireTotalScore}
</if>
<if test="totalScore != null ">
and total_score = #{totalScore}
</if>
</where>
</select>
<select id="selectPatientQuestionSubmitResultById" parameterType="Long"
resultMap="PatientQuestionSubmitResultResult">
<include refid="selectPatientQuestionSubmitResultVo"/>
where id = #{id}
</select>
<insert id="insertPatientQuestionSubmitResult" parameterType="PatientQuestionSubmitResult" useGeneratedKeys="true"
keyProperty="id">
insert into patient_question_submit_result
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskExecuteRecordId != null">task_execute_record_id,
</if>
<if test="patientId != null">patient_id,
</if>
<if test="manageRouteId != null">manage_route_id,
</if>
<if test="manageRouteNodeId != null">manage_route_node_id,
</if>
<if test="patientName != null">patient_name,
</if>
<if test="manageRouteName != null">manage_route_name,
</if>
<if test="manageRouteNodeName != null">manage_route_node_name,
</if>
<if test="questionInfoId != null">question_info_id,
</if>
<if test="departmentId != null">department_id,
</if>
<if test="departmentName != null">department_name,
</if>
<if test="diseaseTypeId != null">disease_type_id,
</if>
<if test="diseaseTypeName != null">disease_type_name,
</if>
<if test="questionnaireName != null">questionnaire_name,
</if>
<if test="questionnaireDescription != null">questionnaire_description,
</if>
<if test="answeringMethod != null">answering_method,
</if>
<if test="questionnaireId != null">questionnaire_id,
</if>
<if test="questionCount != null">question_count,
</if>
<if test="questionnaireTotalScore != null">questionnaire_total_score,
</if>
<if test="totalScore != null">total_score,
</if>
<if test="remark != null">remark,
</if>
<if test="createBy != null">create_by,
</if>
<if test="createTime != null">create_time,
</if>
<if test="updateBy != null">update_by,
</if>
<if test="updateTime != null">update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskExecuteRecordId != null">#{taskExecuteRecordId},
</if>
<if test="patientId != null">#{patientId},
</if>
<if test="manageRouteId != null">#{manageRouteId},
</if>
<if test="manageRouteNodeId != null">#{manageRouteNodeId},
</if>
<if test="patientName != null">#{patientName},
</if>
<if test="manageRouteName != null">#{manageRouteName},
</if>
<if test="manageRouteNodeName != null">#{manageRouteNodeName},
</if>
<if test="questionInfoId != null">#{questionInfoId},
</if>
<if test="departmentId != null">#{departmentId},
</if>
<if test="departmentName != null">#{departmentName},
</if>
<if test="diseaseTypeId != null">#{diseaseTypeId},
</if>
<if test="diseaseTypeName != null">#{diseaseTypeName},
</if>
<if test="questionnaireName != null">#{questionnaireName},
</if>
<if test="questionnaireDescription != null">#{questionnaireDescription},
</if>
<if test="answeringMethod != null">#{answeringMethod},
</if>
<if test="questionnaireId != null">#{questionnaireId},
</if>
<if test="questionCount != null">#{questionCount},
</if>
<if test="questionnaireTotalScore != null">#{questionnaireTotalScore},
</if>
<if test="totalScore != null">#{totalScore},
</if>
<if test="remark != null">#{remark},
</if>
<if test="createBy != null">#{createBy},
</if>
<if test="createTime != null">#{createTime},
</if>
<if test="updateBy != null">#{updateBy},
</if>
<if test="updateTime != null">#{updateTime},
</if>
</trim>
</insert>
<update id="updatePatientQuestionSubmitResult" parameterType="PatientQuestionSubmitResult">
update patient_question_submit_result
<trim prefix="SET" suffixOverrides=",">
<if test="taskExecuteRecordId != null">task_execute_record_id =
#{taskExecuteRecordId},
</if>
<if test="patientId != null">patient_id =
#{patientId},
</if>
<if test="manageRouteId != null">manage_route_id =
#{manageRouteId},
</if>
<if test="manageRouteNodeId != null">manage_route_node_id =
#{manageRouteNodeId},
</if>
<if test="patientName != null">patient_name =
#{patientName},
</if>
<if test="manageRouteName != null">manage_route_name =
#{manageRouteName},
</if>
<if test="manageRouteNodeName != null">manage_route_node_name =
#{manageRouteNodeName},
</if>
<if test="questionInfoId != null">question_info_id =
#{questionInfoId},
</if>
<if test="departmentId != null">department_id =
#{departmentId},
</if>
<if test="departmentName != null">department_name =
#{departmentName},
</if>
<if test="diseaseTypeId != null">disease_type_id =
#{diseaseTypeId},
</if>
<if test="diseaseTypeName != null">disease_type_name =
#{diseaseTypeName},
</if>
<if test="questionnaireName != null">questionnaire_name =
#{questionnaireName},
</if>
<if test="questionnaireDescription != null">questionnaire_description =
#{questionnaireDescription},
</if>
<if test="answeringMethod != null">answering_method =
#{answeringMethod},
</if>
<if test="questionnaireId != null">questionnaire_id =
#{questionnaireId},
</if>
<if test="questionCount != null">question_count =
#{questionCount},
</if>
<if test="questionnaireTotalScore != null">questionnaire_total_score =
#{questionnaireTotalScore},
</if>
<if test="totalScore != null">total_score =
#{totalScore},
</if>
<if test="remark != null">remark =
#{remark},
</if>
<if test="createBy != null">create_by =
#{createBy},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="updateBy != null">update_by =
#{updateBy},
</if>
<if test="updateTime != null">update_time =
#{updateTime},
</if>
</trim>
where id = #{id}
</update>
<delete id="deletePatientQuestionSubmitResultById" parameterType="Long">
delete
from patient_question_submit_result
where id = #{id}
</delete>
<delete id="deletePatientQuestionSubmitResultByIds" parameterType="String">
delete from patient_question_submit_result where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectResultByTaskExecuteRecordId"
resultType="com.xinelu.manage.vo.patientquestionsubmitresult.PatientQuestionSubmitResultDTO"
resultMap="PatientQuestionSubmitResultDTO">
select pqsm.id submitResulId,
pqsm.questionnaire_name,
pqsm.questionnaire_description,
pqsj.id subjectResult,
pqsj.question_submit_result_id,
pqsj.question_info_id,
pqsj.question_number,
pqsj.question_type,
pqsj.question_name,
pqsj.question_description,
pqsj.write_description,
pqsj.fill_blanks_answer,
pqsj.option_count,
pqsj.whether_score,
pqsj.scoring_method,
pqsj.scoring_description,
pqsj.question_score,
pqsj.question_sort,
pqsj.question_remark,
pqor.id,
pqor.question_subject_result_id,
pqor.questionnaire_subject_id,
pqor.question_name,
pqor.option_name,
pqor.option_answer,
pqor.option_score,
pqor.option_choose_sign,
pqor.option_submit_answer,
pqor.option_sort,
pqor.option_remark
FROM patient_question_submit_result pqsm
LEFT JOIN patient_question_subject_result pqsj ON pqsm.id = pqsj.question_submit_result_id
LEFT JOIN patient_question_option_result pqor ON pqor.question_subject_result_id = pqsj.id
where pqsm.task_execute_record_id = #{taskExecuteRecordId}
</select>
</mapper>

View File

@ -61,6 +61,7 @@
<result property="routeHandleId" column="route_handle_id"/>
<result property="routeHandlePerson" column="route_handle_person"/>
<result property="routeLink" column="route_link"/>
<result property="textRemindContent" column="text_remind_content"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
@ -68,7 +69,7 @@
</resultMap>
<sql id="selectSignPatientManageRouteNodeVo">
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
</sql>
<select id="selectSignPatientManageRouteNodeList" parameterType="SignPatientManageRouteNode" resultMap="SignPatientManageRouteNodeResult">
@ -239,6 +240,9 @@
<if test="routeLink != null and routeLink != ''">
and route_link = #{routeLink}
</if>
<if test="textRemindContent != null and textRemindContent != ''">
and text_remind_content = #{textRemindContent}
</if>
</where>
</select>
@ -362,6 +366,8 @@
</if>
<if test="routeLink != null">route_link,
</if>
<if test="textRemindContent != null">text_remind_content,
</if>
<if test="createBy != null">create_by,
</if>
<if test="createTime != null">create_time,
@ -482,6 +488,8 @@
</if>
<if test="routeLink != null">#{routeLink},
</if>
<if test="textRemindContent != null">#{textRemindContent},
</if>
<if test="createBy != null">#{createBy},
</if>
<if test="createTime != null">#{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
<foreach collection="nodeList" item="item" separator=",">
(#{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})
</foreach>
</insert>
<update id="updateSignPatientManageRouteNode" parameterType="SignPatientManageRouteNode">
@ -679,6 +687,9 @@
<if test="routeLink != null">route_link =
#{routeLink},
</if>
<if test="textRemindContent != null">text_remind_content =
#{textRemindContent},
</if>
<if test="createBy != null">create_by =
#{createBy},
</if>

View File

@ -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;
</select>
</mapper>