患者管理任务执行记录表
This commit is contained in:
parent
e48ce05c2f
commit
bdc1b53cb2
@ -0,0 +1,79 @@
|
||||
package com.xinelu.manage.controller.patienttaskexecuterecord;
|
||||
|
||||
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.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
||||
import com.xinelu.manage.service.patienttaskexecuterecord.IPatientTaskExecuteRecordService;
|
||||
import com.xinelu.manage.vo.patienttaskexecuterecord.PatientTaskExecuteRecordVO;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 患者管理任务执行记录Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/taskExecuteRecord")
|
||||
public class PatientTaskExecuteRecordController extends BaseController {
|
||||
@Resource
|
||||
private IPatientTaskExecuteRecordService patientTaskExecuteRecordService;
|
||||
|
||||
/**
|
||||
* 查询患者管理任务执行记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskExecuteRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientTaskExecuteRecordVO patientTaskExecuteRecord) {
|
||||
startPage();
|
||||
List<PatientTaskExecuteRecordVO> list = patientTaskExecuteRecordService.selectPatientTaskExecuteRecordList(patientTaskExecuteRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者管理任务执行记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskExecuteRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientTaskExecuteRecordService.selectPatientTaskExecuteRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者管理任务执行记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskExecuteRecord:add')")
|
||||
@Log(title = "患者管理任务执行记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientTaskExecuteRecord patientTaskExecuteRecord) {
|
||||
return toAjax(patientTaskExecuteRecordService.insertPatientTaskExecuteRecord(patientTaskExecuteRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者管理任务执行记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskExecuteRecord:edit')")
|
||||
@Log(title = "患者管理任务执行记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PatientTaskExecuteRecord patientTaskExecuteRecord) {
|
||||
return toAjax(patientTaskExecuteRecordService.updatePatientTaskExecuteRecord(patientTaskExecuteRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者管理任务执行记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskExecuteRecord:remove')")
|
||||
@Log(title = "患者管理任务执行记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientTaskExecuteRecordService.deletePatientTaskExecuteRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -7,6 +7,7 @@ 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.specialdiseasenode.SpecialDiseaseNode;
|
||||
import com.xinelu.manage.dto.specialdiseasenode.SpecialDiseaseNodeDTO;
|
||||
import com.xinelu.manage.service.specialdiseasenode.ISpecialDiseaseNodeService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@ -64,8 +65,8 @@ public class SpecialDiseaseNodeController extends BaseController {
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:specialDiseaseNode:add')")
|
||||
@Log(title = "专病路径-管理节点信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SpecialDiseaseNode specialDiseaseNode) {
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody SpecialDiseaseNodeDTO specialDiseaseNode) {
|
||||
return toAjax(specialDiseaseNodeService.insertSpecialDiseaseNode(specialDiseaseNode));
|
||||
}
|
||||
|
||||
@ -74,7 +75,7 @@ public class SpecialDiseaseNodeController extends BaseController {
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:specialDiseaseNode:edit')")
|
||||
@Log(title = "专病路径-管理节点信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody SpecialDiseaseNode specialDiseaseNode) {
|
||||
return toAjax(specialDiseaseNodeService.updateSpecialDiseaseNode(specialDiseaseNode));
|
||||
}
|
||||
|
||||
@ -14,7 +14,9 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 触发条件关系Controller
|
||||
@ -39,6 +41,17 @@ public class SpecialDiseaseTriggerConditionController extends BaseController {
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询触发条件关系列表
|
||||
*/
|
||||
@GetMapping("/triggerConditionList")
|
||||
public AjaxResult triggerConditionList(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition) {
|
||||
if (Objects.isNull(specialDiseaseTriggerCondition) || Objects.isNull(specialDiseaseTriggerCondition.getRouteId())) {
|
||||
return AjaxResult.success(new ArrayList<>());
|
||||
}
|
||||
return AjaxResult.success(specialDiseaseTriggerConditionService.selectSpecialDiseaseTriggerConditionList(specialDiseaseTriggerCondition));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出触发条件关系列表
|
||||
*/
|
||||
|
||||
@ -0,0 +1,137 @@
|
||||
package com.xinelu.manage.domain.patienttaskexecuterecord;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
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.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* 患者管理任务执行记录对象 patient_task_execute_record
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-25
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者管理任务执行记录对象", description = "patient_task_execute_record")
|
||||
public class PatientTaskExecuteRecord extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者表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 = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 签约患者管理任务名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约患者管理任务名称")
|
||||
@Excel(name = "签约患者管理任务名称")
|
||||
private String manageRouteName;
|
||||
|
||||
/**
|
||||
* 签约患者管理路径节点名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约患者管理路径节点名称")
|
||||
@Excel(name = "签约患者管理路径节点名称")
|
||||
private String manageRouteNodeName;
|
||||
|
||||
/**
|
||||
* 任务内容,电话外呼:PHONE_OUTBOUND,问卷量表:QUESTIONNAIRE_SCALE,宣教文章:PROPAGANDA_ARTICLE,文字提醒:TEXT_REMIND,人工随访:ARTIFICIAL_FOLLOW_UP
|
||||
*/
|
||||
@ApiModelProperty(value = "任务内容,电话外呼:PHONE_OUTBOUND,问卷量表:QUESTIONNAIRE_SCALE,宣教文章:PROPAGANDA_ARTICLE,文字提醒:TEXT_REMIND,人工随访:ARTIFICIAL_FOLLOW_UP")
|
||||
@Excel(name = "任务内容,电话外呼:PHONE_OUTBOUND,问卷量表:QUESTIONNAIRE_SCALE,宣教文章:PROPAGANDA_ARTICLE,文字提醒:TEXT_REMIND,人工随访:ARTIFICIAL_FOLLOW_UP")
|
||||
private String taskContent;
|
||||
|
||||
/**
|
||||
* 任务执行时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "任务执行时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "任务执行时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date executeTime;
|
||||
|
||||
/**
|
||||
* 执行人姓名,手动执行时记录
|
||||
*/
|
||||
@ApiModelProperty(value = "执行人姓名,手动执行时记录")
|
||||
@Excel(name = "执行人姓名,手动执行时记录")
|
||||
private String executePerson;
|
||||
|
||||
/**
|
||||
* 任务执行方式,人工执行:MANUAL_EXECUTE,系统自动执行:SYSTEM_AUTOMATIC_EXECUTE
|
||||
*/
|
||||
@ApiModelProperty(value = "任务执行方式,人工执行:MANUAL_EXECUTE,系统自动执行:SYSTEM_AUTOMATIC_EXECUTE")
|
||||
@Excel(name = "任务执行方式,人工执行:MANUAL_EXECUTE,系统自动执行:SYSTEM_AUTOMATIC_EXECUTE")
|
||||
private String executeType;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
@ApiModelProperty(value = "备注信息")
|
||||
@Excel(name = "备注信息")
|
||||
private String executeRemark;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("patientId", getPatientId())
|
||||
.append("manageRouteId", getManageRouteId())
|
||||
.append("manageRouteNodeId", getManageRouteNodeId())
|
||||
.append("patientName", getPatientName())
|
||||
.append("manageRouteName", getManageRouteName())
|
||||
.append("manageRouteNodeName", getManageRouteNodeName())
|
||||
.append("taskContent", getTaskContent())
|
||||
.append("executeTime", getExecuteTime())
|
||||
.append("executePerson", getExecutePerson())
|
||||
.append("executeType", getExecuteType())
|
||||
.append("executeRemark", getExecuteRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
package com.xinelu.manage.mapper.patienttaskexecuterecord;
|
||||
|
||||
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
||||
import com.xinelu.manage.vo.patienttaskexecuterecord.PatientTaskExecuteRecordVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者管理任务执行记录Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-25
|
||||
*/
|
||||
public interface PatientTaskExecuteRecordMapper {
|
||||
/**
|
||||
* 查询患者管理任务执行记录
|
||||
*
|
||||
* @param id 患者管理任务执行记录主键
|
||||
* @return 患者管理任务执行记录
|
||||
*/
|
||||
PatientTaskExecuteRecord selectPatientTaskExecuteRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者管理任务执行记录列表
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 患者管理任务执行记录集合
|
||||
*/
|
||||
List<PatientTaskExecuteRecord> selectPatientTaskExecuteRecordList(PatientTaskExecuteRecord patientTaskExecuteRecord);
|
||||
|
||||
/**
|
||||
* 查询患者管理任务执行记录列表
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 患者管理任务执行记录集合
|
||||
*/
|
||||
List<PatientTaskExecuteRecordVO> selectPatientAndExecuteRecordList(PatientTaskExecuteRecordVO patientTaskExecuteRecord);
|
||||
|
||||
/**
|
||||
* 新增患者管理任务执行记录
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPatientTaskExecuteRecord(PatientTaskExecuteRecord patientTaskExecuteRecord);
|
||||
|
||||
/**
|
||||
* 修改患者管理任务执行记录
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePatientTaskExecuteRecord(PatientTaskExecuteRecord patientTaskExecuteRecord);
|
||||
|
||||
/**
|
||||
* 删除患者管理任务执行记录
|
||||
*
|
||||
* @param id 患者管理任务执行记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePatientTaskExecuteRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者管理任务执行记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePatientTaskExecuteRecordByIds(Long[] ids);
|
||||
}
|
||||
@ -18,7 +18,7 @@ public interface SpecialDiseaseNodeMapper {
|
||||
* @param id 专病路径-管理节点信息主键
|
||||
* @return 专病路径-管理节点信息
|
||||
*/
|
||||
public SpecialDiseaseNode selectSpecialDiseaseNodeById(Long id);
|
||||
SpecialDiseaseNode selectSpecialDiseaseNodeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询专病路径-管理节点信息列表
|
||||
@ -26,7 +26,7 @@ public interface SpecialDiseaseNodeMapper {
|
||||
* @param specialDiseaseNode 专病路径-管理节点信息
|
||||
* @return 专病路径-管理节点信息集合
|
||||
*/
|
||||
public List<SpecialDiseaseNode> selectSpecialDiseaseNodeList(SpecialDiseaseNode specialDiseaseNode);
|
||||
List<SpecialDiseaseNode> selectSpecialDiseaseNodeList(SpecialDiseaseNode specialDiseaseNode);
|
||||
|
||||
/**
|
||||
* 新增专病路径-管理节点信息
|
||||
@ -34,7 +34,7 @@ public interface SpecialDiseaseNodeMapper {
|
||||
* @param specialDiseaseNode 专病路径-管理节点信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSpecialDiseaseNode(SpecialDiseaseNode specialDiseaseNode);
|
||||
int insertSpecialDiseaseNode(SpecialDiseaseNode specialDiseaseNode);
|
||||
|
||||
/**
|
||||
* 修改专病路径-管理节点信息
|
||||
@ -42,7 +42,7 @@ public interface SpecialDiseaseNodeMapper {
|
||||
* @param specialDiseaseNode 专病路径-管理节点信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSpecialDiseaseNode(SpecialDiseaseNode specialDiseaseNode);
|
||||
int updateSpecialDiseaseNode(SpecialDiseaseNode specialDiseaseNode);
|
||||
|
||||
/**
|
||||
* 删除专病路径-管理节点信息
|
||||
@ -50,7 +50,7 @@ public interface SpecialDiseaseNodeMapper {
|
||||
* @param id 专病路径-管理节点信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSpecialDiseaseNodeById(Long id);
|
||||
int deleteSpecialDiseaseNodeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除专病路径-管理节点信息
|
||||
@ -58,5 +58,7 @@ public interface SpecialDiseaseNodeMapper {
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSpecialDiseaseNodeByIds(Long[] ids);
|
||||
int deleteSpecialDiseaseNodeByIds(Long[] ids);
|
||||
|
||||
int insertSpecialDiseaseNodeList(List<SpecialDiseaseNode> specialDiseaseNodeList);
|
||||
}
|
||||
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.service.patienttaskexecuterecord;
|
||||
|
||||
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
||||
import com.xinelu.manage.vo.patienttaskexecuterecord.PatientTaskExecuteRecordVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者管理任务执行记录Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-25
|
||||
*/
|
||||
public interface IPatientTaskExecuteRecordService {
|
||||
/**
|
||||
* 查询患者管理任务执行记录
|
||||
*
|
||||
* @param id 患者管理任务执行记录主键
|
||||
* @return 患者管理任务执行记录
|
||||
*/
|
||||
PatientTaskExecuteRecord selectPatientTaskExecuteRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者管理任务执行记录列表
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 患者管理任务执行记录集合
|
||||
*/
|
||||
List<PatientTaskExecuteRecordVO> selectPatientTaskExecuteRecordList(PatientTaskExecuteRecordVO patientTaskExecuteRecord);
|
||||
|
||||
/**
|
||||
* 新增患者管理任务执行记录
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPatientTaskExecuteRecord(PatientTaskExecuteRecord patientTaskExecuteRecord);
|
||||
|
||||
/**
|
||||
* 修改患者管理任务执行记录
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePatientTaskExecuteRecord(PatientTaskExecuteRecord patientTaskExecuteRecord);
|
||||
|
||||
/**
|
||||
* 批量删除患者管理任务执行记录
|
||||
*
|
||||
* @param ids 需要删除的患者管理任务执行记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePatientTaskExecuteRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者管理任务执行记录信息
|
||||
*
|
||||
* @param id 患者管理任务执行记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePatientTaskExecuteRecordById(Long id);
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package com.xinelu.manage.service.patienttaskexecuterecord.impl;
|
||||
|
||||
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
||||
import com.xinelu.manage.mapper.patienttaskexecuterecord.PatientTaskExecuteRecordMapper;
|
||||
import com.xinelu.manage.service.patienttaskexecuterecord.IPatientTaskExecuteRecordService;
|
||||
import com.xinelu.manage.vo.patienttaskexecuterecord.PatientTaskExecuteRecordVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者管理任务执行记录Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-25
|
||||
*/
|
||||
@Service
|
||||
public class PatientTaskExecuteRecordServiceImpl implements IPatientTaskExecuteRecordService {
|
||||
@Resource
|
||||
private PatientTaskExecuteRecordMapper patientTaskExecuteRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询患者管理任务执行记录
|
||||
*
|
||||
* @param id 患者管理任务执行记录主键
|
||||
* @return 患者管理任务执行记录
|
||||
*/
|
||||
@Override
|
||||
public PatientTaskExecuteRecord selectPatientTaskExecuteRecordById(Long id) {
|
||||
return patientTaskExecuteRecordMapper.selectPatientTaskExecuteRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者管理任务执行记录列表
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 患者管理任务执行记录
|
||||
*/
|
||||
@Override
|
||||
public List<PatientTaskExecuteRecordVO> selectPatientTaskExecuteRecordList(PatientTaskExecuteRecordVO patientTaskExecuteRecord) {
|
||||
return patientTaskExecuteRecordMapper.selectPatientAndExecuteRecordList(patientTaskExecuteRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者管理任务执行记录
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientTaskExecuteRecord(PatientTaskExecuteRecord patientTaskExecuteRecord) {
|
||||
patientTaskExecuteRecord.setCreateTime(LocalDateTime.now());
|
||||
return patientTaskExecuteRecordMapper.insertPatientTaskExecuteRecord(patientTaskExecuteRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者管理任务执行记录
|
||||
*
|
||||
* @param patientTaskExecuteRecord 患者管理任务执行记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientTaskExecuteRecord(PatientTaskExecuteRecord patientTaskExecuteRecord) {
|
||||
patientTaskExecuteRecord.setUpdateTime(LocalDateTime.now());
|
||||
return patientTaskExecuteRecordMapper.updatePatientTaskExecuteRecord(patientTaskExecuteRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者管理任务执行记录
|
||||
*
|
||||
* @param ids 需要删除的患者管理任务执行记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientTaskExecuteRecordByIds(Long[] ids) {
|
||||
return patientTaskExecuteRecordMapper.deletePatientTaskExecuteRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者管理任务执行记录信息
|
||||
*
|
||||
* @param id 患者管理任务执行记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientTaskExecuteRecordById(Long id) {
|
||||
return patientTaskExecuteRecordMapper.deletePatientTaskExecuteRecordById(id);
|
||||
}
|
||||
}
|
||||
@ -1,6 +1,7 @@
|
||||
package com.xinelu.manage.service.specialdiseasenode;
|
||||
|
||||
import com.xinelu.manage.domain.specialdiseasenode.SpecialDiseaseNode;
|
||||
import com.xinelu.manage.dto.specialdiseasenode.SpecialDiseaseNodeDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -17,7 +18,7 @@ public interface ISpecialDiseaseNodeService {
|
||||
* @param id 专病路径-管理节点信息主键
|
||||
* @return 专病路径-管理节点信息
|
||||
*/
|
||||
public SpecialDiseaseNode selectSpecialDiseaseNodeById(Long id);
|
||||
SpecialDiseaseNode selectSpecialDiseaseNodeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询专病路径-管理节点信息列表
|
||||
@ -25,7 +26,7 @@ public interface ISpecialDiseaseNodeService {
|
||||
* @param specialDiseaseNode 专病路径-管理节点信息
|
||||
* @return 专病路径-管理节点信息集合
|
||||
*/
|
||||
public List<SpecialDiseaseNode> selectSpecialDiseaseNodeList(SpecialDiseaseNode specialDiseaseNode);
|
||||
List<SpecialDiseaseNode> selectSpecialDiseaseNodeList(SpecialDiseaseNode specialDiseaseNode);
|
||||
|
||||
/**
|
||||
* 新增专病路径-管理节点信息
|
||||
@ -33,7 +34,7 @@ public interface ISpecialDiseaseNodeService {
|
||||
* @param specialDiseaseNode 专病路径-管理节点信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSpecialDiseaseNode(SpecialDiseaseNode specialDiseaseNode);
|
||||
int insertSpecialDiseaseNode(SpecialDiseaseNodeDTO specialDiseaseNode);
|
||||
|
||||
/**
|
||||
* 修改专病路径-管理节点信息
|
||||
@ -41,7 +42,7 @@ public interface ISpecialDiseaseNodeService {
|
||||
* @param specialDiseaseNode 专病路径-管理节点信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSpecialDiseaseNode(SpecialDiseaseNode specialDiseaseNode);
|
||||
int updateSpecialDiseaseNode(SpecialDiseaseNode specialDiseaseNode);
|
||||
|
||||
/**
|
||||
* 批量删除专病路径-管理节点信息
|
||||
@ -49,7 +50,7 @@ public interface ISpecialDiseaseNodeService {
|
||||
* @param ids 需要删除的专病路径-管理节点信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSpecialDiseaseNodeByIds(Long[] ids);
|
||||
int deleteSpecialDiseaseNodeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除专病路径-管理节点信息信息
|
||||
@ -57,5 +58,5 @@ public interface ISpecialDiseaseNodeService {
|
||||
* @param id 专病路径-管理节点信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSpecialDiseaseNodeById(Long id);
|
||||
int deleteSpecialDiseaseNodeById(Long id);
|
||||
}
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
package com.xinelu.manage.service.specialdiseasenode.impl;
|
||||
|
||||
import com.xinelu.common.utils.SecurityUtils;
|
||||
import com.xinelu.manage.domain.specialdiseasenode.SpecialDiseaseNode;
|
||||
import com.xinelu.manage.dto.specialdiseasenode.SpecialDiseaseNodeDTO;
|
||||
import com.xinelu.manage.mapper.specialdiseasenode.SpecialDiseaseNodeMapper;
|
||||
import com.xinelu.manage.service.specialdiseasenode.ISpecialDiseaseNodeService;
|
||||
import org.springframework.stereotype.Service;
|
||||
@ -50,9 +52,12 @@ public class SpecialDiseaseNodeServiceImpl implements ISpecialDiseaseNodeService
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSpecialDiseaseNode(SpecialDiseaseNode specialDiseaseNode) {
|
||||
specialDiseaseNode.setCreateTime(LocalDateTime.now());
|
||||
return specialDiseaseNodeMapper.insertSpecialDiseaseNode(specialDiseaseNode);
|
||||
public int insertSpecialDiseaseNode(SpecialDiseaseNodeDTO specialDiseaseNode) {
|
||||
for (SpecialDiseaseNode diseaseNode : specialDiseaseNode.getSpecialDiseaseNodeList()) {
|
||||
diseaseNode.setCreateTime(LocalDateTime.now());
|
||||
diseaseNode.setCreateBy(SecurityUtils.getUsername());
|
||||
}
|
||||
return specialDiseaseNodeMapper.insertSpecialDiseaseNodeList(specialDiseaseNode.getSpecialDiseaseNodeList());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -0,0 +1,156 @@
|
||||
package com.xinelu.manage.vo.patienttaskexecuterecord;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
|
||||
/**
|
||||
* 患者管理任务执行记录对象 patient_task_execute_record
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-25
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者管理任务执行记录对象", description = "patient_task_execute_record")
|
||||
public class PatientTaskExecuteRecordVO extends PatientTaskExecuteRecord {
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 患者电话
|
||||
*/
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/**
|
||||
* 就诊流水号
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/**
|
||||
* 所属医院id
|
||||
*/
|
||||
@ApiModelProperty(value = "所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/**
|
||||
* 所属医院名称
|
||||
*/
|
||||
@ApiModelProperty(value = "所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/**
|
||||
* 所属院区id
|
||||
*/
|
||||
@ApiModelProperty(value = "所属院区id")
|
||||
private Long campusAgencyId;
|
||||
|
||||
/**
|
||||
* 所属院区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "所属院区名称")
|
||||
private String campusAgencyName;
|
||||
|
||||
/**
|
||||
* 所属科室id
|
||||
*/
|
||||
@ApiModelProperty(value = "所属科室id")
|
||||
private Long departmentId;
|
||||
|
||||
/**
|
||||
* 所属科室名称
|
||||
*/
|
||||
@ApiModelProperty(value = "所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/**
|
||||
* 所属病区id
|
||||
*/
|
||||
@ApiModelProperty(value = "所属病区id")
|
||||
private Long wardId;
|
||||
|
||||
/**
|
||||
* 所属病区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "所属病区名称")
|
||||
private String wardName;
|
||||
|
||||
/**
|
||||
* 手术名称
|
||||
*/
|
||||
@ApiModelProperty(value = "手术名称")
|
||||
private String surgicalName;
|
||||
|
||||
/**
|
||||
* 入院时间,时间格式:yyyy-MM-dd
|
||||
*/
|
||||
@ApiModelProperty(value = "入院时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate admissionDate;
|
||||
|
||||
/**
|
||||
* 出院时间(出院患者),时间格式:yyyy-MM-dd
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "出院时间(出院患者)")
|
||||
private LocalDate dischargeDate;
|
||||
|
||||
/**
|
||||
* 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||
private String visitMethod;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate startDate;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate endDate;
|
||||
|
||||
/**
|
||||
* 家属电话
|
||||
*/
|
||||
@ApiModelProperty(value = "家属电话")
|
||||
private String familyMemberPhone;
|
||||
|
||||
/**
|
||||
* 出生日期,格式:yyyy-MM-dd
|
||||
*/
|
||||
@ApiModelProperty(value = "出生日期,格式:yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate birthDate;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/**
|
||||
* 性别,男:MALE,女:FEMALE
|
||||
*/
|
||||
@ApiModelProperty(value = "性别,男:MALE,女:FEMALE")
|
||||
private String sex;
|
||||
|
||||
/**
|
||||
* 住址
|
||||
*/
|
||||
@ApiModelProperty(value = "住址")
|
||||
private String address;
|
||||
}
|
||||
@ -0,0 +1,283 @@
|
||||
<?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.patienttaskexecuterecord.PatientTaskExecuteRecordMapper">
|
||||
|
||||
<resultMap type="PatientTaskExecuteRecord" id="PatientTaskExecuteRecordResult">
|
||||
<result property="id" column="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="taskContent" column="task_content"/>
|
||||
<result property="executeTime" column="execute_time"/>
|
||||
<result property="executePerson" column="execute_person"/>
|
||||
<result property="executeType" column="execute_type"/>
|
||||
<result property="executeRemark" column="execute_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="selectPatientTaskExecuteRecordVo">
|
||||
select id,
|
||||
patient_id,
|
||||
manage_route_id,
|
||||
manage_route_node_id,
|
||||
patient_name,
|
||||
manage_route_name,
|
||||
manage_route_node_name,
|
||||
task_content,
|
||||
execute_time,
|
||||
execute_person,
|
||||
execute_type,
|
||||
execute_remark,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time
|
||||
from patient_task_execute_record
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientTaskExecuteRecordList" parameterType="PatientTaskExecuteRecord"
|
||||
resultMap="PatientTaskExecuteRecordResult">
|
||||
<include refid="selectPatientTaskExecuteRecordVo"/>
|
||||
<where>
|
||||
<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="taskContent != null and taskContent != ''">
|
||||
and task_content = #{taskContent}
|
||||
</if>
|
||||
<if test="executeTime != null ">
|
||||
and execute_time = #{executeTime}
|
||||
</if>
|
||||
<if test="executePerson != null and executePerson != ''">
|
||||
and execute_person = #{executePerson}
|
||||
</if>
|
||||
<if test="executeType != null and executeType != ''">
|
||||
and execute_type = #{executeType}
|
||||
</if>
|
||||
<if test="executeRemark != null and executeRemark != ''">
|
||||
and execute_remark = #{executeRemark}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientAndExecuteRecordList"
|
||||
resultType="com.xinelu.manage.vo.patienttaskexecuterecord.PatientTaskExecuteRecordVO">
|
||||
select pter.id,
|
||||
pter.patient_id,
|
||||
pter.manage_route_id,
|
||||
pter.manage_route_node_id,
|
||||
pter.patient_name,
|
||||
pter.manage_route_name,
|
||||
pter.manage_route_node_name,
|
||||
pter.task_content,
|
||||
pter.execute_time,
|
||||
pter.execute_person,
|
||||
pter.execute_type,
|
||||
pi.patient_phone,
|
||||
pi.patient_type,
|
||||
pi.visit_method,
|
||||
pi.hospital_agency_name,
|
||||
pi.campus_agency_name,
|
||||
pi.department_name,
|
||||
pi.ward_name,
|
||||
pi.visit_serial_number,
|
||||
pi.admission_date,
|
||||
pi.discharge_date,
|
||||
pi.in_hospital_number,
|
||||
pi.family_member_phone,
|
||||
pi.birth_date,
|
||||
pi.card_no,
|
||||
pi.sex,
|
||||
pi.address
|
||||
from patient_task_execute_record pter
|
||||
left join patient_info pi ON pi.id = pter.patient_id
|
||||
where pi.del_flag = 0
|
||||
<if test="patientName != null and patientName != ''">
|
||||
and pi.patient_name = #{patientName}
|
||||
</if>
|
||||
<if test="patientPhone != null and patientPhone != ''">
|
||||
and pi.patient_phone = #{patientPhone}
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null ">
|
||||
and pi.hospital_agency_id = #{hospitalAgencyId}
|
||||
</if>
|
||||
<if test="visitSerialNumber != null and visitSerialNumber != ''">
|
||||
and pi.visit_serial_number = #{visitSerialNumber}
|
||||
</if>
|
||||
<if test="visitMethod != null and visitMethod != ''">
|
||||
and pi.visit_method = #{visitMethod}
|
||||
</if>
|
||||
<if test="executeTime != null ">
|
||||
and pter.execute_time <= #{startDate}
|
||||
</if>
|
||||
<if test="executeTime != null ">
|
||||
and pter.execute_time >= #{endDate}
|
||||
</if>
|
||||
<if test="manageRouteName != null and manageRouteName != ''">
|
||||
and pter.manage_route_name like concat('%', #{manageRouteName}, '%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientTaskExecuteRecordById" parameterType="Long"
|
||||
resultMap="PatientTaskExecuteRecordResult">
|
||||
<include refid="selectPatientTaskExecuteRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientTaskExecuteRecord" parameterType="PatientTaskExecuteRecord" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into patient_task_execute_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<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="taskContent != null">task_content,
|
||||
</if>
|
||||
<if test="executeTime != null">execute_time,
|
||||
</if>
|
||||
<if test="executePerson != null">execute_person,
|
||||
</if>
|
||||
<if test="executeType != null">execute_type,
|
||||
</if>
|
||||
<if test="executeRemark != null">execute_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="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="taskContent != null">#{taskContent},
|
||||
</if>
|
||||
<if test="executeTime != null">#{executeTime},
|
||||
</if>
|
||||
<if test="executePerson != null">#{executePerson},
|
||||
</if>
|
||||
<if test="executeType != null">#{executeType},
|
||||
</if>
|
||||
<if test="executeRemark != null">#{executeRemark},
|
||||
</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="updatePatientTaskExecuteRecord" parameterType="PatientTaskExecuteRecord">
|
||||
update patient_task_execute_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<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="taskContent != null">task_content =
|
||||
#{taskContent},
|
||||
</if>
|
||||
<if test="executeTime != null">execute_time =
|
||||
#{executeTime},
|
||||
</if>
|
||||
<if test="executePerson != null">execute_person =
|
||||
#{executePerson},
|
||||
</if>
|
||||
<if test="executeType != null">execute_type =
|
||||
#{executeType},
|
||||
</if>
|
||||
<if test="executeRemark != null">execute_remark =
|
||||
#{executeRemark},
|
||||
</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="deletePatientTaskExecuteRecordById" parameterType="Long">
|
||||
delete
|
||||
from patient_task_execute_record
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePatientTaskExecuteRecordByIds" parameterType="String">
|
||||
delete from patient_task_execute_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -569,4 +569,97 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="insertSpecialDiseaseNodeList">
|
||||
insert into special_disease_node(
|
||||
route_id,
|
||||
route_name,
|
||||
route_node_name,
|
||||
route_node_day,
|
||||
task_type,
|
||||
task_subdivision,
|
||||
task_status,
|
||||
second_classify_describe,
|
||||
execution_time,
|
||||
template_id,
|
||||
template_name,
|
||||
template_type,
|
||||
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,
|
||||
phone_push_sign,
|
||||
phone_template_id,
|
||||
phone_template_name,
|
||||
phone_message_remind,
|
||||
phone_message_template_id,
|
||||
phone_message_template_name,
|
||||
phone_agency_name,
|
||||
phone_node_content,
|
||||
route_check_status,
|
||||
route_check_person,
|
||||
route_check_date,
|
||||
route_check_remark,
|
||||
create_by,
|
||||
create_time
|
||||
) values
|
||||
<foreach item="specialDiseaseNodeList" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{specialDiseaseNodeList.routeId},
|
||||
#{specialDiseaseNodeList.routeName},
|
||||
#{specialDiseaseNodeList.routeNodeName},
|
||||
#{specialDiseaseNodeList.routeNodeDay},
|
||||
#{specialDiseaseNodeList.taskType},
|
||||
#{specialDiseaseNodeList.taskSubdivision},
|
||||
#{specialDiseaseNodeList.taskStatus},
|
||||
#{specialDiseaseNodeList.secondClassifyDescribe},
|
||||
#{specialDiseaseNodeList.executionTime},
|
||||
#{specialDiseaseNodeList.templateId},
|
||||
#{specialDiseaseNodeList.templateName},
|
||||
#{specialDiseaseNodeList.templateType},
|
||||
#{specialDiseaseNodeList.messagePushSign},
|
||||
#{specialDiseaseNodeList.messageTemplateId},
|
||||
#{specialDiseaseNodeList.messageTemplateName},
|
||||
#{specialDiseaseNodeList.messagePreview},
|
||||
#{specialDiseaseNodeList.messageNodeContent},
|
||||
#{specialDiseaseNodeList.officialPushSign},
|
||||
#{specialDiseaseNodeList.officialTemplateId},
|
||||
#{specialDiseaseNodeList.officialTemplateName},
|
||||
#{specialDiseaseNodeList.officialRemindContent},
|
||||
#{specialDiseaseNodeList.officialNodeContent},
|
||||
#{specialDiseaseNodeList.appletPushSign},
|
||||
#{specialDiseaseNodeList.appletTemplateId},
|
||||
#{specialDiseaseNodeList.appletTemplateName},
|
||||
#{specialDiseaseNodeList.appletRemindContent},
|
||||
#{specialDiseaseNodeList.appletPromptDescription},
|
||||
#{specialDiseaseNodeList.appletNodeContent},
|
||||
#{specialDiseaseNodeList.phonePushSign},
|
||||
#{specialDiseaseNodeList.phoneTemplateId},
|
||||
#{specialDiseaseNodeList.phoneTemplateName},
|
||||
#{specialDiseaseNodeList.phoneMessageRemind},
|
||||
#{specialDiseaseNodeList.phoneMessageTemplateId},
|
||||
#{specialDiseaseNodeList.phoneMessageTemplateName},
|
||||
#{specialDiseaseNodeList.phoneAgencyName},
|
||||
#{specialDiseaseNodeList.phoneNodeContent},
|
||||
#{specialDiseaseNodeList.routeCheckStatus},
|
||||
#{specialDiseaseNodeList.routeCheckPerson},
|
||||
#{specialDiseaseNodeList.routeCheckDate},
|
||||
#{specialDiseaseNodeList.routeCheckRemark},
|
||||
#{specialDiseaseNodeList.createBy},
|
||||
#{specialDiseaseNodeList.createTime}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user