检测项目接口
This commit is contained in:
parent
681fb980c2
commit
cca1a66e13
BIN
postdischarge-admin/src/main/resources/template/出院患者信息导入表.xlsx
Normal file
BIN
postdischarge-admin/src/main/resources/template/出院患者信息导入表.xlsx
Normal file
Binary file not shown.
BIN
postdischarge-admin/src/main/resources/template/在院患者信息导入表.xlsx
Normal file
BIN
postdischarge-admin/src/main/resources/template/在院患者信息导入表.xlsx
Normal file
Binary file not shown.
BIN
postdischarge-admin/src/main/resources/template/门诊患者信息导入表.xlsx
Normal file
BIN
postdischarge-admin/src/main/resources/template/门诊患者信息导入表.xlsx
Normal file
Binary file not shown.
BIN
postdischarge-admin/src/main/resources/template/预住院患者信息导入表.xlsx
Normal file
BIN
postdischarge-admin/src/main/resources/template/预住院患者信息导入表.xlsx
Normal file
Binary file not shown.
@ -168,4 +168,24 @@ public class Constants {
|
||||
* 科室信息导入标识
|
||||
*/
|
||||
public static final String DEPARTMENT = "department";
|
||||
|
||||
/**
|
||||
* 门诊患者
|
||||
*/
|
||||
public static final String OUTPATIENT = "outpatient";
|
||||
|
||||
/**
|
||||
* 预住院
|
||||
*/
|
||||
public static final String PRE_HOSPITALIZED = "prehospitalized";
|
||||
|
||||
/**
|
||||
* 在院
|
||||
*/
|
||||
public static final String IN_HOSPITAL = "inhospital";
|
||||
|
||||
/**
|
||||
* 出院
|
||||
*/
|
||||
public static final String DISCHARGED = "discharged";
|
||||
}
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
package com.xinelu.common.constant;
|
||||
|
||||
/**
|
||||
* @description: 节点类型常量
|
||||
* @author: haown
|
||||
* @create: 2024-03-11 10:17
|
||||
**/
|
||||
public class NodeTypeConstants {
|
||||
|
||||
/**
|
||||
* 卫健委
|
||||
*/
|
||||
public static final String HEALTH_COMMISSION = "HEALTH_COMMISSION";
|
||||
/**
|
||||
* 医保局
|
||||
*/
|
||||
public static final String MEDICAL_INSURANCE_BUREAU = "MEDICAL_INSURANCE_BUREAU";
|
||||
/**
|
||||
* 医院
|
||||
*/
|
||||
public static final String HOSPITAL = "HOSPITAL";
|
||||
/**
|
||||
* 院区
|
||||
*/
|
||||
public static final String CAMPUS = "CAMPUS";
|
||||
/**
|
||||
* 药店
|
||||
*/
|
||||
public static final String PHARMACY = "PHARMACY";
|
||||
/**
|
||||
* 科室
|
||||
*/
|
||||
public static final String DEPARTMENT = "DEPARTMENT";
|
||||
/**
|
||||
* 病区
|
||||
*/
|
||||
public static final String WARD = "WARD";
|
||||
/**
|
||||
* 中国
|
||||
*/
|
||||
public static final String CHINA = "CHINA";
|
||||
/**
|
||||
* 省份
|
||||
*/
|
||||
public static final String PROVINCE = "PROVINCE";
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.xinelu.common.constant;
|
||||
|
||||
/**
|
||||
* @description: 患者类型常量
|
||||
* @author: haown
|
||||
* @create: 2024-03-07 15:40
|
||||
**/
|
||||
public class PatientTypeConstants {
|
||||
|
||||
/**
|
||||
* 预住院患者
|
||||
*/
|
||||
public static final String PRE_HOSPITALIZED_PATIENT = "PRE_HOSPITALIZED_PATIENT";
|
||||
|
||||
/**
|
||||
* 在院患者
|
||||
*/
|
||||
public static final String IN_HOSPITAL_PATIENT = "IN_HOSPITAL_PATIENT";
|
||||
|
||||
/**
|
||||
* 门诊患者
|
||||
*/
|
||||
public static final String OUTPATIENT = "OUTPATIENT";
|
||||
|
||||
/**
|
||||
* 出院患者
|
||||
*/
|
||||
public static final String DISCHARGED_PATIENT = "DISCHARGED_PATIENT";
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.xinelu.common.constant;
|
||||
|
||||
/**
|
||||
* @description: 就诊类型常量
|
||||
* @author: haown
|
||||
* @create: 2024-03-07 15:45
|
||||
**/
|
||||
public class VisitTypeConstants {
|
||||
|
||||
/**
|
||||
* 门诊
|
||||
*/
|
||||
public static final String OUTPATIENT_SERVICE = "OUTPATIENT_SERVICE";
|
||||
|
||||
/**
|
||||
* 住院
|
||||
*/
|
||||
public static final String BE_HOSPITALIZED = "BE_HOSPITALIZED";
|
||||
}
|
||||
@ -38,12 +38,26 @@ public class ImportDownloadController {
|
||||
throw new ServiceException("请选择文件类型!");
|
||||
}
|
||||
File file = null;
|
||||
if (fileType.equals(Constants.AGENCY)) {
|
||||
file = ResourceUtils.getFile("classpath:template/机构信息导入表.xlsx");
|
||||
}
|
||||
if (fileType.equals(Constants.DEPARTMENT)) {
|
||||
file = ResourceUtils.getFile("classpath:template/科室信息导入表.xlsx");
|
||||
}
|
||||
switch (fileType) {
|
||||
case Constants.AGENCY:
|
||||
file = ResourceUtils.getFile("classpath:template/机构信息导入表.xlsx");
|
||||
break;
|
||||
case Constants.DEPARTMENT:
|
||||
file = ResourceUtils.getFile("classpath:template/科室信息导入表.xlsx");
|
||||
break;
|
||||
case Constants.PRE_HOSPITALIZED: // 预住院患者
|
||||
file = ResourceUtils.getFile("classpath:template/预住院患者信息导入表.xlsx");
|
||||
break;
|
||||
case Constants.IN_HOSPITAL: // 在院患者
|
||||
file = ResourceUtils.getFile("classpath:template/在院患者信息导入表.xlsx");
|
||||
break;
|
||||
case Constants.DISCHARGED: // 出院患者
|
||||
file = ResourceUtils.getFile("classpath:template/出院患者信息导入表.xlsx");
|
||||
break;
|
||||
case Constants.OUTPATIENT: // 门诊患者
|
||||
file = ResourceUtils.getFile("classpath:template/门诊患者信息导入表.xlsx");
|
||||
break;
|
||||
}
|
||||
if (Objects.isNull(file)) {
|
||||
throw new ServiceException("下载导入模板文件失败,请联系管理员!");
|
||||
}
|
||||
|
||||
@ -0,0 +1,120 @@
|
||||
package com.xinelu.manage.controller.patientprehospitalization;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.constant.Constants;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.domain.R;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import com.xinelu.manage.service.patientprehospitalization.IPatientPreHospitalizationService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import javax.annotation.Resource;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* @description: 预住院患者信息控制器
|
||||
* @author: haown
|
||||
* @create: 2024-03-08 10:40
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/manage/preHospital")
|
||||
@Api(tags = "预住院患者信息控制器")
|
||||
public class PatientPreHospitalizationController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private IPatientPreHospitalizationService preHospitalizationService;
|
||||
|
||||
/**
|
||||
* 新增预住院患者信息
|
||||
*/
|
||||
@ApiOperation("新增预住院患者信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:add')")
|
||||
@Log(title = "预住院患者信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientPreHospitalization preHospitalization) {
|
||||
return toAjax(preHospitalizationService.insert(preHospitalization));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询预住院患者信息列表
|
||||
*/
|
||||
@ApiOperation("查询预住院患者信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientInfoDto patientInfo) {
|
||||
startPage();
|
||||
List<PatientPreHospitalization> list = preHospitalizationService.selectList(patientInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取住院患者信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(preHospitalizationService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改预住院患者信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:edit')")
|
||||
@Log(title = "预住院患者", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R<String> edit(@RequestBody PatientPreHospitalization preHospitalization) {
|
||||
int flag = preHospitalizationService.update(preHospitalization);
|
||||
return flag < 0 ? R.fail() : R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除预住院患者信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:remove')")
|
||||
@Log(title = "患者信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(preHospitalizationService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入预住院患者信息
|
||||
*
|
||||
* @param file 模板文件
|
||||
* @return 导入结果
|
||||
* @throws Exception 异常信息
|
||||
*/
|
||||
@Log(title = "导入患者就诊信息", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/importInfo")
|
||||
public AjaxResult importPatientList(MultipartFile file) throws Exception {
|
||||
// 判断excel里面是否有数据/文件格式
|
||||
if (Objects.isNull(file) || StringUtils.isBlank(file.getOriginalFilename())) {
|
||||
return AjaxResult.error("请选择需要导入的文件!");
|
||||
}
|
||||
// 获取文件名
|
||||
String orgName = file.getOriginalFilename();
|
||||
if (!orgName.endsWith(Constants.XLSX) && !orgName.endsWith(Constants.XLS)) {
|
||||
return AjaxResult.error("导入文件格式不正确,请导入xlsx或xls格式的文件!");
|
||||
}
|
||||
ExcelUtil<PatientPreHospitalization> util = new ExcelUtil<>(PatientPreHospitalization.class);
|
||||
List<PatientPreHospitalization> list = util.importExcel(file.getInputStream());
|
||||
return preHospitalizationService.importList(list);
|
||||
}
|
||||
}
|
||||
@ -1,6 +1,7 @@
|
||||
package com.xinelu.manage.controller.patientvisitrecord;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.constant.Constants;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
@ -8,12 +9,15 @@ import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.patientvisitrecord.PatientVisitRecord;
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordImportDto;
|
||||
import com.xinelu.manage.service.patientvisitrecord.IPatientVisitRecordService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@ -22,7 +26,9 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息Controller
|
||||
@ -110,4 +116,28 @@ public class PatientVisitRecordController extends BaseController {
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientVisitRecordService.deletePatientVisitRecordByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入患者信息
|
||||
*
|
||||
* @param file 模板文件
|
||||
* @return 导入结果
|
||||
* @throws Exception 异常信息
|
||||
*/
|
||||
@Log(title = "导入患者就诊信息", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/importPatientInfo")
|
||||
public AjaxResult importPatientList(MultipartFile file, @RequestParam(value = "patientType") String patientType) throws Exception {
|
||||
// 判断excel里面是否有数据/文件格式
|
||||
if (Objects.isNull(file) || StringUtils.isBlank(file.getOriginalFilename())) {
|
||||
return AjaxResult.error("请选择需要导入的文件!");
|
||||
}
|
||||
// 获取文件名
|
||||
String orgName = file.getOriginalFilename();
|
||||
if (!orgName.endsWith(Constants.XLSX) && !orgName.endsWith(Constants.XLS)) {
|
||||
return AjaxResult.error("导入文件格式不正确,请导入xlsx或xls格式的文件!");
|
||||
}
|
||||
ExcelUtil<PatientVisitRecordImportDto> util = new ExcelUtil<>(PatientVisitRecordImportDto.class);
|
||||
List<PatientVisitRecordImportDto> list = util.importExcel(file.getInputStream());
|
||||
return patientVisitRecordService.importPatientList(list, patientType);
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,105 @@
|
||||
package com.xinelu.manage.controller.project;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.project.Project;
|
||||
import com.xinelu.manage.service.project.IProjectService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 检测项目Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@Api(tags = "检测项目控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/project")
|
||||
public class ProjectController extends BaseController {
|
||||
@Resource
|
||||
private IProjectService projectService;
|
||||
|
||||
/**
|
||||
* 查询检测项目列表
|
||||
*/
|
||||
@ApiOperation("分页查询检测项目列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:project:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(Project project) {
|
||||
startPage();
|
||||
List<Project> list = projectService.selectProjectList(project);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检测项目列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:project:export')")
|
||||
@Log(title = "检测项目", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Project project) {
|
||||
List<Project> list = projectService.selectProjectList(project);
|
||||
ExcelUtil<Project> util = new ExcelUtil<Project>(Project. class);
|
||||
util.exportExcel(response, list, "检测项目数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检测项目详细信息
|
||||
*/
|
||||
@ApiOperation("根据id获取检测项目详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:project:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(projectService.selectProjectById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目
|
||||
*/
|
||||
@ApiOperation("新增检测项目")
|
||||
@PreAuthorize("@ss.hasPermi('manage:project:add')")
|
||||
@Log(title = "检测项目", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody Project project) {
|
||||
return toAjax(projectService.insertProject(project));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检测项目
|
||||
*/
|
||||
@ApiOperation("修改检测项目")
|
||||
@PreAuthorize("@ss.hasPermi('manage:project:edit')")
|
||||
@Log(title = "检测项目", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody Project project) {
|
||||
return toAjax(projectService.updateProject(project));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检测项目
|
||||
*/
|
||||
@ApiOperation("批量删除检测项目")
|
||||
@PreAuthorize("@ss.hasPermi('manage:project:remove')")
|
||||
@Log(title = "检测项目", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(projectService.deleteProjectByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package com.xinelu.manage.controller.projectdevice;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.projectdevice.ProjectDevice;
|
||||
import com.xinelu.manage.service.projectdevice.IProjectDeviceService;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 检测项目设备Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/manage/projectdevice")
|
||||
public class ProjectDeviceController extends BaseController {
|
||||
@Resource
|
||||
private IProjectDeviceService projectDeviceService;
|
||||
|
||||
/**
|
||||
* 查询检测项目设备列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectdevice:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ProjectDevice projectDevice) {
|
||||
startPage();
|
||||
List<ProjectDevice> list = projectDeviceService.selectProjectDeviceList(projectDevice);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检测项目设备列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectdevice:export')")
|
||||
@Log(title = "检测项目设备", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ProjectDevice projectDevice) {
|
||||
List<ProjectDevice> list = projectDeviceService.selectProjectDeviceList(projectDevice);
|
||||
ExcelUtil<ProjectDevice> util = new ExcelUtil<ProjectDevice>(ProjectDevice. class);
|
||||
util.exportExcel(response, list, "检测项目设备数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检测项目设备详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectdevice:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(projectDeviceService.selectProjectDeviceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectdevice:add')")
|
||||
@Log(title = "检测项目设备", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ProjectDevice projectDevice) {
|
||||
return toAjax(projectDeviceService.insertProjectDevice(projectDevice));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检测项目设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectdevice:edit')")
|
||||
@Log(title = "检测项目设备", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ProjectDevice projectDevice) {
|
||||
return toAjax(projectDeviceService.updateProjectDevice(projectDevice));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检测项目设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectdevice:remove')")
|
||||
@Log(title = "检测项目设备", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(projectDeviceService.deleteProjectDeviceByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
package com.xinelu.manage.controller.projectgroup;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.domain.R;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.projectgroup.ProjectGroup;
|
||||
import com.xinelu.manage.dto.projectgroup.ProjectGroupSaveListDto;
|
||||
import com.xinelu.manage.service.projectgroup.IProjectGroupService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 检测项目分组Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@Api(tags = "检测项目分组控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/projectgroup")
|
||||
public class ProjectGroupController extends BaseController {
|
||||
@Resource
|
||||
private IProjectGroupService projectGroupService;
|
||||
|
||||
/**
|
||||
* 查询检测项目分组列表
|
||||
*/
|
||||
@ApiOperation("分页查询检测项目分组列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectgroup:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ProjectGroup projectGroup) {
|
||||
startPage();
|
||||
List<ProjectGroup> list = projectGroupService.selectProjectGroupList(projectGroup);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检测项目分组列表
|
||||
*/
|
||||
@ApiOperation("查询检测项目分组列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectgroup:list')")
|
||||
@GetMapping("/getList")
|
||||
public R<List<ProjectGroup>> getList(ProjectGroup projectGroup) {
|
||||
List<ProjectGroup> list = projectGroupService.selectProjectGroupList(projectGroup);
|
||||
return R.ok(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检测项目分组列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectgroup:export')")
|
||||
@Log(title = "检测项目分组", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ProjectGroup projectGroup) {
|
||||
List<ProjectGroup> list = projectGroupService.selectProjectGroupList(projectGroup);
|
||||
ExcelUtil<ProjectGroup> util = new ExcelUtil<ProjectGroup>(ProjectGroup. class);
|
||||
util.exportExcel(response, list, "检测项目分组数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检测项目分组详细信息
|
||||
*/
|
||||
@ApiOperation("根据id获取检测项目分组详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectgroup:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(projectGroupService.selectProjectGroupById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目分组
|
||||
*/
|
||||
@ApiOperation("新增检测项目分组")
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectgroup:add')")
|
||||
@Log(title = "检测项目分组", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ProjectGroup projectGroup) {
|
||||
return toAjax(projectGroupService.insertProjectGroup(projectGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目分组
|
||||
*/
|
||||
@ApiOperation("批量新增检测项目分组")
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectgroup:add')")
|
||||
@Log(title = "检测项目分组", businessType = BusinessType.INSERT)
|
||||
@PostMapping("addList")
|
||||
public R<String> addList(@RequestBody ProjectGroupSaveListDto saveDto) {
|
||||
int flag = projectGroupService.insertList(saveDto);
|
||||
return flag > 0 ? R.ok() : R.fail();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检测项目分组
|
||||
*/
|
||||
@ApiOperation("修改检测项目分组")
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectgroup:edit')")
|
||||
@Log(title = "检测项目分组", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ProjectGroup projectGroup) {
|
||||
return toAjax(projectGroupService.updateProjectGroup(projectGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检测项目分组
|
||||
*/
|
||||
@ApiOperation("删除检测项目分组")
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectgroup:remove')")
|
||||
@Log(title = "检测项目分组", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(projectGroupService.deleteProjectGroupByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package com.xinelu.manage.controller.projectrecord;
|
||||
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @description: 检测项目数据记录控制器
|
||||
* @author: haown
|
||||
* @create: 2024-02-29 15:45
|
||||
**/
|
||||
@Api(tags = "检测项目数据记录控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/projectRecord")
|
||||
public class ProjectRecordController extends BaseController {
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
package com.xinelu.manage.controller.projectresult;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.domain.R;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.projectresult.ProjectResult;
|
||||
import com.xinelu.manage.dto.projectresult.ProjectResultStatisticDto;
|
||||
import com.xinelu.manage.service.projectresult.IProjectResultService;
|
||||
import com.xinelu.manage.vo.projectresult.ProjectResultStatisticVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @description: 检测项目结果控制器
|
||||
* @author: haown
|
||||
* @create: 2024-03-06 11:20
|
||||
**/
|
||||
@Api(tags = "检测项目结果控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/projectResult")
|
||||
public class ProjectResultController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private IProjectResultService projectResultService;
|
||||
/**
|
||||
* 查询检测项目结果列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectresult:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ProjectResult projectResult) {
|
||||
startPage();
|
||||
List<ProjectResult> list = projectResultService.selectProjectResultList(projectResult);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检测项目结果列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectresult:export')")
|
||||
@Log(title = "检测项目结果", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ProjectResult projectResult) {
|
||||
List<ProjectResult> list = projectResultService.selectProjectResultList(projectResult);
|
||||
ExcelUtil<ProjectResult> util = new ExcelUtil<ProjectResult>(ProjectResult. class);
|
||||
util.exportExcel(response, list, "检测项目结果数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检测项目结果详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectresult:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(projectResultService.selectProjectResultById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目结果
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectresult:add')")
|
||||
@Log(title = "检测项目结果", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ProjectResult projectResult) {
|
||||
return toAjax(projectResultService.insertProjectResult(projectResult));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检测项目结果
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectresult:edit')")
|
||||
@Log(title = "检测项目结果", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ProjectResult projectResult) {
|
||||
return toAjax(projectResultService.updateProjectResult(projectResult));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检测项目结果
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:projectresult:remove')")
|
||||
@Log(title = "检测项目结果", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(projectResultService.deleteProjectResultByIds(ids));
|
||||
}
|
||||
/**
|
||||
* 查询检测检测项目结果曲线统计
|
||||
*/
|
||||
@ApiOperation("查询检测项目结果曲线统计")
|
||||
@GetMapping("/curveStatistics")
|
||||
public R<ProjectResultStatisticVo> curveStatistics(ProjectResultStatisticDto projectResultStatisticDto) {
|
||||
return R.ok(projectResultService.curveStatistics(projectResultStatisticDto));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,148 @@
|
||||
package com.xinelu.manage.domain.patientprehospitalization;
|
||||
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 预住院患者表
|
||||
* @TableName patient_pre_hospitalization
|
||||
*/
|
||||
@ApiModel("预住院患者表")
|
||||
@Data
|
||||
public class PatientPreHospitalization extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键Id
|
||||
*/
|
||||
@ApiModelProperty("主键Id")
|
||||
private Long id;
|
||||
/**
|
||||
* 患者表id
|
||||
*/
|
||||
@ApiModelProperty("患者表id")
|
||||
private Long patientId;
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
@ApiModelProperty("姓名")
|
||||
private String patientName;
|
||||
/**
|
||||
* 患者电话
|
||||
*/
|
||||
@ApiModelProperty("患者电话")
|
||||
private String patientPhone;
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
@ApiModelProperty("身份证号")
|
||||
private String cardNo;
|
||||
/**
|
||||
* 性别,男:MALE,女:FEMALE
|
||||
*/
|
||||
@ApiModelProperty("性别,男:MALE,女:FEMALE")
|
||||
private String sex;
|
||||
/**
|
||||
* 出生日期,格式:yyyy-MM-dd
|
||||
*/
|
||||
@ApiModelProperty("出生日期,格式:yyyy-MM-dd")
|
||||
private Date birthDate;
|
||||
/**
|
||||
* 家属电话
|
||||
*/
|
||||
@ApiModelProperty("家属电话")
|
||||
private String familyMemberPhone;
|
||||
/**
|
||||
* 住址
|
||||
*/
|
||||
@ApiModelProperty("住址")
|
||||
private String address;
|
||||
/**
|
||||
* 主要诊断
|
||||
*/
|
||||
@ApiModelProperty("主要诊断")
|
||||
private String mainDiagnosis;
|
||||
/**
|
||||
* 所属医院id
|
||||
*/
|
||||
@ApiModelProperty("所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
/**
|
||||
* 所属医院名称
|
||||
*/
|
||||
@ApiModelProperty("所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
/**
|
||||
* 所属院区id
|
||||
*/
|
||||
@ApiModelProperty("所属院区id")
|
||||
private Long campusAgencyId;
|
||||
/**
|
||||
* 所属院区名称
|
||||
*/
|
||||
@ApiModelProperty("所属院区名称")
|
||||
private String campusAgencyName;
|
||||
/**
|
||||
* 所属科室id
|
||||
*/
|
||||
@ApiModelProperty("所属科室id")
|
||||
private Long departmentId;
|
||||
/**
|
||||
* 所属科室名称
|
||||
*/
|
||||
@ApiModelProperty("所属科室名称")
|
||||
private String departmentName;
|
||||
/**
|
||||
* 所属病区id
|
||||
*/
|
||||
@ApiModelProperty("所属病区id")
|
||||
private Long wardId;
|
||||
/**
|
||||
* 所属病区名称
|
||||
*/
|
||||
@ApiModelProperty("所属病区名称")
|
||||
private String wardName;
|
||||
/**
|
||||
* 预约治疗组(取值以及枚举未知?)
|
||||
*/
|
||||
@ApiModelProperty("预约治疗组(取值以及枚举未知?)")
|
||||
private String appointmentTreatmentGroup;
|
||||
/**
|
||||
* 登记号(预住院患者)
|
||||
*/
|
||||
@ApiModelProperty("登记号(预住院患者)")
|
||||
private String registrationNo;
|
||||
/**
|
||||
* 登记日期(预住院患者),时间格式:yyyy-MM-dd
|
||||
*/
|
||||
@ApiModelProperty("登记日期(预住院患者),时间格式:yyyy-MM-dd")
|
||||
private Date registrationDate;
|
||||
/**
|
||||
* 预约时间(预住院患者),时间格式:yyyy-MM-dd
|
||||
*/
|
||||
@ApiModelProperty("预约时间(预住院患者),时间格式:yyyy-MM-dd")
|
||||
private Date appointmentDate;
|
||||
/**
|
||||
* 开证医生id
|
||||
*/
|
||||
@ApiModelProperty("开证医生id")
|
||||
private Long certificateIssuingDoctorId;
|
||||
/**
|
||||
* 开证医生姓名
|
||||
*/
|
||||
@ApiModelProperty("开证医生姓名")
|
||||
private String certificateIssuingDoctorName;
|
||||
/**
|
||||
* 责任护士
|
||||
*/
|
||||
@ApiModelProperty("责任护士")
|
||||
private String responsibleNurse;
|
||||
/**
|
||||
* 删除标识,0:未删除,1:已删除
|
||||
*/
|
||||
@ApiModelProperty("删除标识,0:未删除,1:已删除")
|
||||
private Integer delFlag;
|
||||
|
||||
}
|
||||
@ -15,7 +15,7 @@ import lombok.NoArgsConstructor;
|
||||
* 患者就诊记录基本信息对象 patient_visit_record
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@ -23,7 +23,6 @@ import lombok.NoArgsConstructor;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者就诊记录基本信息对象", description = "patient_visit_record")
|
||||
public class PatientVisitRecord extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键Id */
|
||||
@ -34,42 +33,42 @@ public class PatientVisitRecord extends BaseEntity {
|
||||
@Excel(name = "患者表id")
|
||||
private Long patientId;
|
||||
|
||||
/** 就诊科室 */
|
||||
@ApiModelProperty(value = "就诊科室")
|
||||
@Excel(name = "就诊科室")
|
||||
private String visitDept;
|
||||
|
||||
/** 就诊名称 */
|
||||
@ApiModelProperty(value = "就诊名称")
|
||||
@Excel(name = "就诊名称")
|
||||
private String visitName;
|
||||
|
||||
/** 就诊时间,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "就诊时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "就诊时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date visitDate;
|
||||
|
||||
/** 就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED */
|
||||
@ApiModelProperty(value = "就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED")
|
||||
@Excel(name = "就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED")
|
||||
private String visitType;
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
@Excel(name = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/** 姓名 */
|
||||
@ApiModelProperty(value = "姓名")
|
||||
@Excel(name = "姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 出生地 */
|
||||
@ApiModelProperty(value = "出生地")
|
||||
@Excel(name = "出生地")
|
||||
private String birthplace;
|
||||
/** 患者电话 */
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
@Excel(name = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 家属电话 */
|
||||
@ApiModelProperty(value = "家属电话")
|
||||
@Excel(name = "家属电话")
|
||||
private String familyMemberPhone;
|
||||
|
||||
/** 地址 */
|
||||
@ApiModelProperty(value = "地址")
|
||||
@Excel(name = "地址")
|
||||
private String address;
|
||||
|
||||
/** 性别,男:MALE,女:FEMALE */
|
||||
@ApiModelProperty(value = "性别,男:MALE,女:FEMALE")
|
||||
@Excel(name = "性别,男:MALE,女:FEMALE")
|
||||
private String sex;
|
||||
|
||||
/** 出生日期,格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "出生日期,格式:yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "出生日期,格式:yyyy-MM-dd", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date birthDate;
|
||||
|
||||
/** 年龄 */
|
||||
@ApiModelProperty(value = "年龄")
|
||||
@Excel(name = "年龄")
|
||||
@ -80,6 +79,77 @@ public class PatientVisitRecord extends BaseEntity {
|
||||
@Excel(name = "民族")
|
||||
private String nation;
|
||||
|
||||
/** 就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED */
|
||||
@ApiModelProperty(value = "就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED")
|
||||
@Excel(name = "就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED")
|
||||
private String visitType;
|
||||
|
||||
/** 就诊时间,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "就诊时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "就诊时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date visitDate;
|
||||
|
||||
/** 就诊名称 */
|
||||
@ApiModelProperty(value = "就诊名称")
|
||||
@Excel(name = "就诊名称")
|
||||
private String visitName;
|
||||
|
||||
/** 所属医院id */
|
||||
@ApiModelProperty(value = "所属医院id")
|
||||
@Excel(name = "所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/** 所属医院名称 */
|
||||
@ApiModelProperty(value = "所属医院名称")
|
||||
@Excel(name = "所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/** 所属院区id */
|
||||
@ApiModelProperty(value = "所属院区id")
|
||||
@Excel(name = "所属院区id")
|
||||
private Long campusAgencyId;
|
||||
|
||||
/** 所属院区名称 */
|
||||
@ApiModelProperty(value = "所属院区名称")
|
||||
@Excel(name = "所属院区名称")
|
||||
private String campusAgencyName;
|
||||
|
||||
/** 所属科室id */
|
||||
@ApiModelProperty(value = "所属科室id")
|
||||
@Excel(name = "所属科室id")
|
||||
private Long departmentId;
|
||||
|
||||
/** 所属科室名称 */
|
||||
@ApiModelProperty(value = "所属科室名称")
|
||||
@Excel(name = "所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/** 所属病区id */
|
||||
@ApiModelProperty(value = "所属病区id")
|
||||
@Excel(name = "所属病区id")
|
||||
private Long wardId;
|
||||
|
||||
/** 所属病区名称 */
|
||||
@ApiModelProperty(value = "所属病区名称")
|
||||
@Excel(name = "所属病区名称")
|
||||
private String wardName;
|
||||
|
||||
/** 主治医生id */
|
||||
@ApiModelProperty(value = "主治医生id")
|
||||
@Excel(name = "主治医生id")
|
||||
private Long attendingPhysicianId;
|
||||
|
||||
/** 主治医生姓名 */
|
||||
@ApiModelProperty(value = "主治医生姓名")
|
||||
@Excel(name = "主治医生姓名")
|
||||
private String attendingPhysicianName;
|
||||
|
||||
/** 主要诊断 */
|
||||
@ApiModelProperty(value = "主要诊断")
|
||||
@Excel(name = "主要诊断")
|
||||
private String mainDiagnosis;
|
||||
|
||||
/** 婚姻,已婚:MARRIED,未婚:UNMARRIED,丧偶:BEREAVE */
|
||||
@ApiModelProperty(value = "婚姻,已婚:MARRIED,未婚:UNMARRIED,丧偶:BEREAVE")
|
||||
@Excel(name = "婚姻,已婚:MARRIED,未婚:UNMARRIED,丧偶:BEREAVE")
|
||||
@ -107,9 +177,9 @@ public class PatientVisitRecord extends BaseEntity {
|
||||
@Excel(name = "_记录时间", readConverterExp = "入=院记录")
|
||||
private Date recordTime;
|
||||
|
||||
/** 门诊就诊信息(就诊类型) */
|
||||
@ApiModelProperty(value = "门诊就诊信息")
|
||||
@Excel(name = "门诊就诊信息", readConverterExp = "就=诊类型")
|
||||
/** 门诊记录信息(就诊记录-门诊记录) */
|
||||
@ApiModelProperty(value = "门诊记录信息")
|
||||
@Excel(name = "门诊记录信息", readConverterExp = "就=诊记录-门诊记录")
|
||||
private String outpatientVisitInfo;
|
||||
|
||||
/** 住院天数(出院记录),单位为:天 */
|
||||
@ -117,5 +187,34 @@ public class PatientVisitRecord extends BaseEntity {
|
||||
@Excel(name = "住院天数", readConverterExp = "出=院记录")
|
||||
private Integer hospitalizationDays;
|
||||
|
||||
/** 入院病历信息,存储患者入院的整个病历信息 */
|
||||
@ApiModelProperty(value = "入院病历信息,存储患者入院的整个病历信息")
|
||||
@Excel(name = "入院病历信息,存储患者入院的整个病历信息")
|
||||
private String inHospitalInfo;
|
||||
|
||||
/** 出院病历信息,存储患者出院的整个病历信息 */
|
||||
@ApiModelProperty(value = "出院病历信息,存储患者出院的整个病历信息")
|
||||
@Excel(name = "出院病历信息,存储患者出院的整个病历信息")
|
||||
private String outHospitalInfo;
|
||||
|
||||
/** 就诊流水号 */
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
@Excel(name = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/** 门诊/住院号 */
|
||||
@ApiModelProperty(value = "门诊/住院号")
|
||||
@Excel(name = "门诊/住院号")
|
||||
private String inHospitalNumber;
|
||||
|
||||
/** 责任护士 */
|
||||
@ApiModelProperty(value = "责任护士")
|
||||
@Excel(name = "责任护士")
|
||||
private String responsibleNurse;
|
||||
|
||||
/** 手术名称 */
|
||||
@ApiModelProperty(value = "手术名称")
|
||||
@Excel(name = "手术名称")
|
||||
private String surgicalName;
|
||||
|
||||
}
|
||||
|
||||
@ -1,107 +1,103 @@
|
||||
package com.xinelu.manage.domain.project;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 检测项目表
|
||||
* @TableName project
|
||||
* 检测项目对象 project
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@ApiModel("检测项目表")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "检测项目对象", description = "project")
|
||||
public class Project extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty("主键id")
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 所属分组id
|
||||
*/
|
||||
@ApiModelProperty("所属分组id")
|
||||
/** 所属分组id */
|
||||
@ApiModelProperty(value = "所属分组id")
|
||||
@Excel(name = "所属分组id")
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 分组名称
|
||||
*/
|
||||
@ApiModelProperty("分组名称")
|
||||
/** 分组名称 */
|
||||
@ApiModelProperty(value = "分组名称")
|
||||
@Excel(name = "分组名称")
|
||||
private String groupName;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
@ApiModelProperty("项目名称")
|
||||
/** 项目名称 */
|
||||
@ApiModelProperty(value = "项目名称")
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 项目编码
|
||||
*/
|
||||
@ApiModelProperty("项目编码")
|
||||
/** 项目编码 */
|
||||
@ApiModelProperty(value = "项目编码")
|
||||
@Excel(name = "项目编码")
|
||||
private String projectCode;
|
||||
|
||||
/**
|
||||
* 项目别名
|
||||
*/
|
||||
@ApiModelProperty("项目别名")
|
||||
/** 项目别名 */
|
||||
@ApiModelProperty(value = "项目别名")
|
||||
@Excel(name = "项目别名")
|
||||
private String projectAlias;
|
||||
|
||||
/**
|
||||
* 是否启用,0:是,1:否
|
||||
*/
|
||||
@ApiModelProperty("是否启用,0:是,1:否")
|
||||
/** 是否启用,0:是,1:否 */
|
||||
@ApiModelProperty(value = "是否启用,0:是,1:否")
|
||||
@Excel(name = "是否启用,0:是,1:否")
|
||||
private Integer enableStatus;
|
||||
|
||||
/**
|
||||
* 判断模式,定量:QUANTIFY,定性:QUALITATIVE
|
||||
*/
|
||||
@ApiModelProperty("判断模式,定量:QUANTIFY,定性:QUALITATIVE")
|
||||
/** 判断模式,定量:QUANTIFY,定性:QUALITATIVE */
|
||||
@ApiModelProperty(value = "判断模式,定量:QUANTIFY,定性:QUALITATIVE")
|
||||
@Excel(name = "判断模式,定量:QUANTIFY,定性:QUALITATIVE")
|
||||
private String judgeMode;
|
||||
|
||||
/**
|
||||
* 项目指标最大值
|
||||
*/
|
||||
@ApiModelProperty("项目指标最大值")
|
||||
/** 项目指标最大值 */
|
||||
@ApiModelProperty(value = "项目指标最大值")
|
||||
@Excel(name = "项目指标最大值")
|
||||
private Integer maxValue;
|
||||
|
||||
/**
|
||||
* 项目指标最小值
|
||||
*/
|
||||
@ApiModelProperty("项目指标最小值")
|
||||
/** 项目指标最小值 */
|
||||
@ApiModelProperty(value = "项目指标最小值")
|
||||
@Excel(name = "项目指标最小值")
|
||||
private Integer minValue;
|
||||
|
||||
/**
|
||||
* 项目指标默认值
|
||||
*/
|
||||
@ApiModelProperty("项目指标默认值")
|
||||
/** 项目指标默认值 */
|
||||
@ApiModelProperty(value = "项目指标默认值")
|
||||
@Excel(name = "项目指标默认值")
|
||||
private String defaultValue;
|
||||
|
||||
/**
|
||||
* LIS对照
|
||||
*/
|
||||
@ApiModelProperty("LIS对照")
|
||||
/** LIS对照 */
|
||||
@ApiModelProperty(value = "LIS对照")
|
||||
@Excel(name = "LIS对照")
|
||||
private String lisCompare;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty("排序")
|
||||
/** 计量单位 */
|
||||
@ApiModelProperty(value = "计量单位")
|
||||
@Excel(name = "计量单位")
|
||||
private String projectUnit;
|
||||
|
||||
/** 排序 */
|
||||
@ApiModelProperty(value = "排序")
|
||||
@Excel(name = "排序")
|
||||
private Integer projectSort;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
@ApiModelProperty("备注信息")
|
||||
/** 备注信息 */
|
||||
@ApiModelProperty(value = "备注信息")
|
||||
@Excel(name = "备注信息")
|
||||
private String projectRemark;
|
||||
|
||||
/**
|
||||
* 删除标识,0:未删除,1:已删除
|
||||
*/
|
||||
@ApiModelProperty("删除标识,0:未删除,1:已删除")
|
||||
/** 删除标识,0:未删除,1:已删除 */
|
||||
private Integer delFlag;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,83 @@
|
||||
package com.xinelu.manage.domain.projectbatch;
|
||||
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 指标检测批次信息表
|
||||
* @TableName project_batch
|
||||
*/
|
||||
@ApiModel("指标检测批次信息表")
|
||||
@Data
|
||||
public class ProjectBatch extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty("主键id")
|
||||
private Long id;
|
||||
/**
|
||||
* 患者id
|
||||
*/
|
||||
@ApiModelProperty("患者id")
|
||||
private Long patientId;
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty("患者姓名")
|
||||
private String patientName;
|
||||
/**
|
||||
* 患者电话
|
||||
*/
|
||||
@ApiModelProperty("患者电话")
|
||||
private String patientPhone;
|
||||
/**
|
||||
* 出生日期,格式:yyyy-MM-dd
|
||||
*/
|
||||
@ApiModelProperty("出生日期,格式:yyyy-MM-dd")
|
||||
private Date birthDate;
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
@ApiModelProperty("身份证号")
|
||||
private String cardNo;
|
||||
/**
|
||||
* 性别,男:MALE,女:FEMALE
|
||||
*/
|
||||
@ApiModelProperty("性别,男:MALE,女:FEMALE")
|
||||
private String sex;
|
||||
/**
|
||||
* 批次名称
|
||||
*/
|
||||
@ApiModelProperty("批次名称")
|
||||
private String batchName;
|
||||
/**
|
||||
* 批次编号
|
||||
*/
|
||||
@ApiModelProperty("批次编号")
|
||||
private String batchCode;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty("排序")
|
||||
private Integer batchSort;
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
@ApiModelProperty("备注信息")
|
||||
private String batchRemark;
|
||||
/**
|
||||
* 批次创建时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty("批次创建时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
private Date batchDate;
|
||||
/**
|
||||
* 删除标识,0:否,1:是
|
||||
*/
|
||||
@ApiModelProperty("删除标识,0:否,1:是")
|
||||
private Integer delFlag;
|
||||
|
||||
}
|
||||
@ -2,81 +2,82 @@ package com.xinelu.manage.domain.projectdevice;
|
||||
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 检测项目设备表
|
||||
* @TableName project_device
|
||||
*/
|
||||
* 检测项目设备表
|
||||
* @TableName project_device
|
||||
*/
|
||||
@ApiModel("检测项目设备表")
|
||||
@Data
|
||||
public class ProjectDevice extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty("主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者id
|
||||
*/
|
||||
* 患者id
|
||||
*/
|
||||
@ApiModelProperty("患者id")
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty("患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
* 身份证号
|
||||
*/
|
||||
@ApiModelProperty("身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/**
|
||||
* 设备类型,血糖仪:GLUCOSE_METER,血压计:BLOOD_PRESSURE_DEVICE
|
||||
*/
|
||||
* 设备类型,血糖仪:GLUCOSE_METER,血压计:BLOOD_PRESSURE_DEVICE
|
||||
*/
|
||||
@ApiModelProperty("设备类型,血糖仪:GLUCOSE_METER,血压计:BLOOD_PRESSURE_DEVICE")
|
||||
private String deviceType;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty("设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
* 设备编码
|
||||
*/
|
||||
@ApiModelProperty("设备编码")
|
||||
private String deviceCode;
|
||||
|
||||
/**
|
||||
* 设备状态
|
||||
*/
|
||||
* 设备状态
|
||||
*/
|
||||
@ApiModelProperty("设备状态")
|
||||
private String deviceStatus;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
* 备注信息
|
||||
*/
|
||||
@ApiModelProperty("备注信息")
|
||||
private String deviceRemark;
|
||||
|
||||
/**
|
||||
* 设备绑定时间
|
||||
*/
|
||||
* 设备绑定时间
|
||||
*/
|
||||
@ApiModelProperty("设备绑定时间")
|
||||
private Date deviceBindTime;
|
||||
|
||||
/**
|
||||
* 设备解绑时间
|
||||
*/
|
||||
* 设备解绑时间
|
||||
*/
|
||||
@ApiModelProperty("设备解绑时间")
|
||||
private Date deviceUnbindTime;
|
||||
|
||||
/**
|
||||
* 设备IP地址
|
||||
*/
|
||||
* 设备IP地址
|
||||
*/
|
||||
@ApiModelProperty("设备IP地址")
|
||||
private String deviceIp;
|
||||
|
||||
/**
|
||||
* 设备端口
|
||||
*/
|
||||
* 设备端口
|
||||
*/
|
||||
@ApiModelProperty("设备端口")
|
||||
private Integer devicePort;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,55 +2,56 @@ package com.xinelu.manage.domain.projectgroup;
|
||||
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 检测项目分组表
|
||||
* @TableName project_group
|
||||
*/
|
||||
* 检测项目分组表
|
||||
* @TableName project_group
|
||||
*/
|
||||
@ApiModel("检测项目分组表")
|
||||
@Data
|
||||
public class ProjectGroup extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty("主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 上级分组id
|
||||
*/
|
||||
* 上级分组id
|
||||
*/
|
||||
@ApiModelProperty("上级分组id")
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 分组名称
|
||||
*/
|
||||
* 分组名称
|
||||
*/
|
||||
@ApiModelProperty("分组名称")
|
||||
private String groupName;
|
||||
|
||||
/**
|
||||
* 分组编码
|
||||
*/
|
||||
* 分组编码
|
||||
*/
|
||||
@ApiModelProperty("分组编码")
|
||||
private String groupCode;
|
||||
|
||||
/**
|
||||
* 是否启用,0:是,1:否
|
||||
*/
|
||||
* 是否启用,0:是,1:否
|
||||
*/
|
||||
@ApiModelProperty("是否启用,0:否,1:是")
|
||||
private Integer enableStatus;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty("排序")
|
||||
private Integer groupSort;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
* 备注信息
|
||||
*/
|
||||
@ApiModelProperty("备注信息")
|
||||
private String groupRemark;
|
||||
|
||||
/**
|
||||
* 删除标识,0:未删除,1:已删除
|
||||
*/
|
||||
* 删除标识,0:未删除,1:已删除
|
||||
*/
|
||||
@ApiModelProperty("删除标识,0:未删除,1:已删除")
|
||||
private Integer delFlag;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,122 +0,0 @@
|
||||
package com.xinelu.manage.domain.projectlastrecord;
|
||||
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 最近一次检测项目数据记录表
|
||||
* @TableName project_last_record
|
||||
*/
|
||||
@ApiModel("最近一次检测项目数据记录表")
|
||||
@Data
|
||||
public class ProjectLastRecord extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者id
|
||||
*/
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 患者身份证号
|
||||
*/
|
||||
private String cardNo;
|
||||
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 分组名称
|
||||
*/
|
||||
private String groupName;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 检测设备id
|
||||
*/
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 检测设备名称
|
||||
*/
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 项目别名
|
||||
*/
|
||||
private String projectAlias;
|
||||
|
||||
/**
|
||||
* 判断模式,定量:QUANTIFY,定性:QUALITATIVE
|
||||
*/
|
||||
private String judgeMode;
|
||||
|
||||
/**
|
||||
* 检测结果,数字或文字描述
|
||||
*/
|
||||
private String measureResult;
|
||||
|
||||
/**
|
||||
* 项目指标最大值
|
||||
*/
|
||||
private Integer maxValue;
|
||||
|
||||
/**
|
||||
* 项目指标最小值
|
||||
*/
|
||||
private Integer minValue;
|
||||
|
||||
/**
|
||||
* 项目指标默认值
|
||||
*/
|
||||
private String defaultValue;
|
||||
|
||||
/**
|
||||
* LIS对照
|
||||
*/
|
||||
private String lisCompare;
|
||||
|
||||
/**
|
||||
* 检测时间
|
||||
*/
|
||||
private Date measureTime;
|
||||
|
||||
/**
|
||||
* 检测人姓名,自动上传时为空,手动上传为上传人姓名
|
||||
*/
|
||||
private String measureName;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
private String recordRemark;
|
||||
|
||||
/**
|
||||
* 合格标识,合格:QUALIFIED,不合格:NOT_QUALIFIED
|
||||
*/
|
||||
private String qualifiedSign;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@ -0,0 +1,143 @@
|
||||
package com.xinelu.manage.domain.projectlastresult;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 最近一次检测项目结果表
|
||||
* @TableName project_last_result
|
||||
*/
|
||||
@ApiModel("最近一次检测项目结果表")
|
||||
@Data
|
||||
public class ProjectLastResult extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty("主键id")
|
||||
private Long id;
|
||||
/**
|
||||
* 患者id
|
||||
*/
|
||||
@ApiModelProperty("患者id")
|
||||
private Long patientId;
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty("患者姓名")
|
||||
private String patientName;
|
||||
/**
|
||||
* 患者身份证号
|
||||
*/
|
||||
@ApiModelProperty("患者身份证号")
|
||||
private String cardNo;
|
||||
/**
|
||||
* 批次表id
|
||||
*/
|
||||
@ApiModelProperty("批次表id")
|
||||
private Long batchId;
|
||||
/**
|
||||
* 批次名称
|
||||
*/
|
||||
@ApiModelProperty("批次名称")
|
||||
private String batchName;
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
@ApiModelProperty("分组id")
|
||||
private Long groupId;
|
||||
/**
|
||||
* 分组名称
|
||||
*/
|
||||
@ApiModelProperty("分组名称")
|
||||
private String groupName;
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
@ApiModelProperty("项目id")
|
||||
private Long projectId;
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
@ApiModelProperty("项目名称")
|
||||
private String projectName;
|
||||
/**
|
||||
* 检测设备id
|
||||
*/
|
||||
@ApiModelProperty("检测设备id")
|
||||
private Long deviceId;
|
||||
/**
|
||||
* 检测设备名称
|
||||
*/
|
||||
@ApiModelProperty("检测设备名称")
|
||||
private String deviceName;
|
||||
/**
|
||||
* 项目别名
|
||||
*/
|
||||
@ApiModelProperty("项目别名")
|
||||
private String projectAlias;
|
||||
/**
|
||||
* 判断模式,定量:QUANTIFY,定性:QUALITATIVE
|
||||
*/
|
||||
@ApiModelProperty("判断模式,定量:QUANTIFY,定性:QUALITATIVE")
|
||||
private String judgeMode;
|
||||
/**
|
||||
* 检测结果,数字或文字描述
|
||||
*/
|
||||
@ApiModelProperty("检测结果,数字或文字描述")
|
||||
private String measureResult;
|
||||
/**
|
||||
* 项目指标最大值
|
||||
*/
|
||||
@ApiModelProperty("项目指标最大值")
|
||||
private Integer maxValue;
|
||||
/**
|
||||
* 项目指标最小值
|
||||
*/
|
||||
@ApiModelProperty("项目指标最小值")
|
||||
private Integer minValue;
|
||||
/**
|
||||
* 项目指标默认值
|
||||
*/
|
||||
@ApiModelProperty("项目指标默认值")
|
||||
private String defaultValue;
|
||||
/**
|
||||
* LIS对照
|
||||
*/
|
||||
@ApiModelProperty("LIS对照")
|
||||
private String lisCompare;
|
||||
/**
|
||||
* 检测时间
|
||||
*/
|
||||
@ApiModelProperty("检测时间")
|
||||
private Date measureTime;
|
||||
/**
|
||||
* 检测人姓名,自动上传时为空,手动上传为上传人姓名
|
||||
*/
|
||||
@ApiModelProperty("检测人姓名,自动上传时为空,手动上传为上传人姓名")
|
||||
private String measureName;
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
@ApiModelProperty("备注信息")
|
||||
private String recordRemark;
|
||||
/**
|
||||
* 合格标识,合格:QUALIFIED,不合格:NOT_QUALIFIED
|
||||
*/
|
||||
@ApiModelProperty("合格标识,合格:QUALIFIED,不合格:NOT_QUALIFIED")
|
||||
private String qualifiedSign;
|
||||
|
||||
/** 检测结果附件路径 */
|
||||
@ApiModelProperty(value = "检测结果附件路径")
|
||||
@Excel(name = "检测结果附件路径")
|
||||
private String measureResultPath;
|
||||
|
||||
/** 计量单位 */
|
||||
@ApiModelProperty(value = "计量单位")
|
||||
@Excel(name = "计量单位")
|
||||
private String projectUnit;
|
||||
}
|
||||
@ -1,122 +0,0 @@
|
||||
package com.xinelu.manage.domain.projectrecord;
|
||||
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 检测项目数据记录表
|
||||
* @TableName project_record
|
||||
*/
|
||||
@ApiModel("检测项目数据记录表")
|
||||
@Data
|
||||
public class ProjectRecord extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者id
|
||||
*/
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 患者身份证号
|
||||
*/
|
||||
private String cardNo;
|
||||
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 分组名称
|
||||
*/
|
||||
private String groupName;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 检测设备id
|
||||
*/
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 检测设备名称
|
||||
*/
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 项目别名
|
||||
*/
|
||||
private String projectAlias;
|
||||
|
||||
/**
|
||||
* 判断模式,定量:QUANTIFY,定性:QUALITATIVE
|
||||
*/
|
||||
private String judgeMode;
|
||||
|
||||
/**
|
||||
* 检测结果,数字或文字描述
|
||||
*/
|
||||
private String measureResult;
|
||||
|
||||
/**
|
||||
* 项目指标最大值
|
||||
*/
|
||||
private Integer maxValue;
|
||||
|
||||
/**
|
||||
* 项目指标最小值
|
||||
*/
|
||||
private Integer minValue;
|
||||
|
||||
/**
|
||||
* 项目指标默认值
|
||||
*/
|
||||
private String defaultValue;
|
||||
|
||||
/**
|
||||
* LIS对照
|
||||
*/
|
||||
private String lisCompare;
|
||||
|
||||
/**
|
||||
* 检测时间
|
||||
*/
|
||||
private Date measureTime;
|
||||
|
||||
/**
|
||||
* 检测人姓名,自动上传时为空,手动上传为上传人姓名
|
||||
*/
|
||||
private String measureName;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
private String recordRemark;
|
||||
|
||||
/**
|
||||
* 合格标识,合格:QUALIFIED,不合格:NOT_QUALIFIED
|
||||
*/
|
||||
private String qualifiedSign;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@ -1,111 +0,0 @@
|
||||
package com.xinelu.manage.domain.projectrecordfile;
|
||||
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 检测项目数据记录附件表(存储检测结果既含有报告又含有指标数据的检测项)
|
||||
* @TableName project_record_file
|
||||
*/
|
||||
@Data
|
||||
public class ProjectRecordFile extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者id
|
||||
*/
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 患者身份证号
|
||||
*/
|
||||
private String cardNo;
|
||||
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 分组名称
|
||||
*/
|
||||
private String groupName;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 检测设备id
|
||||
*/
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 检测设备名称
|
||||
*/
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 项目别名
|
||||
*/
|
||||
private String projectAlias;
|
||||
|
||||
/**
|
||||
* 检测结果附件路径
|
||||
*/
|
||||
private String filePath;
|
||||
|
||||
/**
|
||||
* 检测时间
|
||||
*/
|
||||
private Date measureTime;
|
||||
|
||||
/**
|
||||
* 检测人姓名,自动上传时为空,手动上传为上传人姓名
|
||||
*/
|
||||
private String measureName;
|
||||
|
||||
/**
|
||||
* 项目指标最大值
|
||||
*/
|
||||
private Integer maxValue;
|
||||
|
||||
/**
|
||||
* 项目指标最小值
|
||||
*/
|
||||
private Integer minValue;
|
||||
|
||||
/**
|
||||
* 项目指标默认值
|
||||
*/
|
||||
private String defaultValue;
|
||||
|
||||
/**
|
||||
* 合格标识,合格:QUALIFIED,不合格:NOT_QUALIFIED
|
||||
*/
|
||||
private String qualifiedSign;
|
||||
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@ -0,0 +1,153 @@
|
||||
package com.xinelu.manage.domain.projectresult;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 检测项目结果对象 project_result
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "检测项目结果对象", description = "project_result")
|
||||
public class ProjectResult extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者id */
|
||||
@ApiModelProperty(value = "患者id")
|
||||
@Excel(name = "患者id")
|
||||
private Long patientId;
|
||||
|
||||
/** 患者姓名 */
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
@Excel(name = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 患者身份证号 */
|
||||
@ApiModelProperty(value = "患者身份证号")
|
||||
@Excel(name = "患者身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/** 批次表id */
|
||||
@ApiModelProperty(value = "批次表id")
|
||||
@Excel(name = "批次表id")
|
||||
private Long batchId;
|
||||
|
||||
/** 批次名称 */
|
||||
@ApiModelProperty(value = "批次名称")
|
||||
@Excel(name = "批次名称")
|
||||
private String batchName;
|
||||
|
||||
/** 分组id */
|
||||
@ApiModelProperty(value = "分组id")
|
||||
@Excel(name = "分组id")
|
||||
private Long groupId;
|
||||
|
||||
/** 分组名称 */
|
||||
@ApiModelProperty(value = "分组名称")
|
||||
@Excel(name = "分组名称")
|
||||
private String groupName;
|
||||
|
||||
/** 项目id */
|
||||
@ApiModelProperty(value = "项目id")
|
||||
@Excel(name = "项目id")
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@ApiModelProperty(value = "项目名称")
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 检测设备id */
|
||||
@ApiModelProperty(value = "检测设备id")
|
||||
@Excel(name = "检测设备id")
|
||||
private Long deviceId;
|
||||
|
||||
/** 检测设备名称 */
|
||||
@ApiModelProperty(value = "检测设备名称")
|
||||
@Excel(name = "检测设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 项目别名 */
|
||||
@ApiModelProperty(value = "项目别名")
|
||||
@Excel(name = "项目别名")
|
||||
private String projectAlias;
|
||||
|
||||
/** 判断模式,定量:QUANTIFY,定性:QUALITATIVE */
|
||||
@ApiModelProperty(value = "判断模式,定量:QUANTIFY,定性:QUALITATIVE")
|
||||
@Excel(name = "判断模式,定量:QUANTIFY,定性:QUALITATIVE")
|
||||
private String judgeMode;
|
||||
|
||||
/** 检测结果,数字或文字描述 */
|
||||
@ApiModelProperty(value = "检测结果,数字或文字描述")
|
||||
@Excel(name = "检测结果,数字或文字描述")
|
||||
private String measureResult;
|
||||
|
||||
/** 项目指标最大值 */
|
||||
@ApiModelProperty(value = "项目指标最大值")
|
||||
@Excel(name = "项目指标最大值")
|
||||
private Integer maxValue;
|
||||
|
||||
/** 项目指标最小值 */
|
||||
@ApiModelProperty(value = "项目指标最小值")
|
||||
@Excel(name = "项目指标最小值")
|
||||
private Integer minValue;
|
||||
|
||||
/** 项目指标默认值 */
|
||||
@ApiModelProperty(value = "项目指标默认值")
|
||||
@Excel(name = "项目指标默认值")
|
||||
private String defaultValue;
|
||||
|
||||
/** LIS对照 */
|
||||
@ApiModelProperty(value = "LIS对照")
|
||||
@Excel(name = "LIS对照")
|
||||
private String lisCompare;
|
||||
|
||||
/** 检测时间 */
|
||||
@ApiModelProperty(value = "检测时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "检测时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date measureTime;
|
||||
|
||||
/** 检测人姓名,自动上传时为空,手动上传为上传人姓名 */
|
||||
@ApiModelProperty(value = "检测人姓名,自动上传时为空,手动上传为上传人姓名")
|
||||
@Excel(name = "检测人姓名,自动上传时为空,手动上传为上传人姓名")
|
||||
private String measureName;
|
||||
|
||||
/** 备注信息 */
|
||||
@ApiModelProperty(value = "备注信息")
|
||||
@Excel(name = "备注信息")
|
||||
private String recordRemark;
|
||||
|
||||
/** 合格标识,合格:QUALIFIED,不合格:NOT_QUALIFIED */
|
||||
@ApiModelProperty(value = "合格标识,合格:QUALIFIED,不合格:NOT_QUALIFIED")
|
||||
@Excel(name = "合格标识,合格:QUALIFIED,不合格:NOT_QUALIFIED")
|
||||
private String qualifiedSign;
|
||||
|
||||
/** 检测结果附件路径 */
|
||||
@ApiModelProperty(value = "检测结果附件路径")
|
||||
@Excel(name = "检测结果附件路径")
|
||||
private String measureResultPath;
|
||||
|
||||
/** 计量单位 */
|
||||
@ApiModelProperty(value = "计量单位")
|
||||
@Excel(name = "计量单位")
|
||||
private String projectUnit;
|
||||
|
||||
}
|
||||
@ -201,7 +201,19 @@ public class SignPatientRecord extends BaseEntity {
|
||||
@ApiModelProperty(value = "解约原因")
|
||||
private String separateReason;
|
||||
|
||||
/**
|
||||
/**
|
||||
* 健康管理师id
|
||||
*/
|
||||
@ApiModelProperty(value = "健康管理师id")
|
||||
private Long healthManageId;
|
||||
|
||||
/**
|
||||
* 健康管理师姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "健康管理师姓名")
|
||||
private String healthManageName;
|
||||
|
||||
/**
|
||||
* 删除标识,0:未删除,1:已删除
|
||||
*/
|
||||
@ApiModelProperty(value = "删除标识,0:未删除,1:已删除")
|
||||
|
||||
@ -17,6 +17,15 @@ public class PatientVisitRecordDto {
|
||||
@ApiModelProperty(value = "患者表id")
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED")
|
||||
private String visitType;
|
||||
|
||||
@ApiModelProperty(value = "住院/门诊号")
|
||||
private String inHospitalNumber;
|
||||
|
||||
@ApiModelProperty(value = "就诊时间开始")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date visitDateStart;
|
||||
|
||||
@ -0,0 +1,120 @@
|
||||
package com.xinelu.manage.dto.patientvisitrecord;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 患者导入传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-03-07 11:24
|
||||
**/
|
||||
@ApiModel("患者导入传输对象")
|
||||
@Data
|
||||
public class PatientVisitRecordImportDto {
|
||||
|
||||
/** 患者姓名 */
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
@Excel(name = "姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 患者电话 */
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
@Excel(name = "电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 主要诊断 */
|
||||
@ApiModelProperty(value = "主要诊断")
|
||||
@Excel(name = "诊断")
|
||||
private String mainDiagnosis;
|
||||
|
||||
|
||||
/** 入院时间,时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "入院时间")
|
||||
@Excel(name = "入院时间")
|
||||
private Date admissionDate;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
@Excel(name = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/** 出生日期,格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "出生日期,格式:yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "出生日期")
|
||||
private Date birthDate;
|
||||
|
||||
/** 性别,男:MALE,女:FEMALE */
|
||||
|
||||
@ApiModelProperty(value = "性别,男:MALE,女:FEMALE")
|
||||
@Excel(name = "性别",readConverterExp = "男=MALE,女=FEMALE")
|
||||
private String sex;
|
||||
|
||||
/** 所属医院名称 */
|
||||
@ApiModelProperty(value = "所属医院名称")
|
||||
@Excel(name = "医院")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/** 所属院区名称 */
|
||||
@ApiModelProperty(value = "所属院区名称")
|
||||
@Excel(name = "院区")
|
||||
private String campusAgencyName;
|
||||
|
||||
/** 所属科室名称 */
|
||||
@ApiModelProperty(value = "所属科室名称")
|
||||
@Excel(name = "科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/** 所属病区名称 */
|
||||
@ApiModelProperty(value = "所属病区名称")
|
||||
@Excel(name = "病区名称")
|
||||
private String wardName;
|
||||
|
||||
/** 主治医生 */
|
||||
@ApiModelProperty(value = "主治医生")
|
||||
@Excel(name = "主治医生")
|
||||
private String attendingPhysician;
|
||||
|
||||
@ApiModelProperty(value = "住院/门诊号")
|
||||
@Excel(name = "住院号")
|
||||
private String inHospitalNumber;
|
||||
|
||||
/** 责任护士 */
|
||||
@ApiModelProperty(value = "责任护士")
|
||||
@Excel(name = "责任护士")
|
||||
private String responsibleNurse;
|
||||
|
||||
/** 家属电话 */
|
||||
@ApiModelProperty(value = "家属电话")
|
||||
@Excel(name = "家属电话")
|
||||
private String familyMemberPhone;
|
||||
|
||||
/** 就诊流水号 */
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
@Excel(name = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/** 入院病历 */
|
||||
@ApiModelProperty(value = "入院病历")
|
||||
@Excel(name = "入院病历信息")
|
||||
private String inHospitalInfo;
|
||||
|
||||
/** 门诊记录信息(就诊记录-门诊记录) */
|
||||
@ApiModelProperty(value = "门诊记录信息")
|
||||
@Excel(name = "门诊病历信息")
|
||||
private String outpatientVisitInfo;
|
||||
|
||||
/** 出院病历信息,存储患者出院的整个病历信息 */
|
||||
@ApiModelProperty(value = "出院病历信息,存储患者出院的整个病历信息")
|
||||
@Excel(name = "出院病历信息")
|
||||
private String outHospitalInfo;
|
||||
|
||||
/** 手术名称 */
|
||||
@ApiModelProperty(value = "手术名称")
|
||||
@Excel(name = "手术名称")
|
||||
private String surgicalName;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.xinelu.manage.dto.projectgroup;
|
||||
|
||||
import com.xinelu.manage.domain.projectgroup.ProjectGroup;
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 检测项目组批量保存传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-03-12 09:27
|
||||
**/
|
||||
@Data
|
||||
public class ProjectGroupSaveListDto {
|
||||
|
||||
private List<ProjectGroup> list;
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.xinelu.manage.dto.projectresult;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 项目检测统计查询传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-03-06 13:09
|
||||
**/
|
||||
@ApiModel("项目检测统计查询传输对象")
|
||||
@Data
|
||||
public class ProjectResultStatisticDto {
|
||||
|
||||
@ApiModelProperty("患者id")
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 分组编码
|
||||
*/
|
||||
@ApiModelProperty("分组编码,血压:bp,血糖:bg,运动:sport")
|
||||
private String groupCode;
|
||||
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
@ApiModelProperty("分组id")
|
||||
private Long groupId;
|
||||
/**
|
||||
* 项目编码
|
||||
*/
|
||||
@ApiModelProperty("项目编码")
|
||||
private String projectCode;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
@ApiModelProperty("项目id")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 检测时间开始
|
||||
*/
|
||||
@ApiModelProperty("检测时间开始")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date measureTimeStart;
|
||||
|
||||
/**
|
||||
* 检测时间结束
|
||||
*/
|
||||
@ApiModelProperty("检测时间结束")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date measureTimeEnd;
|
||||
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package com.xinelu.manage.mapper.patientprehospitalization;
|
||||
|
||||
import com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【patient_pre_hospitalization(预住院患者表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-08 10:26:02
|
||||
* @Entity com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization
|
||||
*/
|
||||
public interface PatientPreHospitalizationMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(PatientPreHospitalization record);
|
||||
|
||||
int insertBatch(@Param("recordList") List<PatientPreHospitalization> recordList);
|
||||
|
||||
int insertSelective(PatientPreHospitalization record);
|
||||
|
||||
PatientPreHospitalization selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(PatientPreHospitalization record);
|
||||
|
||||
int updateByPrimaryKey(PatientPreHospitalization record);
|
||||
|
||||
List<PatientPreHospitalization> selectList(PatientInfoDto patientInfo);
|
||||
|
||||
List<PatientPreHospitalization> selectApplyList(PatientPreHospitalization preHospitalizationQuery);
|
||||
|
||||
/**
|
||||
* 批量删除患者信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByIds(Long[] ids);
|
||||
|
||||
}
|
||||
@ -1,9 +1,10 @@
|
||||
package com.xinelu.manage.mapper.patientvisitrecord;
|
||||
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.Collection;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitrecord.PatientVisitRecord;
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息Mapper接口
|
||||
@ -36,6 +37,7 @@ public interface PatientVisitRecordMapper {
|
||||
*/
|
||||
public int insertPatientVisitRecord(PatientVisitRecord patientVisitRecord);
|
||||
|
||||
int insertBatch(@Param("patientVisitRecordList") Collection<PatientVisitRecord> patientVisitRecordList);
|
||||
/**
|
||||
* 修改患者就诊记录基本信息
|
||||
*
|
||||
|
||||
@ -1,25 +1,61 @@
|
||||
package com.xinelu.manage.mapper.project;
|
||||
|
||||
import com.xinelu.manage.domain.project.Project;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project(检测项目表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-05 16:33:33
|
||||
* @Entity com.xinelu.manage.domain.project.Project
|
||||
*/
|
||||
* 检测项目Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
public interface ProjectMapper {
|
||||
/**
|
||||
* 查询检测项目
|
||||
*
|
||||
* @param id 检测项目主键
|
||||
* @return 检测项目
|
||||
*/
|
||||
public Project selectProjectById(Long id);
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
/**
|
||||
* 查询检测项目列表
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 检测项目集合
|
||||
*/
|
||||
public List<Project> selectProjectList(Project project);
|
||||
|
||||
int insert(Project record);
|
||||
/**
|
||||
* 新增检测项目
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProject(Project project);
|
||||
|
||||
int insertSelective(Project record);
|
||||
/**
|
||||
* 修改检测项目
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProject(Project project);
|
||||
|
||||
Project selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(Project record);
|
||||
|
||||
int updateByPrimaryKey(Project record);
|
||||
/**
|
||||
* 删除检测项目
|
||||
*
|
||||
* @param id 检测项目主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除检测项目
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectByIds(Long[] ids);
|
||||
}
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
package com.xinelu.manage.mapper.projectbatch;
|
||||
|
||||
import com.xinelu.manage.domain.projectbatch.ProjectBatch;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【project_batch(指标检测批次信息表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-06 10:12:52
|
||||
* @Entity com.xinelu.manage.domain.projectbatch.ProjectBatch
|
||||
*/
|
||||
public interface ProjectBatchMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(ProjectBatch record);
|
||||
|
||||
int insertSelective(ProjectBatch record);
|
||||
|
||||
ProjectBatch selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(ProjectBatch record);
|
||||
|
||||
int updateByPrimaryKey(ProjectBatch record);
|
||||
|
||||
}
|
||||
@ -1,25 +1,61 @@
|
||||
package com.xinelu.manage.mapper.projectdevice;
|
||||
|
||||
import com.xinelu.manage.domain.projectdevice.ProjectDevice;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_device(检测项目设备表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-05 17:14:06
|
||||
* @Entity com.xinelu.manage.domain.projectdevice.ProjectDevice
|
||||
*/
|
||||
* 检测项目设备Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
public interface ProjectDeviceMapper {
|
||||
/**
|
||||
* 查询检测项目设备
|
||||
*
|
||||
* @param id 检测项目设备主键
|
||||
* @return 检测项目设备
|
||||
*/
|
||||
public ProjectDevice selectProjectDeviceById(Long id);
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
/**
|
||||
* 查询检测项目设备列表
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 检测项目设备集合
|
||||
*/
|
||||
public List<ProjectDevice> selectProjectDeviceList(ProjectDevice projectDevice);
|
||||
|
||||
int insert(ProjectDevice record);
|
||||
/**
|
||||
* 新增检测项目设备
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProjectDevice(ProjectDevice projectDevice);
|
||||
|
||||
int insertSelective(ProjectDevice record);
|
||||
/**
|
||||
* 修改检测项目设备
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProjectDevice(ProjectDevice projectDevice);
|
||||
|
||||
ProjectDevice selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(ProjectDevice record);
|
||||
|
||||
int updateByPrimaryKey(ProjectDevice record);
|
||||
/**
|
||||
* 删除检测项目设备
|
||||
*
|
||||
* @param id 检测项目设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectDeviceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除检测项目设备
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectDeviceByIds(Long[] ids);
|
||||
}
|
||||
|
||||
@ -1,25 +1,65 @@
|
||||
package com.xinelu.manage.mapper.projectgroup;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.Collection;
|
||||
|
||||
import com.xinelu.manage.domain.projectgroup.ProjectGroup;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_group(检测项目分组表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-05 16:34:58
|
||||
* @Entity com.xinelu.manage.domain.projectgroup.ProjectGroup
|
||||
*/
|
||||
* 检测项目分组Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
public interface ProjectGroupMapper {
|
||||
/**
|
||||
* 查询检测项目分组
|
||||
*
|
||||
* @param id 检测项目分组主键
|
||||
* @return 检测项目分组
|
||||
*/
|
||||
public ProjectGroup selectProjectGroupById(Long id);
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
/**
|
||||
* 查询检测项目分组列表
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 检测项目分组集合
|
||||
*/
|
||||
public List<ProjectGroup> selectProjectGroupList(ProjectGroup projectGroup);
|
||||
|
||||
int insert(ProjectGroup record);
|
||||
/**
|
||||
* 新增检测项目分组
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProjectGroup(ProjectGroup projectGroup);
|
||||
|
||||
int insertSelective(ProjectGroup record);
|
||||
int insertBatch(@Param("projectGroupList") Collection<ProjectGroup> projectGroupList);
|
||||
|
||||
ProjectGroup selectByPrimaryKey(Long id);
|
||||
/**
|
||||
* 修改检测项目分组
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProjectGroup(ProjectGroup projectGroup);
|
||||
|
||||
int updateByPrimaryKeySelective(ProjectGroup record);
|
||||
|
||||
int updateByPrimaryKey(ProjectGroup record);
|
||||
/**
|
||||
* 删除检测项目分组
|
||||
*
|
||||
* @param id 检测项目分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除检测项目分组
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectGroupByIds(Long[] ids);
|
||||
}
|
||||
|
||||
@ -1,25 +0,0 @@
|
||||
package com.xinelu.manage.mapper.projectlastrecord;
|
||||
|
||||
import com.xinelu.manage.domain.projectlastrecord.ProjectLastRecord;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_last_record(最近一次检测项目数据记录表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-05 17:09:28
|
||||
* @Entity com.xinelu.manage.domain.projectlastrecord.ProjectLastRecord
|
||||
*/
|
||||
public interface ProjectLastRecordMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(ProjectLastRecord record);
|
||||
|
||||
int insertSelective(ProjectLastRecord record);
|
||||
|
||||
ProjectLastRecord selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(ProjectLastRecord record);
|
||||
|
||||
int updateByPrimaryKey(ProjectLastRecord record);
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.xinelu.manage.mapper.projectlastresult;
|
||||
|
||||
import com.xinelu.manage.domain.projectlastresult.ProjectLastResult;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_last_result(最近一次检测项目结果表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-06 10:49:43
|
||||
* @Entity com.xinelu.manage.domain.projectlastresult.ProjectLastResult
|
||||
*/
|
||||
public interface ProjectLastResultMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(ProjectLastResult record);
|
||||
|
||||
int insertSelective(ProjectLastResult record);
|
||||
|
||||
ProjectLastResult selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(ProjectLastResult record);
|
||||
|
||||
int updateByPrimaryKey(ProjectLastResult record);
|
||||
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
package com.xinelu.manage.mapper.projectrecord;
|
||||
|
||||
import com.xinelu.manage.domain.projectrecord.ProjectRecord;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_record(检测项目数据记录表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-05 17:09:04
|
||||
* @Entity com.xinelu.manage.domain.projectrecord.ProjectRecord
|
||||
*/
|
||||
public interface ProjectRecordMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(ProjectRecord record);
|
||||
|
||||
int insertSelective(ProjectRecord record);
|
||||
|
||||
ProjectRecord selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(ProjectRecord record);
|
||||
|
||||
int updateByPrimaryKey(ProjectRecord record);
|
||||
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
package com.xinelu.manage.mapper.projectrecordfile;
|
||||
|
||||
import com.xinelu.manage.domain.projectrecordfile.ProjectRecordFile;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_record_file(检测项目数据记录附件表(存储检测结果既含有报告又含有指标数据的检测项))】的数据库操作Mapper
|
||||
* @createDate 2024-03-05 16:36:32
|
||||
* @Entity com.xinelu.manage.domain.projectrecordfile.ProjectRecordFile
|
||||
*/
|
||||
public interface ProjectRecordFileMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(ProjectRecordFile record);
|
||||
|
||||
int insertSelective(ProjectRecordFile record);
|
||||
|
||||
ProjectRecordFile selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(ProjectRecordFile record);
|
||||
|
||||
int updateByPrimaryKey(ProjectRecordFile record);
|
||||
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
package com.xinelu.manage.mapper.projectresult;
|
||||
|
||||
import com.xinelu.manage.domain.projectresult.ProjectResult;
|
||||
import com.xinelu.manage.dto.projectresult.ProjectResultStatisticDto;
|
||||
import com.xinelu.manage.vo.projectresult.ProjectResultVo;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_result(检测项目结果表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-06 10:41:36
|
||||
* @Entity com.xinelu.manage.domain.projectresult.ProjectResult
|
||||
*/
|
||||
public interface ProjectResultMapper {
|
||||
|
||||
/**
|
||||
* 查询检测项目结果
|
||||
*
|
||||
* @param id 检测项目结果主键
|
||||
* @return 检测项目结果
|
||||
*/
|
||||
public ProjectResult selectProjectResultById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检测项目结果列表
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 检测项目结果集合
|
||||
*/
|
||||
public List<ProjectResult> selectProjectResultList(ProjectResult projectResult);
|
||||
|
||||
/**
|
||||
* 新增检测项目结果
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProjectResult(ProjectResult projectResult);
|
||||
|
||||
/**
|
||||
* 修改检测项目结果
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProjectResult(ProjectResult projectResult);
|
||||
|
||||
/**
|
||||
* 删除检测项目结果
|
||||
*
|
||||
* @param id 检测项目结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectResultById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除检测项目结果
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectResultByIds(Long[] ids);
|
||||
|
||||
List<ProjectResultVo> selectList(ProjectResultStatisticDto projectResultStatisticDto);
|
||||
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package com.xinelu.manage.service.patientprehospitalization;
|
||||
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【patient_pre_hospitalization(预住院患者表)】的数据库操作Service
|
||||
* @createDate 2024-03-08 10:25:39
|
||||
*/
|
||||
public interface IPatientPreHospitalizationService {
|
||||
|
||||
int insert(PatientPreHospitalization preHospitalization);
|
||||
|
||||
List<PatientPreHospitalization> selectList(PatientInfoDto patientInfo);
|
||||
|
||||
int update(PatientPreHospitalization preHospitalization);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的预住院患者信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteByIds(Long[] ids);
|
||||
|
||||
PatientPreHospitalization getById(Long id);
|
||||
|
||||
/**
|
||||
* 预住院患者导入
|
||||
*
|
||||
* @param patientList 患者就诊信息
|
||||
* @return int
|
||||
**/
|
||||
AjaxResult importList(List<PatientPreHospitalization> patientList);
|
||||
}
|
||||
@ -0,0 +1,220 @@
|
||||
package com.xinelu.manage.service.patientprehospitalization.impl;
|
||||
|
||||
import com.xinelu.common.constant.NodeTypeConstants;
|
||||
import com.xinelu.common.constant.PatientTypeConstants;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.exception.ServiceException;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.common.utils.SecurityUtils;
|
||||
import com.xinelu.common.utils.StringUtils;
|
||||
import com.xinelu.common.utils.bean.BeanUtils;
|
||||
import com.xinelu.common.utils.regex.RegexUtil;
|
||||
import com.xinelu.manage.domain.agency.Agency;
|
||||
import com.xinelu.manage.domain.department.Department;
|
||||
import com.xinelu.manage.domain.patientinfo.PatientInfo;
|
||||
import com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import com.xinelu.manage.mapper.agency.AgencyMapper;
|
||||
import com.xinelu.manage.mapper.department.DepartmentMapper;
|
||||
import com.xinelu.manage.mapper.patientinfo.PatientInfoMapper;
|
||||
import com.xinelu.manage.mapper.patientprehospitalization.PatientPreHospitalizationMapper;
|
||||
import com.xinelu.manage.service.patientprehospitalization.IPatientPreHospitalizationService;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Resource;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.BooleanUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【patient_pre_hospitalization(预住院患者表)】的数据库操作Service实现
|
||||
* @createDate 2024-03-08 10:25:39
|
||||
*/
|
||||
@Service
|
||||
public class PatientPreHospitalizationServiceImpl implements IPatientPreHospitalizationService {
|
||||
|
||||
@Resource
|
||||
private PatientPreHospitalizationMapper preHospitalizationMapper;
|
||||
|
||||
@Resource
|
||||
private PatientInfoMapper patientInfoMapper;
|
||||
|
||||
@Resource
|
||||
private AgencyMapper agencyMapper;
|
||||
|
||||
@Resource
|
||||
private DepartmentMapper departmentMapper;
|
||||
|
||||
@Resource
|
||||
private RegexUtil regexUtil;
|
||||
|
||||
@Override public int insert(PatientPreHospitalization preHospitalization) {
|
||||
// 根据身份证号查询是否有患者信息
|
||||
PatientInfoDto patientInfoDto = new PatientInfoDto();
|
||||
patientInfoDto.setCardNo(preHospitalization.getCardNo());
|
||||
List<PatientInfo> patientList = patientInfoMapper.selectPatientInfoList(patientInfoDto);
|
||||
if (CollectionUtils.isEmpty(patientList)) {
|
||||
// 保存患者信息
|
||||
PatientInfo patientInfo = new PatientInfo();
|
||||
BeanUtils.copyBeanProp(patientInfo, preHospitalization);
|
||||
patientInfo.setCreateBy(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
patientInfo.setCreateTime(DateUtils.getNowDate());
|
||||
patientInfo.setDelFlag(0);
|
||||
patientInfo.setPatientType(PatientTypeConstants.PRE_HOSPITALIZED_PATIENT);
|
||||
patientInfoMapper.insertPatientInfo(patientInfo);
|
||||
preHospitalization.setPatientId(patientInfo.getId());
|
||||
} else {
|
||||
// 修改患者信息
|
||||
PatientInfo patientInfo = patientList.get(0);
|
||||
BeanUtils.copyBeanProp(patientInfo, preHospitalization);
|
||||
patientInfo.setUpdateBy(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
patientInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
patientInfo.setDelFlag(0);
|
||||
patientInfo.setPatientType(PatientTypeConstants.PRE_HOSPITALIZED_PATIENT);
|
||||
patientInfoMapper.updatePatientInfo(patientInfo);
|
||||
preHospitalization.setPatientId(patientList.get(0).getId());
|
||||
}
|
||||
// 保存预住院信息
|
||||
preHospitalization.setCreateBy(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
preHospitalization.setCreateTime(DateUtils.getNowDate());
|
||||
return preHospitalizationMapper.insertSelective(preHospitalization);
|
||||
}
|
||||
|
||||
@Override public List<PatientPreHospitalization> selectList(PatientInfoDto patientInfo) {
|
||||
return preHospitalizationMapper.selectList(patientInfo);
|
||||
}
|
||||
|
||||
@Override public int update(PatientPreHospitalization preHospitalization) {
|
||||
// 修改患者信息
|
||||
PatientInfo patientInfo = patientInfoMapper.selectPatientInfoById(preHospitalization.getPatientId());
|
||||
Long patientId = patientInfo.getId();
|
||||
BeanUtils.copyBeanProp(patientInfo, preHospitalization);
|
||||
patientInfo.setId(patientId);
|
||||
int flag = patientInfoMapper.updatePatientInfo(patientInfo);
|
||||
if (flag >= 0) {
|
||||
return preHospitalizationMapper.updateByPrimaryKeySelective(preHospitalization);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@Override public int deleteByIds(Long[] ids) {
|
||||
return preHospitalizationMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
@Override public PatientPreHospitalization getById(Long id) {
|
||||
return preHospitalizationMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override public AjaxResult importList(List<PatientPreHospitalization> patientList) {
|
||||
//判断添加的数据是否为空
|
||||
if (CollectionUtils.isEmpty(patientList)) {
|
||||
return AjaxResult.error("请添加预住院患者导入信息!");
|
||||
}
|
||||
// 根据患者身份证号做去重处理
|
||||
List<PatientPreHospitalization> importDataList = patientList.stream().filter(item -> StringUtils.isNotBlank(item.getCardNo())).distinct().collect(Collectors.toList());
|
||||
// 校验联系电话格式是否正确
|
||||
PatientPreHospitalization patient = importDataList.stream().filter(item -> StringUtils.isNotBlank(item.getPatientPhone())).filter(item -> BooleanUtils.isFalse(regexUtil.regexPhone(item.getPatientPhone()))).findFirst().orElse(new PatientPreHospitalization());
|
||||
if (StringUtils.isNotBlank(patient.getPatientPhone())) {
|
||||
return AjaxResult.error("当前患者联系电话:" + patient.getPatientPhone() + " 格式不正确,请重新录入!");
|
||||
}
|
||||
List<PatientPreHospitalization> saveList = new ArrayList<>();
|
||||
for (PatientPreHospitalization item : importDataList) {
|
||||
PatientPreHospitalization preHospitalization = new PatientPreHospitalization();
|
||||
BeanUtils.copyProperties(item, preHospitalization);
|
||||
// 根据医院名称查询医院id
|
||||
Agency agency = new Agency();
|
||||
if (StringUtils.isNotBlank(item.getHospitalAgencyName())) {
|
||||
agency.setAgencyName(item.getHospitalAgencyName());
|
||||
agency.setNodeType(NodeTypeConstants.HOSPITAL);
|
||||
List<Agency> agencyList = agencyMapper.selectAgencyList(agency);
|
||||
if (CollectionUtils.isNotEmpty(agencyList)) {
|
||||
preHospitalization.setHospitalAgencyId(agencyList.get(0).getId());
|
||||
}
|
||||
} else {
|
||||
preHospitalization.setHospitalAgencyId(SecurityUtils.getLoginUser().getUser().getAgencyId());
|
||||
Agency agencyData = agencyMapper.selectAgencyById(SecurityUtils.getLoginUser().getUser().getAgencyId());
|
||||
if (ObjectUtils.isNotEmpty(agencyData)) {
|
||||
preHospitalization.setHospitalAgencyName(agencyData.getAgencyName());
|
||||
}
|
||||
}
|
||||
// 查询院区id
|
||||
if (StringUtils.isNotBlank(item.getCampusAgencyName())) {
|
||||
agency.setAgencyName(item.getWardName());
|
||||
agency.setNodeType(NodeTypeConstants.CAMPUS);
|
||||
List<Agency> campusList = agencyMapper.selectAgencyList(agency);
|
||||
if (CollectionUtils.isNotEmpty(campusList)) {
|
||||
preHospitalization.setCampusAgencyId(campusList.get(0).getId());
|
||||
}
|
||||
}
|
||||
|
||||
// 查询科室id
|
||||
Department department = new Department();
|
||||
if (StringUtils.isNotBlank(item.getDepartmentName())) {
|
||||
department.setAgencyName(item.getHospitalAgencyName());
|
||||
department.setDepartmentName(item.getDepartmentName());
|
||||
department.setNodeType(NodeTypeConstants.DEPARTMENT);
|
||||
List<Department> deptList = departmentMapper.selectDepartmentList(department);
|
||||
if (CollectionUtils.isNotEmpty(deptList)) {
|
||||
preHospitalization.setDepartmentId(deptList.get(0).getId());
|
||||
}
|
||||
} else {
|
||||
preHospitalization.setDepartmentId(SecurityUtils.getLoginUser().getUser().getDepartmentId());
|
||||
Department department1 = departmentMapper.selectDepartmentById(SecurityUtils.getLoginUser().getUser().getDepartmentId());
|
||||
if (ObjectUtils.isNotEmpty(department1)) {
|
||||
preHospitalization.setDepartmentName(department1.getDepartmentName());
|
||||
}
|
||||
}
|
||||
// 查询病区
|
||||
if (StringUtils.isNotBlank(item.getWardName())) {
|
||||
department.setAgencyName(item.getHospitalAgencyName());
|
||||
department.setDepartmentName(item.getWardName());
|
||||
department.setNodeType(NodeTypeConstants.WARD);
|
||||
List<Department> deptList = departmentMapper.selectDepartmentList(department);
|
||||
if (CollectionUtils.isNotEmpty(deptList)) {
|
||||
preHospitalization.setWardId(deptList.get(0).getId());
|
||||
}
|
||||
}
|
||||
|
||||
preHospitalization.setCreateTime(DateUtils.getNowDate());
|
||||
preHospitalization.setCreateBy(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
|
||||
// 根据身份证号查询患者信息
|
||||
PatientInfoDto patientQuery = new PatientInfoDto();
|
||||
patientQuery.setCardNo(item.getCardNo());
|
||||
List<PatientInfo> patientInfoList = patientInfoMapper.selectPatientInfoList(patientQuery);
|
||||
if (CollectionUtils.isNotEmpty(patientInfoList)) {
|
||||
// 修改居民信息
|
||||
PatientInfo updInfo = patientInfoList.get(0);
|
||||
BeanUtils.copyBeanProp(updInfo, item);
|
||||
patientInfoMapper.updatePatientInfo(updInfo);
|
||||
preHospitalization.setPatientId(patientInfoList.get(0).getId());
|
||||
} else {
|
||||
PatientInfo saveInfo = new PatientInfo();
|
||||
// 添加居民
|
||||
BeanUtils.copyBeanProp(saveInfo, item);
|
||||
patientInfoMapper.insertPatientInfo(saveInfo);
|
||||
preHospitalization.setPatientId(saveInfo.getId());
|
||||
}
|
||||
// 根据患者身份证号和预约时间查询是否有记录
|
||||
PatientPreHospitalization preHospitalizationQuery = new PatientPreHospitalization();
|
||||
preHospitalizationQuery.setCardNo(item.getCardNo());
|
||||
preHospitalizationQuery.setAppointmentDate(item.getAppointmentDate());
|
||||
List<PatientPreHospitalization> list = preHospitalizationMapper.selectApplyList(preHospitalizationQuery);
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
// 新增
|
||||
saveList.add(preHospitalization);
|
||||
} else {
|
||||
// 有预约信息暂时不导入
|
||||
}
|
||||
}
|
||||
int insertCount = preHospitalizationMapper.insertBatch(saveList);
|
||||
if (insertCount <= 0) {
|
||||
throw new ServiceException("导入预住院信息失败,请联系管理员!");
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
}
|
||||
@ -1,9 +1,10 @@
|
||||
package com.xinelu.manage.service.patientvisitrecord;
|
||||
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.manage.domain.patientvisitrecord.PatientVisitRecord;
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordImportDto;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息Service接口
|
||||
@ -59,4 +60,12 @@ public interface IPatientVisitRecordService {
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 患者就诊信息导入
|
||||
*
|
||||
* @param patientList 患者就诊信息
|
||||
* @return int
|
||||
**/
|
||||
AjaxResult importPatientList(List<PatientVisitRecordImportDto> patientList, String patientType);
|
||||
}
|
||||
|
||||
@ -1,13 +1,38 @@
|
||||
package com.xinelu.manage.service.patientvisitrecord.impl;
|
||||
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import java.util.List;
|
||||
import com.xinelu.common.constant.NodeTypeConstants;
|
||||
import com.xinelu.common.constant.PatientTypeConstants;
|
||||
import com.xinelu.common.constant.VisitTypeConstants;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.exception.ServiceException;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.patientvisitrecord.PatientVisitRecordMapper;
|
||||
import com.xinelu.common.utils.SecurityUtils;
|
||||
import com.xinelu.common.utils.StringUtils;
|
||||
import com.xinelu.common.utils.bean.BeanUtils;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.utils.regex.RegexUtil;
|
||||
import com.xinelu.manage.domain.agency.Agency;
|
||||
import com.xinelu.manage.domain.department.Department;
|
||||
import com.xinelu.manage.domain.patientinfo.PatientInfo;
|
||||
import com.xinelu.manage.domain.patientvisitrecord.PatientVisitRecord;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordImportDto;
|
||||
import com.xinelu.manage.mapper.agency.AgencyMapper;
|
||||
import com.xinelu.manage.mapper.department.DepartmentMapper;
|
||||
import com.xinelu.manage.mapper.patientinfo.PatientInfoMapper;
|
||||
import com.xinelu.manage.mapper.patientvisitrecord.PatientVisitRecordMapper;
|
||||
import com.xinelu.manage.service.patientvisitrecord.IPatientVisitRecordService;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Resource;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.BooleanUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息Service业务层处理
|
||||
@ -19,6 +44,14 @@ import com.xinelu.manage.service.patientvisitrecord.IPatientVisitRecordService;
|
||||
public class PatientVisitRecordServiceImpl implements IPatientVisitRecordService {
|
||||
@Resource
|
||||
private PatientVisitRecordMapper patientVisitRecordMapper;
|
||||
@Resource
|
||||
private RegexUtil regexUtil;
|
||||
@Resource
|
||||
private PatientInfoMapper patientMapper;
|
||||
@Resource
|
||||
private AgencyMapper agencyMapper;
|
||||
@Resource
|
||||
private DepartmentMapper departmentMapper;
|
||||
|
||||
/**
|
||||
* 查询患者就诊记录基本信息
|
||||
@ -87,4 +120,144 @@ public class PatientVisitRecordServiceImpl implements IPatientVisitRecordService
|
||||
public int deletePatientVisitRecordById(Long id) {
|
||||
return patientVisitRecordMapper.deletePatientVisitRecordById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult importPatientList(List<PatientVisitRecordImportDto> patientList, String patientType) {
|
||||
//判断添加的数据是否为空
|
||||
if (CollectionUtils.isEmpty(patientList)) {
|
||||
return AjaxResult.error("请添加就诊信息导入信息!");
|
||||
}
|
||||
// 根据患者身份证号做去除处理
|
||||
List<PatientVisitRecordImportDto> importDataList = patientList.stream().filter(item -> StringUtils.isNotBlank(item.getCardNo())).distinct().collect(Collectors.toList());
|
||||
// 校验联系电话格式是否正确
|
||||
PatientVisitRecordImportDto patient = importDataList.stream().filter(item -> StringUtils.isNotBlank(item.getPatientPhone())).filter(item -> BooleanUtils.isFalse(regexUtil.regexPhone(item.getPatientPhone()))).findFirst().orElse(new PatientVisitRecordImportDto());
|
||||
if (StringUtils.isNotBlank(patient.getPatientPhone())) {
|
||||
return AjaxResult.error("当前患者联系电话:" + patient.getPatientPhone() + " 格式不正确,请重新录入!");
|
||||
}
|
||||
|
||||
List<PatientVisitRecord> saveList = new ArrayList<>();
|
||||
for (PatientVisitRecordImportDto item : importDataList) {
|
||||
PatientVisitRecord patientVisitRecord = new PatientVisitRecord();
|
||||
BeanUtils.copyProperties(item, patientVisitRecord);
|
||||
patientVisitRecord.setCreateTime(DateUtils.getNowDate());
|
||||
patientVisitRecord.setCreateBy(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
switch (patientType) {
|
||||
// 预住院患者
|
||||
case PatientTypeConstants.PRE_HOSPITALIZED_PATIENT:
|
||||
break;
|
||||
// 在院患者
|
||||
case PatientTypeConstants.IN_HOSPITAL_PATIENT:
|
||||
case PatientTypeConstants.DISCHARGED_PATIENT:
|
||||
patientVisitRecord.setVisitType(VisitTypeConstants.BE_HOSPITALIZED);
|
||||
break;
|
||||
// 门诊患者
|
||||
case PatientTypeConstants.OUTPATIENT:
|
||||
patientVisitRecord.setVisitType(VisitTypeConstants.OUTPATIENT_SERVICE);
|
||||
break;
|
||||
}
|
||||
// 根据身份证号查询患者信息
|
||||
PatientInfoDto patientQuery = new PatientInfoDto();
|
||||
patientQuery.setCardNo(item.getCardNo());
|
||||
List<PatientInfo> patientInfoList = patientMapper.selectPatientInfoList(patientQuery);
|
||||
if (CollectionUtils.isNotEmpty(patientInfoList)) {
|
||||
// 修改居民信息
|
||||
PatientInfo updInfo = patientInfoList.get(0);
|
||||
BeanUtils.copyBeanProp(updInfo, item);
|
||||
patientMapper.updatePatientInfo(updInfo);
|
||||
patientVisitRecord.setPatientId(patientInfoList.get(0).getId());
|
||||
} else {
|
||||
PatientInfo saveInfo = new PatientInfo();
|
||||
// 添加居民
|
||||
BeanUtils.copyBeanProp(saveInfo, item);
|
||||
patientMapper.insertPatientInfo(saveInfo);
|
||||
patientVisitRecord.setPatientId(saveInfo.getId());
|
||||
}
|
||||
// 根据医院名称查询医院id
|
||||
Agency agency = new Agency();
|
||||
if (StringUtils.isNotBlank(item.getHospitalAgencyName())) {
|
||||
agency.setAgencyName(item.getHospitalAgencyName());
|
||||
agency.setNodeType(NodeTypeConstants.HOSPITAL);
|
||||
List<Agency> agencyList = agencyMapper.selectAgencyList(agency);
|
||||
if (CollectionUtils.isNotEmpty(agencyList)) {
|
||||
patientVisitRecord.setHospitalAgencyId(agencyList.get(0).getId());
|
||||
}
|
||||
} else {
|
||||
patientVisitRecord.setHospitalAgencyId(SecurityUtils.getLoginUser().getUser().getAgencyId());
|
||||
Agency agencyData = agencyMapper.selectAgencyById(SecurityUtils.getLoginUser().getUser().getAgencyId());
|
||||
if (ObjectUtils.isNotEmpty(agencyData)) {
|
||||
patientVisitRecord.setHospitalAgencyName(agencyData.getAgencyName());
|
||||
}
|
||||
}
|
||||
// 查询院区id
|
||||
if (StringUtils.isNotBlank(item.getCampusAgencyName())) {
|
||||
agency.setAgencyName(item.getWardName());
|
||||
agency.setNodeType(NodeTypeConstants.CAMPUS);
|
||||
List<Agency> campusList = agencyMapper.selectAgencyList(agency);
|
||||
if (CollectionUtils.isNotEmpty(campusList)) {
|
||||
patientVisitRecord.setCampusAgencyId(campusList.get(0).getId());
|
||||
}
|
||||
}
|
||||
|
||||
// 查询科室id
|
||||
Department department = new Department();
|
||||
if (StringUtils.isNotBlank(item.getDepartmentName())) {
|
||||
department.setAgencyName(item.getHospitalAgencyName());
|
||||
department.setDepartmentName(item.getDepartmentName());
|
||||
department.setNodeType(NodeTypeConstants.DEPARTMENT);
|
||||
List<Department> deptList = departmentMapper.selectDepartmentList(department);
|
||||
if (CollectionUtils.isNotEmpty(deptList)) {
|
||||
patientVisitRecord.setDepartmentId(deptList.get(0).getId());
|
||||
}
|
||||
} else {
|
||||
patientVisitRecord.setDepartmentId(SecurityUtils.getLoginUser().getUser().getDepartmentId());
|
||||
Department department1 = departmentMapper.selectDepartmentById(SecurityUtils.getLoginUser().getUser().getDepartmentId());
|
||||
if (ObjectUtils.isNotEmpty(department1)) {
|
||||
patientVisitRecord.setDepartmentName(department1.getDepartmentName());
|
||||
}
|
||||
}
|
||||
// 查询病区
|
||||
if (StringUtils.isNotBlank(item.getWardName())) {
|
||||
department.setAgencyName(item.getHospitalAgencyName());
|
||||
department.setDepartmentName(item.getWardName());
|
||||
department.setNodeType(NodeTypeConstants.WARD);
|
||||
List<Department> deptList = departmentMapper.selectDepartmentList(department);
|
||||
if (CollectionUtils.isNotEmpty(deptList)) {
|
||||
patientVisitRecord.setWardId(deptList.get(0).getId());
|
||||
}
|
||||
}
|
||||
// 根据门诊/住院编号查询是否有记录
|
||||
PatientVisitRecordDto recordQuery = new PatientVisitRecordDto();
|
||||
recordQuery.setVisitType(patientType);
|
||||
recordQuery.setInHospitalNumber(patientVisitRecord.getInHospitalInfo());
|
||||
List<PatientVisitRecord> patientVisitRecordList = patientVisitRecordMapper.selectPatientVisitRecordList(recordQuery);
|
||||
if (CollectionUtils.isEmpty(patientVisitRecordList)) {
|
||||
// 新增
|
||||
saveList.add(patientVisitRecord);
|
||||
} else {
|
||||
// 修改
|
||||
patientVisitRecord.setId(patientVisitRecordList.get(0).getId());
|
||||
int flag = patientVisitRecordMapper.updatePatientVisitRecord(patientVisitRecord);
|
||||
if (flag < 0) {
|
||||
throw new ServiceException("导入患者就诊信息失败,请联系管理员!");
|
||||
}
|
||||
}
|
||||
}
|
||||
int insertCount = patientVisitRecordMapper.insertBatch(saveList);
|
||||
if (insertCount <= 0) {
|
||||
throw new ServiceException("导入患者就诊信息失败,请联系管理员!");
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String filePath = "E:\\在院患者导入.xlsx";
|
||||
ExcelUtil<PatientVisitRecordImportDto> util = new ExcelUtil<>(PatientVisitRecordImportDto.class);
|
||||
File file = new File(filePath);
|
||||
try {
|
||||
List<PatientVisitRecordImportDto> list = util.importExcel(new FileInputStream(file));
|
||||
//importPatientList(list);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,10 +1,61 @@
|
||||
package com.xinelu.manage.service.project;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project(检测项目表)】的数据库操作Service
|
||||
* @createDate 2024-02-29 15:10:38
|
||||
*/
|
||||
public interface IProjectService {
|
||||
import com.xinelu.manage.domain.project.Project;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 检测项目Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
public interface IProjectService {
|
||||
/**
|
||||
* 查询检测项目
|
||||
*
|
||||
* @param id 检测项目主键
|
||||
* @return 检测项目
|
||||
*/
|
||||
public Project selectProjectById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检测项目列表
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 检测项目集合
|
||||
*/
|
||||
public List<Project> selectProjectList(Project project);
|
||||
|
||||
/**
|
||||
* 新增检测项目
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProject(Project project);
|
||||
|
||||
/**
|
||||
* 修改检测项目
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProject(Project project);
|
||||
|
||||
/**
|
||||
* 批量删除检测项目
|
||||
*
|
||||
* @param ids 需要删除的检测项目主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除检测项目信息
|
||||
*
|
||||
* @param id 检测项目主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectById(Long id);
|
||||
}
|
||||
|
||||
@ -1,14 +1,89 @@
|
||||
package com.xinelu.manage.service.project.impl;
|
||||
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.manage.domain.project.Project;
|
||||
import com.xinelu.manage.mapper.project.ProjectMapper;
|
||||
import com.xinelu.manage.service.project.IProjectService;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project(检测项目表)】的数据库操作Service实现
|
||||
* @createDate 2024-02-29 15:10:38
|
||||
*/
|
||||
* 检测项目Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@Service
|
||||
public class ProjectServiceImpl implements IProjectService {
|
||||
@Resource
|
||||
private ProjectMapper projectMapper;
|
||||
|
||||
/**
|
||||
* 查询检测项目
|
||||
*
|
||||
* @param id 检测项目主键
|
||||
* @return 检测项目
|
||||
*/
|
||||
@Override
|
||||
public Project selectProjectById(Long id) {
|
||||
return projectMapper.selectProjectById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检测项目列表
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 检测项目
|
||||
*/
|
||||
@Override
|
||||
public List<Project> selectProjectList(Project project) {
|
||||
return projectMapper.selectProjectList(project);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertProject(Project project) {
|
||||
project.setCreateTime(DateUtils.getNowDate());
|
||||
return projectMapper.insertProject(project);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检测项目
|
||||
*
|
||||
* @param project 检测项目
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProject(Project project) {
|
||||
project.setUpdateTime(DateUtils.getNowDate());
|
||||
return projectMapper.updateProject(project);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除检测项目
|
||||
*
|
||||
* @param ids 需要删除的检测项目主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProjectByIds(Long[] ids) {
|
||||
return projectMapper.deleteProjectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检测项目信息
|
||||
*
|
||||
* @param id 检测项目主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProjectById(Long id) {
|
||||
return projectMapper.deleteProjectById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,10 +1,61 @@
|
||||
package com.xinelu.manage.service.projectdevice;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_device(检测项目设备表)】的数据库操作Service
|
||||
* @createDate 2024-02-29 15:15:14
|
||||
*/
|
||||
public interface IProjectDeviceService {
|
||||
import com.xinelu.manage.domain.projectdevice.ProjectDevice;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 检测项目设备Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
public interface IProjectDeviceService {
|
||||
/**
|
||||
* 查询检测项目设备
|
||||
*
|
||||
* @param id 检测项目设备主键
|
||||
* @return 检测项目设备
|
||||
*/
|
||||
public ProjectDevice selectProjectDeviceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检测项目设备列表
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 检测项目设备集合
|
||||
*/
|
||||
public List<ProjectDevice> selectProjectDeviceList(ProjectDevice projectDevice);
|
||||
|
||||
/**
|
||||
* 新增检测项目设备
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProjectDevice(ProjectDevice projectDevice);
|
||||
|
||||
/**
|
||||
* 修改检测项目设备
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProjectDevice(ProjectDevice projectDevice);
|
||||
|
||||
/**
|
||||
* 批量删除检测项目设备
|
||||
*
|
||||
* @param ids 需要删除的检测项目设备主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectDeviceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除检测项目设备信息
|
||||
*
|
||||
* @param id 检测项目设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectDeviceById(Long id);
|
||||
}
|
||||
|
||||
@ -1,14 +1,89 @@
|
||||
package com.xinelu.manage.service.projectdevice.impl;
|
||||
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.manage.domain.projectdevice.ProjectDevice;
|
||||
import com.xinelu.manage.mapper.projectdevice.ProjectDeviceMapper;
|
||||
import com.xinelu.manage.service.projectdevice.IProjectDeviceService;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【project_device(检测项目设备表)】的数据库操作Service实现
|
||||
* @createDate 2024-02-29 15:15:14
|
||||
*/
|
||||
* 检测项目设备Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@Service
|
||||
public class ProjectDeviceServiceImpl implements IProjectDeviceService {
|
||||
@Resource
|
||||
private ProjectDeviceMapper projectDeviceMapper;
|
||||
|
||||
/**
|
||||
* 查询检测项目设备
|
||||
*
|
||||
* @param id 检测项目设备主键
|
||||
* @return 检测项目设备
|
||||
*/
|
||||
@Override
|
||||
public ProjectDevice selectProjectDeviceById(Long id) {
|
||||
return projectDeviceMapper.selectProjectDeviceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检测项目设备列表
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 检测项目设备
|
||||
*/
|
||||
@Override
|
||||
public List<ProjectDevice> selectProjectDeviceList(ProjectDevice projectDevice) {
|
||||
return projectDeviceMapper.selectProjectDeviceList(projectDevice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目设备
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertProjectDevice(ProjectDevice projectDevice) {
|
||||
projectDevice.setCreateTime(DateUtils.getNowDate());
|
||||
return projectDeviceMapper.insertProjectDevice(projectDevice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检测项目设备
|
||||
*
|
||||
* @param projectDevice 检测项目设备
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProjectDevice(ProjectDevice projectDevice) {
|
||||
projectDevice.setUpdateTime(DateUtils.getNowDate());
|
||||
return projectDeviceMapper.updateProjectDevice(projectDevice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除检测项目设备
|
||||
*
|
||||
* @param ids 需要删除的检测项目设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProjectDeviceByIds(Long[] ids) {
|
||||
return projectDeviceMapper.deleteProjectDeviceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检测项目设备信息
|
||||
*
|
||||
* @param id 检测项目设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProjectDeviceById(Long id) {
|
||||
return projectDeviceMapper.deleteProjectDeviceById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,10 +1,64 @@
|
||||
package com.xinelu.manage.service.projectgroup;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_group(检测项目分组表)】的数据库操作Service
|
||||
* @createDate 2024-02-29 15:19:16
|
||||
*/
|
||||
public interface IProjectGroupService {
|
||||
import com.xinelu.manage.domain.projectgroup.ProjectGroup;
|
||||
import com.xinelu.manage.dto.projectgroup.ProjectGroupSaveListDto;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 检测项目分组Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
public interface IProjectGroupService {
|
||||
/**
|
||||
* 查询检测项目分组
|
||||
*
|
||||
* @param id 检测项目分组主键
|
||||
* @return 检测项目分组
|
||||
*/
|
||||
public ProjectGroup selectProjectGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检测项目分组列表
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 检测项目分组集合
|
||||
*/
|
||||
public List<ProjectGroup> selectProjectGroupList(ProjectGroup projectGroup);
|
||||
|
||||
/**
|
||||
* 新增检测项目分组
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProjectGroup(ProjectGroup projectGroup);
|
||||
|
||||
int insertList(ProjectGroupSaveListDto saveDto);
|
||||
|
||||
/**
|
||||
* 修改检测项目分组
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProjectGroup(ProjectGroup projectGroup);
|
||||
|
||||
/**
|
||||
* 批量删除检测项目分组
|
||||
*
|
||||
* @param ids 需要删除的检测项目分组主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectGroupByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除检测项目分组信息
|
||||
*
|
||||
* @param id 检测项目分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectGroupById(Long id);
|
||||
}
|
||||
|
||||
@ -1,14 +1,115 @@
|
||||
package com.xinelu.manage.service.projectgroup.impl;
|
||||
|
||||
import com.xinelu.common.exception.ServiceException;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.common.utils.SecurityUtils;
|
||||
import com.xinelu.manage.domain.projectgroup.ProjectGroup;
|
||||
import com.xinelu.manage.dto.projectgroup.ProjectGroupSaveListDto;
|
||||
import com.xinelu.manage.mapper.projectgroup.ProjectGroupMapper;
|
||||
import com.xinelu.manage.service.projectgroup.IProjectGroupService;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_group(检测项目分组表)】的数据库操作Service实现
|
||||
* @createDate 2024-02-29 15:19:16
|
||||
*/
|
||||
* 检测项目分组Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-11
|
||||
*/
|
||||
@Service
|
||||
public class ProjectGroupServiceImpl implements IProjectGroupService {
|
||||
@Resource
|
||||
private ProjectGroupMapper projectGroupMapper;
|
||||
|
||||
/**
|
||||
* 查询检测项目分组
|
||||
*
|
||||
* @param id 检测项目分组主键
|
||||
* @return 检测项目分组
|
||||
*/
|
||||
@Override
|
||||
public ProjectGroup selectProjectGroupById(Long id) {
|
||||
return projectGroupMapper.selectProjectGroupById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检测项目分组列表
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 检测项目分组
|
||||
*/
|
||||
@Override
|
||||
public List<ProjectGroup> selectProjectGroupList(ProjectGroup projectGroup) {
|
||||
return projectGroupMapper.selectProjectGroupList(projectGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目分组
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertProjectGroup(ProjectGroup projectGroup) {
|
||||
projectGroup.setCreateTime(DateUtils.getNowDate());
|
||||
projectGroup.setCreateBy(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
projectGroup.setDelFlag(0);
|
||||
return projectGroupMapper.insertProjectGroup(projectGroup);
|
||||
}
|
||||
|
||||
@Override public int insertList(ProjectGroupSaveListDto saveDto) {
|
||||
if (ObjectUtils.isNotEmpty(saveDto)) {
|
||||
List<ProjectGroup> list = saveDto.getList();
|
||||
if (CollectionUtils.isNotEmpty(list)) {
|
||||
for (ProjectGroup projectGroup : list) {
|
||||
projectGroup.setCreateTime(DateUtils.getNowDate());
|
||||
projectGroup.setCreateBy(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
projectGroup.setDelFlag(0);
|
||||
}
|
||||
return projectGroupMapper.insertBatch(list);
|
||||
} else {
|
||||
throw new ServiceException("传输数据错误");
|
||||
}
|
||||
} else {
|
||||
throw new ServiceException("传输数据错误");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检测项目分组
|
||||
*
|
||||
* @param projectGroup 检测项目分组
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProjectGroup(ProjectGroup projectGroup) {
|
||||
projectGroup.setUpdateTime(DateUtils.getNowDate());
|
||||
projectGroup.setUpdateBy(SecurityUtils.getLoginUser().getUser().getNickName());
|
||||
return projectGroupMapper.updateProjectGroup(projectGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除检测项目分组
|
||||
*
|
||||
* @param ids 需要删除的检测项目分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProjectGroupByIds(Long[] ids) {
|
||||
return projectGroupMapper.deleteProjectGroupByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检测项目分组信息
|
||||
*
|
||||
* @param id 检测项目分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProjectGroupById(Long id) {
|
||||
return projectGroupMapper.deleteProjectGroupById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
package com.xinelu.manage.service.projectlastrecord;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_last_record(最近一次检测项目数据记录表)】的数据库操作Service
|
||||
* @createDate 2024-02-29 15:20:41
|
||||
*/
|
||||
public interface IProjectLastRecordService {
|
||||
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.xinelu.manage.service.projectlastrecord.impl;
|
||||
|
||||
import com.xinelu.manage.service.projectlastrecord.IProjectLastRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_last_record(最近一次检测项目数据记录表)】的数据库操作Service实现
|
||||
* @createDate 2024-02-29 15:20:41
|
||||
*/
|
||||
@Service
|
||||
public class ProjectLastRecordServiceImpl implements IProjectLastRecordService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
package com.xinelu.manage.service.projectlastresult;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_last_result(最近一次检测项目结果表)】的数据库操作Service
|
||||
* @createDate 2024-03-06 10:48:45
|
||||
*/
|
||||
public interface IProjectLastResultService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.xinelu.manage.service.projectlastresult.impl;
|
||||
|
||||
import com.xinelu.manage.service.projectlastresult.IProjectLastResultService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_last_result(最近一次检测项目结果表)】的数据库操作Service实现
|
||||
* @createDate 2024-03-06 10:48:45
|
||||
*/
|
||||
@Service
|
||||
public class ProjectLastResultServiceImpl implements IProjectLastResultService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
package com.xinelu.manage.service.projectrecord;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_record(检测项目数据记录表)】的数据库操作Service
|
||||
* @createDate 2024-02-29 15:22:15
|
||||
*/
|
||||
public interface IProjectRecordService {
|
||||
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.xinelu.manage.service.projectrecord.impl;
|
||||
|
||||
import com.xinelu.manage.service.projectrecord.IProjectRecordService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_record(检测项目数据记录表)】的数据库操作Service实现
|
||||
* @createDate 2024-02-29 15:22:15
|
||||
*/
|
||||
@Service
|
||||
public class ProjectRecordServiceImpl implements IProjectRecordService {
|
||||
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
package com.xinelu.manage.service.projectrecordfile;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_record_file(检测项目数据记录附件表(扩展))】的数据库操作Service
|
||||
* @createDate 2024-02-29 15:23:25
|
||||
*/
|
||||
public interface IProjectRecordFileService {
|
||||
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.xinelu.manage.service.projectrecordfile.impl;
|
||||
|
||||
import com.xinelu.manage.service.projectrecordfile.IProjectRecordFileService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_record_file(检测项目数据记录附件表(扩展))】的数据库操作Service实现
|
||||
* @createDate 2024-02-29 15:23:25
|
||||
*/
|
||||
@Service
|
||||
public class ProjectRecordFileServiceImpl implements IProjectRecordFileService {
|
||||
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package com.xinelu.manage.service.projectresult;
|
||||
|
||||
import com.xinelu.manage.domain.projectresult.ProjectResult;
|
||||
import com.xinelu.manage.dto.projectresult.ProjectResultStatisticDto;
|
||||
import com.xinelu.manage.vo.projectresult.ProjectResultStatisticVo;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_result(检测项目结果表)】的数据库操作Service
|
||||
* @createDate 2024-03-06 10:40:56
|
||||
*/
|
||||
public interface IProjectResultService {
|
||||
|
||||
ProjectResultStatisticVo curveStatistics(ProjectResultStatisticDto projectResultStatisticDto);
|
||||
|
||||
/**
|
||||
* 查询检测项目结果
|
||||
*
|
||||
* @param id 检测项目结果主键
|
||||
* @return 检测项目结果
|
||||
*/
|
||||
public ProjectResult selectProjectResultById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检测项目结果列表
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 检测项目结果集合
|
||||
*/
|
||||
public List<ProjectResult> selectProjectResultList(ProjectResult projectResult);
|
||||
|
||||
/**
|
||||
* 新增检测项目结果
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProjectResult(ProjectResult projectResult);
|
||||
|
||||
/**
|
||||
* 修改检测项目结果
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProjectResult(ProjectResult projectResult);
|
||||
|
||||
/**
|
||||
* 批量删除检测项目结果
|
||||
*
|
||||
* @param ids 需要删除的检测项目结果主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectResultByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除检测项目结果信息
|
||||
*
|
||||
* @param id 检测项目结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectResultById(Long id);
|
||||
}
|
||||
@ -0,0 +1,148 @@
|
||||
package com.xinelu.manage.service.projectresult.impl;
|
||||
|
||||
import com.xinelu.common.exception.ServiceException;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.common.utils.StringUtils;
|
||||
import com.xinelu.manage.domain.project.Project;
|
||||
import com.xinelu.manage.domain.projectgroup.ProjectGroup;
|
||||
import com.xinelu.manage.domain.projectresult.ProjectResult;
|
||||
import com.xinelu.manage.dto.projectresult.ProjectResultStatisticDto;
|
||||
import com.xinelu.manage.mapper.project.ProjectMapper;
|
||||
import com.xinelu.manage.mapper.projectgroup.ProjectGroupMapper;
|
||||
import com.xinelu.manage.mapper.projectresult.ProjectResultMapper;
|
||||
import com.xinelu.manage.service.projectresult.IProjectResultService;
|
||||
import com.xinelu.manage.vo.projectresult.ProjectResultStatisticVo;
|
||||
import com.xinelu.manage.vo.projectresult.ProjectResultVo;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【project_result(检测项目结果表)】的数据库操作Service实现
|
||||
* @createDate 2024-03-06 10:40:56
|
||||
*/
|
||||
@Service
|
||||
public class ProjectResultServiceImpl implements IProjectResultService {
|
||||
|
||||
@Resource
|
||||
private ProjectGroupMapper projectGroupMapper;
|
||||
@Resource
|
||||
private ProjectMapper projectMapper;
|
||||
@Resource
|
||||
private ProjectResultMapper projectResultMapper;
|
||||
|
||||
/**
|
||||
* 查询检测项目结果
|
||||
*
|
||||
* @param id 检测项目结果主键
|
||||
* @return 检测项目结果
|
||||
*/
|
||||
@Override
|
||||
public ProjectResult selectProjectResultById(Long id) {
|
||||
return projectResultMapper.selectProjectResultById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检测项目结果列表
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 检测项目结果
|
||||
*/
|
||||
@Override
|
||||
public List<ProjectResult> selectProjectResultList(ProjectResult projectResult) {
|
||||
return projectResultMapper.selectProjectResultList(projectResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检测项目结果
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertProjectResult(ProjectResult projectResult) {
|
||||
projectResult.setCreateTime(DateUtils.getNowDate());
|
||||
return projectResultMapper.insertProjectResult(projectResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检测项目结果
|
||||
*
|
||||
* @param projectResult 检测项目结果
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProjectResult(ProjectResult projectResult) {
|
||||
projectResult.setUpdateTime(DateUtils.getNowDate());
|
||||
return projectResultMapper.updateProjectResult(projectResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除检测项目结果
|
||||
*
|
||||
* @param ids 需要删除的检测项目结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProjectResultByIds(Long[] ids) {
|
||||
return projectResultMapper.deleteProjectResultByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检测项目结果信息
|
||||
*
|
||||
* @param id 检测项目结果主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProjectResultById(Long id) {
|
||||
return projectResultMapper.deleteProjectResultById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProjectResultStatisticVo curveStatistics(ProjectResultStatisticDto projectResultStatisticDto) {
|
||||
// 根据groupCode查询groupId
|
||||
if (StringUtils.isNotBlank(projectResultStatisticDto.getGroupCode())) {
|
||||
ProjectGroup projectGroup = new ProjectGroup();
|
||||
projectGroup.setGroupCode(projectResultStatisticDto.getGroupCode());
|
||||
List<ProjectGroup> groupList = projectGroupMapper.selectProjectGroupList(projectGroup);
|
||||
if (CollectionUtils.isEmpty(groupList)) {
|
||||
throw new ServiceException("未找到该检测项目");
|
||||
}
|
||||
projectResultStatisticDto.setGroupId(groupList.get(0).getId());
|
||||
}
|
||||
// 根据projectCode查询projectId
|
||||
if (StringUtils.isNotBlank(projectResultStatisticDto.getProjectCode())) {
|
||||
Project projectQuery = new Project();
|
||||
projectQuery.setProjectCode(projectResultStatisticDto.getProjectCode());
|
||||
List<Project> projectList = projectMapper.selectProjectList(projectQuery);
|
||||
if (CollectionUtils.isEmpty(projectList)) {
|
||||
throw new ServiceException("未找到该检测项目");
|
||||
}
|
||||
projectResultStatisticDto.setProjectId(projectList.get(0).getId());
|
||||
}
|
||||
if (projectResultStatisticDto.getPatientId() == null) {
|
||||
throw new ServiceException("数据格式错误");
|
||||
}
|
||||
List<String> measureTimeList = new ArrayList<>();
|
||||
Map<String, List<String>> valueMap = new HashMap<>();
|
||||
List<ProjectResultVo> resultList = projectResultMapper.selectList(projectResultStatisticDto);
|
||||
if (!CollectionUtils.isEmpty(resultList)) {
|
||||
// 根据projectId进行分组
|
||||
Map<String, List<ProjectResultVo>> groupByProject = resultList.stream().collect(Collectors.groupingBy(ProjectResultVo::getProjectName));
|
||||
for (String projectName : groupByProject.keySet()) {
|
||||
List<ProjectResultVo> projectResultList = groupByProject.get(projectName);
|
||||
List<String> valueList = projectResultList.stream().map(ProjectResultVo::getMeasureResult).collect(Collectors.toList());
|
||||
measureTimeList = projectResultList.stream().map(ProjectResultVo::getMeasureTimeStr).collect(Collectors.toList());
|
||||
valueMap.put(projectName, valueList);
|
||||
}
|
||||
}
|
||||
return ProjectResultStatisticVo.builder().xList(measureTimeList).yList(valueMap).build();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package com.xinelu.manage.vo.projectgroup;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @description: 检测项目分组树形结构查询返回视图类
|
||||
* @author: haown
|
||||
* @create: 2024-03-11 15:30
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProjectGroupTreeVo {
|
||||
|
||||
/**
|
||||
* 节点ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 节点名称
|
||||
*/
|
||||
private String label;
|
||||
|
||||
/**
|
||||
* 节点名称
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* 子节点
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<ProjectGroupTreeVo> children;
|
||||
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.xinelu.manage.vo.projectresult;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @description: 项目检测统计返回视图类
|
||||
* @author: haown
|
||||
* @create: 2024-03-06 11:40
|
||||
**/
|
||||
@ApiModel("项目检测统计返回视图类")
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProjectResultStatisticVo {
|
||||
|
||||
@ApiModelProperty("横坐标轴列表")
|
||||
private List<String> xList;
|
||||
|
||||
@ApiModelProperty("纵坐标轴列表")
|
||||
private Map<String, List<String>> yList;
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package com.xinelu.manage.vo.projectresult;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 项目检测结果查询返回视图类
|
||||
* @author: haown
|
||||
* @create: 2024-03-06 15:33
|
||||
**/
|
||||
@ApiModel("项目检测结果查询返回视图类")
|
||||
@Data
|
||||
public class ProjectResultVo {
|
||||
|
||||
@ApiModelProperty("分组id")
|
||||
private Long groupId;
|
||||
|
||||
@ApiModelProperty("分组名称")
|
||||
private String groupName;
|
||||
|
||||
@ApiModelProperty("分组id")
|
||||
private Long projectId;
|
||||
|
||||
private String projectName;
|
||||
|
||||
private String measureResult;
|
||||
|
||||
private String measureTimeStr;
|
||||
}
|
||||
@ -0,0 +1,377 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientprehospitalization.PatientPreHospitalizationMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="patientId" column="patient_id" jdbcType="BIGINT"/>
|
||||
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
||||
<result property="patientPhone" column="patient_phone" jdbcType="VARCHAR"/>
|
||||
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
|
||||
<result property="sex" column="sex" jdbcType="VARCHAR"/>
|
||||
<result property="birthDate" column="birth_date" jdbcType="DATE"/>
|
||||
<result property="familyMemberPhone" column="family_member_phone" jdbcType="VARCHAR"/>
|
||||
<result property="address" column="address" jdbcType="VARCHAR"/>
|
||||
<result property="mainDiagnosis" column="main_diagnosis" jdbcType="VARCHAR"/>
|
||||
<result property="hospitalAgencyId" column="hospital_agency_id" jdbcType="BIGINT"/>
|
||||
<result property="hospitalAgencyName" column="hospital_agency_name" jdbcType="VARCHAR"/>
|
||||
<result property="campusAgencyId" column="campus_agency_id" jdbcType="BIGINT"/>
|
||||
<result property="campusAgencyName" column="campus_agency_name" jdbcType="VARCHAR"/>
|
||||
<result property="departmentId" column="department_id" jdbcType="BIGINT"/>
|
||||
<result property="departmentName" column="department_name" jdbcType="VARCHAR"/>
|
||||
<result property="wardId" column="ward_id" jdbcType="BIGINT"/>
|
||||
<result property="wardName" column="ward_name" jdbcType="VARCHAR"/>
|
||||
<result property="appointmentTreatmentGroup" column="appointment_treatment_group" jdbcType="VARCHAR"/>
|
||||
<result property="registrationNo" column="registration_no" jdbcType="VARCHAR"/>
|
||||
<result property="registrationDate" column="registration_date" jdbcType="DATE"/>
|
||||
<result property="appointmentDate" column="appointment_date" jdbcType="DATE"/>
|
||||
<result property="certificateIssuingDoctorId" column="certificate_issuing_doctor_id" jdbcType="BIGINT"/>
|
||||
<result property="certificateIssuingDoctorName" column="certificate_issuing_doctor_name" jdbcType="VARCHAR"/>
|
||||
<result property="responsibleNurse" column="responsible_nurse" jdbcType="VARCHAR"/>
|
||||
<result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,patient_id,patient_name,
|
||||
patient_phone,card_no,sex,
|
||||
birth_date,family_member_phone,address,
|
||||
main_diagnosis,hospital_agency_id,hospital_agency_name,
|
||||
campus_agency_id,campus_agency_name,department_id,
|
||||
department_name,ward_id,ward_name,
|
||||
appointment_treatment_group,registration_no,registration_date,
|
||||
appointment_date,certificate_issuing_doctor_id,certificate_issuing_doctor_name,
|
||||
responsible_nurse,del_flag,create_by,
|
||||
create_time,update_by,update_time
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from patient_pre_hospitalization
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from patient_pre_hospitalization
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization" useGeneratedKeys="true">
|
||||
insert into patient_pre_hospitalization
|
||||
( id,patient_id,patient_name
|
||||
,patient_phone,card_no,sex
|
||||
,birth_date,family_member_phone,address
|
||||
,main_diagnosis,hospital_agency_id,hospital_agency_name
|
||||
,campus_agency_id,campus_agency_name,department_id
|
||||
,department_name,ward_id,ward_name
|
||||
,appointment_treatment_group,registration_no,registration_date
|
||||
,appointment_date,certificate_issuing_doctor_id,certificate_issuing_doctor_name
|
||||
,responsible_nurse,del_flag,create_by
|
||||
,create_time,update_by,update_time
|
||||
)
|
||||
values (#{id,jdbcType=BIGINT},#{patientId,jdbcType=BIGINT},#{patientName,jdbcType=VARCHAR}
|
||||
,#{patientPhone,jdbcType=VARCHAR},#{cardNo,jdbcType=VARCHAR},#{sex,jdbcType=VARCHAR}
|
||||
,#{birthDate,jdbcType=DATE},#{familyMemberPhone,jdbcType=VARCHAR},#{address,jdbcType=VARCHAR}
|
||||
,#{mainDiagnosis,jdbcType=VARCHAR},#{hospitalAgencyId,jdbcType=BIGINT},#{hospitalAgencyName,jdbcType=VARCHAR}
|
||||
,#{campusAgencyId,jdbcType=BIGINT},#{campusAgencyName,jdbcType=VARCHAR},#{departmentId,jdbcType=BIGINT}
|
||||
,#{departmentName,jdbcType=VARCHAR},#{wardId,jdbcType=BIGINT},#{wardName,jdbcType=VARCHAR}
|
||||
,#{appointmentTreatmentGroup,jdbcType=VARCHAR},#{registrationNo,jdbcType=VARCHAR},#{registrationDate,jdbcType=DATE}
|
||||
,#{appointmentDate,jdbcType=DATE},#{certificateIssuingDoctorId,jdbcType=BIGINT},#{certificateIssuingDoctorName,jdbcType=VARCHAR}
|
||||
,#{responsibleNurse,jdbcType=VARCHAR},#{delFlag,jdbcType=TINYINT},#{createBy,jdbcType=VARCHAR}
|
||||
,#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR},#{updateTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization" useGeneratedKeys="true">
|
||||
insert into patient_pre_hospitalization
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="patientId != null">patient_id,</if>
|
||||
<if test="patientName != null">patient_name,</if>
|
||||
<if test="patientPhone != null">patient_phone,</if>
|
||||
<if test="cardNo != null">card_no,</if>
|
||||
<if test="sex != null">sex,</if>
|
||||
<if test="birthDate != null">birth_date,</if>
|
||||
<if test="familyMemberPhone != null">family_member_phone,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="mainDiagnosis != null">main_diagnosis,</if>
|
||||
<if test="hospitalAgencyId != null">hospital_agency_id,</if>
|
||||
<if test="hospitalAgencyName != null">hospital_agency_name,</if>
|
||||
<if test="campusAgencyId != null">campus_agency_id,</if>
|
||||
<if test="campusAgencyName != null">campus_agency_name,</if>
|
||||
<if test="departmentId != null">department_id,</if>
|
||||
<if test="departmentName != null">department_name,</if>
|
||||
<if test="wardId != null">ward_id,</if>
|
||||
<if test="wardName != null">ward_name,</if>
|
||||
<if test="appointmentTreatmentGroup != null">appointment_treatment_group,</if>
|
||||
<if test="registrationNo != null">registration_no,</if>
|
||||
<if test="registrationDate != null">registration_date,</if>
|
||||
<if test="appointmentDate != null">appointment_date,</if>
|
||||
<if test="certificateIssuingDoctorId != null">certificate_issuing_doctor_id,</if>
|
||||
<if test="certificateIssuingDoctorName != null">certificate_issuing_doctor_name,</if>
|
||||
<if test="responsibleNurse != null">responsible_nurse,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
||||
<if test="patientId != null">#{patientId,jdbcType=BIGINT},</if>
|
||||
<if test="patientName != null">#{patientName,jdbcType=VARCHAR},</if>
|
||||
<if test="patientPhone != null">#{patientPhone,jdbcType=VARCHAR},</if>
|
||||
<if test="cardNo != null">#{cardNo,jdbcType=VARCHAR},</if>
|
||||
<if test="sex != null">#{sex,jdbcType=VARCHAR},</if>
|
||||
<if test="birthDate != null">#{birthDate,jdbcType=DATE},</if>
|
||||
<if test="familyMemberPhone != null">#{familyMemberPhone,jdbcType=VARCHAR},</if>
|
||||
<if test="address != null">#{address,jdbcType=VARCHAR},</if>
|
||||
<if test="mainDiagnosis != null">#{mainDiagnosis,jdbcType=VARCHAR},</if>
|
||||
<if test="hospitalAgencyId != null">#{hospitalAgencyId,jdbcType=BIGINT},</if>
|
||||
<if test="hospitalAgencyName != null">#{hospitalAgencyName,jdbcType=VARCHAR},</if>
|
||||
<if test="campusAgencyId != null">#{campusAgencyId,jdbcType=BIGINT},</if>
|
||||
<if test="campusAgencyName != null">#{campusAgencyName,jdbcType=VARCHAR},</if>
|
||||
<if test="departmentId != null">#{departmentId,jdbcType=BIGINT},</if>
|
||||
<if test="departmentName != null">#{departmentName,jdbcType=VARCHAR},</if>
|
||||
<if test="wardId != null">#{wardId,jdbcType=BIGINT},</if>
|
||||
<if test="wardName != null">#{wardName,jdbcType=VARCHAR},</if>
|
||||
<if test="appointmentTreatmentGroup != null">#{appointmentTreatmentGroup,jdbcType=VARCHAR},</if>
|
||||
<if test="registrationNo != null">#{registrationNo,jdbcType=VARCHAR},</if>
|
||||
<if test="registrationDate != null">#{registrationDate,jdbcType=DATE},</if>
|
||||
<if test="appointmentDate != null">#{appointmentDate,jdbcType=DATE},</if>
|
||||
<if test="certificateIssuingDoctorId != null">#{certificateIssuingDoctorId,jdbcType=BIGINT},</if>
|
||||
<if test="certificateIssuingDoctorName != null">#{certificateIssuingDoctorName,jdbcType=VARCHAR},</if>
|
||||
<if test="responsibleNurse != null">#{responsibleNurse,jdbcType=VARCHAR},</if>
|
||||
<if test="delFlag != null">#{delFlag,jdbcType=TINYINT},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateBy != null">#{updateBy,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization">
|
||||
update patient_pre_hospitalization
|
||||
<set>
|
||||
<if test="patientId != null">
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="patientName != null">
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="patientPhone != null">
|
||||
patient_phone = #{patientPhone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cardNo != null">
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sex != null">
|
||||
sex = #{sex,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="birthDate != null">
|
||||
birth_date = #{birthDate,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="familyMemberPhone != null">
|
||||
family_member_phone = #{familyMemberPhone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mainDiagnosis != null">
|
||||
main_diagnosis = #{mainDiagnosis,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null">
|
||||
hospital_agency_id = #{hospitalAgencyId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="hospitalAgencyName != null">
|
||||
hospital_agency_name = #{hospitalAgencyName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="campusAgencyId != null">
|
||||
campus_agency_id = #{campusAgencyId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="campusAgencyName != null">
|
||||
campus_agency_name = #{campusAgencyName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="departmentId != null">
|
||||
department_id = #{departmentId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="departmentName != null">
|
||||
department_name = #{departmentName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="wardId != null">
|
||||
ward_id = #{wardId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="wardName != null">
|
||||
ward_name = #{wardName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null">
|
||||
appointment_treatment_group = #{appointmentTreatmentGroup,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registrationNo != null">
|
||||
registration_no = #{registrationNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registrationDate != null">
|
||||
registration_date = #{registrationDate,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="appointmentDate != null">
|
||||
appointment_date = #{appointmentDate,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="certificateIssuingDoctorId != null">
|
||||
certificate_issuing_doctor_id = #{certificateIssuingDoctorId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="certificateIssuingDoctorName != null">
|
||||
certificate_issuing_doctor_name = #{certificateIssuingDoctorName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="responsibleNurse != null">
|
||||
responsible_nurse = #{responsibleNurse,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization">
|
||||
update patient_pre_hospitalization
|
||||
set
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
patient_phone = #{patientPhone,jdbcType=VARCHAR},
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
sex = #{sex,jdbcType=VARCHAR},
|
||||
birth_date = #{birthDate,jdbcType=DATE},
|
||||
family_member_phone = #{familyMemberPhone,jdbcType=VARCHAR},
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
main_diagnosis = #{mainDiagnosis,jdbcType=VARCHAR},
|
||||
hospital_agency_id = #{hospitalAgencyId,jdbcType=BIGINT},
|
||||
hospital_agency_name = #{hospitalAgencyName,jdbcType=VARCHAR},
|
||||
campus_agency_id = #{campusAgencyId,jdbcType=BIGINT},
|
||||
campus_agency_name = #{campusAgencyName,jdbcType=VARCHAR},
|
||||
department_id = #{departmentId,jdbcType=BIGINT},
|
||||
department_name = #{departmentName,jdbcType=VARCHAR},
|
||||
ward_id = #{wardId,jdbcType=BIGINT},
|
||||
ward_name = #{wardName,jdbcType=VARCHAR},
|
||||
appointment_treatment_group = #{appointmentTreatmentGroup,jdbcType=VARCHAR},
|
||||
registration_no = #{registrationNo,jdbcType=VARCHAR},
|
||||
registration_date = #{registrationDate,jdbcType=DATE},
|
||||
appointment_date = #{appointmentDate,jdbcType=DATE},
|
||||
certificate_issuing_doctor_id = #{certificateIssuingDoctorId,jdbcType=BIGINT},
|
||||
certificate_issuing_doctor_name = #{certificateIssuingDoctorName,jdbcType=VARCHAR},
|
||||
responsible_nurse = #{responsibleNurse,jdbcType=VARCHAR},
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
|
||||
<select id="selectList" parameterType="com.xinelu.manage.dto.patientinfo.PatientInfoDto" resultMap="BaseResultMap">
|
||||
select
|
||||
p.id,p.patient_id,p.patient_name,
|
||||
p.patient_phone,p.card_no,p.sex,
|
||||
p.birth_date,p.family_member_phone,p.address,
|
||||
p.main_diagnosis,p.hospital_agency_id,p.hospital_agency_name,
|
||||
p.campus_agency_name,
|
||||
p.department_name,p.ward_name,
|
||||
p.appointment_treatment_group,p.registration_no,p.registration_date,
|
||||
p.appointment_date,p.certificate_issuing_doctor_id,p.certificate_issuing_doctor_name
|
||||
from patient_info patient left join patient_pre_hospitalization p
|
||||
<where>
|
||||
p.del_flag = 0 and patient.patient_type = 'PRE_HOSPITALIZED_PATIENT'
|
||||
<if test="patientName != null and patientName != ''">
|
||||
and p.patient_name = #{patientName}
|
||||
</if>
|
||||
<if test="patientPhone != null and patientPhone != ''">
|
||||
and p.patient_phone like concat('%', #{patientPhone}, '%')
|
||||
</if>
|
||||
<if test="cardNo != null and cardNo != ''">
|
||||
and p.card_no = #{cardNo}
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null ">
|
||||
and p.hospital_agency_id = #{hospitalAgencyId}
|
||||
</if>
|
||||
<if test="campusAgencyId != null ">
|
||||
and p.campus_agency_id = #{campusAgencyId}
|
||||
</if>
|
||||
<if test="departmentId != null ">
|
||||
and p.department_id = #{departmentId}
|
||||
</if>
|
||||
<if test="wardId != null ">
|
||||
and p.ward_id = #{wardId}
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null and appointmentTreatmentGroup != ''">
|
||||
and p.appointment_treatment_group = #{appointmentTreatmentGroup}
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null and certificateIssuingDoctor != ''">
|
||||
and p.certificate_issuing_doctor = #{certificateIssuingDoctor}
|
||||
</if>
|
||||
<if test="registrationNo != null and registrationNo != ''">
|
||||
and p.registration_no = #{registrationNo}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectApplyList" parameterType="com.xinelu.manage.domain.patientprehospitalization.PatientPreHospitalization" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from patient_pre_hospitalization
|
||||
<where>
|
||||
del_flag = 0
|
||||
<if test="cardNo != null and cardNo != ''">
|
||||
and card_no = #{cardNo}
|
||||
</if>
|
||||
<if test="appointmentDate != null ">
|
||||
and date_format(appointment_date, '%y%m%d') = date_format(#{appointmentDate}, '%y%m%d')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<update id="deleteByIds" parameterType="String">
|
||||
update patient_pre_hospitalization set del_flag = 1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
<insert id="insertBatch">
|
||||
insert into patient_pre_hospitalization(id,patient_id,patient_name,
|
||||
patient_phone,card_no,sex,
|
||||
birth_date,family_member_phone,address,
|
||||
main_diagnosis,hospital_agency_id,hospital_agency_name,
|
||||
campus_agency_id,campus_agency_name,department_id,
|
||||
department_name,ward_id,ward_name,
|
||||
appointment_treatment_group,registration_no,registration_date,
|
||||
appointment_date,certificate_issuing_doctor_id,certificate_issuing_doctor_name,
|
||||
responsible_nurse,del_flag,search_value,
|
||||
create_by,create_time,update_by,
|
||||
update_time,remark,params)
|
||||
values
|
||||
<foreach collection="recordList" item="item" separator=",">
|
||||
(#{item.id,jdbcType=NUMERIC},#{item.patientId,jdbcType=NUMERIC},#{item.patientName,jdbcType=VARCHAR},
|
||||
#{item.patientPhone,jdbcType=VARCHAR},#{item.cardNo,jdbcType=VARCHAR},#{item.sex,jdbcType=VARCHAR},
|
||||
#{item.birthDate,jdbcType=TIMESTAMP},#{item.familyMemberPhone,jdbcType=VARCHAR},#{item.address,jdbcType=VARCHAR},
|
||||
#{item.mainDiagnosis,jdbcType=VARCHAR},#{item.hospitalAgencyId,jdbcType=NUMERIC},#{item.hospitalAgencyName,jdbcType=VARCHAR},
|
||||
#{item.campusAgencyId,jdbcType=NUMERIC},#{item.campusAgencyName,jdbcType=VARCHAR},#{item.departmentId,jdbcType=NUMERIC},
|
||||
#{item.departmentName,jdbcType=VARCHAR},#{item.wardId,jdbcType=NUMERIC},#{item.wardName,jdbcType=VARCHAR},
|
||||
#{item.appointmentTreatmentGroup,jdbcType=VARCHAR},#{item.registrationNo,jdbcType=VARCHAR},#{item.registrationDate,jdbcType=TIMESTAMP},
|
||||
#{item.appointmentDate,jdbcType=TIMESTAMP},#{item.certificateIssuingDoctorId,jdbcType=NUMERIC},#{item.certificateIssuingDoctorName,jdbcType=VARCHAR},
|
||||
#{item.responsibleNurse,jdbcType=VARCHAR},#{item.delFlag,jdbcType=NUMERIC},#{item.searchValue,jdbcType=VARCHAR},
|
||||
#{item.createBy,jdbcType=VARCHAR},#{item.createTime,jdbcType=TIMESTAMP},#{item.updateBy,jdbcType=VARCHAR},
|
||||
#{item.updateTime,jdbcType=TIMESTAMP},#{item.remark,jdbcType=VARCHAR},#{item.params})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
@ -5,40 +5,66 @@
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientvisitrecord.PatientVisitRecordMapper">
|
||||
|
||||
<resultMap type="PatientVisitRecord" id="PatientVisitRecordResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="visitDept" column="visit_dept"/>
|
||||
<result property="visitName" column="visit_name"/>
|
||||
<result property="visitDate" column="visit_date"/>
|
||||
<result property="visitType" column="visit_type"/>
|
||||
<result property="patientName" column="patient_name"/>
|
||||
<result property="birthplace" column="birthplace"/>
|
||||
<result property="sex" column="sex"/>
|
||||
<result property="age" column="age"/>
|
||||
<result property="nation" column="nation"/>
|
||||
<result property="marriage" column="marriage"/>
|
||||
<result property="medicalHistoryNarrator" column="medical_history_narrator"/>
|
||||
<result property="admissionTime" column="admission_time"/>
|
||||
<result property="dischargeTime" column="discharge_time"/>
|
||||
<result property="recordTime" column="record_time"/>
|
||||
<result property="outpatientVisitInfo" column="outpatient_visit_info"/>
|
||||
<result property="hospitalizationDays" column="hospitalization_days"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="cardNo" column="card_no"/>
|
||||
<result property="patientName" column="patient_name"/>
|
||||
<result property="patientPhone" column="patient_phone"/>
|
||||
<result property="familyMemberPhone" column="family_member_phone"/>
|
||||
<result property="address" column="address"/>
|
||||
<result property="sex" column="sex"/>
|
||||
<result property="birthDate" column="birth_date"/>
|
||||
<result property="age" column="age"/>
|
||||
<result property="nation" column="nation"/>
|
||||
<result property="visitType" column="visit_type"/>
|
||||
<result property="visitDate" column="visit_date"/>
|
||||
<result property="visitName" column="visit_name"/>
|
||||
<result property="hospitalAgencyId" column="hospital_agency_id"/>
|
||||
<result property="hospitalAgencyName" column="hospital_agency_name"/>
|
||||
<result property="campusAgencyId" column="campus_agency_id"/>
|
||||
<result property="campusAgencyName" column="campus_agency_name"/>
|
||||
<result property="departmentId" column="department_id"/>
|
||||
<result property="departmentName" column="department_name"/>
|
||||
<result property="wardId" column="ward_id"/>
|
||||
<result property="wardName" column="ward_name"/>
|
||||
<result property="attendingPhysicianId" column="attending_physician_id"/>
|
||||
<result property="attendingPhysicianName" column="attending_physician_name"/>
|
||||
<result property="mainDiagnosis" column="main_diagnosis"/>
|
||||
<result property="marriage" column="marriage"/>
|
||||
<result property="medicalHistoryNarrator" column="medical_history_narrator"/>
|
||||
<result property="admissionTime" column="admission_time"/>
|
||||
<result property="dischargeTime" column="discharge_time"/>
|
||||
<result property="recordTime" column="record_time"/>
|
||||
<result property="outpatientVisitInfo" column="outpatient_visit_info"/>
|
||||
<result property="hospitalizationDays" column="hospitalization_days"/>
|
||||
<result property="inHospitalInfo" column="in_hospital_info"/>
|
||||
<result property="outHospitalInfo" column="out_hospital_info"/>
|
||||
<result property="visitSerialNumber" column="visit_serial_number"/>
|
||||
<result property="inHospitalNumber" column="in_hospital_number"/>
|
||||
<result property="responsibleNurse" column="responsible_nurse"/>
|
||||
<result property="surgicalName" column="surgical_name"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientVisitRecordVo">
|
||||
select id, patient_id, visit_dept, visit_name, visit_date, visit_type, patient_name, birthplace, sex, age, nation, marriage, medical_history_narrator, admission_time, discharge_time, record_time, outpatient_visit_info, hospitalization_days, create_by, create_time, update_by, update_time from patient_visit_record
|
||||
select id, patient_id, card_no, patient_name, patient_phone, family_member_phone, address, sex, birth_date, age, nation, visit_type, visit_date, visit_name, hospital_agency_id, hospital_agency_name, campus_agency_id, campus_agency_name, department_id, department_name, ward_id, ward_name, attending_physician_id, attending_physician_name, main_diagnosis, marriage, medical_history_narrator, admission_time, discharge_time, record_time, outpatient_visit_info, hospitalization_days, in_hospital_info, out_hospital_info, visit_serial_number, in_hospital_number, responsible_nurse, surgical_name, create_by, create_time, update_by, update_time from patient_visit_record
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientVisitRecordList" parameterType="com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto" resultMap="PatientVisitRecordResult">
|
||||
<include refid="selectPatientVisitRecordVo"/>
|
||||
<where>
|
||||
<if test="patientId != null ">
|
||||
and patient_id = #{patientId}
|
||||
</if>
|
||||
<if test="patientId != null ">
|
||||
and patient_id = #{patientId}
|
||||
</if>
|
||||
<if test="visitType != null ">
|
||||
and visit_type = #{visitType}
|
||||
</if>
|
||||
<if test="inHospitalNumber != null ">
|
||||
and in_hospital_number = #{inHospitalNumber}
|
||||
</if>
|
||||
<if test="visitDateStart != null ">
|
||||
and visit_date >= #{visitDateStart}
|
||||
</if>
|
||||
@ -227,4 +253,39 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<insert id="insertBatch">
|
||||
insert into patient_visit_record(patient_id,card_no,
|
||||
patient_name,patient_phone,family_member_phone,
|
||||
address,sex,birth_date,
|
||||
age,nation,visit_type,
|
||||
visit_date,visit_name,hospital_agency_id,
|
||||
hospital_agency_name,campus_agency_id,campus_agency_name,
|
||||
department_id,department_name,ward_id,
|
||||
ward_name,attending_physician_id,attending_physician_name,
|
||||
main_diagnosis,marriage,medical_history_narrator,
|
||||
admission_time,discharge_time,record_time,
|
||||
outpatient_visit_info,hospitalization_days,in_hospital_info,
|
||||
out_hospital_info,visit_serial_number,in_hospital_number,
|
||||
responsible_nurse,surgical_name,
|
||||
create_by,create_time,update_by,
|
||||
update_time,remark)
|
||||
values
|
||||
<foreach collection="patientVisitRecordCollection" item="item" separator=",">
|
||||
(#{item.patientId,jdbcType=NUMERIC},#{item.cardNo,jdbcType=VARCHAR},
|
||||
#{item.patientName,jdbcType=VARCHAR},#{item.patientPhone,jdbcType=VARCHAR},#{item.familyMemberPhone,jdbcType=VARCHAR},
|
||||
#{item.address,jdbcType=VARCHAR},#{item.sex,jdbcType=VARCHAR},#{item.birthDate,jdbcType=TIMESTAMP},
|
||||
#{item.age,jdbcType=NUMERIC},#{item.nation,jdbcType=VARCHAR},#{item.visitType,jdbcType=VARCHAR},
|
||||
#{item.visitDate,jdbcType=TIMESTAMP},#{item.visitName,jdbcType=VARCHAR},#{item.hospitalAgencyId,jdbcType=NUMERIC},
|
||||
#{item.hospitalAgencyName,jdbcType=VARCHAR},#{item.campusAgencyId,jdbcType=NUMERIC},#{item.campusAgencyName,jdbcType=VARCHAR},
|
||||
#{item.departmentId,jdbcType=NUMERIC},#{item.departmentName,jdbcType=VARCHAR},#{item.wardId,jdbcType=NUMERIC},
|
||||
#{item.wardName,jdbcType=VARCHAR},#{item.attendingPhysicianId,jdbcType=NUMERIC},#{item.attendingPhysicianName,jdbcType=VARCHAR},
|
||||
#{item.mainDiagnosis,jdbcType=VARCHAR},#{item.marriage,jdbcType=VARCHAR},#{item.medicalHistoryNarrator,jdbcType=VARCHAR},
|
||||
#{item.admissionTime,jdbcType=TIMESTAMP},#{item.dischargeTime,jdbcType=TIMESTAMP},#{item.recordTime,jdbcType=TIMESTAMP},
|
||||
#{item.outpatientVisitInfo,jdbcType=VARCHAR},#{item.hospitalizationDays,jdbcType=NUMERIC},#{item.inHospitalInfo,jdbcType=VARCHAR},
|
||||
#{item.outHospitalInfo,jdbcType=VARCHAR},#{item.visitSerialNumber,jdbcType=VARCHAR},#{item.inHospitalNumber,jdbcType=VARCHAR},
|
||||
#{item.responsibleNurse,jdbcType=VARCHAR},#{item.surgicalName,jdbcType=VARCHAR},
|
||||
#{item.createBy,jdbcType=VARCHAR},#{item.createTime,jdbcType=TIMESTAMP},#{item.updateBy,jdbcType=VARCHAR},
|
||||
#{item.updateTime,jdbcType=TIMESTAMP},#{item.remark,jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
@ -1,195 +1,247 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.project.ProjectMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.project.Project">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="groupId" column="group_id" jdbcType="BIGINT"/>
|
||||
<result property="groupName" column="group_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectName" column="project_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectCode" column="project_code" jdbcType="VARCHAR"/>
|
||||
<result property="projectAlias" column="project_alias" jdbcType="VARCHAR"/>
|
||||
<result property="enableStatus" column="enable_status" jdbcType="TINYINT"/>
|
||||
<result property="judgeMode" column="judge_mode" jdbcType="VARCHAR"/>
|
||||
<result property="maxValue" column="max_value" jdbcType="INTEGER"/>
|
||||
<result property="minValue" column="min_value" jdbcType="INTEGER"/>
|
||||
<result property="defaultValue" column="default_value" jdbcType="VARCHAR"/>
|
||||
<result property="lisCompare" column="lis_compare" jdbcType="VARCHAR"/>
|
||||
<result property="projectSort" column="project_sort" jdbcType="INTEGER"/>
|
||||
<result property="projectRemark" column="project_remark" jdbcType="VARCHAR"/>
|
||||
<result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<resultMap type="Project" id="ProjectResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="groupId" column="group_id"/>
|
||||
<result property="groupName" column="group_name"/>
|
||||
<result property="projectName" column="project_name"/>
|
||||
<result property="projectCode" column="project_code"/>
|
||||
<result property="projectAlias" column="project_alias"/>
|
||||
<result property="enableStatus" column="enable_status"/>
|
||||
<result property="judgeMode" column="judge_mode"/>
|
||||
<result property="maxValue" column="max_value"/>
|
||||
<result property="minValue" column="min_value"/>
|
||||
<result property="defaultValue" column="default_value"/>
|
||||
<result property="lisCompare" column="lis_compare"/>
|
||||
<result property="projectUnit" column="project_unit"/>
|
||||
<result property="projectSort" column="project_sort"/>
|
||||
<result property="projectRemark" column="project_remark"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,group_id,group_name,
|
||||
project_name,project_code,project_alias,
|
||||
enable_status,judge_mode,max_value,
|
||||
min_value,default_value,lis_compare,
|
||||
project_sort,project_remark,del_flag,
|
||||
create_by,create_time,update_by,
|
||||
update_time
|
||||
<sql id="selectProjectVo">
|
||||
select id, group_id, group_name, project_name, project_code, project_alias, enable_status, judge_mode, max_value, min_value, default_value, lis_compare, project_unit, project_sort, project_remark, del_flag, create_by, create_time, update_by, update_time from project
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from project
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
<select id="selectProjectList" parameterType="Project" resultMap="ProjectResult">
|
||||
<include refid="selectProjectVo"/>
|
||||
<where>
|
||||
<if test="groupId != null ">
|
||||
and group_id = #{groupId}
|
||||
</if>
|
||||
<if test="groupName != null and groupName != ''">
|
||||
and group_name like concat('%', #{groupName}, '%')
|
||||
</if>
|
||||
<if test="projectName != null and projectName != ''">
|
||||
and project_name like concat('%', #{projectName}, '%')
|
||||
</if>
|
||||
<if test="projectCode != null and projectCode != ''">
|
||||
and project_code = #{projectCode}
|
||||
</if>
|
||||
<if test="projectAlias != null and projectAlias != ''">
|
||||
and project_alias = #{projectAlias}
|
||||
</if>
|
||||
<if test="enableStatus != null ">
|
||||
and enable_status = #{enableStatus}
|
||||
</if>
|
||||
<if test="judgeMode != null and judgeMode != ''">
|
||||
and judge_mode = #{judgeMode}
|
||||
</if>
|
||||
<if test="maxValue != null ">
|
||||
and max_value = #{maxValue}
|
||||
</if>
|
||||
<if test="minValue != null ">
|
||||
and min_value = #{minValue}
|
||||
</if>
|
||||
<if test="defaultValue != null and defaultValue != ''">
|
||||
and default_value = #{defaultValue}
|
||||
</if>
|
||||
<if test="lisCompare != null and lisCompare != ''">
|
||||
and lis_compare = #{lisCompare}
|
||||
</if>
|
||||
<if test="projectUnit != null and projectUnit != ''">
|
||||
and project_unit = #{projectUnit}
|
||||
</if>
|
||||
<if test="projectSort != null ">
|
||||
and project_sort = #{projectSort}
|
||||
</if>
|
||||
<if test="projectRemark != null and projectRemark != ''">
|
||||
and project_remark = #{projectRemark}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from project
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.project.Project" useGeneratedKeys="true">
|
||||
insert into project
|
||||
( id,group_id,group_name
|
||||
,project_name,project_code,project_alias
|
||||
,enable_status,judge_mode,max_value
|
||||
,min_value,default_value,lis_compare
|
||||
,project_sort,project_remark,del_flag
|
||||
,create_by,create_time,update_by
|
||||
,update_time)
|
||||
values (#{id,jdbcType=BIGINT},#{groupId,jdbcType=BIGINT},#{groupName,jdbcType=VARCHAR}
|
||||
,#{projectName,jdbcType=VARCHAR},#{projectCode,jdbcType=VARCHAR},#{projectAlias,jdbcType=VARCHAR}
|
||||
,#{enableStatus,jdbcType=TINYINT},#{judgeMode,jdbcType=VARCHAR},#{maxValue,jdbcType=INTEGER}
|
||||
,#{minValue,jdbcType=INTEGER},#{defaultValue,jdbcType=VARCHAR},#{lisCompare,jdbcType=VARCHAR}
|
||||
,#{projectSort,jdbcType=INTEGER},#{projectRemark,jdbcType=VARCHAR},#{delFlag,jdbcType=TINYINT}
|
||||
,#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR}
|
||||
,#{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.project.Project" useGeneratedKeys="true">
|
||||
<select id="selectProjectById" parameterType="Long"
|
||||
resultMap="ProjectResult">
|
||||
<include refid="selectProjectVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertProject" parameterType="Project" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into project
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="groupId != null">group_id,</if>
|
||||
<if test="groupName != null">group_name,</if>
|
||||
<if test="projectName != null">project_name,</if>
|
||||
<if test="projectCode != null">project_code,</if>
|
||||
<if test="projectAlias != null">project_alias,</if>
|
||||
<if test="enableStatus != null">enable_status,</if>
|
||||
<if test="judgeMode != null">judge_mode,</if>
|
||||
<if test="maxValue != null">max_value,</if>
|
||||
<if test="minValue != null">min_value,</if>
|
||||
<if test="defaultValue != null">default_value,</if>
|
||||
<if test="lisCompare != null">lis_compare,</if>
|
||||
<if test="projectSort != null">project_sort,</if>
|
||||
<if test="projectRemark != null">project_remark,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="groupId != null">group_id,
|
||||
</if>
|
||||
<if test="groupName != null">group_name,
|
||||
</if>
|
||||
<if test="projectName != null">project_name,
|
||||
</if>
|
||||
<if test="projectCode != null">project_code,
|
||||
</if>
|
||||
<if test="projectAlias != null">project_alias,
|
||||
</if>
|
||||
<if test="enableStatus != null">enable_status,
|
||||
</if>
|
||||
<if test="judgeMode != null">judge_mode,
|
||||
</if>
|
||||
<if test="maxValue != null">max_value,
|
||||
</if>
|
||||
<if test="minValue != null">min_value,
|
||||
</if>
|
||||
<if test="defaultValue != null">default_value,
|
||||
</if>
|
||||
<if test="lisCompare != null">lis_compare,
|
||||
</if>
|
||||
<if test="projectUnit != null">project_unit,
|
||||
</if>
|
||||
<if test="projectSort != null">project_sort,
|
||||
</if>
|
||||
<if test="projectRemark != null">project_remark,
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
||||
<if test="groupId != null">#{groupId,jdbcType=BIGINT},</if>
|
||||
<if test="groupName != null">#{groupName,jdbcType=VARCHAR},</if>
|
||||
<if test="projectName != null">#{projectName,jdbcType=VARCHAR},</if>
|
||||
<if test="projectCode != null">#{projectCode,jdbcType=VARCHAR},</if>
|
||||
<if test="projectAlias != null">#{projectAlias,jdbcType=VARCHAR},</if>
|
||||
<if test="enableStatus != null">#{enableStatus,jdbcType=TINYINT},</if>
|
||||
<if test="judgeMode != null">#{judgeMode,jdbcType=VARCHAR},</if>
|
||||
<if test="maxValue != null">#{maxValue,jdbcType=INTEGER},</if>
|
||||
<if test="minValue != null">#{minValue,jdbcType=INTEGER},</if>
|
||||
<if test="defaultValue != null">#{defaultValue,jdbcType=VARCHAR},</if>
|
||||
<if test="lisCompare != null">#{lisCompare,jdbcType=VARCHAR},</if>
|
||||
<if test="projectSort != null">#{projectSort,jdbcType=INTEGER},</if>
|
||||
<if test="projectRemark != null">#{projectRemark,jdbcType=VARCHAR},</if>
|
||||
<if test="delFlag != null">#{delFlag,jdbcType=TINYINT},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateBy != null">#{updateBy,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="groupId != null">#{groupId},
|
||||
</if>
|
||||
<if test="groupName != null">#{groupName},
|
||||
</if>
|
||||
<if test="projectName != null">#{projectName},
|
||||
</if>
|
||||
<if test="projectCode != null">#{projectCode},
|
||||
</if>
|
||||
<if test="projectAlias != null">#{projectAlias},
|
||||
</if>
|
||||
<if test="enableStatus != null">#{enableStatus},
|
||||
</if>
|
||||
<if test="judgeMode != null">#{judgeMode},
|
||||
</if>
|
||||
<if test="maxValue != null">#{maxValue},
|
||||
</if>
|
||||
<if test="minValue != null">#{minValue},
|
||||
</if>
|
||||
<if test="defaultValue != null">#{defaultValue},
|
||||
</if>
|
||||
<if test="lisCompare != null">#{lisCompare},
|
||||
</if>
|
||||
<if test="projectUnit != null">#{projectUnit},
|
||||
</if>
|
||||
<if test="projectSort != null">#{projectSort},
|
||||
</if>
|
||||
<if test="projectRemark != null">#{projectRemark},
|
||||
</if>
|
||||
<if test="delFlag != null">#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.project.Project">
|
||||
|
||||
<update id="updateProject" parameterType="Project">
|
||||
update project
|
||||
<set>
|
||||
<if test="groupId != null">
|
||||
group_id = #{groupId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="groupName != null">
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectName != null">
|
||||
project_name = #{projectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectCode != null">
|
||||
project_code = #{projectCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectAlias != null">
|
||||
project_alias = #{projectAlias,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="enableStatus != null">
|
||||
enable_status = #{enableStatus,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="judgeMode != null">
|
||||
judge_mode = #{judgeMode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maxValue != null">
|
||||
max_value = #{maxValue,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="minValue != null">
|
||||
min_value = #{minValue,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="defaultValue != null">
|
||||
default_value = #{defaultValue,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lisCompare != null">
|
||||
lis_compare = #{lisCompare,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectSort != null">
|
||||
project_sort = #{projectSort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="projectRemark != null">
|
||||
project_remark = #{projectRemark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="groupId != null">group_id =
|
||||
#{groupId},
|
||||
</if>
|
||||
<if test="groupName != null">group_name =
|
||||
#{groupName},
|
||||
</if>
|
||||
<if test="projectName != null">project_name =
|
||||
#{projectName},
|
||||
</if>
|
||||
<if test="projectCode != null">project_code =
|
||||
#{projectCode},
|
||||
</if>
|
||||
<if test="projectAlias != null">project_alias =
|
||||
#{projectAlias},
|
||||
</if>
|
||||
<if test="enableStatus != null">enable_status =
|
||||
#{enableStatus},
|
||||
</if>
|
||||
<if test="judgeMode != null">judge_mode =
|
||||
#{judgeMode},
|
||||
</if>
|
||||
<if test="maxValue != null">max_value =
|
||||
#{maxValue},
|
||||
</if>
|
||||
<if test="minValue != null">min_value =
|
||||
#{minValue},
|
||||
</if>
|
||||
<if test="defaultValue != null">default_value =
|
||||
#{defaultValue},
|
||||
</if>
|
||||
<if test="lisCompare != null">lis_compare =
|
||||
#{lisCompare},
|
||||
</if>
|
||||
<if test="projectUnit != null">project_unit =
|
||||
#{projectUnit},
|
||||
</if>
|
||||
<if test="projectSort != null">project_sort =
|
||||
#{projectSort},
|
||||
</if>
|
||||
<if test="projectRemark != null">project_remark =
|
||||
#{projectRemark},
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag =
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.project.Project">
|
||||
update project
|
||||
set
|
||||
group_id = #{groupId,jdbcType=BIGINT},
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
project_name = #{projectName,jdbcType=VARCHAR},
|
||||
project_code = #{projectCode,jdbcType=VARCHAR},
|
||||
project_alias = #{projectAlias,jdbcType=VARCHAR},
|
||||
enable_status = #{enableStatus,jdbcType=TINYINT},
|
||||
judge_mode = #{judgeMode,jdbcType=VARCHAR},
|
||||
max_value = #{maxValue,jdbcType=INTEGER},
|
||||
min_value = #{minValue,jdbcType=INTEGER},
|
||||
default_value = #{defaultValue,jdbcType=VARCHAR},
|
||||
lis_compare = #{lisCompare,jdbcType=VARCHAR},
|
||||
project_sort = #{projectSort,jdbcType=INTEGER},
|
||||
project_remark = #{projectRemark,jdbcType=VARCHAR},
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
<delete id="deleteProjectById" parameterType="Long">
|
||||
delete from project where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteProjectByIds" parameterType="String">
|
||||
delete from project where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,178 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.projectbatch.ProjectBatchMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.projectbatch.ProjectBatch">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="patientId" column="patient_id" jdbcType="BIGINT"/>
|
||||
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
||||
<result property="patientPhone" column="patient_phone" jdbcType="VARCHAR"/>
|
||||
<result property="birthDate" column="birth_date" jdbcType="DATE"/>
|
||||
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
|
||||
<result property="sex" column="sex" jdbcType="VARCHAR"/>
|
||||
<result property="batchName" column="batch_name" jdbcType="VARCHAR"/>
|
||||
<result property="batchCode" column="batch_code" jdbcType="VARCHAR"/>
|
||||
<result property="batchSort" column="batch_sort" jdbcType="INTEGER"/>
|
||||
<result property="batchRemark" column="batch_remark" jdbcType="VARCHAR"/>
|
||||
<result property="batchDate" column="batch_date" jdbcType="TIMESTAMP"/>
|
||||
<result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,patient_id,patient_name,
|
||||
patient_phone,birth_date,card_no,
|
||||
sex,batch_name,batch_code,
|
||||
batch_sort,batch_remark,batch_date,
|
||||
del_flag,create_by,create_time,
|
||||
update_by,update_time
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from project_batch
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from project_batch
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectbatch.ProjectBatch" useGeneratedKeys="true">
|
||||
insert into project_batch
|
||||
( id,patient_id,patient_name
|
||||
,patient_phone,birth_date,card_no
|
||||
,sex,batch_name,batch_code
|
||||
,batch_sort,batch_remark,batch_date
|
||||
,del_flag,create_by,create_time
|
||||
,update_by,update_time)
|
||||
values (#{id,jdbcType=BIGINT},#{patientId,jdbcType=BIGINT},#{patientName,jdbcType=VARCHAR}
|
||||
,#{patientPhone,jdbcType=VARCHAR},#{birthDate,jdbcType=DATE},#{cardNo,jdbcType=VARCHAR}
|
||||
,#{sex,jdbcType=VARCHAR},#{batchName,jdbcType=VARCHAR},#{batchCode,jdbcType=VARCHAR}
|
||||
,#{batchSort,jdbcType=INTEGER},#{batchRemark,jdbcType=VARCHAR},#{batchDate,jdbcType=TIMESTAMP}
|
||||
,#{delFlag,jdbcType=TINYINT},#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}
|
||||
,#{updateBy,jdbcType=VARCHAR},#{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectbatch.ProjectBatch" useGeneratedKeys="true">
|
||||
insert into project_batch
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="patientId != null">patient_id,</if>
|
||||
<if test="patientName != null">patient_name,</if>
|
||||
<if test="patientPhone != null">patient_phone,</if>
|
||||
<if test="birthDate != null">birth_date,</if>
|
||||
<if test="cardNo != null">card_no,</if>
|
||||
<if test="sex != null">sex,</if>
|
||||
<if test="batchName != null">batch_name,</if>
|
||||
<if test="batchCode != null">batch_code,</if>
|
||||
<if test="batchSort != null">batch_sort,</if>
|
||||
<if test="batchRemark != null">batch_remark,</if>
|
||||
<if test="batchDate != null">batch_date,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
||||
<if test="patientId != null">#{patientId,jdbcType=BIGINT},</if>
|
||||
<if test="patientName != null">#{patientName,jdbcType=VARCHAR},</if>
|
||||
<if test="patientPhone != null">#{patientPhone,jdbcType=VARCHAR},</if>
|
||||
<if test="birthDate != null">#{birthDate,jdbcType=DATE},</if>
|
||||
<if test="cardNo != null">#{cardNo,jdbcType=VARCHAR},</if>
|
||||
<if test="sex != null">#{sex,jdbcType=VARCHAR},</if>
|
||||
<if test="batchName != null">#{batchName,jdbcType=VARCHAR},</if>
|
||||
<if test="batchCode != null">#{batchCode,jdbcType=VARCHAR},</if>
|
||||
<if test="batchSort != null">#{batchSort,jdbcType=INTEGER},</if>
|
||||
<if test="batchRemark != null">#{batchRemark,jdbcType=VARCHAR},</if>
|
||||
<if test="batchDate != null">#{batchDate,jdbcType=TIMESTAMP},</if>
|
||||
<if test="delFlag != null">#{delFlag,jdbcType=TINYINT},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateBy != null">#{updateBy,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectbatch.ProjectBatch">
|
||||
update project_batch
|
||||
<set>
|
||||
<if test="patientId != null">
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="patientName != null">
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="patientPhone != null">
|
||||
patient_phone = #{patientPhone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="birthDate != null">
|
||||
birth_date = #{birthDate,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="cardNo != null">
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sex != null">
|
||||
sex = #{sex,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="batchName != null">
|
||||
batch_name = #{batchName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="batchCode != null">
|
||||
batch_code = #{batchCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="batchSort != null">
|
||||
batch_sort = #{batchSort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="batchRemark != null">
|
||||
batch_remark = #{batchRemark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="batchDate != null">
|
||||
batch_date = #{batchDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.projectbatch.ProjectBatch">
|
||||
update project_batch
|
||||
set
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
patient_phone = #{patientPhone,jdbcType=VARCHAR},
|
||||
birth_date = #{birthDate,jdbcType=DATE},
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
sex = #{sex,jdbcType=VARCHAR},
|
||||
batch_name = #{batchName,jdbcType=VARCHAR},
|
||||
batch_code = #{batchCode,jdbcType=VARCHAR},
|
||||
batch_sort = #{batchSort,jdbcType=INTEGER},
|
||||
batch_remark = #{batchRemark,jdbcType=VARCHAR},
|
||||
batch_date = #{batchDate,jdbcType=TIMESTAMP},
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -1,178 +1,217 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.projectdevice.ProjectDeviceMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.projectdevice.ProjectDevice">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="patientId" column="patient_id" jdbcType="BIGINT"/>
|
||||
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
||||
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
|
||||
<result property="deviceType" column="device_type" jdbcType="VARCHAR"/>
|
||||
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
|
||||
<result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
|
||||
<result property="deviceStatus" column="device_status" jdbcType="VARCHAR"/>
|
||||
<result property="deviceRemark" column="device_remark" jdbcType="VARCHAR"/>
|
||||
<result property="deviceBindTime" column="device_bind_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="deviceUnbindTime" column="device_unbind_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="deviceIp" column="device_ip" jdbcType="VARCHAR"/>
|
||||
<result property="devicePort" column="device_port" jdbcType="INTEGER"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<resultMap type="ProjectDevice" id="ProjectDeviceResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="patientName" column="patient_name"/>
|
||||
<result property="cardNo" column="card_no"/>
|
||||
<result property="deviceType" column="device_type"/>
|
||||
<result property="deviceName" column="device_name"/>
|
||||
<result property="deviceCode" column="device_code"/>
|
||||
<result property="deviceStatus" column="device_status"/>
|
||||
<result property="deviceRemark" column="device_remark"/>
|
||||
<result property="deviceBindTime" column="device_bind_time"/>
|
||||
<result property="deviceUnbindTime" column="device_unbind_time"/>
|
||||
<result property="deviceIp" column="device_ip"/>
|
||||
<result property="devicePort" column="device_port"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,patient_id,patient_name,
|
||||
card_no,device_type,device_name,
|
||||
device_code,device_status,device_remark,
|
||||
device_bind_time,device_unbind_time,device_ip,
|
||||
device_port,create_by,create_time,
|
||||
update_by,update_time
|
||||
<sql id="selectProjectDeviceVo">
|
||||
select id, patient_id, patient_name, card_no, device_type, device_name, device_code, device_status, device_remark, device_bind_time, device_unbind_time, device_ip, device_port, create_by, create_time, update_by, update_time from project_device
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from project_device
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
<select id="selectProjectDeviceList" parameterType="ProjectDevice" resultMap="ProjectDeviceResult">
|
||||
<include refid="selectProjectDeviceVo"/>
|
||||
<where>
|
||||
<if test="patientId != null ">
|
||||
and patient_id = #{patientId}
|
||||
</if>
|
||||
<if test="patientName != null and patientName != ''">
|
||||
and patient_name like concat('%', #{patientName}, '%')
|
||||
</if>
|
||||
<if test="cardNo != null and cardNo != ''">
|
||||
and card_no = #{cardNo}
|
||||
</if>
|
||||
<if test="deviceType != null and deviceType != ''">
|
||||
and device_type = #{deviceType}
|
||||
</if>
|
||||
<if test="deviceName != null and deviceName != ''">
|
||||
and device_name like concat('%', #{deviceName}, '%')
|
||||
</if>
|
||||
<if test="deviceCode != null and deviceCode != ''">
|
||||
and device_code = #{deviceCode}
|
||||
</if>
|
||||
<if test="deviceStatus != null and deviceStatus != ''">
|
||||
and device_status = #{deviceStatus}
|
||||
</if>
|
||||
<if test="deviceRemark != null and deviceRemark != ''">
|
||||
and device_remark = #{deviceRemark}
|
||||
</if>
|
||||
<if test="deviceBindTime != null ">
|
||||
and device_bind_time = #{deviceBindTime}
|
||||
</if>
|
||||
<if test="deviceUnbindTime != null ">
|
||||
and device_unbind_time = #{deviceUnbindTime}
|
||||
</if>
|
||||
<if test="deviceIp != null and deviceIp != ''">
|
||||
and device_ip = #{deviceIp}
|
||||
</if>
|
||||
<if test="devicePort != null ">
|
||||
and device_port = #{devicePort}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from project_device
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectdevice.ProjectDevice" useGeneratedKeys="true">
|
||||
insert into project_device
|
||||
( id,patient_id,patient_name
|
||||
,card_no,device_type,device_name
|
||||
,device_code,device_status,device_remark
|
||||
,device_bind_time,device_unbind_time,device_ip
|
||||
,device_port,create_by,create_time
|
||||
,update_by,update_time)
|
||||
values (#{id,jdbcType=BIGINT},#{patientId,jdbcType=BIGINT},#{patientName,jdbcType=VARCHAR}
|
||||
,#{cardNo,jdbcType=VARCHAR},#{deviceType,jdbcType=VARCHAR},#{deviceName,jdbcType=VARCHAR}
|
||||
,#{deviceCode,jdbcType=VARCHAR},#{deviceStatus,jdbcType=VARCHAR},#{deviceRemark,jdbcType=VARCHAR}
|
||||
,#{deviceBindTime,jdbcType=TIMESTAMP},#{deviceUnbindTime,jdbcType=TIMESTAMP},#{deviceIp,jdbcType=VARCHAR}
|
||||
,#{devicePort,jdbcType=INTEGER},#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}
|
||||
,#{updateBy,jdbcType=VARCHAR},#{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectdevice.ProjectDevice" useGeneratedKeys="true">
|
||||
<select id="selectProjectDeviceById" parameterType="Long"
|
||||
resultMap="ProjectDeviceResult">
|
||||
<include refid="selectProjectDeviceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertProjectDevice" parameterType="ProjectDevice" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into project_device
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="patientId != null">patient_id,</if>
|
||||
<if test="patientName != null">patient_name,</if>
|
||||
<if test="cardNo != null">card_no,</if>
|
||||
<if test="deviceType != null">device_type,</if>
|
||||
<if test="deviceName != null">device_name,</if>
|
||||
<if test="deviceCode != null">device_code,</if>
|
||||
<if test="deviceStatus != null">device_status,</if>
|
||||
<if test="deviceRemark != null">device_remark,</if>
|
||||
<if test="deviceBindTime != null">device_bind_time,</if>
|
||||
<if test="deviceUnbindTime != null">device_unbind_time,</if>
|
||||
<if test="deviceIp != null">device_ip,</if>
|
||||
<if test="devicePort != null">device_port,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="patientId != null">patient_id,
|
||||
</if>
|
||||
<if test="patientName != null">patient_name,
|
||||
</if>
|
||||
<if test="cardNo != null">card_no,
|
||||
</if>
|
||||
<if test="deviceType != null">device_type,
|
||||
</if>
|
||||
<if test="deviceName != null">device_name,
|
||||
</if>
|
||||
<if test="deviceCode != null">device_code,
|
||||
</if>
|
||||
<if test="deviceStatus != null">device_status,
|
||||
</if>
|
||||
<if test="deviceRemark != null">device_remark,
|
||||
</if>
|
||||
<if test="deviceBindTime != null">device_bind_time,
|
||||
</if>
|
||||
<if test="deviceUnbindTime != null">device_unbind_time,
|
||||
</if>
|
||||
<if test="deviceIp != null">device_ip,
|
||||
</if>
|
||||
<if test="devicePort != null">device_port,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
||||
<if test="patientId != null">#{patientId,jdbcType=BIGINT},</if>
|
||||
<if test="patientName != null">#{patientName,jdbcType=VARCHAR},</if>
|
||||
<if test="cardNo != null">#{cardNo,jdbcType=VARCHAR},</if>
|
||||
<if test="deviceType != null">#{deviceType,jdbcType=VARCHAR},</if>
|
||||
<if test="deviceName != null">#{deviceName,jdbcType=VARCHAR},</if>
|
||||
<if test="deviceCode != null">#{deviceCode,jdbcType=VARCHAR},</if>
|
||||
<if test="deviceStatus != null">#{deviceStatus,jdbcType=VARCHAR},</if>
|
||||
<if test="deviceRemark != null">#{deviceRemark,jdbcType=VARCHAR},</if>
|
||||
<if test="deviceBindTime != null">#{deviceBindTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="deviceUnbindTime != null">#{deviceUnbindTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="deviceIp != null">#{deviceIp,jdbcType=VARCHAR},</if>
|
||||
<if test="devicePort != null">#{devicePort,jdbcType=INTEGER},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateBy != null">#{updateBy,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="patientId != null">#{patientId},
|
||||
</if>
|
||||
<if test="patientName != null">#{patientName},
|
||||
</if>
|
||||
<if test="cardNo != null">#{cardNo},
|
||||
</if>
|
||||
<if test="deviceType != null">#{deviceType},
|
||||
</if>
|
||||
<if test="deviceName != null">#{deviceName},
|
||||
</if>
|
||||
<if test="deviceCode != null">#{deviceCode},
|
||||
</if>
|
||||
<if test="deviceStatus != null">#{deviceStatus},
|
||||
</if>
|
||||
<if test="deviceRemark != null">#{deviceRemark},
|
||||
</if>
|
||||
<if test="deviceBindTime != null">#{deviceBindTime},
|
||||
</if>
|
||||
<if test="deviceUnbindTime != null">#{deviceUnbindTime},
|
||||
</if>
|
||||
<if test="deviceIp != null">#{deviceIp},
|
||||
</if>
|
||||
<if test="devicePort != null">#{devicePort},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectdevice.ProjectDevice">
|
||||
|
||||
<update id="updateProjectDevice" parameterType="ProjectDevice">
|
||||
update project_device
|
||||
<set>
|
||||
<if test="patientId != null">
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="patientName != null">
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cardNo != null">
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceType != null">
|
||||
device_type = #{deviceType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceName != null">
|
||||
device_name = #{deviceName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceCode != null">
|
||||
device_code = #{deviceCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceStatus != null">
|
||||
device_status = #{deviceStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceRemark != null">
|
||||
device_remark = #{deviceRemark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceBindTime != null">
|
||||
device_bind_time = #{deviceBindTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="deviceUnbindTime != null">
|
||||
device_unbind_time = #{deviceUnbindTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="deviceIp != null">
|
||||
device_ip = #{deviceIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="devicePort != null">
|
||||
device_port = #{devicePort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id =
|
||||
#{patientId},
|
||||
</if>
|
||||
<if test="patientName != null">patient_name =
|
||||
#{patientName},
|
||||
</if>
|
||||
<if test="cardNo != null">card_no =
|
||||
#{cardNo},
|
||||
</if>
|
||||
<if test="deviceType != null">device_type =
|
||||
#{deviceType},
|
||||
</if>
|
||||
<if test="deviceName != null">device_name =
|
||||
#{deviceName},
|
||||
</if>
|
||||
<if test="deviceCode != null">device_code =
|
||||
#{deviceCode},
|
||||
</if>
|
||||
<if test="deviceStatus != null">device_status =
|
||||
#{deviceStatus},
|
||||
</if>
|
||||
<if test="deviceRemark != null">device_remark =
|
||||
#{deviceRemark},
|
||||
</if>
|
||||
<if test="deviceBindTime != null">device_bind_time =
|
||||
#{deviceBindTime},
|
||||
</if>
|
||||
<if test="deviceUnbindTime != null">device_unbind_time =
|
||||
#{deviceUnbindTime},
|
||||
</if>
|
||||
<if test="deviceIp != null">device_ip =
|
||||
#{deviceIp},
|
||||
</if>
|
||||
<if test="devicePort != null">device_port =
|
||||
#{devicePort},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.projectdevice.ProjectDevice">
|
||||
update project_device
|
||||
set
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
device_type = #{deviceType,jdbcType=VARCHAR},
|
||||
device_name = #{deviceName,jdbcType=VARCHAR},
|
||||
device_code = #{deviceCode,jdbcType=VARCHAR},
|
||||
device_status = #{deviceStatus,jdbcType=VARCHAR},
|
||||
device_remark = #{deviceRemark,jdbcType=VARCHAR},
|
||||
device_bind_time = #{deviceBindTime,jdbcType=TIMESTAMP},
|
||||
device_unbind_time = #{deviceUnbindTime,jdbcType=TIMESTAMP},
|
||||
device_ip = #{deviceIp,jdbcType=VARCHAR},
|
||||
device_port = #{devicePort,jdbcType=INTEGER},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
<delete id="deleteProjectDeviceById" parameterType="Long">
|
||||
delete from project_device where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteProjectDeviceByIds" parameterType="String">
|
||||
delete from project_device where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -1,139 +1,169 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.projectgroup.ProjectGroupMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.projectgroup.ProjectGroup">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="parentId" column="parent_id" jdbcType="BIGINT"/>
|
||||
<result property="groupName" column="group_name" jdbcType="VARCHAR"/>
|
||||
<result property="groupCode" column="group_code" jdbcType="VARCHAR"/>
|
||||
<result property="enableStatus" column="enable_status" jdbcType="TINYINT"/>
|
||||
<result property="groupSort" column="group_sort" jdbcType="INTEGER"/>
|
||||
<result property="groupRemark" column="group_remark" jdbcType="VARCHAR"/>
|
||||
<result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<resultMap type="ProjectGroup" id="ProjectGroupResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="parentId" column="parent_id"/>
|
||||
<result property="groupName" column="group_name"/>
|
||||
<result property="groupCode" column="group_code"/>
|
||||
<result property="enableStatus" column="enable_status"/>
|
||||
<result property="groupSort" column="group_sort"/>
|
||||
<result property="groupRemark" column="group_remark"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,parent_id,group_name,
|
||||
group_code,enable_status,group_sort,
|
||||
group_remark,del_flag,create_by,
|
||||
create_time,update_by,update_time
|
||||
<sql id="selectProjectGroupVo">
|
||||
select id, parent_id, group_name, group_code, enable_status, group_sort, group_remark, del_flag, create_by, create_time, update_by, update_time from project_group
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from project_group
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
<select id="selectProjectGroupList" parameterType="ProjectGroup" resultMap="ProjectGroupResult">
|
||||
<include refid="selectProjectGroupVo"/>
|
||||
<where>
|
||||
del_flag = 0
|
||||
<if test="parentId != null ">
|
||||
and parent_id = #{parentId}
|
||||
</if>
|
||||
<if test="groupName != null and groupName != ''">
|
||||
and group_name like concat('%', #{groupName}, '%')
|
||||
</if>
|
||||
<if test="groupCode != null and groupCode != ''">
|
||||
and group_code = #{groupCode}
|
||||
</if>
|
||||
<if test="enableStatus != null ">
|
||||
and enable_status = #{enableStatus}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from project_group
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectgroup.ProjectGroup" useGeneratedKeys="true">
|
||||
insert into project_group
|
||||
( id,parent_id,group_name
|
||||
,group_code,enable_status,group_sort
|
||||
,group_remark,del_flag,create_by
|
||||
,create_time,update_by,update_time
|
||||
)
|
||||
values (#{id,jdbcType=BIGINT},#{parentId,jdbcType=BIGINT},#{groupName,jdbcType=VARCHAR}
|
||||
,#{groupCode,jdbcType=VARCHAR},#{enableStatus,jdbcType=TINYINT},#{groupSort,jdbcType=INTEGER}
|
||||
,#{groupRemark,jdbcType=VARCHAR},#{delFlag,jdbcType=TINYINT},#{createBy,jdbcType=VARCHAR}
|
||||
,#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR},#{updateTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectgroup.ProjectGroup" useGeneratedKeys="true">
|
||||
<select id="selectProjectGroupById" parameterType="Long"
|
||||
resultMap="ProjectGroupResult">
|
||||
<include refid="selectProjectGroupVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertProjectGroup" parameterType="ProjectGroup" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into project_group
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="groupName != null">group_name,</if>
|
||||
<if test="groupCode != null">group_code,</if>
|
||||
<if test="enableStatus != null">enable_status,</if>
|
||||
<if test="groupSort != null">group_sort,</if>
|
||||
<if test="groupRemark != null">group_remark,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="parentId != null">parent_id,
|
||||
</if>
|
||||
<if test="groupName != null">group_name,
|
||||
</if>
|
||||
<if test="groupCode != null">group_code,
|
||||
</if>
|
||||
<if test="enableStatus != null">enable_status,
|
||||
</if>
|
||||
<if test="groupSort != null">group_sort,
|
||||
</if>
|
||||
<if test="groupRemark != null">group_remark,
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
||||
<if test="parentId != null">#{parentId,jdbcType=BIGINT},</if>
|
||||
<if test="groupName != null">#{groupName,jdbcType=VARCHAR},</if>
|
||||
<if test="groupCode != null">#{groupCode,jdbcType=VARCHAR},</if>
|
||||
<if test="enableStatus != null">#{enableStatus,jdbcType=TINYINT},</if>
|
||||
<if test="groupSort != null">#{groupSort,jdbcType=INTEGER},</if>
|
||||
<if test="groupRemark != null">#{groupRemark,jdbcType=VARCHAR},</if>
|
||||
<if test="delFlag != null">#{delFlag,jdbcType=TINYINT},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateBy != null">#{updateBy,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="parentId != null">#{parentId},
|
||||
</if>
|
||||
<if test="groupName != null">#{groupName},
|
||||
</if>
|
||||
<if test="groupCode != null">#{groupCode},
|
||||
</if>
|
||||
<if test="enableStatus != null">#{enableStatus},
|
||||
</if>
|
||||
<if test="groupSort != null">#{groupSort},
|
||||
</if>
|
||||
<if test="groupRemark != null">#{groupRemark},
|
||||
</if>
|
||||
<if test="delFlag != null">#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectgroup.ProjectGroup">
|
||||
|
||||
<update id="updateProjectGroup" parameterType="ProjectGroup">
|
||||
update project_group
|
||||
<set>
|
||||
<if test="parentId != null">
|
||||
parent_id = #{parentId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="groupName != null">
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="groupCode != null">
|
||||
group_code = #{groupCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="enableStatus != null">
|
||||
enable_status = #{enableStatus,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="groupSort != null">
|
||||
group_sort = #{groupSort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="groupRemark != null">
|
||||
group_remark = #{groupRemark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="parentId != null">parent_id =
|
||||
#{parentId},
|
||||
</if>
|
||||
<if test="groupName != null">group_name =
|
||||
#{groupName},
|
||||
</if>
|
||||
<if test="groupCode != null">group_code =
|
||||
#{groupCode},
|
||||
</if>
|
||||
<if test="enableStatus != null">enable_status =
|
||||
#{enableStatus},
|
||||
</if>
|
||||
<if test="groupSort != null">group_sort =
|
||||
#{groupSort},
|
||||
</if>
|
||||
<if test="groupRemark != null">group_remark =
|
||||
#{groupRemark},
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag =
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.projectgroup.ProjectGroup">
|
||||
update project_group
|
||||
set
|
||||
parent_id = #{parentId,jdbcType=BIGINT},
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
group_code = #{groupCode,jdbcType=VARCHAR},
|
||||
enable_status = #{enableStatus,jdbcType=TINYINT},
|
||||
group_sort = #{groupSort,jdbcType=INTEGER},
|
||||
group_remark = #{groupRemark,jdbcType=VARCHAR},
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
|
||||
<update id="deleteProjectGroupById" parameterType="Long">
|
||||
update project_group set del_flag = 1 where id = #{id}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
<update id="deleteProjectGroupByIds" parameterType="String">
|
||||
update project_group set del_flag = 1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
<insert id="insertBatch">
|
||||
insert into project_group(parent_id,group_name,
|
||||
group_code,enable_status,group_sort,
|
||||
group_remark,del_flag,
|
||||
create_by,create_time,update_by,
|
||||
update_time)
|
||||
values
|
||||
<foreach collection="projectGroupList" item="item" separator=",">
|
||||
(#{item.parentId,jdbcType=NUMERIC},#{item.groupName,jdbcType=VARCHAR},
|
||||
#{item.groupCode,jdbcType=VARCHAR},#{item.enableStatus,jdbcType=NUMERIC},#{item.groupSort,jdbcType=NUMERIC},
|
||||
#{item.groupRemark,jdbcType=VARCHAR},#{item.delFlag,jdbcType=NUMERIC},
|
||||
#{item.createBy,jdbcType=VARCHAR},#{item.createTime,jdbcType=TIMESTAMP},#{item.updateBy,jdbcType=VARCHAR},
|
||||
#{item.updateTime,jdbcType=TIMESTAMP})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
@ -2,87 +2,96 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.projectlastrecord.ProjectLastRecordMapper">
|
||||
<mapper namespace="com.xinelu.manage.mapper.projectlastresult.ProjectLastResultMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.projectlastrecord.ProjectLastRecord">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="patientId" column="patient_id" jdbcType="BIGINT"/>
|
||||
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
||||
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
|
||||
<result property="groupId" column="group_id" jdbcType="BIGINT"/>
|
||||
<result property="groupName" column="group_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectId" column="project_id" jdbcType="BIGINT"/>
|
||||
<result property="projectName" column="project_name" jdbcType="VARCHAR"/>
|
||||
<result property="deviceId" column="device_id" jdbcType="BIGINT"/>
|
||||
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectAlias" column="project_alias" jdbcType="VARCHAR"/>
|
||||
<result property="judgeMode" column="judge_mode" jdbcType="VARCHAR"/>
|
||||
<result property="measureResult" column="measure_result" jdbcType="VARCHAR"/>
|
||||
<result property="maxValue" column="max_value" jdbcType="INTEGER"/>
|
||||
<result property="minValue" column="min_value" jdbcType="INTEGER"/>
|
||||
<result property="defaultValue" column="default_value" jdbcType="VARCHAR"/>
|
||||
<result property="lisCompare" column="lis_compare" jdbcType="VARCHAR"/>
|
||||
<result property="measureTime" column="measure_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="measureName" column="measure_name" jdbcType="VARCHAR"/>
|
||||
<result property="recordRemark" column="record_remark" jdbcType="VARCHAR"/>
|
||||
<result property="qualifiedSign" column="qualified_sign" jdbcType="VARCHAR"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.projectlastresult.ProjectLastResult">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="patientId" column="patient_id" jdbcType="BIGINT"/>
|
||||
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
||||
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
|
||||
<result property="batchId" column="batch_id" jdbcType="BIGINT"/>
|
||||
<result property="batchName" column="batch_name" jdbcType="VARCHAR"/>
|
||||
<result property="groupId" column="group_id" jdbcType="BIGINT"/>
|
||||
<result property="groupName" column="group_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectId" column="project_id" jdbcType="BIGINT"/>
|
||||
<result property="projectName" column="project_name" jdbcType="VARCHAR"/>
|
||||
<result property="deviceId" column="device_id" jdbcType="BIGINT"/>
|
||||
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectAlias" column="project_alias" jdbcType="VARCHAR"/>
|
||||
<result property="judgeMode" column="judge_mode" jdbcType="VARCHAR"/>
|
||||
<result property="measureResult" column="measure_result" jdbcType="VARCHAR"/>
|
||||
<result property="maxValue" column="max_value" jdbcType="INTEGER"/>
|
||||
<result property="minValue" column="min_value" jdbcType="INTEGER"/>
|
||||
<result property="defaultValue" column="default_value" jdbcType="VARCHAR"/>
|
||||
<result property="lisCompare" column="lis_compare" jdbcType="VARCHAR"/>
|
||||
<result property="measureTime" column="measure_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="measureName" column="measure_name" jdbcType="VARCHAR"/>
|
||||
<result property="recordRemark" column="record_remark" jdbcType="VARCHAR"/>
|
||||
<result property="qualifiedSign" column="qualified_sign" jdbcType="VARCHAR"/>
|
||||
<result property="measureResultPath" column="measure_result_path"/>
|
||||
<result property="projectUnit" column="project_unit"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,patient_id,patient_name,
|
||||
card_no,group_id,group_name,
|
||||
project_id,project_name,device_id,
|
||||
device_name,project_alias,judge_mode,
|
||||
measure_result,max_value,min_value,
|
||||
default_value,lis_compare,measure_time,
|
||||
measure_name,record_remark,qualified_sign,
|
||||
create_by,create_time,update_by,
|
||||
update_time
|
||||
card_no,batch_id,batch_name,
|
||||
group_id,group_name,project_id,
|
||||
project_name,device_id,device_name,
|
||||
project_alias,judge_mode,measure_result,
|
||||
max_value,min_value,default_value,
|
||||
lis_compare,measure_time,measure_name,
|
||||
record_remark,qualified_sign,measure_result_path,project_unit,create_by,
|
||||
create_time,update_by,update_time
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from project_last_record
|
||||
from project_last_result
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from project_last_record
|
||||
delete from project_last_result
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectlastrecord.ProjectLastRecord" useGeneratedKeys="true">
|
||||
insert into project_last_record
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectlastresult.ProjectLastResult" useGeneratedKeys="true">
|
||||
insert into project_last_result
|
||||
( id,patient_id,patient_name
|
||||
,card_no,group_id,group_name
|
||||
,project_id,project_name,device_id
|
||||
,device_name,project_alias,judge_mode
|
||||
,measure_result,max_value,min_value
|
||||
,default_value,lis_compare,measure_time
|
||||
,measure_name,record_remark,qualified_sign
|
||||
,create_by,create_time,update_by
|
||||
,update_time)
|
||||
,card_no,batch_id,batch_name
|
||||
,group_id,group_name,project_id
|
||||
,project_name,device_id,device_name
|
||||
,project_alias,judge_mode,measure_result
|
||||
,max_value,min_value,default_value
|
||||
,lis_compare,measure_time,measure_name
|
||||
,record_remark,qualified_sign,measure_result_path,project_unit
|
||||
,create_by,create_time,update_by,update_time
|
||||
)
|
||||
values (#{id,jdbcType=BIGINT},#{patientId,jdbcType=BIGINT},#{patientName,jdbcType=VARCHAR}
|
||||
,#{cardNo,jdbcType=VARCHAR},#{groupId,jdbcType=BIGINT},#{groupName,jdbcType=VARCHAR}
|
||||
,#{projectId,jdbcType=BIGINT},#{projectName,jdbcType=VARCHAR},#{deviceId,jdbcType=BIGINT}
|
||||
,#{deviceName,jdbcType=VARCHAR},#{projectAlias,jdbcType=VARCHAR},#{judgeMode,jdbcType=VARCHAR}
|
||||
,#{measureResult,jdbcType=VARCHAR},#{maxValue,jdbcType=INTEGER},#{minValue,jdbcType=INTEGER}
|
||||
,#{defaultValue,jdbcType=VARCHAR},#{lisCompare,jdbcType=VARCHAR},#{measureTime,jdbcType=TIMESTAMP}
|
||||
,#{measureName,jdbcType=VARCHAR},#{recordRemark,jdbcType=VARCHAR},#{qualifiedSign,jdbcType=VARCHAR}
|
||||
,#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR}
|
||||
,#{updateTime,jdbcType=TIMESTAMP})
|
||||
,#{cardNo,jdbcType=VARCHAR},#{batchId,jdbcType=BIGINT},#{batchName,jdbcType=VARCHAR}
|
||||
,#{groupId,jdbcType=BIGINT},#{groupName,jdbcType=VARCHAR},#{projectId,jdbcType=BIGINT}
|
||||
,#{projectName,jdbcType=VARCHAR},#{deviceId,jdbcType=BIGINT},#{deviceName,jdbcType=VARCHAR}
|
||||
,#{projectAlias,jdbcType=VARCHAR},#{judgeMode,jdbcType=VARCHAR},#{measureResult,jdbcType=VARCHAR}
|
||||
,#{maxValue,jdbcType=INTEGER},#{minValue,jdbcType=INTEGER},#{defaultValue,jdbcType=VARCHAR}
|
||||
,#{lisCompare,jdbcType=VARCHAR},#{measureTime,jdbcType=TIMESTAMP},#{measureName,jdbcType=VARCHAR}
|
||||
,#{recordRemark,jdbcType=VARCHAR},#{qualifiedSign,jdbcType=VARCHAR}
|
||||
,#{measureResultPath,jdbcType=VARCHAR},#{projectUnit,jdbcType=VARCHAR}
|
||||
,#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR},#{updateTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectlastrecord.ProjectLastRecord" useGeneratedKeys="true">
|
||||
insert into project_last_record
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectlastresult.ProjectLastResult" useGeneratedKeys="true">
|
||||
insert into project_last_result
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="patientId != null">patient_id,</if>
|
||||
<if test="patientName != null">patient_name,</if>
|
||||
<if test="cardNo != null">card_no,</if>
|
||||
<if test="batchId != null">batch_id,</if>
|
||||
<if test="batchName != null">batch_name,</if>
|
||||
<if test="groupId != null">group_id,</if>
|
||||
<if test="groupName != null">group_name,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
@ -100,6 +109,8 @@
|
||||
<if test="measureName != null">measure_name,</if>
|
||||
<if test="recordRemark != null">record_remark,</if>
|
||||
<if test="qualifiedSign != null">qualified_sign,</if>
|
||||
<if test="measureResultPath != null">measure_result_path,</if>
|
||||
<if test="projectUnit != null">project_unit,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
@ -110,6 +121,8 @@
|
||||
<if test="patientId != null">#{patientId,jdbcType=BIGINT},</if>
|
||||
<if test="patientName != null">#{patientName,jdbcType=VARCHAR},</if>
|
||||
<if test="cardNo != null">#{cardNo,jdbcType=VARCHAR},</if>
|
||||
<if test="batchId != null">#{batchId,jdbcType=BIGINT},</if>
|
||||
<if test="batchName != null">#{batchName,jdbcType=VARCHAR},</if>
|
||||
<if test="groupId != null">#{groupId,jdbcType=BIGINT},</if>
|
||||
<if test="groupName != null">#{groupName,jdbcType=VARCHAR},</if>
|
||||
<if test="projectId != null">#{projectId,jdbcType=BIGINT},</if>
|
||||
@ -127,14 +140,16 @@
|
||||
<if test="measureName != null">#{measureName,jdbcType=VARCHAR},</if>
|
||||
<if test="recordRemark != null">#{recordRemark,jdbcType=VARCHAR},</if>
|
||||
<if test="qualifiedSign != null">#{qualifiedSign,jdbcType=VARCHAR},</if>
|
||||
<if test="measureResultPath != null">#{measureResultPath,jdbcType=VARCHAR},</if>
|
||||
<if test="projectUnit != null">#{projectUnit,jdbcType=VARCHAR},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateBy != null">#{updateBy,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectlastrecord.ProjectLastRecord">
|
||||
update project_last_record
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectlastresult.ProjectLastResult">
|
||||
update project_last_result
|
||||
<set>
|
||||
<if test="patientId != null">
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
@ -145,6 +160,12 @@
|
||||
<if test="cardNo != null">
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="batchId != null">
|
||||
batch_id = #{batchId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="batchName != null">
|
||||
batch_name = #{batchName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="groupId != null">
|
||||
group_id = #{groupId,jdbcType=BIGINT},
|
||||
</if>
|
||||
@ -196,6 +217,12 @@
|
||||
<if test="qualifiedSign != null">
|
||||
qualified_sign = #{qualifiedSign,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="measureResultPath != null">
|
||||
measure_result_path = #{measureResultPath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectUnit != null">
|
||||
project_unit = #{projectUnit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@ -211,12 +238,14 @@
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.projectlastrecord.ProjectLastRecord">
|
||||
update project_last_record
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.projectlastresult.ProjectLastResult">
|
||||
update project_last_result
|
||||
set
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
batch_id = #{batchId,jdbcType=BIGINT},
|
||||
batch_name = #{batchName,jdbcType=VARCHAR},
|
||||
group_id = #{groupId,jdbcType=BIGINT},
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
project_id = #{projectId,jdbcType=BIGINT},
|
||||
@ -234,6 +263,8 @@
|
||||
measure_name = #{measureName,jdbcType=VARCHAR},
|
||||
record_remark = #{recordRemark,jdbcType=VARCHAR},
|
||||
qualified_sign = #{qualifiedSign,jdbcType=VARCHAR},
|
||||
measure_result_path = #{measureResultPath,jdbcType=VARCHAR},
|
||||
project_unit = #{projectUnit,jdbcType=VARCHAR},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
@ -1,243 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.projectrecord.ProjectRecordMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.projectrecord.ProjectRecord">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="patientId" column="patient_id" jdbcType="BIGINT"/>
|
||||
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
||||
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
|
||||
<result property="groupId" column="group_id" jdbcType="BIGINT"/>
|
||||
<result property="groupName" column="group_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectId" column="project_id" jdbcType="BIGINT"/>
|
||||
<result property="projectName" column="project_name" jdbcType="VARCHAR"/>
|
||||
<result property="deviceId" column="device_id" jdbcType="BIGINT"/>
|
||||
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectAlias" column="project_alias" jdbcType="VARCHAR"/>
|
||||
<result property="judgeMode" column="judge_mode" jdbcType="VARCHAR"/>
|
||||
<result property="measureResult" column="measure_result" jdbcType="VARCHAR"/>
|
||||
<result property="maxValue" column="max_value" jdbcType="INTEGER"/>
|
||||
<result property="minValue" column="min_value" jdbcType="INTEGER"/>
|
||||
<result property="defaultValue" column="default_value" jdbcType="VARCHAR"/>
|
||||
<result property="lisCompare" column="lis_compare" jdbcType="VARCHAR"/>
|
||||
<result property="measureTime" column="measure_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="measureName" column="measure_name" jdbcType="VARCHAR"/>
|
||||
<result property="recordRemark" column="record_remark" jdbcType="VARCHAR"/>
|
||||
<result property="qualifiedSign" column="qualified_sign" jdbcType="VARCHAR"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,patient_id,patient_name,
|
||||
card_no,group_id,group_name,
|
||||
project_id,project_name,device_id,
|
||||
device_name,project_alias,judge_mode,
|
||||
measure_result,max_value,min_value,
|
||||
default_value,lis_compare,measure_time,
|
||||
measure_name,record_remark,qualified_sign,
|
||||
create_by,create_time,update_by,
|
||||
update_time
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from project_record
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from project_record
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectrecord.ProjectRecord" useGeneratedKeys="true">
|
||||
insert into project_record
|
||||
( id,patient_id,patient_name
|
||||
,card_no,group_id,group_name
|
||||
,project_id,project_name,device_id
|
||||
,device_name,project_alias,judge_mode
|
||||
,measure_result,max_value,min_value
|
||||
,default_value,lis_compare,measure_time
|
||||
,measure_name,record_remark,qualified_sign
|
||||
,create_by,create_time,update_by
|
||||
,update_time)
|
||||
values (#{id,jdbcType=BIGINT},#{patientId,jdbcType=BIGINT},#{patientName,jdbcType=VARCHAR}
|
||||
,#{cardNo,jdbcType=VARCHAR},#{groupId,jdbcType=BIGINT},#{groupName,jdbcType=VARCHAR}
|
||||
,#{projectId,jdbcType=BIGINT},#{projectName,jdbcType=VARCHAR},#{deviceId,jdbcType=BIGINT}
|
||||
,#{deviceName,jdbcType=VARCHAR},#{projectAlias,jdbcType=VARCHAR},#{judgeMode,jdbcType=VARCHAR}
|
||||
,#{measureResult,jdbcType=VARCHAR},#{maxValue,jdbcType=INTEGER},#{minValue,jdbcType=INTEGER}
|
||||
,#{defaultValue,jdbcType=VARCHAR},#{lisCompare,jdbcType=VARCHAR},#{measureTime,jdbcType=TIMESTAMP}
|
||||
,#{measureName,jdbcType=VARCHAR},#{recordRemark,jdbcType=VARCHAR},#{qualifiedSign,jdbcType=VARCHAR}
|
||||
,#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR}
|
||||
,#{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectrecord.ProjectRecord" useGeneratedKeys="true">
|
||||
insert into project_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="patientId != null">patient_id,</if>
|
||||
<if test="patientName != null">patient_name,</if>
|
||||
<if test="cardNo != null">card_no,</if>
|
||||
<if test="groupId != null">group_id,</if>
|
||||
<if test="groupName != null">group_name,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="projectName != null">project_name,</if>
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="deviceName != null">device_name,</if>
|
||||
<if test="projectAlias != null">project_alias,</if>
|
||||
<if test="judgeMode != null">judge_mode,</if>
|
||||
<if test="measureResult != null">measure_result,</if>
|
||||
<if test="maxValue != null">max_value,</if>
|
||||
<if test="minValue != null">min_value,</if>
|
||||
<if test="defaultValue != null">default_value,</if>
|
||||
<if test="lisCompare != null">lis_compare,</if>
|
||||
<if test="measureTime != null">measure_time,</if>
|
||||
<if test="measureName != null">measure_name,</if>
|
||||
<if test="recordRemark != null">record_remark,</if>
|
||||
<if test="qualifiedSign != null">qualified_sign,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
||||
<if test="patientId != null">#{patientId,jdbcType=BIGINT},</if>
|
||||
<if test="patientName != null">#{patientName,jdbcType=VARCHAR},</if>
|
||||
<if test="cardNo != null">#{cardNo,jdbcType=VARCHAR},</if>
|
||||
<if test="groupId != null">#{groupId,jdbcType=BIGINT},</if>
|
||||
<if test="groupName != null">#{groupName,jdbcType=VARCHAR},</if>
|
||||
<if test="projectId != null">#{projectId,jdbcType=BIGINT},</if>
|
||||
<if test="projectName != null">#{projectName,jdbcType=VARCHAR},</if>
|
||||
<if test="deviceId != null">#{deviceId,jdbcType=BIGINT},</if>
|
||||
<if test="deviceName != null">#{deviceName,jdbcType=VARCHAR},</if>
|
||||
<if test="projectAlias != null">#{projectAlias,jdbcType=VARCHAR},</if>
|
||||
<if test="judgeMode != null">#{judgeMode,jdbcType=VARCHAR},</if>
|
||||
<if test="measureResult != null">#{measureResult,jdbcType=VARCHAR},</if>
|
||||
<if test="maxValue != null">#{maxValue,jdbcType=INTEGER},</if>
|
||||
<if test="minValue != null">#{minValue,jdbcType=INTEGER},</if>
|
||||
<if test="defaultValue != null">#{defaultValue,jdbcType=VARCHAR},</if>
|
||||
<if test="lisCompare != null">#{lisCompare,jdbcType=VARCHAR},</if>
|
||||
<if test="measureTime != null">#{measureTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="measureName != null">#{measureName,jdbcType=VARCHAR},</if>
|
||||
<if test="recordRemark != null">#{recordRemark,jdbcType=VARCHAR},</if>
|
||||
<if test="qualifiedSign != null">#{qualifiedSign,jdbcType=VARCHAR},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateBy != null">#{updateBy,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectrecord.ProjectRecord">
|
||||
update project_record
|
||||
<set>
|
||||
<if test="patientId != null">
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="patientName != null">
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cardNo != null">
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="groupId != null">
|
||||
group_id = #{groupId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="groupName != null">
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectId != null">
|
||||
project_id = #{projectId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="projectName != null">
|
||||
project_name = #{projectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceId != null">
|
||||
device_id = #{deviceId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="deviceName != null">
|
||||
device_name = #{deviceName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectAlias != null">
|
||||
project_alias = #{projectAlias,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="judgeMode != null">
|
||||
judge_mode = #{judgeMode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="measureResult != null">
|
||||
measure_result = #{measureResult,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maxValue != null">
|
||||
max_value = #{maxValue,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="minValue != null">
|
||||
min_value = #{minValue,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="defaultValue != null">
|
||||
default_value = #{defaultValue,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lisCompare != null">
|
||||
lis_compare = #{lisCompare,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="measureTime != null">
|
||||
measure_time = #{measureTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="measureName != null">
|
||||
measure_name = #{measureName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="recordRemark != null">
|
||||
record_remark = #{recordRemark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="qualifiedSign != null">
|
||||
qualified_sign = #{qualifiedSign,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.projectrecord.ProjectRecord">
|
||||
update project_record
|
||||
set
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
group_id = #{groupId,jdbcType=BIGINT},
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
project_id = #{projectId,jdbcType=BIGINT},
|
||||
project_name = #{projectName,jdbcType=VARCHAR},
|
||||
device_id = #{deviceId,jdbcType=BIGINT},
|
||||
device_name = #{deviceName,jdbcType=VARCHAR},
|
||||
project_alias = #{projectAlias,jdbcType=VARCHAR},
|
||||
judge_mode = #{judgeMode,jdbcType=VARCHAR},
|
||||
measure_result = #{measureResult,jdbcType=VARCHAR},
|
||||
max_value = #{maxValue,jdbcType=INTEGER},
|
||||
min_value = #{minValue,jdbcType=INTEGER},
|
||||
default_value = #{defaultValue,jdbcType=VARCHAR},
|
||||
lis_compare = #{lisCompare,jdbcType=VARCHAR},
|
||||
measure_time = #{measureTime,jdbcType=TIMESTAMP},
|
||||
measure_name = #{measureName,jdbcType=VARCHAR},
|
||||
record_remark = #{recordRemark,jdbcType=VARCHAR},
|
||||
qualified_sign = #{qualifiedSign,jdbcType=VARCHAR},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -1,219 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.projectrecordfile.ProjectRecordFileMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.projectrecordfile.ProjectRecordFile">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="patientId" column="patient_id" jdbcType="BIGINT"/>
|
||||
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
||||
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
|
||||
<result property="groupId" column="group_id" jdbcType="BIGINT"/>
|
||||
<result property="groupName" column="group_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectId" column="project_id" jdbcType="BIGINT"/>
|
||||
<result property="projectName" column="project_name" jdbcType="VARCHAR"/>
|
||||
<result property="deviceId" column="device_id" jdbcType="BIGINT"/>
|
||||
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
|
||||
<result property="projectAlias" column="project_alias" jdbcType="VARCHAR"/>
|
||||
<result property="filePath" column="file_path" jdbcType="VARCHAR"/>
|
||||
<result property="measureTime" column="measure_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="measureName" column="measure_name" jdbcType="VARCHAR"/>
|
||||
<result property="maxValue" column="max_value" jdbcType="INTEGER"/>
|
||||
<result property="minValue" column="min_value" jdbcType="INTEGER"/>
|
||||
<result property="defaultValue" column="default_value" jdbcType="VARCHAR"/>
|
||||
<result property="qualifiedSign" column="qualified_sign" jdbcType="VARCHAR"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,patient_id,patient_name,
|
||||
card_no,group_id,group_name,
|
||||
project_id,project_name,device_id,
|
||||
device_name,project_alias,file_path,
|
||||
measure_time,measure_name,max_value,
|
||||
min_value,default_value,qualified_sign,
|
||||
create_by,create_time,update_by,
|
||||
update_time
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from project_record_file
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from project_record_file
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectrecordfile.ProjectRecordFile" useGeneratedKeys="true">
|
||||
insert into project_record_file
|
||||
( id,patient_id,patient_name
|
||||
,card_no,group_id,group_name
|
||||
,project_id,project_name,device_id
|
||||
,device_name,project_alias,file_path
|
||||
,measure_time,measure_name,max_value
|
||||
,min_value,default_value,qualified_sign
|
||||
,create_by,create_time,update_by
|
||||
,update_time)
|
||||
values (#{id,jdbcType=BIGINT},#{patientId,jdbcType=BIGINT},#{patientName,jdbcType=VARCHAR}
|
||||
,#{cardNo,jdbcType=VARCHAR},#{groupId,jdbcType=BIGINT},#{groupName,jdbcType=VARCHAR}
|
||||
,#{projectId,jdbcType=BIGINT},#{projectName,jdbcType=VARCHAR},#{deviceId,jdbcType=BIGINT}
|
||||
,#{deviceName,jdbcType=VARCHAR},#{projectAlias,jdbcType=VARCHAR},#{filePath,jdbcType=VARCHAR}
|
||||
,#{measureTime,jdbcType=TIMESTAMP},#{measureName,jdbcType=VARCHAR},#{maxValue,jdbcType=INTEGER}
|
||||
,#{minValue,jdbcType=INTEGER},#{defaultValue,jdbcType=VARCHAR},#{qualifiedSign,jdbcType=VARCHAR}
|
||||
,#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR}
|
||||
,#{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.projectrecordfile.ProjectRecordFile" useGeneratedKeys="true">
|
||||
insert into project_record_file
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="patientId != null">patient_id,</if>
|
||||
<if test="patientName != null">patient_name,</if>
|
||||
<if test="cardNo != null">card_no,</if>
|
||||
<if test="groupId != null">group_id,</if>
|
||||
<if test="groupName != null">group_name,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="projectName != null">project_name,</if>
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="deviceName != null">device_name,</if>
|
||||
<if test="projectAlias != null">project_alias,</if>
|
||||
<if test="filePath != null">file_path,</if>
|
||||
<if test="measureTime != null">measure_time,</if>
|
||||
<if test="measureName != null">measure_name,</if>
|
||||
<if test="maxValue != null">max_value,</if>
|
||||
<if test="minValue != null">min_value,</if>
|
||||
<if test="defaultValue != null">default_value,</if>
|
||||
<if test="qualifiedSign != null">qualified_sign,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=BIGINT},</if>
|
||||
<if test="patientId != null">#{patientId,jdbcType=BIGINT},</if>
|
||||
<if test="patientName != null">#{patientName,jdbcType=VARCHAR},</if>
|
||||
<if test="cardNo != null">#{cardNo,jdbcType=VARCHAR},</if>
|
||||
<if test="groupId != null">#{groupId,jdbcType=BIGINT},</if>
|
||||
<if test="groupName != null">#{groupName,jdbcType=VARCHAR},</if>
|
||||
<if test="projectId != null">#{projectId,jdbcType=BIGINT},</if>
|
||||
<if test="projectName != null">#{projectName,jdbcType=VARCHAR},</if>
|
||||
<if test="deviceId != null">#{deviceId,jdbcType=BIGINT},</if>
|
||||
<if test="deviceName != null">#{deviceName,jdbcType=VARCHAR},</if>
|
||||
<if test="projectAlias != null">#{projectAlias,jdbcType=VARCHAR},</if>
|
||||
<if test="filePath != null">#{filePath,jdbcType=VARCHAR},</if>
|
||||
<if test="measureTime != null">#{measureTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="measureName != null">#{measureName,jdbcType=VARCHAR},</if>
|
||||
<if test="maxValue != null">#{maxValue,jdbcType=INTEGER},</if>
|
||||
<if test="minValue != null">#{minValue,jdbcType=INTEGER},</if>
|
||||
<if test="defaultValue != null">#{defaultValue,jdbcType=VARCHAR},</if>
|
||||
<if test="qualifiedSign != null">#{qualifiedSign,jdbcType=VARCHAR},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateBy != null">#{updateBy,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectrecordfile.ProjectRecordFile">
|
||||
update project_record_file
|
||||
<set>
|
||||
<if test="patientId != null">
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="patientName != null">
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cardNo != null">
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="groupId != null">
|
||||
group_id = #{groupId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="groupName != null">
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectId != null">
|
||||
project_id = #{projectId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="projectName != null">
|
||||
project_name = #{projectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deviceId != null">
|
||||
device_id = #{deviceId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="deviceName != null">
|
||||
device_name = #{deviceName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectAlias != null">
|
||||
project_alias = #{projectAlias,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="measureTime != null">
|
||||
measure_time = #{measureTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="measureName != null">
|
||||
measure_name = #{measureName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maxValue != null">
|
||||
max_value = #{maxValue,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="minValue != null">
|
||||
min_value = #{minValue,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="defaultValue != null">
|
||||
default_value = #{defaultValue,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="qualifiedSign != null">
|
||||
qualified_sign = #{qualifiedSign,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.xinelu.manage.domain.projectrecordfile.ProjectRecordFile">
|
||||
update project_record_file
|
||||
set
|
||||
patient_id = #{patientId,jdbcType=BIGINT},
|
||||
patient_name = #{patientName,jdbcType=VARCHAR},
|
||||
card_no = #{cardNo,jdbcType=VARCHAR},
|
||||
group_id = #{groupId,jdbcType=BIGINT},
|
||||
group_name = #{groupName,jdbcType=VARCHAR},
|
||||
project_id = #{projectId,jdbcType=BIGINT},
|
||||
project_name = #{projectName,jdbcType=VARCHAR},
|
||||
device_id = #{deviceId,jdbcType=BIGINT},
|
||||
device_name = #{deviceName,jdbcType=VARCHAR},
|
||||
project_alias = #{projectAlias,jdbcType=VARCHAR},
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
measure_time = #{measureTime,jdbcType=TIMESTAMP},
|
||||
measure_name = #{measureName,jdbcType=VARCHAR},
|
||||
max_value = #{maxValue,jdbcType=INTEGER},
|
||||
min_value = #{minValue,jdbcType=INTEGER},
|
||||
default_value = #{defaultValue,jdbcType=VARCHAR},
|
||||
qualified_sign = #{qualifiedSign,jdbcType=VARCHAR},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -0,0 +1,371 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.projectresult.ProjectResultMapper">
|
||||
|
||||
<resultMap type="ProjectResult" id="ProjectResultResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="patientName" column="patient_name"/>
|
||||
<result property="cardNo" column="card_no"/>
|
||||
<result property="batchId" column="batch_id"/>
|
||||
<result property="batchName" column="batch_name"/>
|
||||
<result property="groupId" column="group_id"/>
|
||||
<result property="groupName" column="group_name"/>
|
||||
<result property="projectId" column="project_id"/>
|
||||
<result property="projectName" column="project_name"/>
|
||||
<result property="deviceId" column="device_id"/>
|
||||
<result property="deviceName" column="device_name"/>
|
||||
<result property="projectAlias" column="project_alias"/>
|
||||
<result property="judgeMode" column="judge_mode"/>
|
||||
<result property="measureResult" column="measure_result"/>
|
||||
<result property="maxValue" column="max_value"/>
|
||||
<result property="minValue" column="min_value"/>
|
||||
<result property="defaultValue" column="default_value"/>
|
||||
<result property="lisCompare" column="lis_compare"/>
|
||||
<result property="measureTime" column="measure_time"/>
|
||||
<result property="measureName" column="measure_name"/>
|
||||
<result property="recordRemark" column="record_remark"/>
|
||||
<result property="qualifiedSign" column="qualified_sign"/>
|
||||
<result property="measureResultPath" column="measure_result_path"/>
|
||||
<result property="projectUnit" column="project_unit"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectProjectResultVo">
|
||||
select id, patient_id, patient_name, card_no, batch_id, batch_name, group_id, group_name, project_id, project_name, device_id, device_name, project_alias, judge_mode, measure_result, max_value, min_value, default_value, lis_compare, measure_time, measure_name, record_remark, qualified_sign, measure_result_path, project_unit, create_by, create_time, update_by, update_time from project_result
|
||||
</sql>
|
||||
|
||||
<select id="selectProjectResultList" parameterType="ProjectResult" resultMap="ProjectResultResult">
|
||||
<include refid="selectProjectResultVo"/>
|
||||
<where>
|
||||
<if test="patientId != null ">
|
||||
and patient_id = #{patientId}
|
||||
</if>
|
||||
<if test="patientName != null and patientName != ''">
|
||||
and patient_name like concat('%', #{patientName}, '%')
|
||||
</if>
|
||||
<if test="cardNo != null and cardNo != ''">
|
||||
and card_no = #{cardNo}
|
||||
</if>
|
||||
<if test="batchId != null ">
|
||||
and batch_id = #{batchId}
|
||||
</if>
|
||||
<if test="batchName != null and batchName != ''">
|
||||
and batch_name like concat('%', #{batchName}, '%')
|
||||
</if>
|
||||
<if test="groupId != null ">
|
||||
and group_id = #{groupId}
|
||||
</if>
|
||||
<if test="groupName != null and groupName != ''">
|
||||
and group_name like concat('%', #{groupName}, '%')
|
||||
</if>
|
||||
<if test="projectId != null ">
|
||||
and project_id = #{projectId}
|
||||
</if>
|
||||
<if test="projectName != null and projectName != ''">
|
||||
and project_name like concat('%', #{projectName}, '%')
|
||||
</if>
|
||||
<if test="deviceId != null ">
|
||||
and device_id = #{deviceId}
|
||||
</if>
|
||||
<if test="deviceName != null and deviceName != ''">
|
||||
and device_name like concat('%', #{deviceName}, '%')
|
||||
</if>
|
||||
<if test="projectAlias != null and projectAlias != ''">
|
||||
and project_alias = #{projectAlias}
|
||||
</if>
|
||||
<if test="judgeMode != null and judgeMode != ''">
|
||||
and judge_mode = #{judgeMode}
|
||||
</if>
|
||||
<if test="measureResult != null and measureResult != ''">
|
||||
and measure_result = #{measureResult}
|
||||
</if>
|
||||
<if test="maxValue != null ">
|
||||
and max_value = #{maxValue}
|
||||
</if>
|
||||
<if test="minValue != null ">
|
||||
and min_value = #{minValue}
|
||||
</if>
|
||||
<if test="defaultValue != null and defaultValue != ''">
|
||||
and default_value = #{defaultValue}
|
||||
</if>
|
||||
<if test="lisCompare != null and lisCompare != ''">
|
||||
and lis_compare = #{lisCompare}
|
||||
</if>
|
||||
<if test="measureTime != null ">
|
||||
and measure_time = #{measureTime}
|
||||
</if>
|
||||
<if test="measureName != null and measureName != ''">
|
||||
and measure_name like concat('%', #{measureName}, '%')
|
||||
</if>
|
||||
<if test="recordRemark != null and recordRemark != ''">
|
||||
and record_remark = #{recordRemark}
|
||||
</if>
|
||||
<if test="qualifiedSign != null and qualifiedSign != ''">
|
||||
and qualified_sign = #{qualifiedSign}
|
||||
</if>
|
||||
<if test="measureResultPath != null and measureResultPath != ''">
|
||||
and measure_result_path = #{measureResultPath}
|
||||
</if>
|
||||
<if test="projectUnit != null and projectUnit != ''">
|
||||
and project_unit = #{projectUnit}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectProjectResultById" parameterType="Long"
|
||||
resultMap="ProjectResultResult">
|
||||
<include refid="selectProjectResultVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertProjectResult" parameterType="ProjectResult" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into project_result
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id,
|
||||
</if>
|
||||
<if test="patientName != null">patient_name,
|
||||
</if>
|
||||
<if test="cardNo != null">card_no,
|
||||
</if>
|
||||
<if test="batchId != null">batch_id,
|
||||
</if>
|
||||
<if test="batchName != null">batch_name,
|
||||
</if>
|
||||
<if test="groupId != null">group_id,
|
||||
</if>
|
||||
<if test="groupName != null">group_name,
|
||||
</if>
|
||||
<if test="projectId != null">project_id,
|
||||
</if>
|
||||
<if test="projectName != null">project_name,
|
||||
</if>
|
||||
<if test="deviceId != null">device_id,
|
||||
</if>
|
||||
<if test="deviceName != null">device_name,
|
||||
</if>
|
||||
<if test="projectAlias != null">project_alias,
|
||||
</if>
|
||||
<if test="judgeMode != null">judge_mode,
|
||||
</if>
|
||||
<if test="measureResult != null">measure_result,
|
||||
</if>
|
||||
<if test="maxValue != null">max_value,
|
||||
</if>
|
||||
<if test="minValue != null">min_value,
|
||||
</if>
|
||||
<if test="defaultValue != null">default_value,
|
||||
</if>
|
||||
<if test="lisCompare != null">lis_compare,
|
||||
</if>
|
||||
<if test="measureTime != null">measure_time,
|
||||
</if>
|
||||
<if test="measureName != null">measure_name,
|
||||
</if>
|
||||
<if test="recordRemark != null">record_remark,
|
||||
</if>
|
||||
<if test="qualifiedSign != null">qualified_sign,
|
||||
</if>
|
||||
<if test="measureResultPath != null">measure_result_path,
|
||||
</if>
|
||||
<if test="projectUnit != null">project_unit,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">#{patientId},
|
||||
</if>
|
||||
<if test="patientName != null">#{patientName},
|
||||
</if>
|
||||
<if test="cardNo != null">#{cardNo},
|
||||
</if>
|
||||
<if test="batchId != null">#{batchId},
|
||||
</if>
|
||||
<if test="batchName != null">#{batchName},
|
||||
</if>
|
||||
<if test="groupId != null">#{groupId},
|
||||
</if>
|
||||
<if test="groupName != null">#{groupName},
|
||||
</if>
|
||||
<if test="projectId != null">#{projectId},
|
||||
</if>
|
||||
<if test="projectName != null">#{projectName},
|
||||
</if>
|
||||
<if test="deviceId != null">#{deviceId},
|
||||
</if>
|
||||
<if test="deviceName != null">#{deviceName},
|
||||
</if>
|
||||
<if test="projectAlias != null">#{projectAlias},
|
||||
</if>
|
||||
<if test="judgeMode != null">#{judgeMode},
|
||||
</if>
|
||||
<if test="measureResult != null">#{measureResult},
|
||||
</if>
|
||||
<if test="maxValue != null">#{maxValue},
|
||||
</if>
|
||||
<if test="minValue != null">#{minValue},
|
||||
</if>
|
||||
<if test="defaultValue != null">#{defaultValue},
|
||||
</if>
|
||||
<if test="lisCompare != null">#{lisCompare},
|
||||
</if>
|
||||
<if test="measureTime != null">#{measureTime},
|
||||
</if>
|
||||
<if test="measureName != null">#{measureName},
|
||||
</if>
|
||||
<if test="recordRemark != null">#{recordRemark},
|
||||
</if>
|
||||
<if test="qualifiedSign != null">#{qualifiedSign},
|
||||
</if>
|
||||
<if test="measureResultPath != null">#{measureResultPath},
|
||||
</if>
|
||||
<if test="projectUnit != null">#{projectUnit},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateProjectResult" parameterType="ProjectResult">
|
||||
update project_result
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id =
|
||||
#{patientId},
|
||||
</if>
|
||||
<if test="patientName != null">patient_name =
|
||||
#{patientName},
|
||||
</if>
|
||||
<if test="cardNo != null">card_no =
|
||||
#{cardNo},
|
||||
</if>
|
||||
<if test="batchId != null">batch_id =
|
||||
#{batchId},
|
||||
</if>
|
||||
<if test="batchName != null">batch_name =
|
||||
#{batchName},
|
||||
</if>
|
||||
<if test="groupId != null">group_id =
|
||||
#{groupId},
|
||||
</if>
|
||||
<if test="groupName != null">group_name =
|
||||
#{groupName},
|
||||
</if>
|
||||
<if test="projectId != null">project_id =
|
||||
#{projectId},
|
||||
</if>
|
||||
<if test="projectName != null">project_name =
|
||||
#{projectName},
|
||||
</if>
|
||||
<if test="deviceId != null">device_id =
|
||||
#{deviceId},
|
||||
</if>
|
||||
<if test="deviceName != null">device_name =
|
||||
#{deviceName},
|
||||
</if>
|
||||
<if test="projectAlias != null">project_alias =
|
||||
#{projectAlias},
|
||||
</if>
|
||||
<if test="judgeMode != null">judge_mode =
|
||||
#{judgeMode},
|
||||
</if>
|
||||
<if test="measureResult != null">measure_result =
|
||||
#{measureResult},
|
||||
</if>
|
||||
<if test="maxValue != null">max_value =
|
||||
#{maxValue},
|
||||
</if>
|
||||
<if test="minValue != null">min_value =
|
||||
#{minValue},
|
||||
</if>
|
||||
<if test="defaultValue != null">default_value =
|
||||
#{defaultValue},
|
||||
</if>
|
||||
<if test="lisCompare != null">lis_compare =
|
||||
#{lisCompare},
|
||||
</if>
|
||||
<if test="measureTime != null">measure_time =
|
||||
#{measureTime},
|
||||
</if>
|
||||
<if test="measureName != null">measure_name =
|
||||
#{measureName},
|
||||
</if>
|
||||
<if test="recordRemark != null">record_remark =
|
||||
#{recordRemark},
|
||||
</if>
|
||||
<if test="qualifiedSign != null">qualified_sign =
|
||||
#{qualifiedSign},
|
||||
</if>
|
||||
<if test="measureResultPath != null">measure_result_path =
|
||||
#{measureResultPath},
|
||||
</if>
|
||||
<if test="projectUnit != null">project_unit =
|
||||
#{projectUnit},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteProjectResultById" parameterType="Long">
|
||||
delete from project_result where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteProjectResultByIds" parameterType="String">
|
||||
delete from project_result where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectList" parameterType="com.xinelu.manage.dto.projectresult.ProjectResultStatisticDto" resultType="com.xinelu.manage.vo.projectresult.ProjectResultVo">
|
||||
select group_name,project_name,measure_result, date_format(measure_time,'%Y-%m-%d')as measureTimeStr
|
||||
from project_result
|
||||
<where>
|
||||
<if test="patientId != null">
|
||||
and patient_id = #{patientId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="groupId != null">
|
||||
and group_id = #{groupId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="projectId != null">
|
||||
and project_id = #{projectId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="measureTimeStart != null">
|
||||
and measure_time >= #{measureTimeStart}
|
||||
</if>
|
||||
<if test="measureTimeEnd != null">
|
||||
and measure_time <= #{measureTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@ -34,6 +34,8 @@
|
||||
<result property="billingDoctorName" column="billing_doctor_name" jdbcType="VARCHAR"/>
|
||||
<result property="price" column="price" jdbcType="DECIMAL"/>
|
||||
<result property="paymentStatus" column="payment_status" jdbcType="VARCHAR"/>
|
||||
<result property="healthManageId" column="health_manage_id" jdbcType="VARCHAR"/>
|
||||
<result property="healthManageName" column="health_manage_name" jdbcType="VARCHAR"/>
|
||||
<result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
@ -41,35 +43,6 @@
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="SignInfoResultMap" type="com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="patientId" column="patient_id" jdbcType="BIGINT"/>
|
||||
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
||||
<result property="patientPhone" column="patient_phone" jdbcType="VARCHAR"/>
|
||||
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
|
||||
<result property="sex" column="sex" jdbcType="VARCHAR"/>
|
||||
<result property="birthDate" column="birth_date" jdbcType="DATE"/>
|
||||
<result property="signTime" column="sign_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="hospitalAgencyName" column="hospital_agency_name" jdbcType="VARCHAR"/>
|
||||
<result property="campusAgencyName" column="campus_agency_name" jdbcType="VARCHAR"/>
|
||||
<result property="departmentName" column="department_name" jdbcType="VARCHAR"/>
|
||||
<result property="wardName" column="ward_name" jdbcType="VARCHAR"/>
|
||||
<result property="visitSerialNumber" column="visit_serial_number" jdbcType="VARCHAR"/>
|
||||
<result property="visitMethod" column="visit_method" jdbcType="VARCHAR"/>
|
||||
<result property="inHospitalNumber" column="in_hospital_number" jdbcType="VARCHAR"/>
|
||||
<result property="signDiagnosis" column="sign_diagnosis" jdbcType="VARCHAR"/>
|
||||
<result property="reviewDiagnosis" column="review_diagnosis" jdbcType="VARCHAR"/>
|
||||
<result property="serviceStatus" column="service_status" jdbcType="VARCHAR"/>
|
||||
<result property="signStatus" column="sign_status" jdbcType="VARCHAR"/>
|
||||
<result property="servicePackageId" column="service_package_id"/>
|
||||
<result property="packageName" column="package_name"/>
|
||||
<result property="packagePaymentStatus" column="package_payment_status"/>
|
||||
<result property="packagePrice" column="package_price"/>
|
||||
<result property="serviceStartTime" column="service_start_time"/>
|
||||
<result property="serviceEndTime" column="service_end_time"/>
|
||||
<result property="serviceCycle" column="service_cycle"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,patient_id,patient_name,
|
||||
patient_phone,card_no,sex,birth_date,sign_time,
|
||||
@ -79,7 +52,7 @@
|
||||
visit_method,in_hospital_number,sign_diagnosis,review_diagnosis,
|
||||
service_status,sign_status,intentional_source,
|
||||
intentional_time,billing_doctor_id,billing_doctor_name,
|
||||
price,payment_status,del_flag,
|
||||
price,payment_status,health_manage_id,health_manage_name,del_flag,
|
||||
create_by,create_time,update_by,
|
||||
update_time
|
||||
</sql>
|
||||
@ -105,7 +78,7 @@
|
||||
,visit_method,in_hospital_number,sign_diagnosis,review_diagnosis
|
||||
,service_status,sign_status,intentional_source
|
||||
,intentional_time,billing_doctor_id,billing_doctor_name
|
||||
,price,payment_status,del_flag
|
||||
,price,payment_status,health_manage_id,health_manage_name,del_flag
|
||||
,create_by,create_time,update_by
|
||||
,update_time)
|
||||
values (#{id,jdbcType=BIGINT},#{patientId,jdbcType=BIGINT},#{patientName,jdbcType=VARCHAR}
|
||||
@ -116,8 +89,8 @@
|
||||
,#{visitMethod,jdbcType=VARCHAR},#{inHospitalNumber,jdbcType=VARCHAR},#{signDiagnosis,jdbcType=VARCHAR},#{reviewDiagnosis,jdbcType=VARCHAR}
|
||||
,#{serviceStatus,jdbcType=VARCHAR},#{signStatus,jdbcType=VARCHAR},#{intentionalSource,jdbcType=VARCHAR}
|
||||
,#{intentionalTime,jdbcType=TIMESTAMP},#{billingDoctorId,jdbcType=BIGINT},#{billingDoctorName,jdbcType=VARCHAR}
|
||||
,#{price,jdbcType=DECIMAL},#{paymentStatus,jdbcType=VARCHAR},#{delFlag,jdbcType=TINYINT}
|
||||
,#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR}
|
||||
,#{price,jdbcType=DECIMAL},#{paymentStatus,jdbcType=VARCHAR},#{healthManageId,jdbcType=BIGINT},#{healthManageName,jdbcType=VARCHAR}
|
||||
,#{delFlag,jdbcType=TINYINT},#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR}
|
||||
,#{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.signpatientrecord.SignPatientRecord" useGeneratedKeys="true">
|
||||
@ -152,6 +125,8 @@
|
||||
<if test="billingDoctorName != null">billing_doctor_name,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="paymentStatus != null">payment_status,</if>
|
||||
<if test="healthManageId != null">health_manage_id,</if>
|
||||
<if test="healthManageName != null">health_manage_name,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
@ -188,6 +163,8 @@
|
||||
<if test="billingDoctorName != null">#{billingDoctorName,jdbcType=VARCHAR},</if>
|
||||
<if test="price != null">#{price,jdbcType=DECIMAL},</if>
|
||||
<if test="paymentStatus != null">#{paymentStatus,jdbcType=VARCHAR},</if>
|
||||
<if test="healthManageId != null">#{healthManageId,jdbcType=BIGINT},</if>
|
||||
<if test="healthManageName != null">#{healthManageName,jdbcType=VARCHAR},</if>
|
||||
<if test="delFlag != null">#{delFlag,jdbcType=TINYINT},</if>
|
||||
<if test="createBy != null">#{createBy,jdbcType=VARCHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
@ -282,6 +259,12 @@
|
||||
<if test="paymentStatus != null">
|
||||
payment_status = #{paymentStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="healthManageId != null">
|
||||
health_manage_id = #{healthManageId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="healthManageName != null">
|
||||
health_manage_name = #{healthManageName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
</if>
|
||||
@ -331,6 +314,8 @@
|
||||
billing_doctor_name = #{billingDoctorName,jdbcType=VARCHAR},
|
||||
price = #{price,jdbcType=DECIMAL},
|
||||
payment_status = #{paymentStatus,jdbcType=VARCHAR},
|
||||
health_manage_id = #{healthManageId,jdbcType=BIGINT},
|
||||
health_manage_name = #{healthManageName,jdbcType=VARCHAR},
|
||||
del_flag = #{delFlag,jdbcType=TINYINT},
|
||||
create_by = #{createBy,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
@ -408,7 +393,7 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getByRecordId" parameterType="java.lang.Long" resultMap="SignInfoResultMap">
|
||||
<select id="getByRecordId" parameterType="java.lang.Long" resultType="com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo">
|
||||
select
|
||||
sign.id,sign.patient_id,sign.patient_name,
|
||||
sign.patient_phone,sign.card_no,sign.sex, sign.birth_date,sign.sign_time,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user