diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TDoctorController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TDoctorController.java new file mode 100644 index 0000000..26fdd3c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TDoctorController.java @@ -0,0 +1,107 @@ +package com.ruoyi.web.controller.pc; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.TDoctor; +import com.ruoyi.system.service.ITDoctorService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 医生信息Controller + * + * @author ruoyi + * @date 2022-08-03 + */ +@Api("pc-医生列表") +@RestController +@RequestMapping("/system/doctor") +public class TDoctorController extends BaseController +{ + @Autowired + private ITDoctorService tDoctorService; + + /** + * 查询医生信息列表 + */ + @GetMapping("/list") + public TableDataInfo list(TDoctor tDoctor) + { + startPage(); + List list = tDoctorService.selectTDoctorList(tDoctor); + return getDataTable(list); + } + + /** + * 导出医生信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:doctor:export')") + @Log(title = "医生信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, TDoctor tDoctor) + { + List list = tDoctorService.selectTDoctorList(tDoctor); + ExcelUtil util = new ExcelUtil(TDoctor.class); + util.exportExcel(response, list, "医生信息数据"); + } + + /** + * 获取医生信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:doctor:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(tDoctorService.selectTDoctorById(id)); + } + + /** + * 新增医生信息 + */ + @PreAuthorize("@ss.hasPermi('system:doctor:add')") + @Log(title = "医生信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody TDoctor tDoctor) + { + return toAjax(tDoctorService.insertTDoctor(tDoctor)); + } + + /** + * 修改医生信息 + */ + @PreAuthorize("@ss.hasPermi('system:doctor:edit')") + @Log(title = "医生信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody TDoctor tDoctor) + { + return toAjax(tDoctorService.updateTDoctor(tDoctor)); + } + + /** + * 删除医生信息 + */ + @PreAuthorize("@ss.hasPermi('system:doctor:remove')") + @Log(title = "医生信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(tDoctorService.deleteTDoctorByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/THospitalController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/THospitalController.java new file mode 100644 index 0000000..9c50549 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/THospitalController.java @@ -0,0 +1,104 @@ +package com.ruoyi.web.controller.pc; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.THospital; +import com.ruoyi.system.service.ITHospitalService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 医院信息Controller + * + * @author ruoyi + * @date 2022-08-03 + */ +@RestController +@RequestMapping("/system/hospital") +public class THospitalController extends BaseController +{ + @Autowired + private ITHospitalService tHospitalService; + + /** + * 查询医院信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:hospital:list')") + @GetMapping("/list") + public TableDataInfo list(THospital tHospital) + { + startPage(); + List list = tHospitalService.selectTHospitalList(tHospital); + return getDataTable(list); + } + + /** + * 导出医院信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:hospital:export')") + @Log(title = "医院信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, THospital tHospital) + { + List list = tHospitalService.selectTHospitalList(tHospital); + ExcelUtil util = new ExcelUtil(THospital.class); + util.exportExcel(response, list, "医院信息数据"); + } + + /** + * 获取医院信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:hospital:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(tHospitalService.selectTHospitalById(id)); + } + + /** + * 新增医院信息 + */ + @PreAuthorize("@ss.hasPermi('system:hospital:add')") + @Log(title = "医院信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody THospital tHospital) + { + return toAjax(tHospitalService.insertTHospital(tHospital)); + } + + /** + * 修改医院信息 + */ + @PreAuthorize("@ss.hasPermi('system:hospital:edit')") + @Log(title = "医院信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody THospital tHospital) + { + return toAjax(tHospitalService.updateTHospital(tHospital)); + } + + /** + * 删除医院信息 + */ + @PreAuthorize("@ss.hasPermi('system:hospital:remove')") + @Log(title = "医院信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(tHospitalService.deleteTHospitalByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TPatientController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TPatientController.java new file mode 100644 index 0000000..4a80fcc --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TPatientController.java @@ -0,0 +1,104 @@ +package com.ruoyi.web.controller.pc; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.TPatient; +import com.ruoyi.system.service.ITPatientService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 患者信息Controller + * + * @author ruoyi + * @date 2022-08-03 + */ +@RestController +@RequestMapping("/system/patient") +public class TPatientController extends BaseController +{ + @Autowired + private ITPatientService tPatientService; + + /** + * 查询患者信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:patient:list')") + @GetMapping("/list") + public TableDataInfo list(TPatient tPatient) + { + startPage(); + List list = tPatientService.selectTPatientList(tPatient); + return getDataTable(list); + } + + /** + * 导出患者信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:patient:export')") + @Log(title = "患者信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, TPatient tPatient) + { + List list = tPatientService.selectTPatientList(tPatient); + ExcelUtil util = new ExcelUtil(TPatient.class); + util.exportExcel(response, list, "患者信息数据"); + } + + /** + * 获取患者信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:patient:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(tPatientService.selectTPatientById(id)); + } + + /** + * 新增患者信息 + */ + @PreAuthorize("@ss.hasPermi('system:patient:add')") + @Log(title = "患者信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody TPatient tPatient) + { + return toAjax(tPatientService.insertTPatient(tPatient)); + } + + /** + * 修改患者信息 + */ + @PreAuthorize("@ss.hasPermi('system:patient:edit')") + @Log(title = "患者信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody TPatient tPatient) + { + return toAjax(tPatientService.updateTPatient(tPatient)); + } + + /** + * 删除患者信息 + */ + @PreAuthorize("@ss.hasPermi('system:patient:remove')") + @Log(title = "患者信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(tPatientService.deleteTPatientByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java new file mode 100644 index 0000000..e24ad9f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java @@ -0,0 +1,104 @@ +package com.ruoyi.web.controller.pc; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.TRecord; +import com.ruoyi.system.service.ITRecordService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 诊断记录信息Controller + * + * @author ruoyi + * @date 2022-08-03 + */ +@RestController +@RequestMapping("/system/record") +public class TRecordController extends BaseController +{ + @Autowired + private ITRecordService tRecordService; + + /** + * 查询诊断记录信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:record:list')") + @GetMapping("/list") + public TableDataInfo list(TRecord tRecord) + { + startPage(); + List list = tRecordService.selectTRecordList(tRecord); + return getDataTable(list); + } + + /** + * 导出诊断记录信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:record:export')") + @Log(title = "诊断记录信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, TRecord tRecord) + { + List list = tRecordService.selectTRecordList(tRecord); + ExcelUtil util = new ExcelUtil(TRecord.class); + util.exportExcel(response, list, "诊断记录信息数据"); + } + + /** + * 获取诊断记录信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:record:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(tRecordService.selectTRecordById(id)); + } + + /** + * 新增诊断记录信息 + */ + @PreAuthorize("@ss.hasPermi('system:record:add')") + @Log(title = "诊断记录信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody TRecord tRecord) + { + return toAjax(tRecordService.insertTRecord(tRecord)); + } + + /** + * 修改诊断记录信息 + */ + @PreAuthorize("@ss.hasPermi('system:record:edit')") + @Log(title = "诊断记录信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody TRecord tRecord) + { + return toAjax(tRecordService.updateTRecord(tRecord)); + } + + /** + * 删除诊断记录信息 + */ + @PreAuthorize("@ss.hasPermi('system:record:remove')") + @Log(title = "诊断记录信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(tRecordService.deleteTRecordByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TTitleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TTitleController.java new file mode 100644 index 0000000..8f6aa47 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TTitleController.java @@ -0,0 +1,104 @@ +package com.ruoyi.web.controller.pc; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.TTitle; +import com.ruoyi.system.service.ITTitleService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 职称信息Controller + * + * @author ruoyi + * @date 2022-08-03 + */ +@RestController +@RequestMapping("/system/title") +public class TTitleController extends BaseController +{ + @Autowired + private ITTitleService tTitleService; + + /** + * 查询职称信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:title:list')") + @GetMapping("/list") + public TableDataInfo list(TTitle tTitle) + { + startPage(); + List list = tTitleService.selectTTitleList(tTitle); + return getDataTable(list); + } + + /** + * 导出职称信息列表 + */ + @PreAuthorize("@ss.hasPermi('system:title:export')") + @Log(title = "职称信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, TTitle tTitle) + { + List list = tTitleService.selectTTitleList(tTitle); + ExcelUtil util = new ExcelUtil(TTitle.class); + util.exportExcel(response, list, "职称信息数据"); + } + + /** + * 获取职称信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:title:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(tTitleService.selectTTitleById(id)); + } + + /** + * 新增职称信息 + */ + @PreAuthorize("@ss.hasPermi('system:title:add')") + @Log(title = "职称信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody TTitle tTitle) + { + return toAjax(tTitleService.insertTTitle(tTitle)); + } + + /** + * 修改职称信息 + */ + @PreAuthorize("@ss.hasPermi('system:title:edit')") + @Log(title = "职称信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody TTitle tTitle) + { + return toAjax(tTitleService.updateTTitle(tTitle)); + } + + /** + * 删除职称信息 + */ + @PreAuthorize("@ss.hasPermi('system:title:remove')") + @Log(title = "职称信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(tTitleService.deleteTTitleByIds(ids)); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDoctor.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDoctor.java new file mode 100644 index 0000000..a56f960 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TDoctor.java @@ -0,0 +1,206 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 医生信息对象 t_doctor + * + * @author ruoyi + * @date 2022-08-03 + */ +public class TDoctor extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 腾讯openid */ + @Excel(name = "腾讯openid") + private String openId; + + /** 编号 */ + @Excel(name = "编号") + private String identifier; + + /** 名称 */ + @Excel(name = "名称") + private String name; + + /** 电话 */ + @Excel(name = "电话") + private String phone; + + /** 用户性别(0男 1女 2未知) */ + @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") + private String sex; + + /** 年龄 */ + @Excel(name = "年龄") + private Integer age; + + /** 婚姻状态(0未婚 1已婚 2未知) */ + @Excel(name = "婚姻状态", readConverterExp = "0=未婚,1=已婚,2=未知") + private String marriage; + + /** 职称 */ + @Excel(name = "职称") + private String title; + + /** 专长 */ + @Excel(name = "专长") + private String speciality; + + /** 简介 */ + @Excel(name = "简介") + private String introduction; + + /** 医院 */ + @Excel(name = "医院") + private Long hospitalId; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setOpenId(String openId) + { + this.openId = openId; + } + + public String getOpenId() + { + return openId; + } + public void setIdentifier(String identifier) + { + this.identifier = identifier; + } + + public String getIdentifier() + { + return identifier; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setPhone(String phone) + { + this.phone = phone; + } + + public String getPhone() + { + return phone; + } + public void setSex(String sex) + { + this.sex = sex; + } + + public String getSex() + { + return sex; + } + public void setAge(Integer age) + { + this.age = age; + } + + public Integer getAge() + { + return age; + } + public void setMarriage(String marriage) + { + this.marriage = marriage; + } + + public String getMarriage() + { + return marriage; + } + public void setTitle(String title) + { + this.title = title; + } + + public String getTitle() + { + return title; + } + public void setSpeciality(String speciality) + { + this.speciality = speciality; + } + + public String getSpeciality() + { + return speciality; + } + public void setIntroduction(String introduction) + { + this.introduction = introduction; + } + + public String getIntroduction() + { + return introduction; + } + public void setHospitalId(Long hospitalId) + { + this.hospitalId = hospitalId; + } + + public Long getHospitalId() + { + return hospitalId; + } + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getDelFlag() + { + return delFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("openId", getOpenId()) + .append("identifier", getIdentifier()) + .append("name", getName()) + .append("phone", getPhone()) + .append("sex", getSex()) + .append("age", getAge()) + .append("marriage", getMarriage()) + .append("title", getTitle()) + .append("speciality", getSpeciality()) + .append("introduction", getIntroduction()) + .append("hospitalId", getHospitalId()) + .append("delFlag", getDelFlag()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/THospital.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/THospital.java new file mode 100644 index 0000000..e59a11e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/THospital.java @@ -0,0 +1,65 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 医院信息对象 t_hospital + * + * @author ruoyi + * @date 2022-08-03 + */ +public class THospital extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 名称 */ + @Excel(name = "名称") + private String name; + + /** 排序 */ + @Excel(name = "排序") + private Long num; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setNum(Long num) + { + this.num = num; + } + + public Long getNum() + { + return num; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("num", getNum()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TPatient.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TPatient.java new file mode 100644 index 0000000..b1b593a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TPatient.java @@ -0,0 +1,192 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 患者信息对象 t_patient + * + * @author ruoyi + * @date 2022-08-03 + */ +public class TPatient extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 腾讯openid */ + @Excel(name = "腾讯openid") + private String openId; + + /** 编号 */ + @Excel(name = "编号") + private String identifier; + + /** 名称 */ + @Excel(name = "名称") + private String name; + + /** 电话 */ + @Excel(name = "电话") + private String phone; + + /** 用户性别(0男 1女 2未知) */ + @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") + private String sex; + + /** 年龄 */ + @Excel(name = "年龄") + private Integer age; + + /** 身高 */ + @Excel(name = "身高") + private Integer height; + + /** 体重 */ + @Excel(name = "体重") + private Integer weight; + + /** 婚姻状态(0未婚 1已婚 2未知) */ + @Excel(name = "婚姻状态", readConverterExp = "0=未婚,1=已婚,2=未知") + private String marriage; + + /** 基础疾病 */ + @Excel(name = "基础疾病") + private String disease; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setOpenId(String openId) + { + this.openId = openId; + } + + public String getOpenId() + { + return openId; + } + public void setIdentifier(String identifier) + { + this.identifier = identifier; + } + + public String getIdentifier() + { + return identifier; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setPhone(String phone) + { + this.phone = phone; + } + + public String getPhone() + { + return phone; + } + public void setSex(String sex) + { + this.sex = sex; + } + + public String getSex() + { + return sex; + } + public void setAge(Integer age) + { + this.age = age; + } + + public Integer getAge() + { + return age; + } + public void setHeight(Integer height) + { + this.height = height; + } + + public Integer getHeight() + { + return height; + } + public void setWeight(Integer weight) + { + this.weight = weight; + } + + public Integer getWeight() + { + return weight; + } + public void setMarriage(String marriage) + { + this.marriage = marriage; + } + + public String getMarriage() + { + return marriage; + } + public void setDisease(String disease) + { + this.disease = disease; + } + + public String getDisease() + { + return disease; + } + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getDelFlag() + { + return delFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("openId", getOpenId()) + .append("identifier", getIdentifier()) + .append("name", getName()) + .append("phone", getPhone()) + .append("sex", getSex()) + .append("age", getAge()) + .append("height", getHeight()) + .append("weight", getWeight()) + .append("marriage", getMarriage()) + .append("disease", getDisease()) + .append("delFlag", getDelFlag()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TRecord.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TRecord.java new file mode 100644 index 0000000..71e5324 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TRecord.java @@ -0,0 +1,210 @@ +package com.ruoyi.system.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 诊断记录信息对象 t_record + * + * @author ruoyi + * @date 2022-08-03 + */ +public class TRecord extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 患者 */ + @Excel(name = "患者") + private Long patientId; + + /** 医生 */ + @Excel(name = "医生") + private Long doctorId; + + /** 医院 */ + @Excel(name = "医院") + private Long hospitalId; + + /** 状态(0预约 1就诊) */ + @Excel(name = "状态", readConverterExp = "0=预约,1=就诊") + private String status; + + /** ai诊断结果 */ + @Excel(name = "ai诊断结果") + private String aiResult; + + /** ai诊断结果,无图片 */ + @Excel(name = "ai诊断结果,无图片") + private String aiResult2; + + /** 医生诊断结果 */ + @Excel(name = "医生诊断结果") + private String updateResult; + + /** 医生诊断结果,无图片 */ + @Excel(name = "医生诊断结果,无图片") + private String updateResult2; + + /** 上传时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date uploadTime; + + /** 舌下 */ + @Excel(name = "舌下") + private String imgSx; + + /** 舌上 */ + @Excel(name = "舌上") + private String imgSm; + + /** 响应时长 */ + @Excel(name = "响应时长") + private Long responseTime; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setPatientId(Long patientId) + { + this.patientId = patientId; + } + + public Long getPatientId() + { + return patientId; + } + public void setDoctorId(Long doctorId) + { + this.doctorId = doctorId; + } + + public Long getDoctorId() + { + return doctorId; + } + public void setHospitalId(Long hospitalId) + { + this.hospitalId = hospitalId; + } + + public Long getHospitalId() + { + return hospitalId; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + public void setAiResult(String aiResult) + { + this.aiResult = aiResult; + } + + public String getAiResult() + { + return aiResult; + } + public void setAiResult2(String aiResult2) + { + this.aiResult2 = aiResult2; + } + + public String getAiResult2() + { + return aiResult2; + } + public void setUpdateResult(String updateResult) + { + this.updateResult = updateResult; + } + + public String getUpdateResult() + { + return updateResult; + } + public void setUpdateResult2(String updateResult2) + { + this.updateResult2 = updateResult2; + } + + public String getUpdateResult2() + { + return updateResult2; + } + public void setUploadTime(Date uploadTime) + { + this.uploadTime = uploadTime; + } + + public Date getUploadTime() + { + return uploadTime; + } + public void setImgSx(String imgSx) + { + this.imgSx = imgSx; + } + + public String getImgSx() + { + return imgSx; + } + public void setImgSm(String imgSm) + { + this.imgSm = imgSm; + } + + public String getImgSm() + { + return imgSm; + } + public void setResponseTime(Long responseTime) + { + this.responseTime = responseTime; + } + + public Long getResponseTime() + { + return responseTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("patientId", getPatientId()) + .append("doctorId", getDoctorId()) + .append("hospitalId", getHospitalId()) + .append("status", getStatus()) + .append("aiResult", getAiResult()) + .append("aiResult2", getAiResult2()) + .append("updateResult", getUpdateResult()) + .append("updateResult2", getUpdateResult2()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("uploadTime", getUploadTime()) + .append("imgSx", getImgSx()) + .append("imgSm", getImgSm()) + .append("responseTime", getResponseTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TTitle.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TTitle.java new file mode 100644 index 0000000..0ce217b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TTitle.java @@ -0,0 +1,65 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 职称信息对象 t_title + * + * @author ruoyi + * @date 2022-08-03 + */ +public class TTitle extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 名称 */ + @Excel(name = "名称") + private String name; + + /** 排序 */ + @Excel(name = "排序") + private Long num; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setNum(Long num) + { + this.num = num; + } + + public Long getNum() + { + return num; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("num", getNum()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TDoctorMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TDoctorMapper.java new file mode 100644 index 0000000..1154d14 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TDoctorMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.TDoctor; + +/** + * 医生信息Mapper接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface TDoctorMapper +{ + /** + * 查询医生信息 + * + * @param id 医生信息主键 + * @return 医生信息 + */ + public TDoctor selectTDoctorById(Long id); + + /** + * 查询医生信息列表 + * + * @param tDoctor 医生信息 + * @return 医生信息集合 + */ + public List selectTDoctorList(TDoctor tDoctor); + + /** + * 新增医生信息 + * + * @param tDoctor 医生信息 + * @return 结果 + */ + public int insertTDoctor(TDoctor tDoctor); + + /** + * 修改医生信息 + * + * @param tDoctor 医生信息 + * @return 结果 + */ + public int updateTDoctor(TDoctor tDoctor); + + /** + * 删除医生信息 + * + * @param id 医生信息主键 + * @return 结果 + */ + public int deleteTDoctorById(Long id); + + /** + * 批量删除医生信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteTDoctorByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/THospitalMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/THospitalMapper.java new file mode 100644 index 0000000..6ce3ca7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/THospitalMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.THospital; + +/** + * 医院信息Mapper接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface THospitalMapper +{ + /** + * 查询医院信息 + * + * @param id 医院信息主键 + * @return 医院信息 + */ + public THospital selectTHospitalById(Long id); + + /** + * 查询医院信息列表 + * + * @param tHospital 医院信息 + * @return 医院信息集合 + */ + public List selectTHospitalList(THospital tHospital); + + /** + * 新增医院信息 + * + * @param tHospital 医院信息 + * @return 结果 + */ + public int insertTHospital(THospital tHospital); + + /** + * 修改医院信息 + * + * @param tHospital 医院信息 + * @return 结果 + */ + public int updateTHospital(THospital tHospital); + + /** + * 删除医院信息 + * + * @param id 医院信息主键 + * @return 结果 + */ + public int deleteTHospitalById(Long id); + + /** + * 批量删除医院信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteTHospitalByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TPatientMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TPatientMapper.java new file mode 100644 index 0000000..821e729 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TPatientMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.TPatient; + +/** + * 患者信息Mapper接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface TPatientMapper +{ + /** + * 查询患者信息 + * + * @param id 患者信息主键 + * @return 患者信息 + */ + public TPatient selectTPatientById(Long id); + + /** + * 查询患者信息列表 + * + * @param tPatient 患者信息 + * @return 患者信息集合 + */ + public List selectTPatientList(TPatient tPatient); + + /** + * 新增患者信息 + * + * @param tPatient 患者信息 + * @return 结果 + */ + public int insertTPatient(TPatient tPatient); + + /** + * 修改患者信息 + * + * @param tPatient 患者信息 + * @return 结果 + */ + public int updateTPatient(TPatient tPatient); + + /** + * 删除患者信息 + * + * @param id 患者信息主键 + * @return 结果 + */ + public int deleteTPatientById(Long id); + + /** + * 批量删除患者信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteTPatientByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java new file mode 100644 index 0000000..711cb3b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.TRecord; + +/** + * 诊断记录信息Mapper接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface TRecordMapper +{ + /** + * 查询诊断记录信息 + * + * @param id 诊断记录信息主键 + * @return 诊断记录信息 + */ + public TRecord selectTRecordById(Long id); + + /** + * 查询诊断记录信息列表 + * + * @param tRecord 诊断记录信息 + * @return 诊断记录信息集合 + */ + public List selectTRecordList(TRecord tRecord); + + /** + * 新增诊断记录信息 + * + * @param tRecord 诊断记录信息 + * @return 结果 + */ + public int insertTRecord(TRecord tRecord); + + /** + * 修改诊断记录信息 + * + * @param tRecord 诊断记录信息 + * @return 结果 + */ + public int updateTRecord(TRecord tRecord); + + /** + * 删除诊断记录信息 + * + * @param id 诊断记录信息主键 + * @return 结果 + */ + public int deleteTRecordById(Long id); + + /** + * 批量删除诊断记录信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteTRecordByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTitleMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTitleMapper.java new file mode 100644 index 0000000..9f5a609 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTitleMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.TTitle; + +/** + * 职称信息Mapper接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface TTitleMapper +{ + /** + * 查询职称信息 + * + * @param id 职称信息主键 + * @return 职称信息 + */ + public TTitle selectTTitleById(Long id); + + /** + * 查询职称信息列表 + * + * @param tTitle 职称信息 + * @return 职称信息集合 + */ + public List selectTTitleList(TTitle tTitle); + + /** + * 新增职称信息 + * + * @param tTitle 职称信息 + * @return 结果 + */ + public int insertTTitle(TTitle tTitle); + + /** + * 修改职称信息 + * + * @param tTitle 职称信息 + * @return 结果 + */ + public int updateTTitle(TTitle tTitle); + + /** + * 删除职称信息 + * + * @param id 职称信息主键 + * @return 结果 + */ + public int deleteTTitleById(Long id); + + /** + * 批量删除职称信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteTTitleByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITDoctorService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITDoctorService.java new file mode 100644 index 0000000..e74a19f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITDoctorService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.TDoctor; + +/** + * 医生信息Service接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface ITDoctorService +{ + /** + * 查询医生信息 + * + * @param id 医生信息主键 + * @return 医生信息 + */ + public TDoctor selectTDoctorById(Long id); + + /** + * 查询医生信息列表 + * + * @param tDoctor 医生信息 + * @return 医生信息集合 + */ + public List selectTDoctorList(TDoctor tDoctor); + + /** + * 新增医生信息 + * + * @param tDoctor 医生信息 + * @return 结果 + */ + public int insertTDoctor(TDoctor tDoctor); + + /** + * 修改医生信息 + * + * @param tDoctor 医生信息 + * @return 结果 + */ + public int updateTDoctor(TDoctor tDoctor); + + /** + * 批量删除医生信息 + * + * @param ids 需要删除的医生信息主键集合 + * @return 结果 + */ + public int deleteTDoctorByIds(Long[] ids); + + /** + * 删除医生信息信息 + * + * @param id 医生信息主键 + * @return 结果 + */ + public int deleteTDoctorById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITHospitalService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITHospitalService.java new file mode 100644 index 0000000..d813cf3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITHospitalService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.THospital; + +/** + * 医院信息Service接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface ITHospitalService +{ + /** + * 查询医院信息 + * + * @param id 医院信息主键 + * @return 医院信息 + */ + public THospital selectTHospitalById(Long id); + + /** + * 查询医院信息列表 + * + * @param tHospital 医院信息 + * @return 医院信息集合 + */ + public List selectTHospitalList(THospital tHospital); + + /** + * 新增医院信息 + * + * @param tHospital 医院信息 + * @return 结果 + */ + public int insertTHospital(THospital tHospital); + + /** + * 修改医院信息 + * + * @param tHospital 医院信息 + * @return 结果 + */ + public int updateTHospital(THospital tHospital); + + /** + * 批量删除医院信息 + * + * @param ids 需要删除的医院信息主键集合 + * @return 结果 + */ + public int deleteTHospitalByIds(Long[] ids); + + /** + * 删除医院信息信息 + * + * @param id 医院信息主键 + * @return 结果 + */ + public int deleteTHospitalById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITPatientService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITPatientService.java new file mode 100644 index 0000000..854ec35 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITPatientService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.TPatient; + +/** + * 患者信息Service接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface ITPatientService +{ + /** + * 查询患者信息 + * + * @param id 患者信息主键 + * @return 患者信息 + */ + public TPatient selectTPatientById(Long id); + + /** + * 查询患者信息列表 + * + * @param tPatient 患者信息 + * @return 患者信息集合 + */ + public List selectTPatientList(TPatient tPatient); + + /** + * 新增患者信息 + * + * @param tPatient 患者信息 + * @return 结果 + */ + public int insertTPatient(TPatient tPatient); + + /** + * 修改患者信息 + * + * @param tPatient 患者信息 + * @return 结果 + */ + public int updateTPatient(TPatient tPatient); + + /** + * 批量删除患者信息 + * + * @param ids 需要删除的患者信息主键集合 + * @return 结果 + */ + public int deleteTPatientByIds(Long[] ids); + + /** + * 删除患者信息信息 + * + * @param id 患者信息主键 + * @return 结果 + */ + public int deleteTPatientById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java new file mode 100644 index 0000000..be8b8da --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.TRecord; + +/** + * 诊断记录信息Service接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface ITRecordService +{ + /** + * 查询诊断记录信息 + * + * @param id 诊断记录信息主键 + * @return 诊断记录信息 + */ + public TRecord selectTRecordById(Long id); + + /** + * 查询诊断记录信息列表 + * + * @param tRecord 诊断记录信息 + * @return 诊断记录信息集合 + */ + public List selectTRecordList(TRecord tRecord); + + /** + * 新增诊断记录信息 + * + * @param tRecord 诊断记录信息 + * @return 结果 + */ + public int insertTRecord(TRecord tRecord); + + /** + * 修改诊断记录信息 + * + * @param tRecord 诊断记录信息 + * @return 结果 + */ + public int updateTRecord(TRecord tRecord); + + /** + * 批量删除诊断记录信息 + * + * @param ids 需要删除的诊断记录信息主键集合 + * @return 结果 + */ + public int deleteTRecordByIds(Long[] ids); + + /** + * 删除诊断记录信息信息 + * + * @param id 诊断记录信息主键 + * @return 结果 + */ + public int deleteTRecordById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITTitleService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITTitleService.java new file mode 100644 index 0000000..e9bcdc3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITTitleService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.TTitle; + +/** + * 职称信息Service接口 + * + * @author ruoyi + * @date 2022-08-03 + */ +public interface ITTitleService +{ + /** + * 查询职称信息 + * + * @param id 职称信息主键 + * @return 职称信息 + */ + public TTitle selectTTitleById(Long id); + + /** + * 查询职称信息列表 + * + * @param tTitle 职称信息 + * @return 职称信息集合 + */ + public List selectTTitleList(TTitle tTitle); + + /** + * 新增职称信息 + * + * @param tTitle 职称信息 + * @return 结果 + */ + public int insertTTitle(TTitle tTitle); + + /** + * 修改职称信息 + * + * @param tTitle 职称信息 + * @return 结果 + */ + public int updateTTitle(TTitle tTitle); + + /** + * 批量删除职称信息 + * + * @param ids 需要删除的职称信息主键集合 + * @return 结果 + */ + public int deleteTTitleByIds(Long[] ids); + + /** + * 删除职称信息信息 + * + * @param id 职称信息主键 + * @return 结果 + */ + public int deleteTTitleById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TDoctorServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TDoctorServiceImpl.java new file mode 100644 index 0000000..c9d8584 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TDoctorServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.TDoctorMapper; +import com.ruoyi.system.domain.TDoctor; +import com.ruoyi.system.service.ITDoctorService; + +/** + * 医生信息Service业务层处理 + * + * @author ruoyi + * @date 2022-08-03 + */ +@Service +public class TDoctorServiceImpl implements ITDoctorService +{ + @Autowired + private TDoctorMapper tDoctorMapper; + + /** + * 查询医生信息 + * + * @param id 医生信息主键 + * @return 医生信息 + */ + @Override + public TDoctor selectTDoctorById(Long id) + { + return tDoctorMapper.selectTDoctorById(id); + } + + /** + * 查询医生信息列表 + * + * @param tDoctor 医生信息 + * @return 医生信息 + */ + @Override + public List selectTDoctorList(TDoctor tDoctor) + { + return tDoctorMapper.selectTDoctorList(tDoctor); + } + + /** + * 新增医生信息 + * + * @param tDoctor 医生信息 + * @return 结果 + */ + @Override + public int insertTDoctor(TDoctor tDoctor) + { + tDoctor.setCreateTime(DateUtils.getNowDate()); + return tDoctorMapper.insertTDoctor(tDoctor); + } + + /** + * 修改医生信息 + * + * @param tDoctor 医生信息 + * @return 结果 + */ + @Override + public int updateTDoctor(TDoctor tDoctor) + { + tDoctor.setUpdateTime(DateUtils.getNowDate()); + return tDoctorMapper.updateTDoctor(tDoctor); + } + + /** + * 批量删除医生信息 + * + * @param ids 需要删除的医生信息主键 + * @return 结果 + */ + @Override + public int deleteTDoctorByIds(Long[] ids) + { + return tDoctorMapper.deleteTDoctorByIds(ids); + } + + /** + * 删除医生信息信息 + * + * @param id 医生信息主键 + * @return 结果 + */ + @Override + public int deleteTDoctorById(Long id) + { + return tDoctorMapper.deleteTDoctorById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/THospitalServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/THospitalServiceImpl.java new file mode 100644 index 0000000..28782f5 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/THospitalServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.THospitalMapper; +import com.ruoyi.system.domain.THospital; +import com.ruoyi.system.service.ITHospitalService; + +/** + * 医院信息Service业务层处理 + * + * @author ruoyi + * @date 2022-08-03 + */ +@Service +public class THospitalServiceImpl implements ITHospitalService +{ + @Autowired + private THospitalMapper tHospitalMapper; + + /** + * 查询医院信息 + * + * @param id 医院信息主键 + * @return 医院信息 + */ + @Override + public THospital selectTHospitalById(Long id) + { + return tHospitalMapper.selectTHospitalById(id); + } + + /** + * 查询医院信息列表 + * + * @param tHospital 医院信息 + * @return 医院信息 + */ + @Override + public List selectTHospitalList(THospital tHospital) + { + return tHospitalMapper.selectTHospitalList(tHospital); + } + + /** + * 新增医院信息 + * + * @param tHospital 医院信息 + * @return 结果 + */ + @Override + public int insertTHospital(THospital tHospital) + { + return tHospitalMapper.insertTHospital(tHospital); + } + + /** + * 修改医院信息 + * + * @param tHospital 医院信息 + * @return 结果 + */ + @Override + public int updateTHospital(THospital tHospital) + { + return tHospitalMapper.updateTHospital(tHospital); + } + + /** + * 批量删除医院信息 + * + * @param ids 需要删除的医院信息主键 + * @return 结果 + */ + @Override + public int deleteTHospitalByIds(Long[] ids) + { + return tHospitalMapper.deleteTHospitalByIds(ids); + } + + /** + * 删除医院信息信息 + * + * @param id 医院信息主键 + * @return 结果 + */ + @Override + public int deleteTHospitalById(Long id) + { + return tHospitalMapper.deleteTHospitalById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TPatientServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TPatientServiceImpl.java new file mode 100644 index 0000000..d0f7455 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TPatientServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.TPatientMapper; +import com.ruoyi.system.domain.TPatient; +import com.ruoyi.system.service.ITPatientService; + +/** + * 患者信息Service业务层处理 + * + * @author ruoyi + * @date 2022-08-03 + */ +@Service +public class TPatientServiceImpl implements ITPatientService +{ + @Autowired + private TPatientMapper tPatientMapper; + + /** + * 查询患者信息 + * + * @param id 患者信息主键 + * @return 患者信息 + */ + @Override + public TPatient selectTPatientById(Long id) + { + return tPatientMapper.selectTPatientById(id); + } + + /** + * 查询患者信息列表 + * + * @param tPatient 患者信息 + * @return 患者信息 + */ + @Override + public List selectTPatientList(TPatient tPatient) + { + return tPatientMapper.selectTPatientList(tPatient); + } + + /** + * 新增患者信息 + * + * @param tPatient 患者信息 + * @return 结果 + */ + @Override + public int insertTPatient(TPatient tPatient) + { + tPatient.setCreateTime(DateUtils.getNowDate()); + return tPatientMapper.insertTPatient(tPatient); + } + + /** + * 修改患者信息 + * + * @param tPatient 患者信息 + * @return 结果 + */ + @Override + public int updateTPatient(TPatient tPatient) + { + tPatient.setUpdateTime(DateUtils.getNowDate()); + return tPatientMapper.updateTPatient(tPatient); + } + + /** + * 批量删除患者信息 + * + * @param ids 需要删除的患者信息主键 + * @return 结果 + */ + @Override + public int deleteTPatientByIds(Long[] ids) + { + return tPatientMapper.deleteTPatientByIds(ids); + } + + /** + * 删除患者信息信息 + * + * @param id 患者信息主键 + * @return 结果 + */ + @Override + public int deleteTPatientById(Long id) + { + return tPatientMapper.deleteTPatientById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java new file mode 100644 index 0000000..148e538 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.TRecordMapper; +import com.ruoyi.system.domain.TRecord; +import com.ruoyi.system.service.ITRecordService; + +/** + * 诊断记录信息Service业务层处理 + * + * @author ruoyi + * @date 2022-08-03 + */ +@Service +public class TRecordServiceImpl implements ITRecordService +{ + @Autowired + private TRecordMapper tRecordMapper; + + /** + * 查询诊断记录信息 + * + * @param id 诊断记录信息主键 + * @return 诊断记录信息 + */ + @Override + public TRecord selectTRecordById(Long id) + { + return tRecordMapper.selectTRecordById(id); + } + + /** + * 查询诊断记录信息列表 + * + * @param tRecord 诊断记录信息 + * @return 诊断记录信息 + */ + @Override + public List selectTRecordList(TRecord tRecord) + { + return tRecordMapper.selectTRecordList(tRecord); + } + + /** + * 新增诊断记录信息 + * + * @param tRecord 诊断记录信息 + * @return 结果 + */ + @Override + public int insertTRecord(TRecord tRecord) + { + tRecord.setCreateTime(DateUtils.getNowDate()); + return tRecordMapper.insertTRecord(tRecord); + } + + /** + * 修改诊断记录信息 + * + * @param tRecord 诊断记录信息 + * @return 结果 + */ + @Override + public int updateTRecord(TRecord tRecord) + { + tRecord.setUpdateTime(DateUtils.getNowDate()); + return tRecordMapper.updateTRecord(tRecord); + } + + /** + * 批量删除诊断记录信息 + * + * @param ids 需要删除的诊断记录信息主键 + * @return 结果 + */ + @Override + public int deleteTRecordByIds(Long[] ids) + { + return tRecordMapper.deleteTRecordByIds(ids); + } + + /** + * 删除诊断记录信息信息 + * + * @param id 诊断记录信息主键 + * @return 结果 + */ + @Override + public int deleteTRecordById(Long id) + { + return tRecordMapper.deleteTRecordById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTitleServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTitleServiceImpl.java new file mode 100644 index 0000000..f097541 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TTitleServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.TTitleMapper; +import com.ruoyi.system.domain.TTitle; +import com.ruoyi.system.service.ITTitleService; + +/** + * 职称信息Service业务层处理 + * + * @author ruoyi + * @date 2022-08-03 + */ +@Service +public class TTitleServiceImpl implements ITTitleService +{ + @Autowired + private TTitleMapper tTitleMapper; + + /** + * 查询职称信息 + * + * @param id 职称信息主键 + * @return 职称信息 + */ + @Override + public TTitle selectTTitleById(Long id) + { + return tTitleMapper.selectTTitleById(id); + } + + /** + * 查询职称信息列表 + * + * @param tTitle 职称信息 + * @return 职称信息 + */ + @Override + public List selectTTitleList(TTitle tTitle) + { + return tTitleMapper.selectTTitleList(tTitle); + } + + /** + * 新增职称信息 + * + * @param tTitle 职称信息 + * @return 结果 + */ + @Override + public int insertTTitle(TTitle tTitle) + { + return tTitleMapper.insertTTitle(tTitle); + } + + /** + * 修改职称信息 + * + * @param tTitle 职称信息 + * @return 结果 + */ + @Override + public int updateTTitle(TTitle tTitle) + { + return tTitleMapper.updateTTitle(tTitle); + } + + /** + * 批量删除职称信息 + * + * @param ids 需要删除的职称信息主键 + * @return 结果 + */ + @Override + public int deleteTTitleByIds(Long[] ids) + { + return tTitleMapper.deleteTTitleByIds(ids); + } + + /** + * 删除职称信息信息 + * + * @param id 职称信息主键 + * @return 结果 + */ + @Override + public int deleteTTitleById(Long id) + { + return tTitleMapper.deleteTTitleById(id); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/TDoctorMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TDoctorMapper.xml new file mode 100644 index 0000000..b62ee06 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/TDoctorMapper.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + select id, open_id, identifier, name, phone, sex, age, marriage, title, speciality, introduction, hospital_id, del_flag, create_time, update_time from t_doctor + + + + + + + + insert into t_doctor + + open_id, + identifier, + name, + phone, + sex, + age, + marriage, + title, + speciality, + introduction, + hospital_id, + del_flag, + create_time, + update_time, + + + #{openId}, + #{identifier}, + #{name}, + #{phone}, + #{sex}, + #{age}, + #{marriage}, + #{title}, + #{speciality}, + #{introduction}, + #{hospitalId}, + #{delFlag}, + #{createTime}, + #{updateTime}, + + + + + update t_doctor + + open_id = #{openId}, + identifier = #{identifier}, + name = #{name}, + phone = #{phone}, + sex = #{sex}, + age = #{age}, + marriage = #{marriage}, + title = #{title}, + speciality = #{speciality}, + introduction = #{introduction}, + hospital_id = #{hospitalId}, + del_flag = #{delFlag}, + create_time = #{createTime}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from t_doctor where id = #{id} + + + + delete from t_doctor where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/THospitalMapper.xml b/ruoyi-system/src/main/resources/mapper/system/THospitalMapper.xml new file mode 100644 index 0000000..6b6a22c --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/THospitalMapper.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + select id, name, num from t_hospital + + + + + + + + insert into t_hospital + + name, + num, + + + #{name}, + #{num}, + + + + + update t_hospital + + name = #{name}, + num = #{num}, + + where id = #{id} + + + + delete from t_hospital where id = #{id} + + + + delete from t_hospital where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/TPatientMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TPatientMapper.xml new file mode 100644 index 0000000..e36eaea --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/TPatientMapper.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, open_id, identifier, name, phone, sex, age, height, weight, marriage, disease, del_flag, create_time, update_time from t_patient + + + + + + + + insert into t_patient + + open_id, + identifier, + name, + phone, + sex, + age, + height, + weight, + marriage, + disease, + del_flag, + create_time, + update_time, + + + #{openId}, + #{identifier}, + #{name}, + #{phone}, + #{sex}, + #{age}, + #{height}, + #{weight}, + #{marriage}, + #{disease}, + #{delFlag}, + #{createTime}, + #{updateTime}, + + + + + update t_patient + + open_id = #{openId}, + identifier = #{identifier}, + name = #{name}, + phone = #{phone}, + sex = #{sex}, + age = #{age}, + height = #{height}, + weight = #{weight}, + marriage = #{marriage}, + disease = #{disease}, + del_flag = #{delFlag}, + create_time = #{createTime}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from t_patient where id = #{id} + + + + delete from t_patient where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml new file mode 100644 index 0000000..e5ab34f --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + select id, patient_id, doctor_id, hospital_id, status, ai_result, ai_result2, update_result, update_result2, create_time, update_time, upload_time, img_sx, img_sm, response_time from t_record + + + + + + + + insert into t_record + + patient_id, + doctor_id, + hospital_id, + status, + ai_result, + ai_result2, + update_result, + update_result2, + create_time, + update_time, + upload_time, + img_sx, + img_sm, + response_time, + + + #{patientId}, + #{doctorId}, + #{hospitalId}, + #{status}, + #{aiResult}, + #{aiResult2}, + #{updateResult}, + #{updateResult2}, + #{createTime}, + #{updateTime}, + #{uploadTime}, + #{imgSx}, + #{imgSm}, + #{responseTime}, + + + + + update t_record + + patient_id = #{patientId}, + doctor_id = #{doctorId}, + hospital_id = #{hospitalId}, + status = #{status}, + ai_result = #{aiResult}, + ai_result2 = #{aiResult2}, + update_result = #{updateResult}, + update_result2 = #{updateResult2}, + create_time = #{createTime}, + update_time = #{updateTime}, + upload_time = #{uploadTime}, + img_sx = #{imgSx}, + img_sm = #{imgSm}, + response_time = #{responseTime}, + + where id = #{id} + + + + delete from t_record where id = #{id} + + + + delete from t_record where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/TTitleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TTitleMapper.xml new file mode 100644 index 0000000..f7513d4 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/TTitleMapper.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + select id, name, num from t_title + + + + + + + + insert into t_title + + name, + num, + + + #{name}, + #{num}, + + + + + update t_title + + name = #{name}, + num = #{num}, + + where id = #{id} + + + + delete from t_title where id = #{id} + + + + delete from t_title where id in + + #{id} + + + \ No newline at end of file