代码生成
parent
afab7d7f26
commit
4751ed93e1
@ -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<TDoctor> 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<TDoctor> list = tDoctorService.selectTDoctorList(tDoctor);
|
||||
ExcelUtil<TDoctor> util = new ExcelUtil<TDoctor>(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));
|
||||
}
|
||||
}
|
@ -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<THospital> 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<THospital> list = tHospitalService.selectTHospitalList(tHospital);
|
||||
ExcelUtil<THospital> util = new ExcelUtil<THospital>(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));
|
||||
}
|
||||
}
|
@ -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<TPatient> 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<TPatient> list = tPatientService.selectTPatientList(tPatient);
|
||||
ExcelUtil<TPatient> util = new ExcelUtil<TPatient>(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));
|
||||
}
|
||||
}
|
@ -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<TRecord> 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<TRecord> list = tRecordService.selectTRecordList(tRecord);
|
||||
ExcelUtil<TRecord> util = new ExcelUtil<TRecord>(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));
|
||||
}
|
||||
}
|
@ -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<TTitle> 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<TTitle> list = tTitleService.selectTTitleList(tTitle);
|
||||
ExcelUtil<TTitle> util = new ExcelUtil<TTitle>(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));
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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<TDoctor> 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);
|
||||
}
|
@ -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<THospital> 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);
|
||||
}
|
@ -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<TPatient> 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);
|
||||
}
|
@ -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<TRecord> 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);
|
||||
}
|
@ -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<TTitle> 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);
|
||||
}
|
@ -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<TDoctor> 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);
|
||||
}
|
@ -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<THospital> 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);
|
||||
}
|
@ -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<TPatient> 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);
|
||||
}
|
@ -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<TRecord> 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);
|
||||
}
|
@ -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<TTitle> 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);
|
||||
}
|
@ -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<TDoctor> 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);
|
||||
}
|
||||
}
|
@ -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<THospital> 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);
|
||||
}
|
||||
}
|
@ -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<TPatient> 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);
|
||||
}
|
||||
}
|
@ -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<TRecord> 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);
|
||||
}
|
||||
}
|
@ -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<TTitle> 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);
|
||||
}
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
<?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.ruoyi.system.mapper.TDoctorMapper">
|
||||
|
||||
<resultMap type="TDoctor" id="TDoctorResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="openId" column="open_id" />
|
||||
<result property="identifier" column="identifier" />
|
||||
<result property="name" column="name" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="sex" column="sex" />
|
||||
<result property="age" column="age" />
|
||||
<result property="marriage" column="marriage" />
|
||||
<result property="title" column="title" />
|
||||
<result property="speciality" column="speciality" />
|
||||
<result property="introduction" column="introduction" />
|
||||
<result property="hospitalId" column="hospital_id" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTDoctorVo">
|
||||
select id, open_id, identifier, name, phone, sex, age, marriage, title, speciality, introduction, hospital_id, del_flag, create_time, update_time from t_doctor
|
||||
</sql>
|
||||
|
||||
<select id="selectTDoctorList" parameterType="TDoctor" resultMap="TDoctorResult">
|
||||
<include refid="selectTDoctorVo"/>
|
||||
<where>
|
||||
<if test="openId != null and openId != ''"> and open_id = #{openId}</if>
|
||||
<if test="identifier != null and identifier != ''"> and identifier = #{identifier}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
||||
<if test="age != null "> and age = #{age}</if>
|
||||
<if test="marriage != null and marriage != ''"> and marriage = #{marriage}</if>
|
||||
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||
<if test="speciality != null and speciality != ''"> and speciality = #{speciality}</if>
|
||||
<if test="introduction != null and introduction != ''"> and introduction = #{introduction}</if>
|
||||
<if test="hospitalId != null "> and hospital_id = #{hospitalId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTDoctorById" parameterType="Long" resultMap="TDoctorResult">
|
||||
<include refid="selectTDoctorVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTDoctor" parameterType="TDoctor" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into t_doctor
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="openId != null">open_id,</if>
|
||||
<if test="identifier != null">identifier,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="phone != null">phone,</if>
|
||||
<if test="sex != null">sex,</if>
|
||||
<if test="age != null">age,</if>
|
||||
<if test="marriage != null">marriage,</if>
|
||||
<if test="title != null">title,</if>
|
||||
<if test="speciality != null">speciality,</if>
|
||||
<if test="introduction != null">introduction,</if>
|
||||
<if test="hospitalId != null">hospital_id,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="openId != null">#{openId},</if>
|
||||
<if test="identifier != null">#{identifier},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="phone != null">#{phone},</if>
|
||||
<if test="sex != null">#{sex},</if>
|
||||
<if test="age != null">#{age},</if>
|
||||
<if test="marriage != null">#{marriage},</if>
|
||||
<if test="title != null">#{title},</if>
|
||||
<if test="speciality != null">#{speciality},</if>
|
||||
<if test="introduction != null">#{introduction},</if>
|
||||
<if test="hospitalId != null">#{hospitalId},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTDoctor" parameterType="TDoctor">
|
||||
update t_doctor
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="openId != null">open_id = #{openId},</if>
|
||||
<if test="identifier != null">identifier = #{identifier},</if>
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="phone != null">phone = #{phone},</if>
|
||||
<if test="sex != null">sex = #{sex},</if>
|
||||
<if test="age != null">age = #{age},</if>
|
||||
<if test="marriage != null">marriage = #{marriage},</if>
|
||||
<if test="title != null">title = #{title},</if>
|
||||
<if test="speciality != null">speciality = #{speciality},</if>
|
||||
<if test="introduction != null">introduction = #{introduction},</if>
|
||||
<if test="hospitalId != null">hospital_id = #{hospitalId},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTDoctorById" parameterType="Long">
|
||||
delete from t_doctor where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTDoctorByIds" parameterType="String">
|
||||
delete from t_doctor where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,61 @@
|
||||
<?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.ruoyi.system.mapper.THospitalMapper">
|
||||
|
||||
<resultMap type="THospital" id="THospitalResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="num" column="num" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTHospitalVo">
|
||||
select id, name, num from t_hospital
|
||||
</sql>
|
||||
|
||||
<select id="selectTHospitalList" parameterType="THospital" resultMap="THospitalResult">
|
||||
<include refid="selectTHospitalVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="num != null "> and num = #{num}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTHospitalById" parameterType="Long" resultMap="THospitalResult">
|
||||
<include refid="selectTHospitalVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTHospital" parameterType="THospital" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into t_hospital
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="num != null">num,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="num != null">#{num},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTHospital" parameterType="THospital">
|
||||
update t_hospital
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="num != null">num = #{num},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTHospitalById" parameterType="Long">
|
||||
delete from t_hospital where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTHospitalByIds" parameterType="String">
|
||||
delete from t_hospital where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,113 @@
|
||||
<?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.ruoyi.system.mapper.TPatientMapper">
|
||||
|
||||
<resultMap type="TPatient" id="TPatientResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="openId" column="open_id" />
|
||||
<result property="identifier" column="identifier" />
|
||||
<result property="name" column="name" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="sex" column="sex" />
|
||||
<result property="age" column="age" />
|
||||
<result property="height" column="height" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="marriage" column="marriage" />
|
||||
<result property="disease" column="disease" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTPatientVo">
|
||||
select id, open_id, identifier, name, phone, sex, age, height, weight, marriage, disease, del_flag, create_time, update_time from t_patient
|
||||
</sql>
|
||||
|
||||
<select id="selectTPatientList" parameterType="TPatient" resultMap="TPatientResult">
|
||||
<include refid="selectTPatientVo"/>
|
||||
<where>
|
||||
<if test="openId != null and openId != ''"> and open_id = #{openId}</if>
|
||||
<if test="identifier != null and identifier != ''"> and identifier = #{identifier}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
||||
<if test="age != null "> and age = #{age}</if>
|
||||
<if test="height != null "> and height = #{height}</if>
|
||||
<if test="weight != null "> and weight = #{weight}</if>
|
||||
<if test="marriage != null and marriage != ''"> and marriage = #{marriage}</if>
|
||||
<if test="disease != null and disease != ''"> and disease = #{disease}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTPatientById" parameterType="Long" resultMap="TPatientResult">
|
||||
<include refid="selectTPatientVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTPatient" parameterType="TPatient" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into t_patient
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="openId != null">open_id,</if>
|
||||
<if test="identifier != null">identifier,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="phone != null">phone,</if>
|
||||
<if test="sex != null">sex,</if>
|
||||
<if test="age != null">age,</if>
|
||||
<if test="height != null">height,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="marriage != null">marriage,</if>
|
||||
<if test="disease != null">disease,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="openId != null">#{openId},</if>
|
||||
<if test="identifier != null">#{identifier},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="phone != null">#{phone},</if>
|
||||
<if test="sex != null">#{sex},</if>
|
||||
<if test="age != null">#{age},</if>
|
||||
<if test="height != null">#{height},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="marriage != null">#{marriage},</if>
|
||||
<if test="disease != null">#{disease},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTPatient" parameterType="TPatient">
|
||||
update t_patient
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="openId != null">open_id = #{openId},</if>
|
||||
<if test="identifier != null">identifier = #{identifier},</if>
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="phone != null">phone = #{phone},</if>
|
||||
<if test="sex != null">sex = #{sex},</if>
|
||||
<if test="age != null">age = #{age},</if>
|
||||
<if test="height != null">height = #{height},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="marriage != null">marriage = #{marriage},</if>
|
||||
<if test="disease != null">disease = #{disease},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTPatientById" parameterType="Long">
|
||||
delete from t_patient where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTPatientByIds" parameterType="String">
|
||||
delete from t_patient where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,119 @@
|
||||
<?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.ruoyi.system.mapper.TRecordMapper">
|
||||
|
||||
<resultMap type="TRecord" id="TRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="patientId" column="patient_id" />
|
||||
<result property="doctorId" column="doctor_id" />
|
||||
<result property="hospitalId" column="hospital_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="aiResult" column="ai_result" />
|
||||
<result property="aiResult2" column="ai_result2" />
|
||||
<result property="updateResult" column="update_result" />
|
||||
<result property="updateResult2" column="update_result2" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="uploadTime" column="upload_time" />
|
||||
<result property="imgSx" column="img_sx" />
|
||||
<result property="imgSm" column="img_sm" />
|
||||
<result property="responseTime" column="response_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTRecordVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectTRecordList" parameterType="TRecord" resultMap="TRecordResult">
|
||||
<include refid="selectTRecordVo"/>
|
||||
<where>
|
||||
<if test="patientId != null "> and patient_id = #{patientId}</if>
|
||||
<if test="doctorId != null "> and doctor_id = #{doctorId}</if>
|
||||
<if test="hospitalId != null "> and hospital_id = #{hospitalId}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="aiResult != null and aiResult != ''"> and ai_result = #{aiResult}</if>
|
||||
<if test="aiResult2 != null and aiResult2 != ''"> and ai_result2 = #{aiResult2}</if>
|
||||
<if test="updateResult != null and updateResult != ''"> and update_result = #{updateResult}</if>
|
||||
<if test="updateResult2 != null and updateResult2 != ''"> and update_result2 = #{updateResult2}</if>
|
||||
<if test="uploadTime != null "> and upload_time = #{uploadTime}</if>
|
||||
<if test="imgSx != null and imgSx != ''"> and img_sx = #{imgSx}</if>
|
||||
<if test="imgSm != null and imgSm != ''"> and img_sm = #{imgSm}</if>
|
||||
<if test="responseTime != null "> and response_time = #{responseTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTRecordById" parameterType="Long" resultMap="TRecordResult">
|
||||
<include refid="selectTRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTRecord" parameterType="TRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into t_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id,</if>
|
||||
<if test="doctorId != null">doctor_id,</if>
|
||||
<if test="hospitalId != null">hospital_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="aiResult != null">ai_result,</if>
|
||||
<if test="aiResult2 != null">ai_result2,</if>
|
||||
<if test="updateResult != null">update_result,</if>
|
||||
<if test="updateResult2 != null">update_result2,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="uploadTime != null">upload_time,</if>
|
||||
<if test="imgSx != null">img_sx,</if>
|
||||
<if test="imgSm != null">img_sm,</if>
|
||||
<if test="responseTime != null">response_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">#{patientId},</if>
|
||||
<if test="doctorId != null">#{doctorId},</if>
|
||||
<if test="hospitalId != null">#{hospitalId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="aiResult != null">#{aiResult},</if>
|
||||
<if test="aiResult2 != null">#{aiResult2},</if>
|
||||
<if test="updateResult != null">#{updateResult},</if>
|
||||
<if test="updateResult2 != null">#{updateResult2},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="uploadTime != null">#{uploadTime},</if>
|
||||
<if test="imgSx != null">#{imgSx},</if>
|
||||
<if test="imgSm != null">#{imgSm},</if>
|
||||
<if test="responseTime != null">#{responseTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTRecord" parameterType="TRecord">
|
||||
update t_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id = #{patientId},</if>
|
||||
<if test="doctorId != null">doctor_id = #{doctorId},</if>
|
||||
<if test="hospitalId != null">hospital_id = #{hospitalId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="aiResult != null">ai_result = #{aiResult},</if>
|
||||
<if test="aiResult2 != null">ai_result2 = #{aiResult2},</if>
|
||||
<if test="updateResult != null">update_result = #{updateResult},</if>
|
||||
<if test="updateResult2 != null">update_result2 = #{updateResult2},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="uploadTime != null">upload_time = #{uploadTime},</if>
|
||||
<if test="imgSx != null">img_sx = #{imgSx},</if>
|
||||
<if test="imgSm != null">img_sm = #{imgSm},</if>
|
||||
<if test="responseTime != null">response_time = #{responseTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTRecordById" parameterType="Long">
|
||||
delete from t_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTRecordByIds" parameterType="String">
|
||||
delete from t_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,61 @@
|
||||
<?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.ruoyi.system.mapper.TTitleMapper">
|
||||
|
||||
<resultMap type="TTitle" id="TTitleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="num" column="num" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTTitleVo">
|
||||
select id, name, num from t_title
|
||||
</sql>
|
||||
|
||||
<select id="selectTTitleList" parameterType="TTitle" resultMap="TTitleResult">
|
||||
<include refid="selectTTitleVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="num != null "> and num = #{num}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTTitleById" parameterType="Long" resultMap="TTitleResult">
|
||||
<include refid="selectTTitleVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTTitle" parameterType="TTitle" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into t_title
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="num != null">num,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="num != null">#{num},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTTitle" parameterType="TTitle">
|
||||
update t_title
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="num != null">num = #{num},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTTitleById" parameterType="Long">
|
||||
delete from t_title where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTTitleByIds" parameterType="String">
|
||||
delete from t_title where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue