触发条件
This commit is contained in:
parent
220ede4495
commit
9714c58f46
@ -0,0 +1,91 @@
|
||||
package com.xinelu.manage.controller.specialdiseasetriggercondition;
|
||||
|
||||
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.specialdiseasetriggercondition.SpecialDiseaseTriggerCondition;
|
||||
import com.xinelu.manage.service.specialdiseasetriggercondition.ISpecialDiseaseTriggerConditionService;
|
||||
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-18
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/triggerCondition")
|
||||
public class SpecialDiseaseTriggerConditionController extends BaseController {
|
||||
@Resource
|
||||
private ISpecialDiseaseTriggerConditionService specialDiseaseTriggerConditionService;
|
||||
|
||||
/**
|
||||
* 查询触发条件关系列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:triggerCondition:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition) {
|
||||
startPage();
|
||||
List<SpecialDiseaseTriggerCondition> list = specialDiseaseTriggerConditionService.selectSpecialDiseaseTriggerConditionList(specialDiseaseTriggerCondition);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出触发条件关系列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:triggerCondition:export')")
|
||||
@Log(title = "触发条件关系", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition) {
|
||||
List<SpecialDiseaseTriggerCondition> list = specialDiseaseTriggerConditionService.selectSpecialDiseaseTriggerConditionList(specialDiseaseTriggerCondition);
|
||||
ExcelUtil<SpecialDiseaseTriggerCondition> util = new ExcelUtil<SpecialDiseaseTriggerCondition>(SpecialDiseaseTriggerCondition.class);
|
||||
util.exportExcel(response, list, "触发条件关系数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取触发条件关系详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:triggerCondition:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(specialDiseaseTriggerConditionService.selectSpecialDiseaseTriggerConditionById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增触发条件关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:triggerCondition:add')")
|
||||
@Log(title = "触发条件关系", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition) {
|
||||
return toAjax(specialDiseaseTriggerConditionService.insertSpecialDiseaseTriggerCondition(specialDiseaseTriggerCondition));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改触发条件关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:triggerCondition:edit')")
|
||||
@Log(title = "触发条件关系", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition) {
|
||||
return toAjax(specialDiseaseTriggerConditionService.updateSpecialDiseaseTriggerCondition(specialDiseaseTriggerCondition));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除触发条件关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:triggerCondition:remove')")
|
||||
@Log(title = "触发条件关系", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(specialDiseaseTriggerConditionService.deleteSpecialDiseaseTriggerConditionByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -12,6 +12,7 @@ import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.time.LocalTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
@ -95,7 +96,7 @@ public class SpecialDiseaseNode extends BaseEntity {
|
||||
@ApiModelProperty(value = "执行时间,格式:HH:mm")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "执行时间,格式:HH:mm", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date executionTime;
|
||||
private LocalTime executionTime;
|
||||
|
||||
/**
|
||||
* 模板表id
|
||||
|
||||
@ -0,0 +1,108 @@
|
||||
package com.xinelu.manage.domain.specialdiseasetriggercondition;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* 触发条件关系对象 special_disease_trigger_condition
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-18
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "触发条件关系对象", description = "special_disease_trigger_condition")
|
||||
public class SpecialDiseaseTriggerCondition extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 专病路径表id
|
||||
*/
|
||||
@ApiModelProperty(value = "专病路径表id")
|
||||
@Excel(name = "专病路径表id")
|
||||
private Long routeId;
|
||||
|
||||
/**
|
||||
* 路径名称
|
||||
*/
|
||||
@ApiModelProperty(value = "路径名称")
|
||||
@Excel(name = "路径名称")
|
||||
private String routeName;
|
||||
|
||||
/**
|
||||
* 触发条件编码
|
||||
*/
|
||||
@ApiModelProperty(value = "触发条件编码")
|
||||
@Excel(name = "触发条件编码")
|
||||
private String triggerConditionCode;
|
||||
|
||||
/**
|
||||
* 触发条件名称,诊断:DIAGNOSIS,换药日期:DRESSING_CHANGE_DATE,治疗方式:TREATMENT_METHOD,手术名称:SURGICAL_NAME,药品名称:DRUG_NAME
|
||||
*/
|
||||
@ApiModelProperty(value = "触发条件名称,诊断:DIAGNOSIS,换药日期:DRESSING_CHANGE_DATE,治疗方式:TREATMENT_METHOD,手术名称:SURGICAL_NAME,药品名称:DRUG_NAME")
|
||||
@Excel(name = "触发条件名称,诊断:DIAGNOSIS,换药日期:DRESSING_CHANGE_DATE,治疗方式:TREATMENT_METHOD,手术名称:SURGICAL_NAME,药品名称:DRUG_NAME")
|
||||
private String triggerConditionName;
|
||||
|
||||
/**
|
||||
* 触发条件运算符,包含:CONTAIN,不包含:NOT_CONTAIN,等于:EQUAL_TO,不等于:NOT_EQUAL_TO
|
||||
*/
|
||||
@ApiModelProperty(value = "触发条件运算符,包含:CONTAIN,不包含:NOT_CONTAIN,等于:EQUAL_TO,不等于:NOT_EQUAL_TO")
|
||||
@Excel(name = "触发条件运算符,包含:CONTAIN,不包含:NOT_CONTAIN,等于:EQUAL_TO,不等于:NOT_EQUAL_TO")
|
||||
private String triggerConditionOperator;
|
||||
|
||||
/**
|
||||
* 触发条件值
|
||||
*/
|
||||
@ApiModelProperty(value = "触发条件值")
|
||||
@Excel(name = "触发条件值")
|
||||
private String triggerConditionValue;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty(value = "排序")
|
||||
@Excel(name = "排序")
|
||||
private Integer triggerConditionSort;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
@ApiModelProperty(value = "备注信息")
|
||||
@Excel(name = "备注信息")
|
||||
private String triggerConditionRemark;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("routeId", getRouteId())
|
||||
.append("routeName", getRouteName())
|
||||
.append("triggerConditionCode", getTriggerConditionCode())
|
||||
.append("triggerConditionName", getTriggerConditionName())
|
||||
.append("triggerConditionOperator", getTriggerConditionOperator())
|
||||
.append("triggerConditionValue", getTriggerConditionValue())
|
||||
.append("triggerConditionSort", getTriggerConditionSort())
|
||||
.append("triggerConditionRemark", getTriggerConditionRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.specialdiseasetriggercondition;
|
||||
|
||||
import com.xinelu.manage.domain.specialdiseasetriggercondition.SpecialDiseaseTriggerCondition;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 触发条件关系Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-18
|
||||
*/
|
||||
public interface SpecialDiseaseTriggerConditionMapper {
|
||||
/**
|
||||
* 查询触发条件关系
|
||||
*
|
||||
* @param id 触发条件关系主键
|
||||
* @return 触发条件关系
|
||||
*/
|
||||
public SpecialDiseaseTriggerCondition selectSpecialDiseaseTriggerConditionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询触发条件关系列表
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 触发条件关系集合
|
||||
*/
|
||||
public List<SpecialDiseaseTriggerCondition> selectSpecialDiseaseTriggerConditionList(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition);
|
||||
|
||||
/**
|
||||
* 新增触发条件关系
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSpecialDiseaseTriggerCondition(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition);
|
||||
|
||||
/**
|
||||
* 修改触发条件关系
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSpecialDiseaseTriggerCondition(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition);
|
||||
|
||||
/**
|
||||
* 删除触发条件关系
|
||||
*
|
||||
* @param id 触发条件关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSpecialDiseaseTriggerConditionById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除触发条件关系
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSpecialDiseaseTriggerConditionByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.specialdiseasetriggercondition;
|
||||
|
||||
import com.xinelu.manage.domain.specialdiseasetriggercondition.SpecialDiseaseTriggerCondition;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 触发条件关系Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-18
|
||||
*/
|
||||
public interface ISpecialDiseaseTriggerConditionService {
|
||||
/**
|
||||
* 查询触发条件关系
|
||||
*
|
||||
* @param id 触发条件关系主键
|
||||
* @return 触发条件关系
|
||||
*/
|
||||
public SpecialDiseaseTriggerCondition selectSpecialDiseaseTriggerConditionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询触发条件关系列表
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 触发条件关系集合
|
||||
*/
|
||||
public List<SpecialDiseaseTriggerCondition> selectSpecialDiseaseTriggerConditionList(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition);
|
||||
|
||||
/**
|
||||
* 新增触发条件关系
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSpecialDiseaseTriggerCondition(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition);
|
||||
|
||||
/**
|
||||
* 修改触发条件关系
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSpecialDiseaseTriggerCondition(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition);
|
||||
|
||||
/**
|
||||
* 批量删除触发条件关系
|
||||
*
|
||||
* @param ids 需要删除的触发条件关系主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSpecialDiseaseTriggerConditionByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除触发条件关系信息
|
||||
*
|
||||
* @param id 触发条件关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSpecialDiseaseTriggerConditionById(Long id);
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package com.xinelu.manage.service.specialdiseasetriggercondition.impl;
|
||||
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.manage.domain.specialdiseasetriggercondition.SpecialDiseaseTriggerCondition;
|
||||
import com.xinelu.manage.mapper.specialdiseasetriggercondition.SpecialDiseaseTriggerConditionMapper;
|
||||
import com.xinelu.manage.service.specialdiseasetriggercondition.ISpecialDiseaseTriggerConditionService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 触发条件关系Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-03-18
|
||||
*/
|
||||
@Service
|
||||
public class SpecialDiseaseTriggerConditionServiceImpl implements ISpecialDiseaseTriggerConditionService {
|
||||
@Resource
|
||||
private SpecialDiseaseTriggerConditionMapper specialDiseaseTriggerConditionMapper;
|
||||
|
||||
/**
|
||||
* 查询触发条件关系
|
||||
*
|
||||
* @param id 触发条件关系主键
|
||||
* @return 触发条件关系
|
||||
*/
|
||||
@Override
|
||||
public SpecialDiseaseTriggerCondition selectSpecialDiseaseTriggerConditionById(Long id) {
|
||||
return specialDiseaseTriggerConditionMapper.selectSpecialDiseaseTriggerConditionById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询触发条件关系列表
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 触发条件关系
|
||||
*/
|
||||
@Override
|
||||
public List<SpecialDiseaseTriggerCondition> selectSpecialDiseaseTriggerConditionList(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition) {
|
||||
return specialDiseaseTriggerConditionMapper.selectSpecialDiseaseTriggerConditionList(specialDiseaseTriggerCondition);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增触发条件关系
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSpecialDiseaseTriggerCondition(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition) {
|
||||
specialDiseaseTriggerCondition.setCreateTime(DateUtils.getNowDate());
|
||||
return specialDiseaseTriggerConditionMapper.insertSpecialDiseaseTriggerCondition(specialDiseaseTriggerCondition);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改触发条件关系
|
||||
*
|
||||
* @param specialDiseaseTriggerCondition 触发条件关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSpecialDiseaseTriggerCondition(SpecialDiseaseTriggerCondition specialDiseaseTriggerCondition) {
|
||||
specialDiseaseTriggerCondition.setUpdateTime(DateUtils.getNowDate());
|
||||
return specialDiseaseTriggerConditionMapper.updateSpecialDiseaseTriggerCondition(specialDiseaseTriggerCondition);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除触发条件关系
|
||||
*
|
||||
* @param ids 需要删除的触发条件关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSpecialDiseaseTriggerConditionByIds(Long[] ids) {
|
||||
return specialDiseaseTriggerConditionMapper.deleteSpecialDiseaseTriggerConditionByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除触发条件关系信息
|
||||
*
|
||||
* @param id 触发条件关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSpecialDiseaseTriggerConditionById(Long id) {
|
||||
return specialDiseaseTriggerConditionMapper.deleteSpecialDiseaseTriggerConditionById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,190 @@
|
||||
<?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.specialdiseasetriggercondition.SpecialDiseaseTriggerConditionMapper">
|
||||
|
||||
<resultMap type="SpecialDiseaseTriggerCondition" id="SpecialDiseaseTriggerConditionResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="routeId" column="route_id"/>
|
||||
<result property="routeName" column="route_name"/>
|
||||
<result property="triggerConditionCode" column="trigger_condition_code"/>
|
||||
<result property="triggerConditionName" column="trigger_condition_name"/>
|
||||
<result property="triggerConditionOperator" column="trigger_condition_operator"/>
|
||||
<result property="triggerConditionValue" column="trigger_condition_value"/>
|
||||
<result property="triggerConditionSort" column="trigger_condition_sort"/>
|
||||
<result property="triggerConditionRemark" column="trigger_condition_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="selectSpecialDiseaseTriggerConditionVo">
|
||||
select id,
|
||||
route_id,
|
||||
route_name,
|
||||
trigger_condition_code,
|
||||
trigger_condition_name,
|
||||
trigger_condition_operator,
|
||||
trigger_condition_value,
|
||||
trigger_condition_sort,
|
||||
trigger_condition_remark,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time
|
||||
from special_disease_trigger_condition
|
||||
</sql>
|
||||
|
||||
<select id="selectSpecialDiseaseTriggerConditionList" parameterType="SpecialDiseaseTriggerCondition"
|
||||
resultMap="SpecialDiseaseTriggerConditionResult">
|
||||
<include refid="selectSpecialDiseaseTriggerConditionVo"/>
|
||||
<where>
|
||||
<if test="routeId != null ">
|
||||
and route_id = #{routeId}
|
||||
</if>
|
||||
<if test="routeName != null and routeName != ''">
|
||||
and route_name like concat('%', #{routeName}, '%')
|
||||
</if>
|
||||
<if test="triggerConditionCode != null and triggerConditionCode != ''">
|
||||
and trigger_condition_code = #{triggerConditionCode}
|
||||
</if>
|
||||
<if test="triggerConditionName != null and triggerConditionName != ''">
|
||||
and trigger_condition_name like concat('%', #{triggerConditionName}, '%')
|
||||
</if>
|
||||
<if test="triggerConditionOperator != null and triggerConditionOperator != ''">
|
||||
and trigger_condition_operator = #{triggerConditionOperator}
|
||||
</if>
|
||||
<if test="triggerConditionValue != null and triggerConditionValue != ''">
|
||||
and trigger_condition_value = #{triggerConditionValue}
|
||||
</if>
|
||||
<if test="triggerConditionSort != null ">
|
||||
and trigger_condition_sort = #{triggerConditionSort}
|
||||
</if>
|
||||
<if test="triggerConditionRemark != null and triggerConditionRemark != ''">
|
||||
and trigger_condition_remark = #{triggerConditionRemark}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSpecialDiseaseTriggerConditionById" parameterType="Long"
|
||||
resultMap="SpecialDiseaseTriggerConditionResult">
|
||||
<include refid="selectSpecialDiseaseTriggerConditionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSpecialDiseaseTriggerCondition" parameterType="SpecialDiseaseTriggerCondition"
|
||||
useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into special_disease_trigger_condition
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="routeId != null">route_id,
|
||||
</if>
|
||||
<if test="routeName != null">route_name,
|
||||
</if>
|
||||
<if test="triggerConditionCode != null">trigger_condition_code,
|
||||
</if>
|
||||
<if test="triggerConditionName != null">trigger_condition_name,
|
||||
</if>
|
||||
<if test="triggerConditionOperator != null">trigger_condition_operator,
|
||||
</if>
|
||||
<if test="triggerConditionValue != null">trigger_condition_value,
|
||||
</if>
|
||||
<if test="triggerConditionSort != null">trigger_condition_sort,
|
||||
</if>
|
||||
<if test="triggerConditionRemark != null">trigger_condition_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="routeId != null">#{routeId},
|
||||
</if>
|
||||
<if test="routeName != null">#{routeName},
|
||||
</if>
|
||||
<if test="triggerConditionCode != null">#{triggerConditionCode},
|
||||
</if>
|
||||
<if test="triggerConditionName != null">#{triggerConditionName},
|
||||
</if>
|
||||
<if test="triggerConditionOperator != null">#{triggerConditionOperator},
|
||||
</if>
|
||||
<if test="triggerConditionValue != null">#{triggerConditionValue},
|
||||
</if>
|
||||
<if test="triggerConditionSort != null">#{triggerConditionSort},
|
||||
</if>
|
||||
<if test="triggerConditionRemark != null">#{triggerConditionRemark},
|
||||
</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="updateSpecialDiseaseTriggerCondition" parameterType="SpecialDiseaseTriggerCondition">
|
||||
update special_disease_trigger_condition
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="routeId != null">route_id =
|
||||
#{routeId},
|
||||
</if>
|
||||
<if test="routeName != null">route_name =
|
||||
#{routeName},
|
||||
</if>
|
||||
<if test="triggerConditionCode != null">trigger_condition_code =
|
||||
#{triggerConditionCode},
|
||||
</if>
|
||||
<if test="triggerConditionName != null">trigger_condition_name =
|
||||
#{triggerConditionName},
|
||||
</if>
|
||||
<if test="triggerConditionOperator != null">trigger_condition_operator =
|
||||
#{triggerConditionOperator},
|
||||
</if>
|
||||
<if test="triggerConditionValue != null">trigger_condition_value =
|
||||
#{triggerConditionValue},
|
||||
</if>
|
||||
<if test="triggerConditionSort != null">trigger_condition_sort =
|
||||
#{triggerConditionSort},
|
||||
</if>
|
||||
<if test="triggerConditionRemark != null">trigger_condition_remark =
|
||||
#{triggerConditionRemark},
|
||||
</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="deleteSpecialDiseaseTriggerConditionById" parameterType="Long">
|
||||
delete
|
||||
from special_disease_trigger_condition
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSpecialDiseaseTriggerConditionByIds" parameterType="String">
|
||||
delete from special_disease_trigger_condition where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user