推送方式
This commit is contained in:
parent
b61567b32e
commit
992405f747
@ -0,0 +1,97 @@
|
||||
package com.xinelu.manage.controller.patienttaskpushrecord;
|
||||
|
||||
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.patienttaskpushrecord.PatientTaskPushRecord;
|
||||
import com.xinelu.manage.service.patienttaskpushrecord.IPatientTaskPushRecordService;
|
||||
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-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/taskPushRecord")
|
||||
public class PatientTaskPushRecordController extends BaseController {
|
||||
@Resource
|
||||
private IPatientTaskPushRecordService patientTaskPushRecordService;
|
||||
|
||||
/**
|
||||
* 查询患者管理任务推送方式记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskPushRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientTaskPushRecord patientTaskPushRecord) {
|
||||
startPage();
|
||||
List<PatientTaskPushRecord> list = patientTaskPushRecordService.selectPatientTaskPushRecordList(patientTaskPushRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出患者管理任务推送方式记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskPushRecord:export')")
|
||||
@Log(title = "患者管理任务推送方式记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PatientTaskPushRecord patientTaskPushRecord) {
|
||||
List<PatientTaskPushRecord> list = patientTaskPushRecordService.selectPatientTaskPushRecordList(patientTaskPushRecord);
|
||||
ExcelUtil<PatientTaskPushRecord> util = new ExcelUtil<>(PatientTaskPushRecord.class);
|
||||
util.exportExcel(response, list, "患者管理任务推送方式记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者管理任务推送方式记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskPushRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientTaskPushRecordService.selectPatientTaskPushRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者管理任务推送方式记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskPushRecord:add')")
|
||||
@Log(title = "患者管理任务推送方式记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody PatientTaskPushRecord patientTaskPushRecord) {
|
||||
return toAjax(patientTaskPushRecordService.insertPatientTaskPushRecord(patientTaskPushRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者管理任务推送方式记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskPushRecord:edit')")
|
||||
@Log(title = "患者管理任务推送方式记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody PatientTaskPushRecord patientTaskPushRecord) {
|
||||
return toAjax(patientTaskPushRecordService.updatePatientTaskPushRecord(patientTaskPushRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者管理任务推送方式记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:taskPushRecord:remove')")
|
||||
@Log(title = "患者管理任务推送方式记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientTaskPushRecordService.deletePatientTaskPushRecordByIds(ids));
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/getManageRouteNode")
|
||||
public AjaxResult getManageRouteNode(Long manageRouteNodeId) {
|
||||
return AjaxResult.success(patientTaskPushRecordService.getManageRouteNode(manageRouteNodeId));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
package com.xinelu.manage.domain.patienttaskpushrecord;
|
||||
|
||||
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_push_record
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-21
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者管理任务推送方式记录对象", description = "patient_task_push_record")
|
||||
public class PatientTaskPushRecord 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 manageRouteNodeId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
@Excel(name = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 管理路径节点名称
|
||||
*/
|
||||
@ApiModelProperty(value = "管理路径节点名称")
|
||||
@Excel(name = "管理路径节点名称")
|
||||
private String routeNodeName;
|
||||
|
||||
/**
|
||||
* 管理任务推送方式,微信小程序:微信公众号:,短信:,IM:
|
||||
*/
|
||||
@ApiModelProperty(value = "管理任务推送方式,微信小程序:微信公众号:,短信:,IM:")
|
||||
@Excel(name = "管理任务推送方式,微信小程序:微信公众号:,短信:,IM:")
|
||||
private String taskPushType;
|
||||
|
||||
/**
|
||||
* 管理任务推送时间,格式: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 taskPushDate;
|
||||
|
||||
/**
|
||||
* 管理任务推送备注
|
||||
*/
|
||||
@ApiModelProperty(value = "管理任务推送备注")
|
||||
@Excel(name = "管理任务推送备注")
|
||||
private String taskPushRemark;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("patientId", getPatientId())
|
||||
.append("manageRouteNodeId", getManageRouteNodeId())
|
||||
.append("patientName", getPatientName())
|
||||
.append("routeNodeName", getRouteNodeName())
|
||||
.append("taskPushType", getTaskPushType())
|
||||
.append("taskPushDate", getTaskPushDate())
|
||||
.append("taskPushRemark", getTaskPushRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.mapper.patienttaskpushrecord;
|
||||
|
||||
import com.xinelu.manage.domain.patienttaskpushrecord.PatientTaskPushRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 患者管理任务推送方式记录Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-21
|
||||
*/
|
||||
public interface PatientTaskPushRecordMapper {
|
||||
/**
|
||||
* 查询患者管理任务推送方式记录
|
||||
*
|
||||
* @param id 患者管理任务推送方式记录主键
|
||||
* @return 患者管理任务推送方式记录
|
||||
*/
|
||||
public PatientTaskPushRecord selectPatientTaskPushRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者管理任务推送方式记录列表
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 患者管理任务推送方式记录集合
|
||||
*/
|
||||
List<PatientTaskPushRecord> selectPatientTaskPushRecordList(PatientTaskPushRecord patientTaskPushRecord);
|
||||
|
||||
/**
|
||||
* 新增患者管理任务推送方式记录
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPatientTaskPushRecord(PatientTaskPushRecord patientTaskPushRecord);
|
||||
|
||||
/**
|
||||
* 修改患者管理任务推送方式记录
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePatientTaskPushRecord(PatientTaskPushRecord patientTaskPushRecord);
|
||||
|
||||
/**
|
||||
* 删除患者管理任务推送方式记录
|
||||
*
|
||||
* @param id 患者管理任务推送方式记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePatientTaskPushRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者管理任务推送方式记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePatientTaskPushRecordByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.xinelu.manage.service.patienttaskpushrecord;
|
||||
|
||||
import com.xinelu.manage.domain.patienttaskpushrecord.PatientTaskPushRecord;
|
||||
import com.xinelu.manage.domain.signpatientmanageroutenode.SignPatientManageRouteNode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 患者管理任务推送方式记录Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-21
|
||||
*/
|
||||
public interface IPatientTaskPushRecordService {
|
||||
/**
|
||||
* 查询患者管理任务推送方式记录
|
||||
*
|
||||
* @param id 患者管理任务推送方式记录主键
|
||||
* @return 患者管理任务推送方式记录
|
||||
*/
|
||||
public PatientTaskPushRecord selectPatientTaskPushRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者管理任务推送方式记录列表
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 患者管理任务推送方式记录集合
|
||||
*/
|
||||
List<PatientTaskPushRecord> selectPatientTaskPushRecordList(PatientTaskPushRecord patientTaskPushRecord);
|
||||
|
||||
/**
|
||||
* 新增患者管理任务推送方式记录
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPatientTaskPushRecord(PatientTaskPushRecord patientTaskPushRecord);
|
||||
|
||||
/**
|
||||
* 修改患者管理任务推送方式记录
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePatientTaskPushRecord(PatientTaskPushRecord patientTaskPushRecord);
|
||||
|
||||
/**
|
||||
* 批量删除患者管理任务推送方式记录
|
||||
*
|
||||
* @param ids 需要删除的患者管理任务推送方式记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePatientTaskPushRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者管理任务推送方式记录信息
|
||||
*
|
||||
* @param id 患者管理任务推送方式记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePatientTaskPushRecordById(Long id);
|
||||
|
||||
SignPatientManageRouteNode getManageRouteNode(Long manageRouteNodeId);
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package com.xinelu.manage.service.patienttaskpushrecord.impl;
|
||||
|
||||
import com.xinelu.manage.domain.patienttaskpushrecord.PatientTaskPushRecord;
|
||||
import com.xinelu.manage.domain.signpatientmanageroutenode.SignPatientManageRouteNode;
|
||||
import com.xinelu.manage.mapper.patienttaskpushrecord.PatientTaskPushRecordMapper;
|
||||
import com.xinelu.manage.mapper.signpatientmanageroutenode.SignPatientManageRouteNodeMapper;
|
||||
import com.xinelu.manage.service.patienttaskpushrecord.IPatientTaskPushRecordService;
|
||||
import com.xinelu.manage.service.signpatientmanageroutenode.ISignPatientManageRouteNodeService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者管理任务推送方式记录Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-21
|
||||
*/
|
||||
@Service
|
||||
public class PatientTaskPushRecordServiceImpl implements IPatientTaskPushRecordService {
|
||||
@Resource
|
||||
private PatientTaskPushRecordMapper patientTaskPushRecordMapper;
|
||||
@Resource
|
||||
private ISignPatientManageRouteNodeService manageRouteNodeService;
|
||||
|
||||
/**
|
||||
* 查询患者管理任务推送方式记录
|
||||
*
|
||||
* @param id 患者管理任务推送方式记录主键
|
||||
* @return 患者管理任务推送方式记录
|
||||
*/
|
||||
@Override
|
||||
public PatientTaskPushRecord selectPatientTaskPushRecordById(Long id) {
|
||||
return patientTaskPushRecordMapper.selectPatientTaskPushRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者管理任务推送方式记录列表
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 患者管理任务推送方式记录
|
||||
*/
|
||||
@Override
|
||||
public List<PatientTaskPushRecord> selectPatientTaskPushRecordList(PatientTaskPushRecord patientTaskPushRecord) {
|
||||
return patientTaskPushRecordMapper.selectPatientTaskPushRecordList(patientTaskPushRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者管理任务推送方式记录
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientTaskPushRecord(PatientTaskPushRecord patientTaskPushRecord) {
|
||||
patientTaskPushRecord.setCreateTime(LocalDateTime.now());
|
||||
return patientTaskPushRecordMapper.insertPatientTaskPushRecord(patientTaskPushRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者管理任务推送方式记录
|
||||
*
|
||||
* @param patientTaskPushRecord 患者管理任务推送方式记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientTaskPushRecord(PatientTaskPushRecord patientTaskPushRecord) {
|
||||
patientTaskPushRecord.setUpdateTime(LocalDateTime.now());
|
||||
return patientTaskPushRecordMapper.updatePatientTaskPushRecord(patientTaskPushRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者管理任务推送方式记录
|
||||
*
|
||||
* @param ids 需要删除的患者管理任务推送方式记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientTaskPushRecordByIds(Long[] ids) {
|
||||
return patientTaskPushRecordMapper.deletePatientTaskPushRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者管理任务推送方式记录信息
|
||||
*
|
||||
* @param id 患者管理任务推送方式记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientTaskPushRecordById(Long id) {
|
||||
return patientTaskPushRecordMapper.deletePatientTaskPushRecordById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SignPatientManageRouteNode getManageRouteNode(Long manageRouteNodeId) {
|
||||
return manageRouteNodeService.selectSignPatientManageRouteNodeById(manageRouteNodeId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,177 @@
|
||||
<?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.patienttaskpushrecord.PatientTaskPushRecordMapper">
|
||||
|
||||
<resultMap type="PatientTaskPushRecord" id="PatientTaskPushRecordResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="manageRouteNodeId" column="manage_route_node_id"/>
|
||||
<result property="patientName" column="patient_name"/>
|
||||
<result property="routeNodeName" column="route_node_name"/>
|
||||
<result property="taskPushType" column="task_push_type"/>
|
||||
<result property="taskPushDate" column="task_push_date"/>
|
||||
<result property="taskPushRemark" column="task_push_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="selectPatientTaskPushRecordVo">
|
||||
select id,
|
||||
patient_id,
|
||||
manage_route_node_id,
|
||||
patient_name,
|
||||
route_node_name,
|
||||
task_push_type,
|
||||
task_push_date,
|
||||
task_push_remark,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time
|
||||
from patient_task_push_record
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientTaskPushRecordList" parameterType="PatientTaskPushRecord"
|
||||
resultMap="PatientTaskPushRecordResult">
|
||||
<include refid="selectPatientTaskPushRecordVo"/>
|
||||
<where>
|
||||
<if test="patientId != null ">
|
||||
and patient_id = #{patientId}
|
||||
</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="routeNodeName != null and routeNodeName != ''">
|
||||
and route_node_name like concat('%', #{routeNodeName}, '%')
|
||||
</if>
|
||||
<if test="taskPushType != null and taskPushType != ''">
|
||||
and task_push_type = #{taskPushType}
|
||||
</if>
|
||||
<if test="taskPushDate != null ">
|
||||
and task_push_date = #{taskPushDate}
|
||||
</if>
|
||||
<if test="taskPushRemark != null and taskPushRemark != ''">
|
||||
and task_push_remark = #{taskPushRemark}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientTaskPushRecordById" parameterType="Long"
|
||||
resultMap="PatientTaskPushRecordResult">
|
||||
<include refid="selectPatientTaskPushRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientTaskPushRecord" parameterType="PatientTaskPushRecord" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into patient_task_push_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id,
|
||||
</if>
|
||||
<if test="manageRouteNodeId != null">manage_route_node_id,
|
||||
</if>
|
||||
<if test="patientName != null">patient_name,
|
||||
</if>
|
||||
<if test="routeNodeName != null">route_node_name,
|
||||
</if>
|
||||
<if test="taskPushType != null">task_push_type,
|
||||
</if>
|
||||
<if test="taskPushDate != null">task_push_date,
|
||||
</if>
|
||||
<if test="taskPushRemark != null">task_push_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="manageRouteNodeId != null">#{manageRouteNodeId},
|
||||
</if>
|
||||
<if test="patientName != null">#{patientName},
|
||||
</if>
|
||||
<if test="routeNodeName != null">#{routeNodeName},
|
||||
</if>
|
||||
<if test="taskPushType != null">#{taskPushType},
|
||||
</if>
|
||||
<if test="taskPushDate != null">#{taskPushDate},
|
||||
</if>
|
||||
<if test="taskPushRemark != null">#{taskPushRemark},
|
||||
</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="updatePatientTaskPushRecord" parameterType="PatientTaskPushRecord">
|
||||
update patient_task_push_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id =
|
||||
#{patientId},
|
||||
</if>
|
||||
<if test="manageRouteNodeId != null">manage_route_node_id =
|
||||
#{manageRouteNodeId},
|
||||
</if>
|
||||
<if test="patientName != null">patient_name =
|
||||
#{patientName},
|
||||
</if>
|
||||
<if test="routeNodeName != null">route_node_name =
|
||||
#{routeNodeName},
|
||||
</if>
|
||||
<if test="taskPushType != null">task_push_type =
|
||||
#{taskPushType},
|
||||
</if>
|
||||
<if test="taskPushDate != null">task_push_date =
|
||||
#{taskPushDate},
|
||||
</if>
|
||||
<if test="taskPushRemark != null">task_push_remark =
|
||||
#{taskPushRemark},
|
||||
</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="deletePatientTaskPushRecordById" parameterType="Long">
|
||||
delete
|
||||
from patient_task_push_record
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePatientTaskPushRecordByIds" parameterType="String">
|
||||
delete from patient_task_push_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user