修改
This commit is contained in:
parent
968d3547e0
commit
dcb5144533
@ -0,0 +1,91 @@
|
|||||||
|
package com.xinelu.manage.controller.specialdiseaseroute;
|
||||||
|
|
||||||
|
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.specialdiseaseroute.SpecialDiseaseRoute;
|
||||||
|
import com.xinelu.manage.service.specialdiseaseroute.ISpecialDiseaseRouteService;
|
||||||
|
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-13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/system/specialDiseaseRoute")
|
||||||
|
public class SpecialDiseaseRouteController extends BaseController {
|
||||||
|
@Resource
|
||||||
|
private ISpecialDiseaseRouteService specialDiseaseRouteService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询专病路径信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:specialDiseaseRoute:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SpecialDiseaseRoute specialDiseaseRoute) {
|
||||||
|
startPage();
|
||||||
|
List<SpecialDiseaseRoute> list = specialDiseaseRouteService.selectSpecialDiseaseRouteList(specialDiseaseRoute);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出专病路径信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:specialDiseaseRoute:export')")
|
||||||
|
@Log(title = "专病路径信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SpecialDiseaseRoute specialDiseaseRoute) {
|
||||||
|
List<SpecialDiseaseRoute> list = specialDiseaseRouteService.selectSpecialDiseaseRouteList(specialDiseaseRoute);
|
||||||
|
ExcelUtil<SpecialDiseaseRoute> util = new ExcelUtil<SpecialDiseaseRoute>(SpecialDiseaseRoute.class);
|
||||||
|
util.exportExcel(response, list, "专病路径信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取专病路径信息详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:specialDiseaseRoute:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
|
return AjaxResult.success(specialDiseaseRouteService.selectSpecialDiseaseRouteById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增专病路径信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:specialDiseaseRoute:add')")
|
||||||
|
@Log(title = "专病路径信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SpecialDiseaseRoute specialDiseaseRoute) {
|
||||||
|
return toAjax(specialDiseaseRouteService.insertSpecialDiseaseRoute(specialDiseaseRoute));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改专病路径信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:specialDiseaseRoute:edit')")
|
||||||
|
@Log(title = "专病路径信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SpecialDiseaseRoute specialDiseaseRoute) {
|
||||||
|
return toAjax(specialDiseaseRouteService.updateSpecialDiseaseRoute(specialDiseaseRoute));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除专病路径信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:specialDiseaseRoute:remove')")
|
||||||
|
@Log(title = "专病路径信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(specialDiseaseRouteService.deleteSpecialDiseaseRouteByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,140 @@
|
|||||||
|
package com.xinelu.manage.domain.specialdiseaseroute;
|
||||||
|
|
||||||
|
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_route
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-03-13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ApiModel(value = "专病路径信息对象", description = "special_disease_route")
|
||||||
|
public class SpecialDiseaseRoute extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键id
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属科室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 routeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 路径编码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "路径编码")
|
||||||
|
@Excel(name = "路径编码")
|
||||||
|
private String routeCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 版本号
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "版本号")
|
||||||
|
@Excel(name = "版本号")
|
||||||
|
private String version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 路径分类,全部:ALL,科室管理路径:DEPARTMENT_MANAGE_PATH,专病管理路径:SPECIAL_DIEASE_MANAGE_PATH
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "路径分类,全部:ALL,科室管理路径:DEPARTMENT_MANAGE_PATH,专病管理路径:SPECIAL_DIEASE_MANAGE_PATH")
|
||||||
|
@Excel(name = "路径分类,全部:ALL,科室管理路径:DEPARTMENT_MANAGE_PATH,专病管理路径:SPECIAL_DIEASE_MANAGE_PATH")
|
||||||
|
private String routeClassify;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布状态,全部:ALL,已发布:PUBLISHED,未发布:UNPUBLISHED
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "发布状态,全部:ALL,已发布:PUBLISHED,未发布:UNPUBLISHED")
|
||||||
|
@Excel(name = "发布状态,全部:ALL,已发布:PUBLISHED,未发布:UNPUBLISHED")
|
||||||
|
private String releaseStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 适用范围,在院:IN_THE_HOSPITAL,出院:DISCHARGE,门诊:OUTPATIENT_SERVICE,门诊+出院:OUTPATIENT_SERVICE_DISCHARGE
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "适用范围,在院:IN_THE_HOSPITAL,出院:DISCHARGE,门诊:OUTPATIENT_SERVICE,门诊+出院:OUTPATIENT_SERVICE_DISCHARGE")
|
||||||
|
@Excel(name = "适用范围,在院:IN_THE_HOSPITAL,出院:DISCHARGE,门诊:OUTPATIENT_SERVICE,门诊+出院:OUTPATIENT_SERVICE_DISCHARGE")
|
||||||
|
private String suitRange;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "排序")
|
||||||
|
@Excel(name = "排序")
|
||||||
|
private Long routeSort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注信息
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "备注信息")
|
||||||
|
@Excel(name = "备注信息")
|
||||||
|
private String routeRemark;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("departmentId", getDepartmentId())
|
||||||
|
.append("departmentName", getDepartmentName())
|
||||||
|
.append("diseaseTypeId", getDiseaseTypeId())
|
||||||
|
.append("diseaseTypeName", getDiseaseTypeName())
|
||||||
|
.append("routeName", getRouteName())
|
||||||
|
.append("routeCode", getRouteCode())
|
||||||
|
.append("version", getVersion())
|
||||||
|
.append("routeClassify", getRouteClassify())
|
||||||
|
.append("releaseStatus", getReleaseStatus())
|
||||||
|
.append("suitRange", getSuitRange())
|
||||||
|
.append("routeSort", getRouteSort())
|
||||||
|
.append("routeRemark", getRouteRemark())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
package com.xinelu.manage.mapper.specialdiseaseroute;
|
||||||
|
|
||||||
|
import com.xinelu.manage.domain.specialdiseaseroute.SpecialDiseaseRoute;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专病路径信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-03-13
|
||||||
|
*/
|
||||||
|
public interface SpecialDiseaseRouteMapper {
|
||||||
|
/**
|
||||||
|
* 查询专病路径信息
|
||||||
|
*
|
||||||
|
* @param id 专病路径信息主键
|
||||||
|
* @return 专病路径信息
|
||||||
|
*/
|
||||||
|
public SpecialDiseaseRoute selectSpecialDiseaseRouteById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询专病路径信息列表
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 专病路径信息集合
|
||||||
|
*/
|
||||||
|
public List<SpecialDiseaseRoute> selectSpecialDiseaseRouteList(SpecialDiseaseRoute specialDiseaseRoute);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增专病路径信息
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSpecialDiseaseRoute(SpecialDiseaseRoute specialDiseaseRoute);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改专病路径信息
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSpecialDiseaseRoute(SpecialDiseaseRoute specialDiseaseRoute);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除专病路径信息
|
||||||
|
*
|
||||||
|
* @param id 专病路径信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSpecialDiseaseRouteById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除专病路径信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSpecialDiseaseRouteByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
package com.xinelu.manage.service.specialdiseaseroute;
|
||||||
|
|
||||||
|
import com.xinelu.manage.domain.specialdiseaseroute.SpecialDiseaseRoute;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专病路径信息Service接口
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-03-13
|
||||||
|
*/
|
||||||
|
public interface ISpecialDiseaseRouteService {
|
||||||
|
/**
|
||||||
|
* 查询专病路径信息
|
||||||
|
*
|
||||||
|
* @param id 专病路径信息主键
|
||||||
|
* @return 专病路径信息
|
||||||
|
*/
|
||||||
|
public SpecialDiseaseRoute selectSpecialDiseaseRouteById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询专病路径信息列表
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 专病路径信息集合
|
||||||
|
*/
|
||||||
|
public List<SpecialDiseaseRoute> selectSpecialDiseaseRouteList(SpecialDiseaseRoute specialDiseaseRoute);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增专病路径信息
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSpecialDiseaseRoute(SpecialDiseaseRoute specialDiseaseRoute);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改专病路径信息
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSpecialDiseaseRoute(SpecialDiseaseRoute specialDiseaseRoute);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除专病路径信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的专病路径信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSpecialDiseaseRouteByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除专病路径信息信息
|
||||||
|
*
|
||||||
|
* @param id 专病路径信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSpecialDiseaseRouteById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,91 @@
|
|||||||
|
package com.xinelu.manage.service.specialdiseaseroute.impl;
|
||||||
|
|
||||||
|
import com.xinelu.common.utils.DateUtils;
|
||||||
|
import com.xinelu.manage.domain.specialdiseaseroute.SpecialDiseaseRoute;
|
||||||
|
import com.xinelu.manage.mapper.specialdiseaseroute.SpecialDiseaseRouteMapper;
|
||||||
|
import com.xinelu.manage.service.specialdiseaseroute.ISpecialDiseaseRouteService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专病路径信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-03-13
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SpecialDiseaseRouteServiceImpl implements ISpecialDiseaseRouteService {
|
||||||
|
@Resource
|
||||||
|
private SpecialDiseaseRouteMapper specialDiseaseRouteMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询专病路径信息
|
||||||
|
*
|
||||||
|
* @param id 专病路径信息主键
|
||||||
|
* @return 专病路径信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SpecialDiseaseRoute selectSpecialDiseaseRouteById(Long id) {
|
||||||
|
return specialDiseaseRouteMapper.selectSpecialDiseaseRouteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询专病路径信息列表
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 专病路径信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SpecialDiseaseRoute> selectSpecialDiseaseRouteList(SpecialDiseaseRoute specialDiseaseRoute) {
|
||||||
|
return specialDiseaseRouteMapper.selectSpecialDiseaseRouteList(specialDiseaseRoute);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增专病路径信息
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSpecialDiseaseRoute(SpecialDiseaseRoute specialDiseaseRoute) {
|
||||||
|
specialDiseaseRoute.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return specialDiseaseRouteMapper.insertSpecialDiseaseRoute(specialDiseaseRoute);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改专病路径信息
|
||||||
|
*
|
||||||
|
* @param specialDiseaseRoute 专病路径信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSpecialDiseaseRoute(SpecialDiseaseRoute specialDiseaseRoute) {
|
||||||
|
specialDiseaseRoute.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return specialDiseaseRouteMapper.updateSpecialDiseaseRoute(specialDiseaseRoute);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除专病路径信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的专病路径信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSpecialDiseaseRouteByIds(Long[] ids) {
|
||||||
|
return specialDiseaseRouteMapper.deleteSpecialDiseaseRouteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除专病路径信息信息
|
||||||
|
*
|
||||||
|
* @param id 专病路径信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSpecialDiseaseRouteById(Long id) {
|
||||||
|
return specialDiseaseRouteMapper.deleteSpecialDiseaseRouteById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,217 @@
|
|||||||
|
<?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.specialdiseaseroute.SpecialDiseaseRouteMapper">
|
||||||
|
|
||||||
|
<resultMap type="SpecialDiseaseRoute" id="SpecialDiseaseRouteResult">
|
||||||
|
<result property="id" column="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="routeName" column="route_name"/>
|
||||||
|
<result property="routeCode" column="route_code"/>
|
||||||
|
<result property="version" column="version"/>
|
||||||
|
<result property="routeClassify" column="route_classify"/>
|
||||||
|
<result property="releaseStatus" column="release_status"/>
|
||||||
|
<result property="suitRange" column="suit_range"/>
|
||||||
|
<result property="routeSort" column="route_sort"/>
|
||||||
|
<result property="routeRemark" column="route_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="selectSpecialDiseaseRouteVo">
|
||||||
|
select id, department_id, department_name, disease_type_id, disease_type_name, route_name, route_code, version, route_classify, release_status, suit_range, route_sort, route_remark, create_by, create_time, update_by, update_time from special_disease_route
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSpecialDiseaseRouteList" parameterType="SpecialDiseaseRoute" resultMap="SpecialDiseaseRouteResult">
|
||||||
|
<include refid="selectSpecialDiseaseRouteVo"/>
|
||||||
|
<where>
|
||||||
|
<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="routeName != null and routeName != ''">
|
||||||
|
and route_name like concat('%', #{routeName}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="routeCode != null and routeCode != ''">
|
||||||
|
and route_code = #{routeCode}
|
||||||
|
</if>
|
||||||
|
<if test="version != null and version != ''">
|
||||||
|
and version = #{version}
|
||||||
|
</if>
|
||||||
|
<if test="routeClassify != null and routeClassify != ''">
|
||||||
|
and route_classify = #{routeClassify}
|
||||||
|
</if>
|
||||||
|
<if test="releaseStatus != null and releaseStatus != ''">
|
||||||
|
and release_status = #{releaseStatus}
|
||||||
|
</if>
|
||||||
|
<if test="suitRange != null and suitRange != ''">
|
||||||
|
and suit_range = #{suitRange}
|
||||||
|
</if>
|
||||||
|
<if test="routeSort != null ">
|
||||||
|
and route_sort = #{routeSort}
|
||||||
|
</if>
|
||||||
|
<if test="routeRemark != null and routeRemark != ''">
|
||||||
|
and route_remark = #{routeRemark}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSpecialDiseaseRouteById" parameterType="Long"
|
||||||
|
resultMap="SpecialDiseaseRouteResult">
|
||||||
|
<include refid="selectSpecialDiseaseRouteVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSpecialDiseaseRoute" parameterType="SpecialDiseaseRoute" useGeneratedKeys="true"
|
||||||
|
keyProperty="id">
|
||||||
|
insert into special_disease_route
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<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="routeName != null">route_name,
|
||||||
|
</if>
|
||||||
|
<if test="routeCode != null">route_code,
|
||||||
|
</if>
|
||||||
|
<if test="version != null">version,
|
||||||
|
</if>
|
||||||
|
<if test="routeClassify != null">route_classify,
|
||||||
|
</if>
|
||||||
|
<if test="releaseStatus != null">release_status,
|
||||||
|
</if>
|
||||||
|
<if test="suitRange != null">suit_range,
|
||||||
|
</if>
|
||||||
|
<if test="routeSort != null">route_sort,
|
||||||
|
</if>
|
||||||
|
<if test="routeRemark != null">route_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="departmentId != null">#{departmentId},
|
||||||
|
</if>
|
||||||
|
<if test="departmentName != null">#{departmentName},
|
||||||
|
</if>
|
||||||
|
<if test="diseaseTypeId != null">#{diseaseTypeId},
|
||||||
|
</if>
|
||||||
|
<if test="diseaseTypeName != null">#{diseaseTypeName},
|
||||||
|
</if>
|
||||||
|
<if test="routeName != null">#{routeName},
|
||||||
|
</if>
|
||||||
|
<if test="routeCode != null">#{routeCode},
|
||||||
|
</if>
|
||||||
|
<if test="version != null">#{version},
|
||||||
|
</if>
|
||||||
|
<if test="routeClassify != null">#{routeClassify},
|
||||||
|
</if>
|
||||||
|
<if test="releaseStatus != null">#{releaseStatus},
|
||||||
|
</if>
|
||||||
|
<if test="suitRange != null">#{suitRange},
|
||||||
|
</if>
|
||||||
|
<if test="routeSort != null">#{routeSort},
|
||||||
|
</if>
|
||||||
|
<if test="routeRemark != null">#{routeRemark},
|
||||||
|
</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="updateSpecialDiseaseRoute" parameterType="SpecialDiseaseRoute">
|
||||||
|
update special_disease_route
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<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="routeName != null">route_name =
|
||||||
|
#{routeName},
|
||||||
|
</if>
|
||||||
|
<if test="routeCode != null">route_code =
|
||||||
|
#{routeCode},
|
||||||
|
</if>
|
||||||
|
<if test="version != null">version =
|
||||||
|
#{version},
|
||||||
|
</if>
|
||||||
|
<if test="routeClassify != null">route_classify =
|
||||||
|
#{routeClassify},
|
||||||
|
</if>
|
||||||
|
<if test="releaseStatus != null">release_status =
|
||||||
|
#{releaseStatus},
|
||||||
|
</if>
|
||||||
|
<if test="suitRange != null">suit_range =
|
||||||
|
#{suitRange},
|
||||||
|
</if>
|
||||||
|
<if test="routeSort != null">route_sort =
|
||||||
|
#{routeSort},
|
||||||
|
</if>
|
||||||
|
<if test="routeRemark != null">route_remark =
|
||||||
|
#{routeRemark},
|
||||||
|
</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="deleteSpecialDiseaseRouteById" parameterType="Long">
|
||||||
|
delete from special_disease_route where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSpecialDiseaseRouteByIds" parameterType="String">
|
||||||
|
delete from special_disease_route where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user