Merge remote-tracking branch 'origin/dev_2.0.0' into dev_2.0.0
commit
6615d49333
@ -0,0 +1,111 @@
|
||||
package com.supervision.manage.controller;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.supervision.exception.BusinessException;
|
||||
import com.supervision.manage.pojo.vo.DiseaseVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
@Api(tags = "疾病管理")
|
||||
@RestController
|
||||
@RequestMapping("disease")
|
||||
@RequiredArgsConstructor
|
||||
public class DiseaseController {
|
||||
|
||||
@ApiOperation("新增疾病")
|
||||
@PostMapping("/save")
|
||||
public String saveRasaFile(@RequestBody DiseaseVo diseaseVo) {
|
||||
|
||||
return "id";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("查询疾病列表")
|
||||
@GetMapping("/queryPageList")
|
||||
public List<DiseaseVo> queryPageList(@RequestParam(defaultValue = "1")Integer pageNum,
|
||||
@RequestParam(defaultValue = "1")Integer pageSize,
|
||||
@RequestParam DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("保存体格检查信息")
|
||||
@PostMapping("/savePhysical")
|
||||
public String savePhysical(DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation("分页查询疾病体格检查列表信息")
|
||||
@GetMapping("/queryPagePhysicalList")
|
||||
public List<DiseaseVo> queryPagePhysicalList(DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("保存辅助检查信息")
|
||||
@GetMapping("/saveAncillary")
|
||||
public List<DiseaseVo> saveAncillary(DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("分页查询疾病辅助检查列表信息")
|
||||
@GetMapping("/queryPageAncillaryList")
|
||||
public List<DiseaseVo> queryPageAncillaryList(DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation("保存问题库信息")
|
||||
@GetMapping("/saveQuestionList")
|
||||
public List<DiseaseVo> saveQuestionList(DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation("分页查询疾病问题库信息")
|
||||
@GetMapping("/queryPageQuestionList")
|
||||
public List<DiseaseVo> queryPageQuestionList(DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation("保存处置信息")
|
||||
@GetMapping("/saveTreatmentPlan")
|
||||
public List<DiseaseVo> saveTreatmentPlan(DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("分页查询疾病处置信息")
|
||||
@GetMapping("/queryPageTreatmentPlanList")
|
||||
public List<DiseaseVo> queryPageTreatmentPlanList(DiseaseVo diseaseVo) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.supervision.manage.controller;
|
||||
|
||||
import com.supervision.manage.pojo.vo.ConfigTreatmentPlanWrapVo;
|
||||
import com.supervision.manage.pojo.vo.DiseaseVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "处置计划管理")
|
||||
@RestController
|
||||
@RequestMapping("treatmentPlan")
|
||||
@RequiredArgsConstructor
|
||||
public class TreatmentPlanController {
|
||||
|
||||
@ApiOperation("查询疾病列表")
|
||||
@GetMapping("/queryList")
|
||||
public ConfigTreatmentPlanWrapVo queryList(@RequestParam("处置方式") Integer disposalMethod) {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.supervision.manage.pojo.vo;
|
||||
|
||||
import com.supervision.model.ConfigTreatmentPlan;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ConfigTreatmentPlanWrapVo {
|
||||
|
||||
private List<ConfigTreatmentPlanWrap> configTreatmentPlanWraps;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
static class ConfigTreatmentPlanWrap extends ConfigTreatmentPlan {
|
||||
|
||||
private List<ConfigTreatmentPlan> child;
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.supervision.manage.pojo.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
@ApiModel
|
||||
public class DiseaseVo {
|
||||
|
||||
|
||||
@ApiModelProperty("类目名称")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty("分类名称")
|
||||
private String diseaseName;
|
||||
|
||||
|
||||
@ApiModelProperty("症状")
|
||||
private String symptom;
|
||||
|
||||
|
||||
}
|
@ -1 +0,0 @@
|
||||
|
@ -0,0 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
@ -0,0 +1,18 @@
|
||||
package com.supervision.mapper;
|
||||
|
||||
import com.supervision.model.DiseaseQuestionRelation;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_disease_question_relation(疾病问题关联表)】的数据库操作Mapper
|
||||
* @createDate 2023-11-23 14:06:54
|
||||
* @Entity com.supervision.model.DiseaseQuestionRelation
|
||||
*/
|
||||
public interface DiseaseQuestionRelationMapper extends BaseMapper<DiseaseQuestionRelation> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,55 @@
|
||||
package com.supervision.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 疾病问题关联表
|
||||
* @TableName vp_disease_question_relation
|
||||
*/
|
||||
@TableName(value ="vp_disease_question_relation")
|
||||
@Data
|
||||
public class DiseaseQuestionRelation implements Serializable {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 疾病id
|
||||
*/
|
||||
private String diseaseId;
|
||||
|
||||
/**
|
||||
* 问题id
|
||||
*/
|
||||
private String questionId;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private String createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateUserId;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.service;
|
||||
|
||||
import com.supervision.model.DiseaseQuestionRelation;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_disease_question_relation(疾病问题关联表)】的数据库操作Service
|
||||
* @createDate 2023-11-23 14:06:54
|
||||
*/
|
||||
public interface DiseaseQuestionRelationService extends IService<DiseaseQuestionRelation> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.model.DiseaseQuestionRelation;
|
||||
import com.supervision.service.DiseaseQuestionRelationService;
|
||||
import com.supervision.mapper.DiseaseQuestionRelationMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_disease_question_relation(疾病问题关联表)】的数据库操作Service实现
|
||||
* @createDate 2023-11-23 14:06:54
|
||||
*/
|
||||
@Service
|
||||
public class DiseaseQuestionRelationServiceImpl extends ServiceImpl<DiseaseQuestionRelationMapper, DiseaseQuestionRelation>
|
||||
implements DiseaseQuestionRelationService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
<?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.supervision.mapper.DiseaseQuestionRelationMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.model.DiseaseQuestionRelation">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="diseaseId" column="disease_id" jdbcType="VARCHAR"/>
|
||||
<result property="questionId" column="question_id" jdbcType="VARCHAR"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,disease_id,question_id,
|
||||
create_user_id,create_time,update_user_id,
|
||||
update_time
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue