患者签约相关接口。

This commit is contained in:
haown 2024-03-05 17:30:49 +08:00
parent 9d9b867d5a
commit 6d1c28e569
92 changed files with 4638 additions and 426 deletions

View File

@ -12,6 +12,12 @@ xinelu:
profile: D:/postdischarge/uploadPath
# 签约知情书上传
sign-informed-file-url: /signInformed
# 素材库封面上传
propaganda-cover-url: /propagandaCover
# 宣教库封面上传
materials-cover-url: /materialsCover
# 素材库封面上传
materials-video-url: /materialsVideo
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证

View File

@ -51,6 +51,21 @@ public class SystemBusinessConfig {
*/
private String signInformedFileUrl;
/**
* 宣教库封面
*/
private String propagandaCoverUrl;
/**
* 素材库封面
*/
private String materialsCoverUrl;
/**
* 素材库视频地址
*/
private String materialsVideoUrl;
public String getName() {
return name;
}
@ -142,4 +157,28 @@ public class SystemBusinessConfig {
public void setSignInformedFileUrl(String signInformedFileUrl) {
this.signInformedFileUrl = signInformedFileUrl;
}
public String getPropagandaCoverUrl() {
return propagandaCoverUrl;
}
public void setPropagandaCoverUrl(String propagandaCoverUrl) {
this.propagandaCoverUrl = propagandaCoverUrl;
}
public String getMaterialsCoverUrl() {
return materialsCoverUrl;
}
public void setMaterialsCoverUrl(String materialsCoverUrl) {
this.materialsCoverUrl = materialsCoverUrl;
}
public String getMaterialsVideoUrl() {
return materialsVideoUrl;
}
public void setMaterialsVideoUrl(String materialsVideoUrl) {
this.materialsVideoUrl = materialsVideoUrl;
}
}

View File

@ -0,0 +1,29 @@
package com.xinelu.common.constant;
/**
* @description: 文件上传路径常量
* @author: haown
* @create: 2024-03-01 10:39
**/
public class FileUploadPathConstants {
/**
* 签约知情书上传路径
*/
public static final String SIGN_INFORMED_TYPE = "signInformedFileUrl";
/**
* 宣教封面上传路径
*/
public static final String PROPAGANDA_COVER_TYPE = "propagandaCoverUrl";
/**
* 素材封面上传路径
*/
public static final String MATERIALS_COVER_TYPE = "materialsCoverUrl";
/**
* 素材库视频上传路径
*/
public static final String MATERIALS_VIDEO_TYPE = "materialsVideoUrl";
}

View File

@ -21,6 +21,11 @@ public class SignRecordServiceStatusConstants {
*/
public static final String SERVICE_END = "SERVICE_END";
/**
* 待续约
*/
public static final String WAIT_CONTINUOUS_SIGN = "WAIT_CONTINUOUS_SIGN";
/**
* 在签
*/
@ -37,8 +42,8 @@ public class SignRecordServiceStatusConstants {
public static final String SEPARATE_SIGN = "SEPARATE_SIGN";
/**
* 续约
* 服务到期
*/
public static final String CONTINUOUS_SIGN = "CONTINUOUS_SIGN";
public static final String EXPIRE_SIGN = "EXPIRE_SIGN";
}

View File

@ -0,0 +1,112 @@
package com.xinelu.manage.controller.crowdinfo;
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.crowdinfo.CrowdInfo;
import com.xinelu.manage.service.crowdinfo.ICrowdInfoService;
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 xinelu
* @date 2024-03-04
*/
@Api(tags = "人群信息控制器")
@RestController
@RequestMapping("/manage/crowdInfo")
public class CrowdInfoController extends BaseController {
@Resource
private ICrowdInfoService crowdInfoService;
/**
* 分页查询人群信息列表
*/
@PreAuthorize("@ss.hasPermi('manage:crowdInfo:list')")
@GetMapping("/list")
public TableDataInfo list(CrowdInfo crowdInfo) {
startPage();
List<CrowdInfo> list = crowdInfoService.selectCrowdInfoList(crowdInfo);
return getDataTable(list);
}
/**
* 查询人群信息列表
*/
@ApiOperation("查询人群信息列表")
@PreAuthorize("@ss.hasPermi('manage:crowdInfo:list')")
@GetMapping("/getList")
public R<List<CrowdInfo>> getList(CrowdInfo crowdInfo) {
List<CrowdInfo> list = crowdInfoService.selectCrowdInfoList(crowdInfo);
return R.ok(list);
}
/**
* 导出人群信息列表
*/
@PreAuthorize("@ss.hasPermi('manage:crowdInfo:export')")
@Log(title = "人群信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, CrowdInfo crowdInfo) {
List<CrowdInfo> list = crowdInfoService.selectCrowdInfoList(crowdInfo);
ExcelUtil<CrowdInfo> util = new ExcelUtil<CrowdInfo>(CrowdInfo. class);
util.exportExcel(response, list, "人群信息数据");
}
/**
* 获取人群信息详细信息
*/
@PreAuthorize("@ss.hasPermi('manage:crowdInfo:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(crowdInfoService.selectCrowdInfoById(id));
}
/**
* 新增人群信息
*/
@PreAuthorize("@ss.hasPermi('manage:crowdInfo:add')")
@Log(title = "人群信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody CrowdInfo crowdInfo) {
return toAjax(crowdInfoService.insertCrowdInfo(crowdInfo));
}
/**
* 修改人群信息
*/
@PreAuthorize("@ss.hasPermi('manage:crowdInfo:edit')")
@Log(title = "人群信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody CrowdInfo crowdInfo) {
return toAjax(crowdInfoService.updateCrowdInfo(crowdInfo));
}
/**
* 删除人群信息
*/
@PreAuthorize("@ss.hasPermi('manage:crowdInfo:remove')")
@Log(title = "人群信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(crowdInfoService.deleteCrowdInfoByIds(ids));
}
}

View File

@ -7,8 +7,10 @@ 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.materialsinfo.MaterialsInfo;
import com.xinelu.manage.dto.materialsinfo.MaterialsInfoDto;
import com.xinelu.manage.service.materialsinfo.IMaterialsInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
@ -35,12 +37,13 @@ public class MaterialsInfoController extends BaseController {
@Resource
private IMaterialsInfoService materialsInfoService;
/**
* 查询素材信息列表
*/
@PreAuthorize("@ss.hasPermi('manage:materials:list')")
@GetMapping("/list")
public TableDataInfo list(MaterialsInfo materialsInfo) {
/**
* 查询素材信息列表
*/
@ApiOperation("查询素材信息列表")
@PreAuthorize("@ss.hasPermi('manage:materials:list')")
@GetMapping("/list")
public TableDataInfo list(MaterialsInfoDto materialsInfo) {
startPage();
List<MaterialsInfo> list = materialsInfoService.selectMaterialsInfoList(materialsInfo);
return getDataTable(list);
@ -52,7 +55,7 @@ public class MaterialsInfoController extends BaseController {
@PreAuthorize("@ss.hasPermi('manage:materials:export')")
@Log(title = "素材信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MaterialsInfo materialsInfo) {
public void export(HttpServletResponse response, MaterialsInfoDto materialsInfo) {
List<MaterialsInfo> list = materialsInfoService.selectMaterialsInfoList(materialsInfo);
ExcelUtil<MaterialsInfo> util = new ExcelUtil<MaterialsInfo>(MaterialsInfo. class);
util.exportExcel(response, list, "素材信息数据");
@ -61,6 +64,7 @@ public class MaterialsInfoController extends BaseController {
/**
* 获取素材信息详细信息
*/
@ApiOperation("根据主键id获取素材信息详细信息")
@PreAuthorize("@ss.hasPermi('manage:materials:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
@ -70,6 +74,7 @@ public class MaterialsInfoController extends BaseController {
/**
* 新增素材信息
*/
@ApiOperation("新增素材信息")
@PreAuthorize("@ss.hasPermi('manage:materials:add')")
@Log(title = "素材信息", businessType = BusinessType.INSERT)
@PostMapping
@ -80,6 +85,7 @@ public class MaterialsInfoController extends BaseController {
/**
* 修改素材信息
*/
@ApiOperation("修改素材信息")
@PreAuthorize("@ss.hasPermi('manage:materials:edit')")
@Log(title = "素材信息", businessType = BusinessType.UPDATE)
@PutMapping
@ -90,6 +96,7 @@ public class MaterialsInfoController extends BaseController {
/**
* 删除素材信息
*/
@ApiOperation("批量删除素材信息")
@PreAuthorize("@ss.hasPermi('manage:materials:remove')")
@Log(title = "素材信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")

View File

@ -8,8 +8,10 @@ import com.xinelu.common.enums.BusinessType;
import com.xinelu.common.utils.poi.ExcelUtil;
import com.xinelu.manage.domain.patientblacklist.PatientBlacklist;
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto;
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistSaveDto;
import com.xinelu.manage.service.patientblacklist.IPatientBlacklistService;
import com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo;
import io.swagger.annotations.Api;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
@ -29,6 +31,7 @@ import org.springframework.web.bind.annotation.RestController;
* @author haown
* @date 2024-02-27
*/
@Api(tags = "患者-黑明单关系控制器")
@RestController
@RequestMapping("/manage/blacklist")
public class PatientBlacklistController extends BaseController {
@ -73,7 +76,7 @@ public class PatientBlacklistController extends BaseController {
@PreAuthorize("@ss.hasPermi('manage:blacklist:add')")
@Log(title = "患者-黑明单关系", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PatientBlacklist patientBlacklist) {
public AjaxResult add(@RequestBody PatientBlacklistSaveDto patientBlacklist) {
return toAjax(patientBlacklistService.insertPatientBlacklist(patientBlacklist));
}

View File

@ -0,0 +1,113 @@
package com.xinelu.manage.controller.patientblacklistabnormalcause;
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.patientblacklistabnormalcause.PatientBlacklistAbnormalCause;
import com.xinelu.manage.service.patientblacklistabnormalcause.IPatientBlacklistAbnormalCauseService;
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-01
*/
@Api(tags = "患者黑名单异常原因控制器")
@RestController
@RequestMapping("/manage/cause")
public class PatientBlacklistAbnormalCauseController extends BaseController {
@Resource
private IPatientBlacklistAbnormalCauseService patientBlacklistAbnormalCauseService;
/**
* 分页查询患者黑名单异常原因列表
*/
@ApiOperation("分页查询患者黑名单异常原因列表")
@PreAuthorize("@ss.hasPermi('manage:cause:list')")
@GetMapping("/list")
public TableDataInfo list(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause) {
startPage();
List<PatientBlacklistAbnormalCause> list = patientBlacklistAbnormalCauseService.selectPatientBlacklistAbnormalCauseList(patientBlacklistAbnormalCause);
return getDataTable(list);
}
/**
* 查询患者黑名单异常原因列表
*/
@ApiOperation("查询患者黑名单异常原因列表")
@PreAuthorize("@ss.hasPermi('manage:cause:list')")
@GetMapping("/getList")
public R<List<PatientBlacklistAbnormalCause>> getList(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause) {
List<PatientBlacklistAbnormalCause> list = patientBlacklistAbnormalCauseService.selectPatientBlacklistAbnormalCauseList(patientBlacklistAbnormalCause);
return R.ok(list);
}
/**
* 导出患者黑名单异常原因列表
*/
@PreAuthorize("@ss.hasPermi('manage:cause:export')")
@Log(title = "患者黑名单异常原因", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PatientBlacklistAbnormalCause patientBlacklistAbnormalCause) {
List<PatientBlacklistAbnormalCause> list = patientBlacklistAbnormalCauseService.selectPatientBlacklistAbnormalCauseList(patientBlacklistAbnormalCause);
ExcelUtil<PatientBlacklistAbnormalCause> util = new ExcelUtil<PatientBlacklistAbnormalCause>(PatientBlacklistAbnormalCause. class);
util.exportExcel(response, list, "患者黑名单异常原因数据");
}
/**
* 获取患者黑名单异常原因详细信息
*/
@PreAuthorize("@ss.hasPermi('manage:cause:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(patientBlacklistAbnormalCauseService.selectPatientBlacklistAbnormalCauseById(id));
}
/**
* 新增患者黑名单异常原因
*/
@PreAuthorize("@ss.hasPermi('manage:cause:add')")
@Log(title = "患者黑名单异常原因", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PatientBlacklistAbnormalCause patientBlacklistAbnormalCause) {
return toAjax(patientBlacklistAbnormalCauseService.insertPatientBlacklistAbnormalCause(patientBlacklistAbnormalCause));
}
/**
* 修改患者黑名单异常原因
*/
@PreAuthorize("@ss.hasPermi('manage:cause:edit')")
@Log(title = "患者黑名单异常原因", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PatientBlacklistAbnormalCause patientBlacklistAbnormalCause) {
return toAjax(patientBlacklistAbnormalCauseService.updatePatientBlacklistAbnormalCause(patientBlacklistAbnormalCause));
}
/**
* 删除患者黑名单异常原因
*/
@PreAuthorize("@ss.hasPermi('manage:cause:remove')")
@Log(title = "患者黑名单异常原因", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(patientBlacklistAbnormalCauseService.deletePatientBlacklistAbnormalCauseByIds(ids));
}
}

View File

@ -0,0 +1,19 @@
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 {
}

View File

@ -1,28 +1,32 @@
package com.xinelu.manage.controller.propagandainfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xinelu.common.annotation.Log;
import com.xinelu.common.core.controller.BaseController;
import com.xinelu.common.core.domain.AjaxResult;
import com.xinelu.common.enums.BusinessType;
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
import com.xinelu.manage.service.propagandainfo.IPropagandaInfoService;
import com.xinelu.common.utils.poi.ExcelUtil;
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.propagandainfo.PropagandaInfo;
import com.xinelu.manage.dto.department.DepartmentDTO;
import com.xinelu.manage.dto.propagandainfo.PropagandaInfoDto;
import com.xinelu.manage.dto.propagandainfo.PropagandaUpdateDto;
import com.xinelu.manage.service.propagandainfo.IPropagandaInfoService;
import com.xinelu.manage.vo.department.DepartmentVO;
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
@ -43,7 +47,7 @@ public class PropagandaInfoController extends BaseController {
@ApiOperation("分页查询宣教库管理列表")
@PreAuthorize("@ss.hasPermi('manage:propaganda:list')")
@GetMapping("/list")
public TableDataInfo list(PropagandaInfo propagandaInfo) {
public TableDataInfo list(PropagandaInfoDto propagandaInfo) {
startPage();
List<PropagandaInfo> list = propagandaInfoService.selectPropagandaInfoList(propagandaInfo);
return getDataTable(list);
@ -55,7 +59,7 @@ public class PropagandaInfoController extends BaseController {
@PreAuthorize("@ss.hasPermi('manage:propaganda:export')")
@Log(title = "宣教库管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PropagandaInfo propagandaInfo) {
public void export(HttpServletResponse response, PropagandaInfoDto propagandaInfo) {
List<PropagandaInfo> list = propagandaInfoService.selectPropagandaInfoList(propagandaInfo);
ExcelUtil<PropagandaInfo> util = new ExcelUtil<PropagandaInfo>(PropagandaInfo. class);
util.exportExcel(response, list, "宣教库管理数据");
@ -93,6 +97,29 @@ public class PropagandaInfoController extends BaseController {
return toAjax(propagandaInfoService.updatePropagandaInfo(propagandaInfo));
}
/**
* 复制宣教内容
*/
@ApiOperation("复制宣教内容")
@PreAuthorize("@ss.hasPermi('manage:propaganda:add')")
@GetMapping("/copy/{id}")
public R<String> copy(@PathVariable Long id) {
int flag = propagandaInfoService.copyPropagandaInfo(id);
return flag > 0 ? R.ok() : R.fail();
}
/**
* 修改宣教信息状态
*/
@ApiOperation("修改宣教库信息")
@PreAuthorize("@ss.hasPermi('manage:propaganda:edit')")
@Log(title = "宣教库管理", businessType = BusinessType.UPDATE)
@PostMapping("/updateStatus")
public R<String> updateStatus(@RequestBody PropagandaUpdateDto propagandaInfo) {
int flag = propagandaInfoService.updateStatus(propagandaInfo);
return flag < 0 ? R.fail() : R.ok();
}
/**
* 删除宣教库管理
*/
@ -103,4 +130,14 @@ public class PropagandaInfoController extends BaseController {
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(propagandaInfoService.deletePropagandaInfoByIds(ids));
}
/**
* 查询科室信息列表及包含宣教库数量
*/
@ApiOperation("查询科室信息列表及包含宣教库数量")
@GetMapping("/selectNumByDept")
public R<List<DepartmentVO>> selectNumByDept(DepartmentDTO departmentDto) {
List<DepartmentVO> list = propagandaInfoService.selectNumByDept(departmentDto);
return R.ok(list);
}
}

View File

@ -0,0 +1,48 @@
package com.xinelu.manage.controller.signpatientinformed;
import com.xinelu.common.constant.Constants;
import com.xinelu.common.core.domain.AjaxResult;
import com.xinelu.manage.service.signpatientinformed.IFileUploadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.Objects;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
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;
/**
* @description: 文件上传控制器
* @author: haown
* @create: 2024-03-01 10:30
**/
@Api(tags = "文件上传控制器")
@RestController
@RequestMapping("/manage/file")
public class FileUploadController {
@Resource
private IFileUploadService fileUploadService;
/**
* 文件上传
*/
@ApiOperation(value = "文件上传", notes = "type:signInformedFileUrl:签约知情书上传,propagandaCoverUrl:宣教库封面上传,"
+ "materialsCoverUrl:宣教库封面上传,materialsVideoUrl:宣教库视频上传")
@PostMapping("/uploadFile")
public AjaxResult uploadFile(@RequestParam("file") MultipartFile multipartFile, @RequestParam(value = "type") String type) throws Exception {
if (Objects.isNull(multipartFile) || StringUtils.isBlank(multipartFile.getOriginalFilename())) {
return AjaxResult.error("当前文件不存在,无法上传!");
}
if (multipartFile.getOriginalFilename().contains(Constants.EMPTY)) {
return AjaxResult.error("当前文件名含有空格,请先去除空格在上传!");
}
if (StringUtils.isBlank(type)) {
return AjaxResult.error("请选择所要上传的路径类型!");
}
return fileUploadService.uploadFile(multipartFile, type);
}
}

View File

@ -1,7 +1,6 @@
package com.xinelu.manage.controller.signpatientinformed;
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;
@ -9,11 +8,10 @@ import com.xinelu.common.enums.BusinessType;
import com.xinelu.common.utils.poi.ExcelUtil;
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
import com.xinelu.manage.service.signpatientinformed.ISignPatientInformedService;
import io.swagger.annotations.Api;
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,9 +20,7 @@ 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
@ -32,6 +28,7 @@ import org.springframework.web.multipart.MultipartFile;
* @author xinelu
* @date 2024-02-27
*/
@Api(tags = "签约知情同意书控制器")
@RestController
@RequestMapping("/manage/signInformed")
public class SignPatientInformedController extends BaseController {
@ -100,17 +97,4 @@ public class SignPatientInformedController extends BaseController {
return toAjax(signPatientInformedService.deleteSignPatientInformedByIds(ids));
}
/**
* 问诊聊天上传文件接口
*/
@PostMapping("/uploadFile")
public AjaxResult uploadFile(@RequestParam("file") MultipartFile multipartFile) throws Exception {
if (Objects.isNull(multipartFile) || StringUtils.isBlank(multipartFile.getOriginalFilename())) {
return AjaxResult.error("当前文件不存在,无法上传!");
}
if (multipartFile.getOriginalFilename().contains(Constants.EMPTY)) {
return AjaxResult.error("当前文件名含有空格,请先去除空格在上传!");
}
return signPatientInformedService.uploadFile(multipartFile);
}
}

View File

@ -1,15 +1,16 @@
package com.xinelu.manage.controller.signpatientrecord;
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.manage.dto.signpatientrecord.SignPatientStatusDto;
import com.xinelu.manage.dto.signpatientrecord.SignPatientAddDto;
import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto;
import com.xinelu.manage.dto.signpatientrecord.SignPatientStatusDto;
import com.xinelu.manage.service.signpatientrecord.ISignPatientRecordService;
import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo;
import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo;
import com.xinelu.manage.vo.signpatientrecord.SignPatientListVo;
import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import javax.annotation.Resource;
@ -26,6 +27,7 @@ import org.springframework.web.bind.annotation.RestController;
* @author: haown
* @create: 2024-02-28 16:03
**/
@Api(tags = "患者签约记录控制器")
@RestController
@RequestMapping("/manage/signRecord")
public class SignPatientRecordController extends BaseController {
@ -48,11 +50,12 @@ public class SignPatientRecordController extends BaseController {
/**
* 签约
*/
@ApiOperation("签约")
@ApiOperation("签约/续约")
@PreAuthorize("@ss.hasPermi('manage:signRecord:add')")
@PostMapping("/sign")
public AjaxResult sign(@RequestBody SignPatientAddDto body) {
return toAjax(signPatientRecordService.add(body));
public R<String> sign(@RequestBody SignPatientAddDto body) {
int flag = signPatientRecordService.add(body);
return flag > 0 ? R.ok() : R.fail();
}
/**
@ -61,9 +64,9 @@ public class SignPatientRecordController extends BaseController {
@ApiOperation("根据患者主键查询签约记录")
@PreAuthorize("@ss.hasPermi('manage:signRecord:list')")
@GetMapping("/getByPatient/{patientId}")
public AjaxResult getByPatient(@PathVariable("patientId") Long patientId) {
public R<List<SignPatientRecordVo>> getByPatient(@PathVariable("patientId") Long patientId) {
List<SignPatientRecordVo> list = signPatientRecordService.getByPatient(patientId);
return AjaxResult.success(list);
return R.ok(list);
}
/**
@ -71,10 +74,10 @@ public class SignPatientRecordController extends BaseController {
*/
@ApiOperation("根据签约记录表主键查询签约详情")
@PreAuthorize("@ss.hasPermi('manage:signRecord:list')")
@GetMapping("/getByRecordId/{patientSignRecordId}")
public AjaxResult getByRecordId(@PathVariable("patientSignRecordId") Long patientSignRecordId) {
SignPatientInfoVo signInfo = signPatientRecordService.getByRecordId(patientSignRecordId);
return AjaxResult.success(signInfo);
@GetMapping("/getByRecordId/{id}")
public R<SignPatientInfoVo> getByRecordId(@PathVariable("id") Long id) {
SignPatientInfoVo signInfo = signPatientRecordService.getByRecordId(id);
return R.ok(signInfo);
}
/**
@ -83,8 +86,8 @@ public class SignPatientRecordController extends BaseController {
@ApiOperation("解约")
@PreAuthorize("@ss.hasPermi('manage:signRecord:edit')")
@PostMapping("/updateSignStatus")
public AjaxResult updateSignStatus(@RequestBody SignPatientStatusDto updateSignStatus) {
public R<String> updateSignStatus(@RequestBody SignPatientStatusDto updateSignStatus) {
int flag = signPatientRecordService.updateSignStatus(updateSignStatus);
return flag < 0 ? AjaxResult.error() : AjaxResult.success();
return flag < 0 ? R.fail() : R.ok();
}
}

View File

@ -0,0 +1,76 @@
package com.xinelu.manage.domain.crowdinfo;
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;
/**
* 人群信息对象 crowd_info
*
* @author xinelu
* @date 2024-03-04
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "人群信息对象", description = "crowd_info")
public class CrowdInfo extends BaseEntity {
private static final long serialVersionUID=1L;
/** 主键 */
private Long id;
/** 人群名称 */
@ApiModelProperty(value = "人群名称")
@Excel(name = "人群名称")
private String crowdName;
/** 最小适合年龄 */
@ApiModelProperty(value = "最小适合年龄")
@Excel(name = "最小适合年龄")
private Long minSuitableAge;
/** 最大适合年龄 */
@ApiModelProperty(value = "最大适合年龄")
@Excel(name = "最大适合年龄")
private Long maxSuitableAge;
/** 适合性别全部ALLMALEFEMALE未知UNKNOWN */
@ApiModelProperty(value = "适合性别全部ALLMALEFEMALE未知UNKNOWN")
@Excel(name = "适合性别全部ALLMALEFEMALE未知UNKNOWN")
private String suitableGender;
/** 人群类型默认DEFAULT慢病CHRONIC_DISEASE特殊人群SPECIAL_POPULATIONS重点人群KEY_GROUPS */
@ApiModelProperty(value = "人群类型默认DEFAULT慢病CHRONIC_DISEASE特殊人群SPECIAL_POPULATIONS重点人群KEY_GROUPS")
@Excel(name = "人群类型默认DEFAULT慢病CHRONIC_DISEASE特殊人群SPECIAL_POPULATIONS重点人群KEY_GROUPS")
private String crowdType;
/** 特殊人群165岁及以上老年人 260-64岁老年人 30-6岁儿童 4孕产妇 5残疾人 6优抚对象
慢病人群20高血压 21二型糖尿病 22高血压合并糖尿病 23冠心病 24脑卒中康复期
其他重点人群40严重精神障碍 41结核病 42肿瘤病 43贫困人口 44计划生育特殊家庭 */
@ApiModelProperty(value = "特殊人群")
@Excel(name = "特殊人群", readConverterExp = "1=65岁及以上老年人,2=60-64岁老年人,3=0-6岁儿童,4=:孕产妇,5=:残疾人,6=优抚对象慢病人群20高血压,2=1二型糖尿病,2=2高血压合并糖尿病,2=3冠心病,2=4脑卒中康复期")
private String specialType;
/** 是否禁用01是 */
@ApiModelProperty(value = "是否禁用01")
@Excel(name = "是否禁用01")
private Integer whetherDisable;
/** 排序 */
@ApiModelProperty(value = "排序")
@Excel(name = "排序")
private Long sort;
/** 删除标识0正常1已删除 */
private Integer delFlag;
}

View File

@ -22,9 +22,10 @@ import lombok.NoArgsConstructor;
@ApiModel(value = "素材信息对象", description = "materials_info")
public class MaterialsInfo extends BaseEntity {
private static final long serialVersionUID=1L;
private static final long serialVersionUID=1L;
/** 主键id */
@ApiModelProperty(value = "主键id")
private Long id;
/** 素材名称 */
@ -104,7 +105,7 @@ private static final long serialVersionUID=1L;
/** 素材状态全部ALL已上架LISTED未上架NOT_LISTED */
@ApiModelProperty(value = "素材状态全部ALL已上架LISTED未上架NOT_LISTED")
@Excel(name = "素材状态,全部ALL已上架LISTED未上架NOT_LISTED")
@Excel(name = "素材状态,已上架LISTED未上架NOT_LISTED")
private String materialsStatus;
/** 素材备注 */

View File

@ -5,6 +5,7 @@ import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@ -16,6 +17,7 @@ import lombok.NoArgsConstructor;
* @date 2024-02-27
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ -30,6 +32,31 @@ public class PatientBlacklist extends BaseEntity {
/** 患者id */
private Long patientId;
/** 所属医院id */
@ApiModelProperty(value = "所属医院id")
private Long hospitalAgencyId;
/** 所属医院名称 */
@ApiModelProperty(value = "所属医院名称")
private String hospitalAgencyName;
/** 所属院区id */
@ApiModelProperty(value = "所属院区id")
private Long campusAgencyId;
/** 所属院区名称 */
@ApiModelProperty(value = "所属院区名称")
@Excel(name = "所属院区名称")
private String campusAgencyName;
/** 所属科室id */
@ApiModelProperty(value = "所属科室id")
private Long departmentId;
/** 所属科室名称 */
@ApiModelProperty(value = "所属科室名称")
private String departmentName;
/** 异常原因字典表id */
@ApiModelProperty(value = "异常原因字典表id")
@Excel(name = "异常原因字典表id")

View File

@ -0,0 +1,57 @@
package com.xinelu.manage.domain.patientblacklistabnormalcause;
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;
/**
* 患者黑名单异常原因对象 patient_blacklist_abnormal_cause
*
* @author haown
* @date 2024-03-01
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "患者黑名单异常原因对象", description = "patient_blacklist_abnormal_cause")
public class PatientBlacklistAbnormalCause extends BaseEntity {
private static final long serialVersionUID=1L;
/** 主键 */
private Long id;
/** 上级id */
@ApiModelProperty(value = "上级id")
@Excel(name = "上级id")
private Long parentId;
/** 异常原因代码 */
@ApiModelProperty(value = "异常原因代码")
@Excel(name = "异常原因代码")
private String abnormalCauseCode;
/** 异常原因描述 */
@ApiModelProperty(value = "异常原因描述")
@Excel(name = "异常原因描述")
private String abnormalCauseValue;
/** 异常原因级别异常原因ABNORMAL_CAUSE补充说明SUPPLEMENT */
@ApiModelProperty(value = "异常原因级别,异常原因ABNORMAL_CAUSE补充说明SUPPLEMENT")
@Excel(name = "异常原因级别", readConverterExp = "异=常原因ABNORMAL_CAUSE补充说明SUPPLEMENT")
private String abnormalCauseLevel;
/** 状态0正常 1停用 */
@ApiModelProperty(value = "状态")
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
}

View File

@ -67,10 +67,20 @@ public class PatientInfo extends BaseEntity {
@ApiModelProperty(value = "患者类型预住院患者PRE_HOSPITALIZED_PATIENT在院患者IN_HOSPITAL_PATIENT门诊患者OUTPATIENT出院患者DISCHARGED_PATIENT签约患者CONTRACTED_PATIENT")
private String patientType;
/** 签约状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END解约SEPARATE_SIGN续约CONTINUOUS_SIGN */
@ApiModelProperty(value = "签约状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END解约SEPARATE_SIGN续约CONTINUOUS_SIGN")
@Excel(name = "签约状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END解约SEPARATE_SIGN续约CONTINUOUS_SIGN")
private String signStatus;
/**
* 签约状态未签约UN_SIGN,在签IN_SIGN,解约SEPARATE_SIGN, 服务到期EXPIRE_SIGN
*/
@ApiModelProperty(value = "签约状态未签约UN_SIGN,在签IN_SIGN,解约SEPARATE_SIGN, 过期EXPIRE_SIGN")
private String signStatus;
@ApiModelProperty(value = "签约记录表id")
private Long signPatientRecordId;
/**
* 服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END
*/
@ApiModelProperty(value = "服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END")
private String serviceStatus;
/** 签约时间格式yyyy-MM-dd HH:mm:ss */
@ApiModelProperty(value = "签约时间格式yyyy-MM-dd HH:mm:ss")

View File

@ -0,0 +1,107 @@
package com.xinelu.manage.domain.project;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 检测项目表
* @TableName project
*/
@ApiModel("检测项目表")
@Data
public class Project extends BaseEntity {
/**
* 主键id
*/
@ApiModelProperty("主键id")
private Long id;
/**
* 所属分组id
*/
@ApiModelProperty("所属分组id")
private Long groupId;
/**
* 分组名称
*/
@ApiModelProperty("分组名称")
private String groupName;
/**
* 项目名称
*/
@ApiModelProperty("项目名称")
private String projectName;
/**
* 项目编码
*/
@ApiModelProperty("项目编码")
private String projectCode;
/**
* 项目别名
*/
@ApiModelProperty("项目别名")
private String projectAlias;
/**
* 是否启用01
*/
@ApiModelProperty("是否启用01")
private Integer enableStatus;
/**
* 判断模式定量QUANTIFY定性QUALITATIVE
*/
@ApiModelProperty("判断模式定量QUANTIFY定性QUALITATIVE")
private String judgeMode;
/**
* 项目指标最大值
*/
@ApiModelProperty("项目指标最大值")
private Integer maxValue;
/**
* 项目指标最小值
*/
@ApiModelProperty("项目指标最小值")
private Integer minValue;
/**
* 项目指标默认值
*/
@ApiModelProperty("项目指标默认值")
private String defaultValue;
/**
* LIS对照
*/
@ApiModelProperty("LIS对照")
private String lisCompare;
/**
* 排序
*/
@ApiModelProperty("排序")
private Integer projectSort;
/**
* 备注信息
*/
@ApiModelProperty("备注信息")
private String projectRemark;
/**
* 删除标识0未删除1已删除
*/
@ApiModelProperty("删除标识0未删除1已删除")
private Integer delFlag;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,82 @@
package com.xinelu.manage.domain.projectdevice;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import java.util.Date;
import lombok.Data;
/**
* 检测项目设备表
* @TableName project_device
*/
@ApiModel("检测项目设备表")
@Data
public class ProjectDevice extends BaseEntity {
/**
* 主键id
*/
private Long id;
/**
* 患者id
*/
private Long patientId;
/**
* 患者姓名
*/
private String patientName;
/**
* 身份证号
*/
private String cardNo;
/**
* 设备类型血糖仪GLUCOSE_METER血压计BLOOD_PRESSURE_DEVICE
*/
private String deviceType;
/**
* 设备名称
*/
private String deviceName;
/**
* 设备编码
*/
private String deviceCode;
/**
* 设备状态
*/
private String deviceStatus;
/**
* 备注信息
*/
private String deviceRemark;
/**
* 设备绑定时间
*/
private Date deviceBindTime;
/**
* 设备解绑时间
*/
private Date deviceUnbindTime;
/**
* 设备IP地址
*/
private String deviceIp;
/**
* 设备端口
*/
private Integer devicePort;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,56 @@
package com.xinelu.manage.domain.projectgroup;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* 检测项目分组表
* @TableName project_group
*/
@ApiModel("检测项目分组表")
@Data
public class ProjectGroup extends BaseEntity {
/**
* 主键id
*/
private Long id;
/**
* 上级分组id
*/
private Long parentId;
/**
* 分组名称
*/
private String groupName;
/**
* 分组编码
*/
private String groupCode;
/**
* 是否启用01
*/
private Integer enableStatus;
/**
* 排序
*/
private Integer groupSort;
/**
* 备注信息
*/
private String groupRemark;
/**
* 删除标识0未删除1已删除
*/
private Integer delFlag;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,122 @@
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;
}

View File

@ -0,0 +1,122 @@
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;
}

View File

@ -0,0 +1,111 @@
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;
}

View File

@ -20,14 +20,15 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "宣教库管理对象", description = "propaganda_info")
public class PropagandaInfo extends BaseEntity
{
private static final long serialVersionUID=1L;
public class PropagandaInfo extends BaseEntity {
private static final long serialVersionUID=1L;
/** 主键id */
private Long id;
/** 所属医院id */
@ApiModelProperty(value = "所属医院id")
private Long hospitalAgencyId;
/** 所属医院名称 */
@ -36,6 +37,7 @@ private static final long serialVersionUID=1L;
private String hospitalAgencyName;
/** 所属科室id */
@ApiModelProperty(value = "所属科室id")
private Long departmentId;
/** 所属科室名称 */
@ -55,6 +57,7 @@ private static final long serialVersionUID=1L;
private String propagandaType;
/** 宣教ID */
@ApiModelProperty(value = "宣教ID")
private String propagandaCode;
/** 宣教状态创作中CREATE_PROCESS创作完成CREATE_COMPLETE审核中IN_REVIEW审核通过APPROVED审核不通过REVIEW_FAILED */
@ -63,28 +66,38 @@ private static final long serialVersionUID=1L;
private String propagandaStatus;
/** 宣教正文内容 */
@ApiModelProperty(value = "宣教正文内容")
private String propagandaContent;
/** 宣教封面文件存放地址 */
@ApiModelProperty(value = "宣教封面文件存放地址")
private String propagandaCoverPath;
/** 宣教文章摘要 */
@ApiModelProperty(value = "宣教文章摘要")
private String articleSummary;
/** 语音播报 */
@ApiModelProperty(value = "语音播报")
private String voicebroadcast;
/** 所属病种id */
@ApiModelProperty(value = "所属病种id")
private Long diseaseTypeId;
/** 所属病种名称 */
@ApiModelProperty(value = "所属病种名称")
@Excel(name = "所属病种名称")
@ApiModelProperty(value = "所属病种名称")
@Excel(name = "所属病种名称")
private String diseaseTypeName;
/** 宣教链接 */
@ApiModelProperty(value = "宣教链接")
private String propagandaLink;
/** 宣教二维码图片存放地址 */
@ApiModelProperty(value = "宣教二维码图片存放地址")
private String propagandaBarcodePath;
/** 删除标识0未删除1已删除 */
private Integer delFlag;
}

View File

@ -1,5 +1,6 @@
package com.xinelu.manage.domain.signpatientrecord;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -50,10 +51,20 @@ public class SignPatientRecord extends BaseEntity {
@ApiModelProperty(value = "身份证号")
private String cardNo;
/** 性别 */
@ApiModelProperty(value = "性别")
private String sex;
/** 出生日期格式yyyy-MM-dd */
@ApiModelProperty(value = "出生日期格式yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date birthDate;
/**
* 签约时间格式yyyy-MM-dd HH:mm:ss
*/
@ApiModelProperty(value = "签约时间格式yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date signTime;
/**
@ -116,6 +127,9 @@ public class SignPatientRecord extends BaseEntity {
@ApiModelProperty(value = "就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL")
private String visitMethod;
@ApiModelProperty(value = "住院/门诊号")
private String inHospitalNumber;
/**
* 签约时诊断
*/
@ -135,15 +149,15 @@ public class SignPatientRecord extends BaseEntity {
private String serviceStatus;
/**
* 签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN
* 签约状态未签约UN_SIGN,在签IN_SIGN,解约SEPARATE_SIGN, 服务过期EXPIRE_SIGN
*/
@ApiModelProperty(value = "签约状态,在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN")
@ApiModelProperty(value = "签约状态,未签约UN_SIGN,在签IN_SIGN,解约SEPARATE_SIGN, 过期EXPIRE_SIGN")
private String signStatus;
/**
* 意向来源意向签约字典枚举
*/
@ApiModelProperty(value = "意向来源(意向签约,字典枚举)")
@ApiModelProperty(value = "意向来源(意向签约,字典枚举),DOCTOR_BILLING:医生开单")
private String intentionalSource;
/**
@ -164,6 +178,11 @@ public class SignPatientRecord extends BaseEntity {
@ApiModelProperty(value = "开单医生姓名(意向签约)")
private String billingDoctorName;
/**
* 提交时间待续签
*/
@ApiModelProperty(value = "提交时间(待续签)")
private Date submissionTime;
/**
* 金额
*/
@ -176,6 +195,12 @@ public class SignPatientRecord extends BaseEntity {
@ApiModelProperty(value = "缴费状态已缴费PAID未交费UNPAID_FEES")
private String paymentStatus;
/**
* 解约原因
*/
@ApiModelProperty(value = "解约原因")
private String separateReason;
/**
* 删除标识0未删除1已删除
*/

View File

@ -0,0 +1,39 @@
package com.xinelu.manage.dto.materialsinfo;
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-04 14:02
**/
@ApiModel
@Data
public class MaterialsInfoDto {
@ApiModelProperty(value = "创建时间开始yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createTimeStart;
@ApiModelProperty(value = "创建时间结束yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createTimeEnd;
/** 素材状态已上架LISTED未上架NOT_LISTED */
@ApiModelProperty(value = "素材状态,已上架LISTED未上架NOT_LISTED")
private String materialsStatus;
/** 素材名称 */
@ApiModelProperty(value = "素材名称")
private String materialsName;
/** 素材类型图文IMAGE_TEXT视频VIDEO */
@ApiModelProperty(value = "素材类型图文IMAGE_TEXT视频VIDEO")
@Excel(name = "素材类型图文IMAGE_TEXT视频VIDEO")
private String materialsType;
}

View File

@ -0,0 +1,81 @@
package com.xinelu.manage.dto.patientblacklist;
import com.xinelu.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description: 患者黑名单保存传输对象
* @author: haown
* @create: 2024-03-01 15:19
**/
@Data
@ApiModel("患者黑名单保存传输对象")
public class PatientBlacklistSaveDto {
/** 患者姓名 */
@ApiModelProperty(value = "患者姓名")
@Excel(name = "患者姓名")
private String patientName;
/** 患者电话 */
@ApiModelProperty(value = "患者电话")
@Excel(name = "患者电话")
private String patientPhone;
/** 身份证号 */
@ApiModelProperty(value = "身份证号")
private String cardNo;
/** 所属医院id */
@ApiModelProperty(value = "所属医院id")
private Long hospitalAgencyId;
/** 所属医院名称 */
@ApiModelProperty(value = "所属医院名称")
private String hospitalAgencyName;
/** 所属科室id */
@ApiModelProperty(value = "所属科室id")
private Long departmentId;
/** 所属院区id */
@ApiModelProperty(value = "所属院区id")
private Long campusAgencyId;
/** 所属院区名称 */
@ApiModelProperty(value = "所属院区名称")
@Excel(name = "所属院区名称")
private String campusAgencyName;
/** 所属科室名称 */
@ApiModelProperty(value = "所属科室名称")
private String departmentName;
/** 异常原因字典表id */
@ApiModelProperty(value = "异常原因字典表id")
@Excel(name = "异常原因字典表id")
private Long abnormalCauseId;
/** 异常原因字典表值 */
@ApiModelProperty(value = "异常原因字典表值")
@Excel(name = "异常原因字典表值")
private String abnormalCauseValue;
/** 补充说明字典表id */
private Long supplementIllustrateId;
/** 补充说明字典表值 */
private String supplementIllustrateValue;
/** 功能限制(具体来源未知?) */
private String functionLimitation;
/**
* 来源(CALL_DETECTION通话检测MANUAL_BLACKOUT手动拉黑, MANUAL_ADDITION手动添加HIS_CONNECTHIS对接)
*/
@ApiModelProperty(value = "来源(CALL_DETECTION通话检测MANUAL_BLACKOUT手动拉黑,MANUAL_ADDITION手动添加HIS_CONNECTHIS对接)")
@Excel(name = "来源(CALL_DETECTION通话检测MANUAL_BLACKOUT手动拉黑,MANUAL_ADDITION手动添加HIS_CONNECTHIS对接)")
private String blacklistSource;
}

View File

@ -0,0 +1,45 @@
package com.xinelu.manage.dto.patientblacklist;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description: 黑名单列表修改传输对象
* @author: haown
* @create: 2024-03-01 17:03
**/
@ApiModel("黑名单列表修改传输对象")
@Data
public class PatientBlacklistUpdateDto {
/** 主键id */
@ApiModelProperty(value = "患者电话")
private Long id;
/** 异常原因字典表id */
@ApiModelProperty(value = "异常原因字典表id")
private Long abnormalCauseId;
/** 异常原因字典表值 */
@ApiModelProperty(value = "异常原因字典表值")
private String abnormalCauseValue;
/** 补充说明字典表id */
@ApiModelProperty(value = "补充说明字典表id")
private Long supplementIllustrateId;
/** 补充说明字典表值 */
@ApiModelProperty(value = "补充说明字典表值")
private String supplementIllustrateValue;
/** 功能限制(具体来源未知?) */
@ApiModelProperty(value = "功能限制")
private String functionLimitation;
/**
* 来源(CALL_DETECTION通话检测MANUAL_BLACKOUT手动拉黑, MANUAL_ADDITION手动添加HIS_CONNECTHIS对接)
*/
@ApiModelProperty(value = "来源(CALL_DETECTION通话检测MANUAL_BLACKOUT手动拉黑,MANUAL_ADDITION手动添加HIS_CONNECTHIS对接)")
private String blacklistSource;
}

View File

@ -21,6 +21,10 @@ public class PatientInfoDto {
@ApiModelProperty(value = "患者电话")
private String patientPhone;
/** 身份证号 */
@ApiModelProperty(value = "身份证号")
private String cardNo;
/** 主要诊断 */
@ApiModelProperty(value = "主要诊断")
private String mainDiagnosis;

View File

@ -0,0 +1,40 @@
package com.xinelu.manage.dto.projectrecord;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
/**
* @description: 测量记录查询传输对象
* @author: haown
* @create: 2024-03-01 08:52
**/
@ApiModel("测量记录查询传输对象")
@Data
public class ProjectRecordDto {
/**
* 项目编码
*/
@ApiModelProperty("项目编码")
private String projectCode;
/**
* 患者id
*/
@ApiModelProperty("患者id")
private Long patientId;
/**
* 检测时间
*/
@ApiModelProperty("检测时间开始")
private Date measureTimeStart;
/**
* 检测时间
*/
@ApiModelProperty("检测时间结束")
private Date measureTimeEnd;
}

View File

@ -0,0 +1,67 @@
package com.xinelu.manage.dto.propagandainfo;
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-01 09:29
**/
@ApiModel("宣教库查询传输对象")
@Data
public class PropagandaInfoDto {
/** 所属医院id */
@ApiModelProperty(value = "所属医院id")
private Long hospitalAgencyId;
/** 所属科室id */
@ApiModelProperty(value = "所属科室id")
private Long departmentId;
/** 宣教标题(宣教名称) */
@ApiModelProperty(value = "宣教标题")
@Excel(name = "宣教标题", readConverterExp = "宣=教名称")
private String propagandaTitle;
/** 宣教类型用药知识MEDICATION_KNOWLEDGE疾病科普DISEASE_POPULARIZATION运动营养SPORT_NUTRITION其他知识OTHER_KNOWLEDGE
定制内容CUSTOMIZED_CONTENT */
@ApiModelProperty(value = "宣教类型用药知识MEDICATION_KNOWLEDGE疾病科普DISEASE_POPULARIZATION运动营养SPORT_NUTRITION其他知识OTHER_KNOWLEDGE定制内容CUSTOMIZED_CONTENT")
@Excel(name = "宣教类型用药知识MEDICATION_KNOWLEDGE疾病科普DISEASE_POPULARIZATION运动营养SPORT_NUTRITION其他知识OTHER_KNOWLEDGE定制内容CUSTOMIZED_CONTENT")
private String propagandaType;
/** 宣教ID */
@ApiModelProperty(value = "宣教ID")
private String propagandaCode;
/** 宣教状态创作中CREATE_PROCESS创作完成CREATE_COMPLETE审核中IN_REVIEW审核通过APPROVED审核不通过REVIEW_FAILED */
@ApiModelProperty(value = "宣教状态创作中CREATE_PROCESS创作完成CREATE_COMPLETE审核中IN_REVIEW审核通过APPROVED审核不通过REVIEW_FAILED")
@Excel(name = "宣教状态创作中CREATE_PROCESS创作完成CREATE_COMPLETE审核中IN_REVIEW审核通过APPROVED审核不通过REVIEW_FAILED")
private String propagandaStatus;
/**
* 创建者
*/
@ApiModelProperty(value = "创建者")
private String createBy;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间开始")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createTimeStart;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间结束")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createTimeEnd;
}

View File

@ -0,0 +1,26 @@
package com.xinelu.manage.dto.propagandainfo;
import com.xinelu.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description: 宣教库修改传输对象
* @author: haown
* @create: 2024-03-01 11:11
**/
@ApiModel("宣教库修改传输对象")
@Data
public class PropagandaUpdateDto {
/** 主键id */
@ApiModelProperty("主键id")
private Long id;
/** 宣教状态创作中CREATE_PROCESS创作完成CREATE_COMPLETE审核中IN_REVIEW审核通过APPROVED审核不通过REVIEW_FAILED */
@ApiModelProperty(value = "宣教状态创作中CREATE_PROCESS创作完成CREATE_COMPLETE审核中IN_REVIEW审核通过APPROVED审核不通过REVIEW_FAILED")
@Excel(name = "宣教状态创作中CREATE_PROCESS创作完成CREATE_COMPLETE审核中IN_REVIEW审核通过APPROVED审核不通过REVIEW_FAILED")
private String propagandaStatus;
}

View File

@ -23,6 +23,6 @@ public class SignPatientAddDto {
private List<SignPatientPackageHardware> devices;
private SignPatientInformed signPatientInformed;
private List<SignPatientInformed> informeds;
}

View File

@ -1,5 +1,6 @@
package com.xinelu.manage.dto.signpatientrecord;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
@ -88,14 +89,23 @@ public class SignPatientListDto {
private Long wardId;
/**
* 签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN
* 签约状态在签IN_SIGN,解约SEPARATE_SIGN, 过期EXPIRE_SIGN
*/
@ApiModelProperty(value = "签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN")
@ApiModelProperty(value = "签约状态在签IN_SIGN,解约SEPARATE_SIGN, 过期EXPIRE_SIGN")
private String signStatus;
/**
* 服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END
* 服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END待续签WAIT_CONTINUOUS_SIGN
*/
@ApiModelProperty(value = "服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END")
@ApiModelProperty(value = "服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END待续签WAIT_CONTINUOUS_SIGN")
private String serviceStatus;
@ApiModelProperty(value = "服务结束时间开始")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date serviceEndTimeStart;
@ApiModelProperty(value = "服务结束时间结束")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date serviceEndTimeEnd;
}

View File

@ -13,6 +13,9 @@ public class SignPatientStatusDto {
private Long id;
@ApiModelProperty(value = "患者表主键")
private Long patientId;
/**
* 服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END
*/
@ -20,8 +23,14 @@ public class SignPatientStatusDto {
private String serviceStatus;
/**
* 签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN
* 签约状态在签IN_SIGN,解约SEPARATE_SIGN, 过期EXPIRE_SIGN
*/
@ApiModelProperty(value = "签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN")
@ApiModelProperty(value = "签约状态在签IN_SIGN,解约SEPARATE_SIGN, 过期EXPIRE_SIGN")
private String signStatus;
/**
* 解约原因
*/
@ApiModelProperty(value = "解约原因")
private String separateReason;
}

View File

@ -0,0 +1,61 @@
package com.xinelu.manage.mapper.crowdinfo;
import com.xinelu.manage.domain.crowdinfo.CrowdInfo;
import java.util.List;
/**
* 人群信息Mapper接口
*
* @author xinelu
* @date 2024-03-04
*/
public interface CrowdInfoMapper {
/**
* 查询人群信息
*
* @param id 人群信息主键
* @return 人群信息
*/
public CrowdInfo selectCrowdInfoById(Long id);
/**
* 查询人群信息列表
*
* @param crowdInfo 人群信息
* @return 人群信息集合
*/
public List<CrowdInfo> selectCrowdInfoList(CrowdInfo crowdInfo);
/**
* 新增人群信息
*
* @param crowdInfo 人群信息
* @return 结果
*/
public int insertCrowdInfo(CrowdInfo crowdInfo);
/**
* 修改人群信息
*
* @param crowdInfo 人群信息
* @return 结果
*/
public int updateCrowdInfo(CrowdInfo crowdInfo);
/**
* 删除人群信息
*
* @param id 人群信息主键
* @return 结果
*/
public int deleteCrowdInfoById(Long id);
/**
* 批量删除人群信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteCrowdInfoByIds(Long[] ids);
}

View File

@ -1,8 +1,8 @@
package com.xinelu.manage.mapper.materialsinfo;
import java.util.List;
import com.xinelu.manage.domain.materialsinfo.MaterialsInfo;
import com.xinelu.manage.dto.materialsinfo.MaterialsInfoDto;
import java.util.List;
/**
* 素材信息Mapper接口
@ -25,7 +25,7 @@ public interface MaterialsInfoMapper {
* @param materialsInfo 素材信息
* @return 素材信息集合
*/
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfo materialsInfo);
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfoDto materialsInfo);
/**
* 新增素材信息

View File

@ -18,7 +18,7 @@ public interface PatientBlacklistMapper {
* @param id 患者-黑明单关系主键
* @return 患者-黑明单关系
*/
public PatientBlacklist selectPatientBlacklistById(Long id);
public PatientBlacklistVo selectPatientBlacklistById(Long id);
/**
* 查询患者-黑明单关系列表

View File

@ -0,0 +1,61 @@
package com.xinelu.manage.mapper.patientblacklistabnormalcause;
import com.xinelu.manage.domain.patientblacklistabnormalcause.PatientBlacklistAbnormalCause;
import java.util.List;
/**
* 患者黑名单异常原因Mapper接口
*
* @author haown
* @date 2024-03-01
*/
public interface PatientBlacklistAbnormalCauseMapper {
/**
* 查询患者黑名单异常原因
*
* @param id 患者黑名单异常原因主键
* @return 患者黑名单异常原因
*/
public PatientBlacklistAbnormalCause selectPatientBlacklistAbnormalCauseById(Long id);
/**
* 查询患者黑名单异常原因列表
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 患者黑名单异常原因集合
*/
public List<PatientBlacklistAbnormalCause> selectPatientBlacklistAbnormalCauseList(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause);
/**
* 新增患者黑名单异常原因
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 结果
*/
public int insertPatientBlacklistAbnormalCause(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause);
/**
* 修改患者黑名单异常原因
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 结果
*/
public int updatePatientBlacklistAbnormalCause(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause);
/**
* 删除患者黑名单异常原因
*
* @param id 患者黑名单异常原因主键
* @return 结果
*/
public int deletePatientBlacklistAbnormalCauseById(Long id);
/**
* 批量删除患者黑名单异常原因
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deletePatientBlacklistAbnormalCauseByIds(Long[] ids);
}

View File

@ -0,0 +1,25 @@
package com.xinelu.manage.mapper.project;
import com.xinelu.manage.domain.project.Project;
/**
* @author haown
* @description 针对表project(检测项目表)的数据库操作Mapper
* @createDate 2024-03-05 16:33:33
* @Entity com.xinelu.manage.domain.project.Project
*/
public interface ProjectMapper {
int deleteByPrimaryKey(Long id);
int insert(Project record);
int insertSelective(Project record);
Project selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(Project record);
int updateByPrimaryKey(Project record);
}

View File

@ -0,0 +1,25 @@
package com.xinelu.manage.mapper.projectdevice;
import com.xinelu.manage.domain.projectdevice.ProjectDevice;
/**
* @author haown
* @description 针对表project_device(检测项目设备表)的数据库操作Mapper
* @createDate 2024-03-05 17:14:06
* @Entity com.xinelu.manage.domain.projectdevice.ProjectDevice
*/
public interface ProjectDeviceMapper {
int deleteByPrimaryKey(Long id);
int insert(ProjectDevice record);
int insertSelective(ProjectDevice record);
ProjectDevice selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(ProjectDevice record);
int updateByPrimaryKey(ProjectDevice record);
}

View File

@ -0,0 +1,25 @@
package com.xinelu.manage.mapper.projectgroup;
import com.xinelu.manage.domain.projectgroup.ProjectGroup;
/**
* @author haown
* @description 针对表project_group(检测项目分组表)的数据库操作Mapper
* @createDate 2024-03-05 16:34:58
* @Entity com.xinelu.manage.domain.projectgroup.ProjectGroup
*/
public interface ProjectGroupMapper {
int deleteByPrimaryKey(Long id);
int insert(ProjectGroup record);
int insertSelective(ProjectGroup record);
ProjectGroup selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(ProjectGroup record);
int updateByPrimaryKey(ProjectGroup record);
}

View File

@ -0,0 +1,25 @@
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);
}

View File

@ -0,0 +1,25 @@
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);
}

View File

@ -0,0 +1,25 @@
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);
}

View File

@ -1,8 +1,10 @@
package com.xinelu.manage.mapper.propagandainfo;
import java.util.List;
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
import com.xinelu.manage.dto.department.DepartmentDTO;
import com.xinelu.manage.dto.propagandainfo.PropagandaInfoDto;
import com.xinelu.manage.vo.department.DepartmentVO;
import java.util.List;
/**
* 宣教库管理Mapper接口
@ -25,7 +27,7 @@ public interface PropagandaInfoMapper {
* @param propagandaInfo 宣教库管理
* @return 宣教库管理集合
*/
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfo propagandaInfo);
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfoDto propagandaInfo);
/**
* 新增宣教库管理
@ -58,4 +60,13 @@ public interface PropagandaInfoMapper {
* @return 结果
*/
public int deletePropagandaInfoByIds(Long[] ids);
/**
* 查询科室信息列表及包含宣教库数量
*
* @param departmentDto
* @return
*/
List<DepartmentVO> selectNumByDept(DepartmentDTO departmentDto);
}

View File

@ -29,7 +29,7 @@ public interface SignPatientRecordMapper {
List<SignPatientListVo> selectList(SignPatientListDto signPatientRecord);
SignPatientInfoVo getByRecordId(Long patientSignRecordId);
SignPatientInfoVo getByRecordId(Long id);
List<SignPatientRecordVo> getByPatient(Long patientId);

View File

@ -0,0 +1,60 @@
package com.xinelu.manage.service.crowdinfo;
import com.xinelu.manage.domain.crowdinfo.CrowdInfo;
import java.util.List;
/**
* 人群信息Service接口
*
* @author xinelu
* @date 2024-03-04
*/
public interface ICrowdInfoService {
/**
* 查询人群信息
*
* @param id 人群信息主键
* @return 人群信息
*/
public CrowdInfo selectCrowdInfoById(Long id);
/**
* 查询人群信息列表
*
* @param crowdInfo 人群信息
* @return 人群信息集合
*/
public List<CrowdInfo> selectCrowdInfoList(CrowdInfo crowdInfo);
/**
* 新增人群信息
*
* @param crowdInfo 人群信息
* @return 结果
*/
public int insertCrowdInfo(CrowdInfo crowdInfo);
/**
* 修改人群信息
*
* @param crowdInfo 人群信息
* @return 结果
*/
public int updateCrowdInfo(CrowdInfo crowdInfo);
/**
* 批量删除人群信息
*
* @param ids 需要删除的人群信息主键集合
* @return 结果
*/
public int deleteCrowdInfoByIds(Long[] ids);
/**
* 删除人群信息信息
*
* @param id 人群信息主键
* @return 结果
*/
public int deleteCrowdInfoById(Long id);
}

View File

@ -0,0 +1,92 @@
package com.xinelu.manage.service.crowdinfo.impl;
import com.xinelu.common.utils.DateUtils;
import com.xinelu.common.utils.SecurityUtils;
import com.xinelu.manage.domain.crowdinfo.CrowdInfo;
import com.xinelu.manage.mapper.crowdinfo.CrowdInfoMapper;
import com.xinelu.manage.service.crowdinfo.ICrowdInfoService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
/**
* 人群信息Service业务层处理
*
* @author xinelu
* @date 2024-03-04
*/
@Service
public class CrowdInfoServiceImpl implements ICrowdInfoService {
@Resource
private CrowdInfoMapper crowdInfoMapper;
/**
* 查询人群信息
*
* @param id 人群信息主键
* @return 人群信息
*/
@Override
public CrowdInfo selectCrowdInfoById(Long id) {
return crowdInfoMapper.selectCrowdInfoById(id);
}
/**
* 查询人群信息列表
*
* @param crowdInfo 人群信息
* @return 人群信息
*/
@Override
public List<CrowdInfo> selectCrowdInfoList(CrowdInfo crowdInfo) {
return crowdInfoMapper.selectCrowdInfoList(crowdInfo);
}
/**
* 新增人群信息
*
* @param crowdInfo 人群信息
* @return 结果
*/
@Override
public int insertCrowdInfo(CrowdInfo crowdInfo) {
crowdInfo.setCreateTime(DateUtils.getNowDate());
crowdInfo.setCreateBy(SecurityUtils.getLoginUser().getUser().getNickName());
return crowdInfoMapper.insertCrowdInfo(crowdInfo);
}
/**
* 修改人群信息
*
* @param crowdInfo 人群信息
* @return 结果
*/
@Override
public int updateCrowdInfo(CrowdInfo crowdInfo) {
crowdInfo.setUpdateTime(DateUtils.getNowDate());
crowdInfo.setUpdateBy(SecurityUtils.getLoginUser().getUser().getNickName());
return crowdInfoMapper.updateCrowdInfo(crowdInfo);
}
/**
* 批量删除人群信息
*
* @param ids 需要删除的人群信息主键
* @return 结果
*/
@Override
public int deleteCrowdInfoByIds(Long[] ids) {
return crowdInfoMapper.deleteCrowdInfoByIds(ids);
}
/**
* 删除人群信息信息
*
* @param id 人群信息主键
* @return 结果
*/
@Override
public int deleteCrowdInfoById(Long id) {
return crowdInfoMapper.deleteCrowdInfoById(id);
}
}

View File

@ -1,8 +1,8 @@
package com.xinelu.manage.service.materialsinfo;
import java.util.List;
import com.xinelu.manage.domain.materialsinfo.MaterialsInfo;
import com.xinelu.manage.dto.materialsinfo.MaterialsInfoDto;
import java.util.List;
/**
* 素材信息Service接口
@ -25,7 +25,7 @@ public interface IMaterialsInfoService {
* @param materialsInfo 素材信息
* @return 素材信息集合
*/
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfo materialsInfo);
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfoDto materialsInfo);
/**
* 新增素材信息

View File

@ -1,12 +1,13 @@
package com.xinelu.manage.service.materialsinfo.impl;
import com.xinelu.common.utils.DateUtils;
import com.xinelu.manage.domain.materialsinfo.MaterialsInfo;
import com.xinelu.manage.dto.materialsinfo.MaterialsInfoDto;
import com.xinelu.manage.mapper.materialsinfo.MaterialsInfoMapper;
import com.xinelu.manage.service.materialsinfo.IMaterialsInfoService;
import java.util.List;
import com.xinelu.common.utils.DateUtils;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.xinelu.manage.mapper.materialsinfo.MaterialsInfoMapper;
import com.xinelu.manage.domain.materialsinfo.MaterialsInfo;
import com.xinelu.manage.service.materialsinfo.IMaterialsInfoService;
/**
* 素材信息Service业务层处理
@ -37,7 +38,7 @@ public class MaterialsInfoServiceImpl implements IMaterialsInfoService {
* @return 素材信息
*/
@Override
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfo materialsInfo) {
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfoDto materialsInfo) {
return materialsInfoMapper.selectMaterialsInfoList(materialsInfo);
}

View File

@ -2,6 +2,7 @@ package com.xinelu.manage.service.patientblacklist;
import com.xinelu.manage.domain.patientblacklist.PatientBlacklist;
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto;
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistSaveDto;
import com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo;
import java.util.List;
@ -18,7 +19,7 @@ public interface IPatientBlacklistService {
* @param id 患者-黑明单关系主键
* @return 患者-黑明单关系
*/
public PatientBlacklist selectPatientBlacklistById(Long id);
public PatientBlacklistVo selectPatientBlacklistById(Long id);
/**
* 查询患者-黑明单关系列表
@ -31,10 +32,10 @@ public interface IPatientBlacklistService {
/**
* 新增患者-黑明单关系
*
* @param patientBlacklist 患者-黑明单关系
* @param blacklistSaveDto 患者-黑明单关系
* @return 结果
*/
public int insertPatientBlacklist(PatientBlacklist patientBlacklist);
public int insertPatientBlacklist(PatientBlacklistSaveDto blacklistSaveDto);
/**
* 修改患者-黑明单关系

View File

@ -1,15 +1,22 @@
package com.xinelu.manage.service.patientblacklist.impl;
import com.xinelu.common.exception.ServiceException;
import com.xinelu.common.utils.DateUtils;
import com.xinelu.common.utils.bean.BeanUtils;
import com.xinelu.manage.domain.patientblacklist.PatientBlacklist;
import com.xinelu.manage.domain.patientinfo.PatientInfo;
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto;
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistSaveDto;
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
import com.xinelu.manage.mapper.patientblacklist.PatientBlacklistMapper;
import com.xinelu.manage.mapper.patientinfo.PatientInfoMapper;
import com.xinelu.manage.service.patientblacklist.IPatientBlacklistService;
import com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
/**
* 患者-黑明单关系Service业务层处理
@ -22,6 +29,9 @@ public class PatientBlacklistServiceImpl implements IPatientBlacklistService {
@Resource
private PatientBlacklistMapper patientBlacklistMapper;
@Resource
private PatientInfoMapper patientInfoMapper;
/**
* 查询患者-黑明单关系
*
@ -29,7 +39,7 @@ public class PatientBlacklistServiceImpl implements IPatientBlacklistService {
* @return 患者-黑明单关系
*/
@Override
public PatientBlacklist selectPatientBlacklistById(Long id) {
public PatientBlacklistVo selectPatientBlacklistById(Long id) {
return patientBlacklistMapper.selectPatientBlacklistById(id);
}
@ -47,11 +57,26 @@ public class PatientBlacklistServiceImpl implements IPatientBlacklistService {
/**
* 新增患者-黑明单关系
*
* @param patientBlacklist 患者-黑明单关系
* @param blacklistSaveDto 患者-黑明单关系
* @return 结果
*/
@Override
public int insertPatientBlacklist(PatientBlacklist patientBlacklist) {
public int insertPatientBlacklist(PatientBlacklistSaveDto blacklistSaveDto) {
// 根据患者姓名身份证号查询患者
PatientInfoDto patientInfoDto = new PatientInfoDto();
patientInfoDto.setPatientName(blacklistSaveDto.getPatientName());
patientInfoDto.setPatientPhone(blacklistSaveDto.getPatientPhone());
patientInfoDto.setCardNo(blacklistSaveDto.getCardNo());
List<PatientInfo> patientList = patientInfoMapper.selectPatientInfoList(patientInfoDto);
if (CollectionUtils.isEmpty(patientList)) {
throw new ServiceException("未找到该患者,请确认姓名身份证号手机号是否正确");
}
if (patientList.size() > 1) {
throw new ServiceException("找到多名患者信息,请确认姓名身份证号手机号是否正确");
}
PatientBlacklist patientBlacklist = new PatientBlacklist();
BeanUtils.copyBeanProp(patientBlacklist, blacklistSaveDto);
patientBlacklist.setPatientId(patientList.get(0).getId());
patientBlacklist.setDelFlag(0);
patientBlacklist.setCreateTime(DateUtils.getNowDate());
return patientBlacklistMapper.insertPatientBlacklist(patientBlacklist);

View File

@ -0,0 +1,61 @@
package com.xinelu.manage.service.patientblacklistabnormalcause;
import com.xinelu.manage.domain.patientblacklistabnormalcause.PatientBlacklistAbnormalCause;
import java.util.List;
/**
* 患者黑名单异常原因Service接口
*
* @author haown
* @date 2024-03-01
*/
public interface IPatientBlacklistAbnormalCauseService {
/**
* 查询患者黑名单异常原因
*
* @param id 患者黑名单异常原因主键
* @return 患者黑名单异常原因
*/
public PatientBlacklistAbnormalCause selectPatientBlacklistAbnormalCauseById(Long id);
/**
* 查询患者黑名单异常原因列表
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 患者黑名单异常原因集合
*/
public List<PatientBlacklistAbnormalCause> selectPatientBlacklistAbnormalCauseList(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause);
/**
* 新增患者黑名单异常原因
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 结果
*/
public int insertPatientBlacklistAbnormalCause(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause);
/**
* 修改患者黑名单异常原因
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 结果
*/
public int updatePatientBlacklistAbnormalCause(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause);
/**
* 批量删除患者黑名单异常原因
*
* @param ids 需要删除的患者黑名单异常原因主键集合
* @return 结果
*/
public int deletePatientBlacklistAbnormalCauseByIds(Long[] ids);
/**
* 删除患者黑名单异常原因信息
*
* @param id 患者黑名单异常原因主键
* @return 结果
*/
public int deletePatientBlacklistAbnormalCauseById(Long id);
}

View File

@ -0,0 +1,89 @@
package com.xinelu.manage.service.patientblacklistabnormalcause.impl;
import com.xinelu.common.utils.DateUtils;
import com.xinelu.manage.domain.patientblacklistabnormalcause.PatientBlacklistAbnormalCause;
import com.xinelu.manage.mapper.patientblacklistabnormalcause.PatientBlacklistAbnormalCauseMapper;
import com.xinelu.manage.service.patientblacklistabnormalcause.IPatientBlacklistAbnormalCauseService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
/**
* 患者黑名单异常原因Service业务层处理
*
* @author haown
* @date 2024-03-01
*/
@Service
public class PatientBlacklistAbnormalCauseServiceImpl implements IPatientBlacklistAbnormalCauseService {
@Resource
private PatientBlacklistAbnormalCauseMapper patientBlacklistAbnormalCauseMapper;
/**
* 查询患者黑名单异常原因
*
* @param id 患者黑名单异常原因主键
* @return 患者黑名单异常原因
*/
@Override
public PatientBlacklistAbnormalCause selectPatientBlacklistAbnormalCauseById(Long id) {
return patientBlacklistAbnormalCauseMapper.selectPatientBlacklistAbnormalCauseById(id);
}
/**
* 查询患者黑名单异常原因列表
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 患者黑名单异常原因
*/
@Override
public List<PatientBlacklistAbnormalCause> selectPatientBlacklistAbnormalCauseList(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause) {
return patientBlacklistAbnormalCauseMapper.selectPatientBlacklistAbnormalCauseList(patientBlacklistAbnormalCause);
}
/**
* 新增患者黑名单异常原因
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 结果
*/
@Override
public int insertPatientBlacklistAbnormalCause(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause) {
patientBlacklistAbnormalCause.setCreateTime(DateUtils.getNowDate());
return patientBlacklistAbnormalCauseMapper.insertPatientBlacklistAbnormalCause(patientBlacklistAbnormalCause);
}
/**
* 修改患者黑名单异常原因
*
* @param patientBlacklistAbnormalCause 患者黑名单异常原因
* @return 结果
*/
@Override
public int updatePatientBlacklistAbnormalCause(PatientBlacklistAbnormalCause patientBlacklistAbnormalCause) {
patientBlacklistAbnormalCause.setUpdateTime(DateUtils.getNowDate());
return patientBlacklistAbnormalCauseMapper.updatePatientBlacklistAbnormalCause(patientBlacklistAbnormalCause);
}
/**
* 批量删除患者黑名单异常原因
*
* @param ids 需要删除的患者黑名单异常原因主键
* @return 结果
*/
@Override
public int deletePatientBlacklistAbnormalCauseByIds(Long[] ids) {
return patientBlacklistAbnormalCauseMapper.deletePatientBlacklistAbnormalCauseByIds(ids);
}
/**
* 删除患者黑名单异常原因信息
*
* @param id 患者黑名单异常原因主键
* @return 结果
*/
@Override
public int deletePatientBlacklistAbnormalCauseById(Long id) {
return patientBlacklistAbnormalCauseMapper.deletePatientBlacklistAbnormalCauseById(id);
}
}

View File

@ -0,0 +1,10 @@
package com.xinelu.manage.service.project;
/**
* @author haown
* @description 针对表project(检测项目表)的数据库操作Service
* @createDate 2024-02-29 15:10:38
*/
public interface IProjectService {
}

View File

@ -0,0 +1,14 @@
package com.xinelu.manage.service.project.impl;
import com.xinelu.manage.service.project.IProjectService;
import org.springframework.stereotype.Service;
/**
* @author haown
* @description 针对表project(检测项目表)的数据库操作Service实现
* @createDate 2024-02-29 15:10:38
*/
@Service
public class ProjectServiceImpl implements IProjectService {
}

View File

@ -0,0 +1,10 @@
package com.xinelu.manage.service.projectdevice;
/**
* @author haown
* @description 针对表project_device(检测项目设备表)的数据库操作Service
* @createDate 2024-02-29 15:15:14
*/
public interface IProjectDeviceService {
}

View File

@ -0,0 +1,14 @@
package com.xinelu.manage.service.projectdevice.impl;
import com.xinelu.manage.service.projectdevice.IProjectDeviceService;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description 针对表project_device(检测项目设备表)的数据库操作Service实现
* @createDate 2024-02-29 15:15:14
*/
@Service
public class ProjectDeviceServiceImpl implements IProjectDeviceService {
}

View File

@ -0,0 +1,10 @@
package com.xinelu.manage.service.projectgroup;
/**
* @author haown
* @description 针对表project_group(检测项目分组表)的数据库操作Service
* @createDate 2024-02-29 15:19:16
*/
public interface IProjectGroupService {
}

View File

@ -0,0 +1,14 @@
package com.xinelu.manage.service.projectgroup.impl;
import com.xinelu.manage.service.projectgroup.IProjectGroupService;
import org.springframework.stereotype.Service;
/**
* @author haown
* @description 针对表project_group(检测项目分组表)的数据库操作Service实现
* @createDate 2024-02-29 15:19:16
*/
@Service
public class ProjectGroupServiceImpl implements IProjectGroupService {
}

View File

@ -0,0 +1,10 @@
package com.xinelu.manage.service.projectlastrecord;
/**
* @author haown
* @description 针对表project_last_record(最近一次检测项目数据记录表)的数据库操作Service
* @createDate 2024-02-29 15:20:41
*/
public interface IProjectLastRecordService {
}

View File

@ -0,0 +1,14 @@
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 {
}

View File

@ -0,0 +1,10 @@
package com.xinelu.manage.service.projectrecord;
/**
* @author haown
* @description 针对表project_record(检测项目数据记录表)的数据库操作Service
* @createDate 2024-02-29 15:22:15
*/
public interface IProjectRecordService {
}

View File

@ -0,0 +1,14 @@
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 {
}

View File

@ -0,0 +1,10 @@
package com.xinelu.manage.service.projectrecordfile;
/**
* @author haown
* @description 针对表project_record_file(检测项目数据记录附件表扩展)的数据库操作Service
* @createDate 2024-02-29 15:23:25
*/
public interface IProjectRecordFileService {
}

View File

@ -0,0 +1,14 @@
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 {
}

View File

@ -1,8 +1,11 @@
package com.xinelu.manage.service.propagandainfo;
import java.util.List;
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
import com.xinelu.manage.dto.department.DepartmentDTO;
import com.xinelu.manage.dto.propagandainfo.PropagandaInfoDto;
import com.xinelu.manage.dto.propagandainfo.PropagandaUpdateDto;
import com.xinelu.manage.vo.department.DepartmentVO;
import java.util.List;
/**
* 宣教库管理Service接口
@ -25,7 +28,7 @@ public interface IPropagandaInfoService {
* @param propagandaInfo 宣教库管理
* @return 宣教库管理集合
*/
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfo propagandaInfo);
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfoDto propagandaInfo);
/**
* 新增宣教库管理
@ -43,6 +46,22 @@ public interface IPropagandaInfoService {
*/
public int updatePropagandaInfo(PropagandaInfo propagandaInfo);
/**
* 复制宣教库管理
*
* @param id 宣教库id
* @return 结果
*/
public int copyPropagandaInfo(Long id);
/**
* 修改宣教库管理
*
* @param propagandaInfo 宣教库管理
* @return 结果
*/
public int updateStatus(PropagandaUpdateDto propagandaInfo);
/**
* 批量删除宣教库管理
*
@ -58,4 +77,12 @@ public interface IPropagandaInfoService {
* @return 结果
*/
public int deletePropagandaInfoById(Long id);
/**
* 查询科室信息列表及包含宣教信息数量
*
* @param departmentDto
* @return
*/
List<DepartmentVO> selectNumByDept(DepartmentDTO departmentDto);
}

View File

@ -1,12 +1,17 @@
package com.xinelu.manage.service.propagandainfo.impl;
import com.xinelu.common.utils.DateUtils;
import com.xinelu.common.utils.SecurityUtils;
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
import com.xinelu.manage.dto.department.DepartmentDTO;
import com.xinelu.manage.dto.propagandainfo.PropagandaInfoDto;
import com.xinelu.manage.dto.propagandainfo.PropagandaUpdateDto;
import com.xinelu.manage.mapper.propagandainfo.PropagandaInfoMapper;
import com.xinelu.manage.service.propagandainfo.IPropagandaInfoService;
import com.xinelu.manage.vo.department.DepartmentVO;
import java.util.List;
import com.xinelu.common.utils.DateUtils;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.xinelu.manage.mapper.propagandainfo.PropagandaInfoMapper;
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
import com.xinelu.manage.service.propagandainfo.IPropagandaInfoService;
/**
* 宣教库管理Service业务层处理
@ -37,7 +42,7 @@ public class PropagandaInfoServiceImpl implements IPropagandaInfoService {
* @return 宣教库管理
*/
@Override
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfo propagandaInfo) {
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfoDto propagandaInfo) {
return propagandaInfoMapper.selectPropagandaInfoList(propagandaInfo);
}
@ -61,11 +66,30 @@ public class PropagandaInfoServiceImpl implements IPropagandaInfoService {
*/
@Override
public int updatePropagandaInfo(PropagandaInfo propagandaInfo) {
propagandaInfo.setUpdateTime(DateUtils.getNowDate());
propagandaInfo.setUpdateTime(DateUtils.getNowDate());
return propagandaInfoMapper.updatePropagandaInfo(propagandaInfo);
}
/**
@Override public int copyPropagandaInfo(Long id) {
PropagandaInfo propagandaInfo = propagandaInfoMapper.selectPropagandaInfoById(id);
propagandaInfo.setId(null);
propagandaInfo.setCreateTime(DateUtils.getNowDate());
propagandaInfo.setCreateBy(SecurityUtils.getLoginUser().getUser().getNickName());
propagandaInfo.setUpdateTime(null);
propagandaInfo.setUpdateBy(null);
propagandaInfo.setPropagandaCode(propagandaInfo.getPropagandaCode() + "-COPY");
propagandaInfo.setPropagandaStatus("CREATE_COMPLETE");
return propagandaInfoMapper.insertPropagandaInfo(propagandaInfo);
}
@Override public int updateStatus(PropagandaUpdateDto propagandaInfo) {
PropagandaInfo body = new PropagandaInfo();
body.setId(propagandaInfo.getId());
body.setPropagandaStatus(propagandaInfo.getPropagandaStatus());
return propagandaInfoMapper.updatePropagandaInfo(body);
}
/**
* 批量删除宣教库管理
*
* @param ids 需要删除的宣教库管理主键
@ -86,4 +110,8 @@ public class PropagandaInfoServiceImpl implements IPropagandaInfoService {
public int deletePropagandaInfoById(Long id) {
return propagandaInfoMapper.deletePropagandaInfoById(id);
}
@Override public List<DepartmentVO> selectNumByDept(DepartmentDTO departmentDto) {
return propagandaInfoMapper.selectNumByDept(departmentDto);
}
}

View File

@ -0,0 +1,20 @@
package com.xinelu.manage.service.signpatientinformed;
import com.xinelu.common.core.domain.AjaxResult;
import org.springframework.web.multipart.MultipartFile;
/**
* 文件上传Service接口
*
* @author xinelu
* @date 2024-02-27
*/
public interface IFileUploadService {
/**
* 文件上传接口
*
* @param multipartFile 文件
* @return
**/
AjaxResult uploadFile(MultipartFile multipartFile, String type) throws Exception;
}

View File

@ -1,11 +1,7 @@
package com.xinelu.manage.service.signpatientinformed;
import com.xinelu.common.core.domain.AjaxResult;
import com.xinelu.common.exception.file.InvalidExtensionException;
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
import java.io.IOException;
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
/**
* 签约知情同意书信息Service接口
@ -62,6 +58,5 @@ public interface ISignPatientInformedService {
*/
public int deleteSignPatientInformedById(Long id);
AjaxResult uploadFile(MultipartFile multipartFile) throws IOException, InvalidExtensionException;
}

View File

@ -0,0 +1,66 @@
package com.xinelu.manage.service.signpatientinformed.impl;
import com.xinelu.common.config.SystemBusinessConfig;
import com.xinelu.common.constant.FileUploadPathConstants;
import com.xinelu.common.core.domain.AjaxResult;
import com.xinelu.common.exception.ServiceException;
import com.xinelu.common.utils.file.FileUploadUtils;
import com.xinelu.common.utils.file.MimeTypeUtils;
import com.xinelu.manage.service.signpatientinformed.IFileUploadService;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
/**
* @description: 文件上传Service业务层处理
* @author: haown
* @create: 2024-03-01 10:36
**/
@Service
public class FileUplooadServiceImpl implements IFileUploadService {
@Resource
private SystemBusinessConfig systemBusinessConfig;
@Override public AjaxResult uploadFile(MultipartFile multipartFile, String type) throws Exception {
//获取不同的文件路径
String uploadPathUrl = "";
switch (type) {
// 签约知情书
case FileUploadPathConstants.SIGN_INFORMED_TYPE:
uploadPathUrl = SystemBusinessConfig.getProfile() + systemBusinessConfig.getSignInformedFileUrl();
break;
//护理宣教库封面路径上传
case FileUploadPathConstants.PROPAGANDA_COVER_TYPE:
uploadPathUrl = SystemBusinessConfig.getProfile() + systemBusinessConfig.getPropagandaCoverUrl();
break;
//素材库封面图片路径上传
case FileUploadPathConstants.MATERIALS_COVER_TYPE:
uploadPathUrl = SystemBusinessConfig.getProfile() + systemBusinessConfig.getMaterialsCoverUrl();
break;
//素材库视频路径上传
case FileUploadPathConstants.MATERIALS_VIDEO_TYPE:
uploadPathUrl = SystemBusinessConfig.getProfile() + systemBusinessConfig.getMaterialsVideoUrl();
break;
default:
break;
}
if (StringUtils.isBlank(uploadPathUrl)) {
return AjaxResult.success();
}
//上传
String pictureName = "";
if (StringUtils.equals(type, FileUploadPathConstants.MATERIALS_VIDEO_TYPE)) {
pictureName = FileUploadUtils.upload(uploadPathUrl, multipartFile, MimeTypeUtils.VIDEO_EXTENSION);
} else {
pictureName = FileUploadUtils.upload(uploadPathUrl, multipartFile, MimeTypeUtils.IMAGE_EXTENSION);
}
if (StringUtils.isBlank(pictureName)) {
throw new ServiceException("图片上传失败,请联系管理员!");
}
AjaxResult ajax = AjaxResult.success("上传成功!");
ajax.put("imgUrl", pictureName);
return ajax;
}
}

View File

@ -1,21 +1,12 @@
package com.xinelu.manage.service.signpatientinformed.impl;
import com.xinelu.common.config.SystemBusinessConfig;
import com.xinelu.common.core.domain.AjaxResult;
import com.xinelu.common.exception.ServiceException;
import com.xinelu.common.exception.file.InvalidExtensionException;
import com.xinelu.common.utils.DateUtils;
import com.xinelu.common.utils.file.FileUploadUtils;
import com.xinelu.common.utils.file.MimeTypeUtils;
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
import com.xinelu.manage.mapper.signpatientinformed.SignPatientInformedMapper;
import com.xinelu.manage.service.signpatientinformed.ISignPatientInformedService;
import java.io.IOException;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
/**
* 签约知情同意书信息Service业务层处理
@ -27,8 +18,6 @@ import org.springframework.web.multipart.MultipartFile;
public class SignPatientInformedServiceImpl implements ISignPatientInformedService {
@Resource
private SignPatientInformedMapper signPatientInformedMapper;
@Resource
private SystemBusinessConfig systemBusinessConfig;
/**
* 查询签约知情同意书信息
@ -98,19 +87,4 @@ public class SignPatientInformedServiceImpl implements ISignPatientInformedServi
return signPatientInformedMapper.deleteSignPatientInformedById(id);
}
@Override public AjaxResult uploadFile(MultipartFile multipartFile) throws IOException, InvalidExtensionException {
//获取不同的文件路径
String uploadPathUrl = SystemBusinessConfig.getProfile() + systemBusinessConfig.getSignInformedFileUrl();
if (StringUtils.isBlank(uploadPathUrl)) {
return AjaxResult.success();
}
//上传
String pictureName = FileUploadUtils.uploadSystemBusinessPath(uploadPathUrl, multipartFile, MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION);
if (StringUtils.isBlank(pictureName)) {
throw new ServiceException("文件上传失败,请联系管理员!");
}
AjaxResult ajax = AjaxResult.success("上传成功!");
ajax.put("fileUrl", pictureName);
return ajax;
}
}

View File

@ -19,10 +19,10 @@ public interface ISignPatientRecordService {
/**
* 根据签约编号查询居民签约信息
* @param patientSignRecordId
* @param id
* @return
*/
SignPatientInfoVo getByRecordId(Long patientSignRecordId);
SignPatientInfoVo getByRecordId(Long id);
/**
* 根据患者主键查询患者签约记录列表

View File

@ -4,25 +4,32 @@ import com.xinelu.common.constant.PaymentStatusConstants;
import com.xinelu.common.constant.SignRecordServiceStatusConstants;
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.manage.domain.patientinfo.PatientInfo;
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
import com.xinelu.manage.domain.signpatientpackage.SignPatientPackage;
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
import com.xinelu.manage.domain.signpatientrecord.SignPatientRecord;
import com.xinelu.manage.dto.signpatientrecord.SignPatientStatusDto;
import com.xinelu.manage.dto.signpatientrecord.SignPatientAddDto;
import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto;
import com.xinelu.manage.dto.signpatientrecord.SignPatientStatusDto;
import com.xinelu.manage.mapper.patientinfo.PatientInfoMapper;
import com.xinelu.manage.mapper.signpatientinformed.SignPatientInformedMapper;
import com.xinelu.manage.mapper.signpatientpackagehardware.SignPatientPackageHardwareMapper;
import com.xinelu.manage.mapper.signpatientpackage.SignPatientPackageMapper;
import com.xinelu.manage.mapper.signpatientpackagehardware.SignPatientPackageHardwareMapper;
import com.xinelu.manage.mapper.signpatientrecord.SignPatientRecordMapper;
import com.xinelu.manage.service.signpatientrecord.ISignPatientRecordService;
import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo;
import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo;
import com.xinelu.manage.vo.signpatientrecord.SignPatientListVo;
import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo;
import java.util.Calendar;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
/**
@ -42,29 +49,54 @@ public class SignPatientRecordServiceImpl implements ISignPatientRecordService {
private SignPatientPackageHardwareMapper hardwareMapper;
@Resource
private SignPatientInformedMapper informedMapper;
@Resource
private PatientInfoMapper patientInfoMapper;
@Resource
private SignPatientPackageHardwareMapper signPatientPackageHardwareMapper;
@Resource
private SignPatientInformedMapper signPatientInformedMapper;
@Override public List<SignPatientListVo> selectList(SignPatientListDto signPatientRecord) {
return signPatientRecordMapper.selectList(signPatientRecord);
}
@Override public SignPatientInfoVo getByRecordId(Long patientSignRecordId) {
return signPatientRecordMapper.getByRecordId(patientSignRecordId);
@Override public SignPatientInfoVo getByRecordId(Long id) {
SignPatientInfoVo signPatientInfoVo = signPatientRecordMapper.getByRecordId(id);
// 根据签约记录主键查询设备列表
SignPatientPackageHardware queryDevice = new SignPatientPackageHardware();
queryDevice.setSignPatientRecordId(id);
List<SignPatientPackageHardware> devices = signPatientPackageHardwareMapper.selectSignPatientPackageHardwareList(queryDevice);
signPatientInfoVo.setSignDevices(devices);
SignPatientInformed signPatientInformed = new SignPatientInformed();
signPatientInformed.setSignPatientRecordId(id);
List<SignPatientInformed> informeds = signPatientInformedMapper.selectSignPatientInformedList(signPatientInformed);
signPatientInfoVo.setSignPatientInformeds(informeds);
return signPatientInfoVo;
}
@Override public List<SignPatientRecordVo> getByPatient(Long patientId) {
return signPatientRecordMapper.getByPatient(patientId);
}
@Override public int add(SignPatientAddDto body) {
@Override
@Transactional(rollbackFor = Exception.class)
public int add(SignPatientAddDto body) {
SignPatientPackage signPatientPackage = body.getSignPackage();
if (ObjectUtils.isNotEmpty(body.getRecord())) {
SignPatientRecord signPatientRecord = body.getRecord();
signPatientRecord.setId(null);
if (signPatientRecord.getPatientId() == null) {
throw new ServiceException("数据错误");
}
PatientInfo patient = patientInfoMapper.selectPatientInfoById(signPatientRecord.getPatientId());
if (ObjectUtils.isEmpty(patient)) {
throw new ServiceException("请选择签约居民");
}
signPatientRecord.setServiceStatus(SignRecordServiceStatusConstants.SERVICE_CENTER);
signPatientRecord.setDelFlag(0);
signPatientRecord.setPaymentStatus(PaymentStatusConstants.UNPAID_FEES);
signPatientRecord.setSignTime(DateUtils.getNowDate());
signPatientRecord.setSignStatus(SignRecordServiceStatusConstants.IN_SIGN);
if (signPatientPackage != null) {
@ -72,7 +104,12 @@ public class SignPatientRecordServiceImpl implements ISignPatientRecordService {
} else {
throw new ServiceException("请选择服务包");
}
// 签约信息保存到患者表
patient.setSignPatientRecordId(signPatientRecord.getId());
patient.setSignStatus(SignRecordServiceStatusConstants.IN_SIGN);
patient.setServiceStatus(SignRecordServiceStatusConstants.SERVICE_CENTER);
patient.setSignTime(DateUtils.getNowDate());
patientInfoMapper.updatePatientInfo(patient);
// 保存签约记录
int flag = signPatientRecordMapper.insert(signPatientRecord);
if (flag > 0) {
@ -81,22 +118,48 @@ public class SignPatientRecordServiceImpl implements ISignPatientRecordService {
signPatientPackage.setSignPatientRecordId(signPatientRecord.getId());
signPatientPackage.setPatientId(signPatientRecord.getPatientId());
signPatientPackage.setPackagePaymentStatus(PaymentStatusConstants.UNPAID_FEES);
signPatientPackageMapper.insertSignPatientPackage(signPatientPackage);
// 保存硬件
if (!CollectionUtils.isEmpty(body.getDevices())) {
for(SignPatientPackageHardware hardware : body.getDevices()) {
hardware.setSignPatientRecordId(signPatientRecord.getId());
hardwareMapper.insertSignPatientPackageHardware(hardware);
if (signPatientPackage.getServiceStartTime() == null) {
signPatientPackage.setServiceStartTime(DateUtils.parseDate(DateFormatUtils.format(DateUtils.getNowDate(), "yyyy-MM-dd") + " 00:00:00"));
Calendar calendar = Calendar.getInstance();
// 将日期设置为1号每次计算都从第一天开始
calendar.setTime(DateUtils.getNowDate());
// 添加一个月
calendar.add(Calendar.MONTH, signPatientPackage.getServiceCycle());
// 再减去一天
calendar.add(Calendar.DATE, -1);
signPatientPackage.setServiceEndTime(DateUtils.parseDate(DateFormatUtils.format(calendar.getTime(), "yyyy-MM-dd") + " 23:59:59"));
} else {
signPatientPackage.setServiceStartTime(DateUtils.parseDate(DateFormatUtils.format(signPatientPackage.getServiceStartTime(), "yyyy-MM-dd") + " 00:00:00"));
if (signPatientPackage.getServiceStartTime() == null) {
Calendar calendar = Calendar.getInstance();
// 将日期设置为1号每次计算都从第一天开始
calendar.setTime(signPatientPackage.getServiceStartTime());
// 添加一个月
calendar.add(Calendar.MONTH, signPatientPackage.getServiceCycle());
// 再减去一天
calendar.add(Calendar.DATE, -1);
signPatientPackage.setServiceEndTime(DateUtils.parseDate(DateFormatUtils.format(calendar.getTime(), "yyyy-MM-dd") + " 23:59:59"));
} else {
signPatientPackage.setServiceEndTime(DateUtils.parseDate(DateFormatUtils.format(signPatientPackage.getServiceEndTime(), "yyyy-MM-dd") + " 23:59:59"));
}
}
signPatientPackageMapper.insertSignPatientPackage(signPatientPackage);
}
// 保存硬件
if (!CollectionUtils.isEmpty(body.getDevices())) {
for(SignPatientPackageHardware hardware : body.getDevices()) {
hardware.setSignPatientRecordId(signPatientRecord.getId());
hardwareMapper.insertSignPatientPackageHardware(hardware);
}
}
// 保存告知书
if (body.getSignPatientInformed() != null) {
SignPatientInformed informed = new SignPatientInformed();
informed.setSignPatientRecordId(signPatientRecord.getId());
informed.setPatientId(signPatientRecord.getPatientId());
informedMapper.insertSignPatientInformed(informed);
if (!CollectionUtils.isEmpty(body.getInformeds())) {
for (SignPatientInformed informed : body.getInformeds()) {
informed.setSignPatientRecordId(signPatientRecord.getId());
informed.setPatientId(signPatientRecord.getPatientId());
informedMapper.insertSignPatientInformed(informed);
}
}
}
return flag;
@ -104,14 +167,30 @@ public class SignPatientRecordServiceImpl implements ISignPatientRecordService {
return 0;
}
@Override public int updateSignStatus(SignPatientStatusDto patientCancelSignDto) {
@Override
@Transactional(rollbackFor = Exception.class)
public int updateSignStatus(SignPatientStatusDto patientCancelSignDto) {
if (patientCancelSignDto.getPatientId() == null) {
throw new ServiceException("居民主键不能为空");
}
// 修改签约记录状态
SignPatientRecord signRecord = new SignPatientRecord();
signRecord.setId(patientCancelSignDto.getId());
signRecord.setSignStatus(patientCancelSignDto.getSignStatus());
signRecord.setServiceStatus(patientCancelSignDto.getServiceStatus());
signRecord.setUpdateBy(SecurityUtils.getLoginUser().getUser().getNickName());
signRecord.setUpdateTime(DateUtils.getNowDate());
signRecord.setSeparateReason(patientCancelSignDto.getSeparateReason());
if (StringUtils.equals(SignRecordServiceStatusConstants.SEPARATE_SIGN, patientCancelSignDto.getSignStatus())) {
PatientInfo patient = patientInfoMapper.selectPatientInfoById(patientCancelSignDto.getPatientId());
// 签约信息保存到患者表
patient.setSignStatus(patientCancelSignDto.getSignStatus());
patient.setServiceStatus(patientCancelSignDto.getServiceStatus());
patientInfoMapper.updatePatientInfo(patient);
}
int flag = signPatientRecordMapper.updateByPrimaryKeySelective(signRecord);
return flag;
}
}

View File

@ -67,12 +67,21 @@ public class PatientBlacklistVo {
@ApiModelProperty(value = "异常原因字典表值")
private String abnormalCauseValue;
/** 补充说明字典表id */
private Long supplementIllustrateId;
/** 补充说明字典表值 */
private String supplementIllustrateValue;
/**
* 来源(CALL_DETECTION通话检测MANUAL_BLACKOUT手动拉黑, MANUAL_ADDITION手动添加HIS_CONNECTHIS对接)
*/
@ApiModelProperty(value = "来源(CALL_DETECTION通话检测MANUAL_BLACKOUT手动拉黑,MANUAL_ADDITION手动添加HIS_CONNECTHIS对接)")
private String blacklistSource;
/** 功能限制(具体来源未知?) */
private String functionLimitation;
/**
* 创建时间
*/

View File

@ -2,6 +2,7 @@ package com.xinelu.manage.vo.signpatientrecord;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.common.annotation.Excel;
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -46,10 +47,20 @@ public class SignPatientInfoVo {
@ApiModelProperty(value = "身份证号")
private String cardNo;
/** 性别 */
@ApiModelProperty(value = "性别")
private String sex;
/** 出生日期格式yyyy-MM-dd */
@ApiModelProperty(value = "出生日期格式yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date birthDate;
/**
* 签约时间格式yyyy-MM-dd HH:mm:ss
*/
@ApiModelProperty(value = "签约时间格式yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date signTime;
/**
@ -88,6 +99,9 @@ public class SignPatientInfoVo {
@ApiModelProperty(value = "就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL")
private String visitMethod;
@ApiModelProperty(value = "住院/门诊号")
private String inHospitalNumber;
/**
* 签约时诊断
*/
@ -107,7 +121,7 @@ public class SignPatientInfoVo {
private String serviceStatus;
/**
* 签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN
* 签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN过期EXPIRE_SIGN
*/
@ApiModelProperty(value = "签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN过期EXPIRE_SIGN")
private String signStatus;
@ -149,4 +163,7 @@ public class SignPatientInfoVo {
@ApiModelProperty(value = "签约硬件设备列表")
private List<SignPatientPackageHardware> signDevices;
@ApiModelProperty(value = "签约知情书列表")
private List<SignPatientInformed> signPatientInformeds;
}

View File

@ -1,5 +1,6 @@
package com.xinelu.manage.vo.signpatientrecord;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
@ -43,10 +44,20 @@ public class SignPatientListVo {
@ApiModelProperty(value = "身份证号")
private String cardNo;
/** 性别 */
@ApiModelProperty(value = "性别")
private String sex;
/** 出生日期格式yyyy-MM-dd */
@ApiModelProperty(value = "出生日期格式yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date birthDate;
/**
* 签约时间格式yyyy-MM-dd HH:mm:ss
*/
@ApiModelProperty(value = "签约时间格式yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date signTime;
/**
@ -85,6 +96,21 @@ public class SignPatientListVo {
@ApiModelProperty(value = "就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL")
private String visitMethod;
@ApiModelProperty(value = "住院/门诊号")
private String inHospitalNumber;
/**
* 签约时诊断
*/
@ApiModelProperty(value = "签约时诊断")
private String signDiagnosis;
/**
* 审核后诊断
*/
@ApiModelProperty(value = "审核后诊断")
private String reviewDiagnosis;
/**
* 服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END
*/
@ -92,9 +118,9 @@ public class SignPatientListVo {
private String serviceStatus;
/**
* 签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN
* 签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN过期EXPIRE_SIGN
*/
@ApiModelProperty(value = "签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN")
@ApiModelProperty(value = "签约状态在签IN_SIGN忽略IGNORE_SIGN解约SEPARATE_SIGN续约CONTINUOUS_SIGN过期EXPIRE_SIGN")
private String signStatus;
/**
@ -107,6 +133,7 @@ public class SignPatientListVo {
* 加入意向时间意向签约
*/
@ApiModelProperty(value = "加入意向时间(意向签约)")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date intentionalTime;
/**

View File

@ -0,0 +1,195 @@
<?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.crowdinfo.CrowdInfoMapper">
<resultMap type="CrowdInfo" id="CrowdInfoResult">
<result property="id" column="id"/>
<result property="crowdName" column="crowd_name"/>
<result property="minSuitableAge" column="min_suitable_age"/>
<result property="maxSuitableAge" column="max_suitable_age"/>
<result property="suitableGender" column="suitable_gender"/>
<result property="crowdType" column="crowd_type"/>
<result property="specialType" column="special_type"/>
<result property="whetherDisable" column="whether_disable"/>
<result property="remark" column="remark"/>
<result property="sort" column="sort"/>
<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="selectCrowdInfoVo">
select id, crowd_name, min_suitable_age, max_suitable_age, suitable_gender, crowd_type, special_type, whether_disable, remark, sort, del_flag, create_by, create_time, update_by, update_time from crowd_info
</sql>
<select id="selectCrowdInfoList" parameterType="CrowdInfo" resultMap="CrowdInfoResult">
<include refid="selectCrowdInfoVo"/>
<where>
<if test="crowdName != null and crowdName != ''">
and crowd_name like concat('%', #{crowdName}, '%')
</if>
<if test="minSuitableAge != null ">
and min_suitable_age = #{minSuitableAge}
</if>
<if test="maxSuitableAge != null ">
and max_suitable_age = #{maxSuitableAge}
</if>
<if test="suitableGender != null and suitableGender != ''">
and suitable_gender = #{suitableGender}
</if>
<if test="crowdType != null and crowdType != ''">
and crowd_type = #{crowdType}
</if>
<if test="specialType != null and specialType != ''">
and special_type = #{specialType}
</if>
<if test="whetherDisable != null ">
and whether_disable = #{whetherDisable}
</if>
<if test="sort != null ">
and sort = #{sort}
</if>
<if test="createTime != null ">
and create_time = #{createTime}
</if>
<if test="updateTime != null ">
and update_time = #{updateTime}
</if>
</where>
</select>
<select id="selectCrowdInfoById" parameterType="Long"
resultMap="CrowdInfoResult">
<include refid="selectCrowdInfoVo"/>
where id = #{id}
</select>
<insert id="insertCrowdInfo" parameterType="CrowdInfo" useGeneratedKeys="true"
keyProperty="id">
insert into crowd_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="crowdName != null">crowd_name,
</if>
<if test="minSuitableAge != null">min_suitable_age,
</if>
<if test="maxSuitableAge != null">max_suitable_age,
</if>
<if test="suitableGender != null">suitable_gender,
</if>
<if test="crowdType != null">crowd_type,
</if>
<if test="specialType != null">special_type,
</if>
<if test="whetherDisable != null">whether_disable,
</if>
<if test="remark != null">remark,
</if>
<if test="sort != null">sort,
</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="crowdName != null">#{crowdName},
</if>
<if test="minSuitableAge != null">#{minSuitableAge},
</if>
<if test="maxSuitableAge != null">#{maxSuitableAge},
</if>
<if test="suitableGender != null">#{suitableGender},
</if>
<if test="crowdType != null">#{crowdType},
</if>
<if test="specialType != null">#{specialType},
</if>
<if test="whetherDisable != null">#{whetherDisable},
</if>
<if test="remark != null">#{remark},
</if>
<if test="sort != null">#{sort},
</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="updateCrowdInfo" parameterType="CrowdInfo">
update crowd_info
<trim prefix="SET" suffixOverrides=",">
<if test="crowdName != null">crowd_name =
#{crowdName},
</if>
<if test="minSuitableAge != null">min_suitable_age =
#{minSuitableAge},
</if>
<if test="maxSuitableAge != null">max_suitable_age =
#{maxSuitableAge},
</if>
<if test="suitableGender != null">suitable_gender =
#{suitableGender},
</if>
<if test="crowdType != null">crowd_type =
#{crowdType},
</if>
<if test="specialType != null">special_type =
#{specialType},
</if>
<if test="whetherDisable != null">whether_disable =
#{whetherDisable},
</if>
<if test="remark != null">remark =
#{remark},
</if>
<if test="sort != null">sort =
#{sort},
</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>
<delete id="deleteCrowdInfoById" parameterType="Long">
delete from crowd_info where id = #{id}
</delete>
<delete id="deleteCrowdInfoByIds" parameterType="String">
delete from crowd_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -34,18 +34,24 @@
select id, materials_name, materials_type, materials_option, materials_file_path, video_cover_type, video_cover_file_path, materials_abstract, indications, applicable_diseases, drug_name, surgical_name, check_items, inspection_items, crowd_id, crow_name, materials_status, materials_remark, materials_sort, create_by, create_time, update_by, update_time from materials_info
</sql>
<select id="selectMaterialsInfoList" parameterType="MaterialsInfo" resultMap="MaterialsInfoResult">
<select id="selectMaterialsInfoList" parameterType="com.xinelu.manage.dto.materialsinfo.MaterialsInfoDto" resultMap="MaterialsInfoResult">
<include refid="selectMaterialsInfoVo"/>
<where>
<if test="materialsName != null and materialsName != ''">
and materials_name like concat('%', #{materialsName}, '%')
</if>
<if test="materialsStatus != null and materialsStatus != ''">
and materials_status = #{materialsStatus}
</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''">
and create_time between #{params.beginCreateTime} and #{params.endCreateTime}
</if>
<if test="materialsName != null and materialsName != ''">
and materials_name like concat('%', #{materialsName}, '%')
</if>
<if test="materialsStatus != null and materialsStatus != ''">
and materials_status = #{materialsStatus}
</if>
<if test="materialsType != null and materialsType != ''">
and materials_type = #{materialsType}
</if>
<if test="createTimeStart != null">
and create_time >= #{createTimeStart}
</if>
<if test="createTimeEnd != null">
and create_time &lt;= #{createTimeEnd}
</if>
</where>
</select>

View File

@ -7,6 +7,12 @@
<resultMap type="PatientBlacklist" id="PatientBlacklistResult">
<result property="id" column="id"/>
<result property="patientId" column="patient_id"/>
<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="abnormalCauseId" column="abnormal_cause_id"/>
<result property="abnormalCauseValue" column="abnormal_cause_value"/>
<result property="supplementIllustrateId" column="supplement_illustrate_id"/>
@ -21,16 +27,18 @@
</resultMap>
<sql id="selectPatientBlacklistVo">
select id, patient_id, abnormal_cause_id, abnormal_cause_value, supplement_illustrate_id, supplement_illustrate_value,
function_limitation, blacklist_source, del_flag, create_by, create_time, update_by, update_time from patient_blacklist
select id, patient_id, hospital_agency_id,hospital_agency_name,campus_agency_id,campus_agency_name,department_id, department_name,
abnormal_cause_id, abnormal_cause_value, supplement_illustrate_id, supplement_illustrate_value,
function_limitation, blacklist_source, del_flag, create_by, create_time, update_by, update_time from patient_blacklist
</sql>
<select id="selectPatientBlacklistList" parameterType="com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto" resultMap="PatientBlacklistResult">
select b.id, b.patient_id, b.abnormal_cause_id, b.abnormal_cause_value, b.supplement_illustrate_id,
<select id="selectPatientBlacklistList" parameterType="com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto"
resultType="com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo">
select b.id, b.patient_id,b.hospital_agency_id, b.hospital_agency_name,b.campus_agency_id,b.campus_agency_name,
b.department_id, b.department_name, b.abnormal_cause_id, b.abnormal_cause_value, b.supplement_illustrate_id,
b.supplement_illustrate_value, b.function_limitation, b.blacklist_source,
b.create_time, p.patient_name,
p.patient_phone, p.card_no, p.hospital_agency_id, p.hospital_agency_name, p.campus_agency_id, p.campus_agency_name,
p.department_id, p.department_name from patient_blacklist b left join patient_info p on b.patient_id = p.id
b.create_time, p.patient_name, p.patient_phone, p.card_no from patient_blacklist b
left join patient_info p on b.patient_id = p.id
<where>
b.del_flag = 0
<if test="patientName != null and patientName != ''">
@ -55,109 +63,149 @@
</select>
<select id="selectPatientBlacklistById" parameterType="Long"
resultMap="PatientBlacklistResult">
<include refid="selectPatientBlacklistVo"/>
where id = #{id}
resultType="com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo">
select b.id, b.patient_id,b.hospital_agency_id, b.hospital_agency_name,b.campus_agency_id,b.campus_agency_name,
b.department_id, b.department_name, b.abnormal_cause_id, b.abnormal_cause_value, b.supplement_illustrate_id,
b.supplement_illustrate_value, b.function_limitation, b.blacklist_source,
b.create_time, p.patient_name, p.patient_phone, p.card_no from patient_blacklist b
left join patient_info p on b.patient_id = p.id
where b.id = #{id}
</select>
<insert id="insertPatientBlacklist" parameterType="PatientBlacklist" useGeneratedKeys="true"
keyProperty="id">
insert into patient_blacklist
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="patientId != null">patient_id,
</if>
<if test="abnormalCauseId != null">abnormal_cause_id,
</if>
<if test="abnormalCauseValue != null">abnormal_cause_value,
</if>
<if test="supplementIllustrateId != null">supplement_illustrate_id,
</if>
<if test="supplementIllustrateValue != null">supplement_illustrate_value,
</if>
<if test="functionLimitation != null">function_limitation,
</if>
<if test="blacklistSource != null">blacklist_source,
</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="patientId != null">patient_id,
</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="abnormalCauseId != null">abnormal_cause_id,
</if>
<if test="abnormalCauseValue != null">abnormal_cause_value,
</if>
<if test="supplementIllustrateId != null">supplement_illustrate_id,
</if>
<if test="supplementIllustrateValue != null">supplement_illustrate_value,
</if>
<if test="functionLimitation != null">function_limitation,
</if>
<if test="blacklistSource != null">blacklist_source,
</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="patientId != null">#{patientId},
</if>
<if test="abnormalCauseId != null">#{abnormalCauseId},
</if>
<if test="abnormalCauseValue != null">#{abnormalCauseValue},
</if>
<if test="supplementIllustrateId != null">#{supplementIllustrateId},
</if>
<if test="supplementIllustrateValue != null">#{supplementIllustrateValue},
</if>
<if test="functionLimitation != null">#{functionLimitation},
</if>
<if test="blacklistSource != null">#{blacklistSource},
</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>
<if test="patientId != null">#{patientId},
</if>
<if test="hospitalAgencyId != null">#{hospitalAgencyId},
</if>
<if test="hospitalAgencyName != null">#{hospitalAgencyName},
</if>
<if test="campusAgencyId != null">#{campusAgencyId},
</if>
<if test="campusAgencyName != null">#{campusAgencyName},
</if>
<if test="departmentId != null">#{departmentId},
</if>
<if test="departmentName != null">#{departmentName},
</if>
<if test="abnormalCauseId != null">#{abnormalCauseId},
</if>
<if test="abnormalCauseValue != null">#{abnormalCauseValue},
</if>
<if test="supplementIllustrateId != null">#{supplementIllustrateId},
</if>
<if test="supplementIllustrateValue != null">#{supplementIllustrateValue},
</if>
<if test="functionLimitation != null">#{functionLimitation},
</if>
<if test="blacklistSource != null">#{blacklistSource},
</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="updatePatientBlacklist" parameterType="PatientBlacklist">
update patient_blacklist
<trim prefix="SET" suffixOverrides=",">
<if test="patientId != null">patient_id =
#{patientId},
</if>
<if test="abnormalCauseId != null">abnormal_cause_id =
#{abnormalCauseId},
</if>
<if test="abnormalCauseValue != null">abnormal_cause_value =
#{abnormalCauseValue},
</if>
<if test="supplementIllustrateId != null">supplement_illustrate_id =
#{supplementIllustrateId},
</if>
<if test="supplementIllustrateValue != null">supplement_illustrate_value =
#{supplementIllustrateValue},
</if>
<if test="functionLimitation != null">function_limitation =
#{functionLimitation},
</if>
<if test="blacklistSource != null">blacklist_source =
#{blacklistSource},
</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>
<if test="patientId != null">patient_id =
#{patientId},
</if>
<if test="hospitalAgencyId != null">hospital_agency_id = #{hospitalAgencyId},
</if>
<if test="hospitalAgencyName != null">hospital_agency_name = #{hospitalAgencyName},
</if>
<if test="campusAgencyId != null">campus_agency_id = #{campusAgencyId},
</if>
<if test="campusAgencyName != null">campus_agency_name = #{campusAgencyName},
</if>
<if test="departmentId != null">department_id = #{departmentId},
</if>
<if test="departmentName != null">department_name = #{departmentName},
</if>
<if test="abnormalCauseId != null">abnormal_cause_id =
#{abnormalCauseId},
</if>
<if test="abnormalCauseValue != null">abnormal_cause_value =
#{abnormalCauseValue},
</if>
<if test="supplementIllustrateId != null">supplement_illustrate_id =
#{supplementIllustrateId},
</if>
<if test="supplementIllustrateValue != null">supplement_illustrate_value =
#{supplementIllustrateValue},
</if>
<if test="functionLimitation != null">function_limitation =
#{functionLimitation},
</if>
<if test="blacklistSource != null">blacklist_source =
#{blacklistSource},
</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>

View File

@ -0,0 +1,157 @@
<?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.patientblacklistabnormalcause.PatientBlacklistAbnormalCauseMapper">
<resultMap type="PatientBlacklistAbnormalCause" id="PatientBlacklistAbnormalCauseResult">
<result property="id" column="id"/>
<result property="parentId" column="parent_id"/>
<result property="abnormalCauseCode" column="abnormal_cause_code"/>
<result property="abnormalCauseValue" column="abnormal_cause_value"/>
<result property="abnormalCauseLevel" column="abnormal_cause_level"/>
<result property="status" column="status"/>
<result property="delFlag" column="del_flag"/>
<result property="remark" column="remark"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="selectPatientBlacklistAbnormalCauseVo">
select id, parent_id, abnormal_cause_code, abnormal_cause_value, abnormal_cause_level, status, del_flag, remark, create_by, create_time, update_by, update_time from patient_blacklist_abnormal_cause
</sql>
<select id="selectPatientBlacklistAbnormalCauseList" parameterType="PatientBlacklistAbnormalCause" resultMap="PatientBlacklistAbnormalCauseResult">
<include refid="selectPatientBlacklistAbnormalCauseVo"/>
<where>
del_flag = 0
<if test="parentId != null ">
and parent_id = #{parentId}
</if>
<if test="abnormalCauseCode != null and abnormalCauseCode != ''">
and abnormal_cause_code = #{abnormalCauseCode}
</if>
<if test="abnormalCauseValue != null and abnormalCauseValue != ''">
and abnormal_cause_value = #{abnormalCauseValue}
</if>
<if test="abnormalCauseLevel != null and abnormalCauseLevel != ''">
and abnormal_cause_level = #{abnormalCauseLevel}
</if>
<if test="status != null and status != ''">
and status = #{status}
</if>
</where>
</select>
<select id="selectPatientBlacklistAbnormalCauseById" parameterType="Long"
resultMap="PatientBlacklistAbnormalCauseResult">
<include refid="selectPatientBlacklistAbnormalCauseVo"/>
where id = #{id}
</select>
<insert id="insertPatientBlacklistAbnormalCause" parameterType="PatientBlacklistAbnormalCause" useGeneratedKeys="true"
keyProperty="id">
insert into patient_blacklist_abnormal_cause
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="parentId != null">parent_id,
</if>
<if test="abnormalCauseCode != null">abnormal_cause_code,
</if>
<if test="abnormalCauseValue != null">abnormal_cause_value,
</if>
<if test="abnormalCauseLevel != null">abnormal_cause_level,
</if>
<if test="status != null">status,
</if>
<if test="delFlag != null">del_flag,
</if>
<if test="remark != null">remark,
</if>
<if test="createBy != null">create_by,
</if>
<if test="createTime != null">create_time,
</if>
<if test="updateBy != null">update_by,
</if>
<if test="updateTime != null">update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">#{parentId},
</if>
<if test="abnormalCauseCode != null">#{abnormalCauseCode},
</if>
<if test="abnormalCauseValue != null">#{abnormalCauseValue},
</if>
<if test="abnormalCauseLevel != null">#{abnormalCauseLevel},
</if>
<if test="status != null">#{status},
</if>
<if test="delFlag != null">#{delFlag},
</if>
<if test="remark != null">#{remark},
</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="updatePatientBlacklistAbnormalCause" parameterType="PatientBlacklistAbnormalCause">
update patient_blacklist_abnormal_cause
<trim prefix="SET" suffixOverrides=",">
<if test="parentId != null">parent_id =
#{parentId},
</if>
<if test="abnormalCauseCode != null">abnormal_cause_code =
#{abnormalCauseCode},
</if>
<if test="abnormalCauseValue != null">abnormal_cause_value =
#{abnormalCauseValue},
</if>
<if test="abnormalCauseLevel != null">abnormal_cause_level =
#{abnormalCauseLevel},
</if>
<if test="status != null">status =
#{status},
</if>
<if test="delFlag != null">del_flag =
#{delFlag},
</if>
<if test="remark != null">remark =
#{remark},
</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="deletePatientBlacklistAbnormalCauseById" parameterType="Long">
delete from patient_blacklist_abnormal_cause where id = #{id}
</delete>
<delete id="deletePatientBlacklistAbnormalCauseByIds" parameterType="String">
delete from patient_blacklist_abnormal_cause where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -14,6 +14,8 @@
<result property="address" column="address" />
<result property="patientType" column="patient_type" />
<result property="signStatus" column="sign_status" />
<result property="signPatientRecordId" column="sign_patient_record_id" />
<result property="serviceStatus" column="service_status" />
<result property="signTime" column="sign_time" />
<result property="certificateIssuingDoctor" column="certificate_issuing_doctor" />
<result property="visitMethod" column="visit_method" />
@ -77,11 +79,14 @@
<where>
del_flag = 0
<if test="patientName != null and patientName != ''">
and patient_name like concat('%', #{patientName}, '%')
and patient_name = #{patientName}
</if>
<if test="patientPhone != null and patientPhone != ''">
and patient_phone like concat('%', #{patientPhone}, '%')
</if>
<if test="cardNo != null and cardNo != ''">
and card_no = #{cardNo}
</if>
<if test="patientType != null and patientType != ''">
<choose>
<when test="patientType == 'OUTPATIENT_DISCHARGE'.toString()">
@ -183,6 +188,10 @@
</if>
<if test="signStatus != null">sign_status,
</if>
<if test="signPatientRecordId != null">sign_patient_record_id,
</if>
<if test="serviceStatus != null">service_status,
</if>
<if test="signTime != null">sign_time,
</if>
<if test="certificateIssuingDoctor != null">certificate_issuing_doctor,
@ -279,6 +288,10 @@
</if>
<if test="signStatus != null">#{signStatus},
</if>
<if test="signPatientRecordId != null">#{signPatientRecordId},
</if>
<if test="serviceStatus != null">#{serviceStatus},
</if>
<if test="signTime != null">#{signTime},
</if>
<if test="certificateIssuingDoctor != null">#{certificateIssuingDoctor},
@ -382,6 +395,10 @@
<if test="signStatus != null">sign_status =
#{signStatus},
</if>
<if test="signPatientRecordId != null">sign_patient_record_id = #{signPatientRecordId},
</if>
<if test="serviceStatus != null">service_status = #{serviceStatus},
</if>
<if test="signTime != null">sign_time =
#{signTime},
</if>

View File

@ -0,0 +1,195 @@
<?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>
<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>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from project
where id = #{id,jdbcType=BIGINT}
</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">
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>
</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>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.project.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}
</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>

View File

@ -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.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>
<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>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from project_device
where id = #{id,jdbcType=BIGINT}
</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">
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>
</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>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectdevice.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}
</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>

View File

@ -0,0 +1,139 @@
<?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>
<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>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from project_group
where id = #{id,jdbcType=BIGINT}
</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">
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>
</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>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.xinelu.manage.domain.projectgroup.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}
</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>
</mapper>

View File

@ -0,0 +1,243 @@
<?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.projectlastrecord.ProjectLastRecordMapper">
<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>
<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_last_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from project_last_record
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
( 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.projectlastrecord.ProjectLastRecord" useGeneratedKeys="true">
insert into project_last_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.projectlastrecord.ProjectLastRecord">
update project_last_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.projectlastrecord.ProjectLastRecord">
update project_last_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>

View File

@ -0,0 +1,243 @@
<?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>

View File

@ -0,0 +1,219 @@
<?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>

View File

@ -32,30 +32,36 @@
select id, hospital_agency_id, hospital_agency_name, department_id, department_name, propaganda_title, propaganda_type, propaganda_code, propaganda_status, propaganda_content, propaganda_cover_path, article_summary, voicebroadcast, disease_type_id, disease_type_name, propaganda_link, propaganda_barcode_path, create_by, create_time, update_by, update_time from propaganda_info
</sql>
<select id="selectPropagandaInfoList" parameterType="PropagandaInfo" resultMap="PropagandaInfoResult">
<select id="selectPropagandaInfoList" parameterType="com.xinelu.manage.dto.propagandainfo.PropagandaInfoDto" resultMap="PropagandaInfoResult">
<include refid="selectPropagandaInfoVo"/>
<where>
<if test="hospitalAgencyId != null ">
and hospital_agency_id = #{hospitalAgencyId}
</if>
<if test="departmentId != null ">
and department_id = #{departmentId}
</if>
<if test="propagandaTitle != null and propagandaTitle != ''">
and propaganda_title = #{propagandaTitle}
</if>
<if test="propagandaType != null and propagandaType != ''">
and propaganda_type = #{propagandaType}
</if>
<if test="propagandaStatus != null and propagandaStatus != ''">
and propaganda_status = #{propagandaStatus}
</if>
<if test="propagandaContent != null and propagandaContent != ''">
and propaganda_content = #{propagandaContent}
</if>
<if test="diseaseTypeId != null ">
and disease_type_id = #{diseaseTypeId}
</if>
<if test="hospitalAgencyId != null ">
and hospital_agency_id = #{hospitalAgencyId}
</if>
<if test="departmentId != null ">
and department_id = #{departmentId}
</if>
<if test="propagandaTitle != null and propagandaTitle != ''">
and propaganda_title = #{propagandaTitle}
</if>
<if test="propagandaType != null and propagandaType != ''">
and propaganda_type = #{propagandaType}
</if>
<if test="propagandaCode != null and propagandaCode != ''">
and propaganda_code = #{propagandaCode}
</if>
<if test="propagandaStatus != null and propagandaStatus != ''">
and propaganda_status = #{propagandaStatus}
</if>
<if test="createBy != null and propagandaStatus != ''">
and create_by = #{createBy}
</if>
<if test="createTimeStart != null">
and create_time >= #{createTimeStart}
</if>
<if test="createTimeEnd != null">
and create_time &lt;= #{createTimeEnd}
</if>
</where>
</select>
@ -157,66 +163,66 @@
<update id="updatePropagandaInfo" parameterType="PropagandaInfo">
update propaganda_info
<trim prefix="SET" suffixOverrides=",">
<if test="hospitalAgencyId != null">hospital_agency_id =
#{hospitalAgencyId},
</if>
<if test="hospitalAgencyName != null">hospital_agency_name =
#{hospitalAgencyName},
</if>
<if test="departmentId != null">department_id =
#{departmentId},
</if>
<if test="departmentName != null">department_name =
#{departmentName},
</if>
<if test="propagandaTitle != null">propaganda_title =
#{propagandaTitle},
</if>
<if test="propagandaType != null">propaganda_type =
#{propagandaType},
</if>
<if test="propagandaCode != null">propaganda_code =
#{propagandaCode},
</if>
<if test="propagandaStatus != null">propaganda_status =
#{propagandaStatus},
</if>
<if test="propagandaContent != null">propaganda_content =
#{propagandaContent},
</if>
<if test="propagandaCoverPath != null">propaganda_cover_path =
#{propagandaCoverPath},
</if>
<if test="articleSummary != null">article_summary =
#{articleSummary},
</if>
<if test="voicebroadcast != null">voicebroadcast =
#{voicebroadcast},
</if>
<if test="diseaseTypeId != null">disease_type_id =
#{diseaseTypeId},
</if>
<if test="diseaseTypeName != null">disease_type_name =
#{diseaseTypeName},
</if>
<if test="propagandaLink != null">propaganda_link =
#{propagandaLink},
</if>
<if test="propagandaBarcodePath != null">propaganda_barcode_path =
#{propagandaBarcodePath},
</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>
<if test="hospitalAgencyId != null">hospital_agency_id =
#{hospitalAgencyId},
</if>
<if test="hospitalAgencyName != null">hospital_agency_name =
#{hospitalAgencyName},
</if>
<if test="departmentId != null">department_id =
#{departmentId},
</if>
<if test="departmentName != null">department_name =
#{departmentName},
</if>
<if test="propagandaTitle != null">propaganda_title =
#{propagandaTitle},
</if>
<if test="propagandaType != null">propaganda_type =
#{propagandaType},
</if>
<if test="propagandaCode != null">propaganda_code =
#{propagandaCode},
</if>
<if test="propagandaStatus != null">propaganda_status =
#{propagandaStatus},
</if>
<if test="propagandaContent != null">propaganda_content =
#{propagandaContent},
</if>
<if test="propagandaCoverPath != null">propaganda_cover_path =
#{propagandaCoverPath},
</if>
<if test="articleSummary != null">article_summary =
#{articleSummary},
</if>
<if test="voicebroadcast != null">voicebroadcast =
#{voicebroadcast},
</if>
<if test="diseaseTypeId != null">disease_type_id =
#{diseaseTypeId},
</if>
<if test="diseaseTypeName != null">disease_type_name =
#{diseaseTypeName},
</if>
<if test="propagandaLink != null">propaganda_link =
#{propagandaLink},
</if>
<if test="propagandaBarcodePath != null">propaganda_barcode_path =
#{propagandaBarcodePath},
</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>
@ -231,4 +237,17 @@
#{id}
</foreach>
</delete>
<select id="selectNumByDept" resultType="com.xinelu.manage.vo.department.DepartmentVO">
select d.id,
d.department_name,
count(p.id) AS countNum
from department d left join propaganda_info p on d.id = p.department_id
<where>
<if test="departmentName != null and departmentName != ''">
and d.department_name like concat('%', #{departmentName}, '%')
</if>
</where>
GROUP BY d.id
order by countNum desc
</select>
</mapper>

View File

@ -5,37 +5,40 @@
<mapper namespace="com.xinelu.manage.mapper.signpatientrecord.SignPatientRecordMapper">
<resultMap id="BaseResultMap" type="com.xinelu.manage.domain.signpatientrecord.SignPatientRecord">
<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="signTime" column="sign_time" jdbcType="TIMESTAMP"/>
<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="visitSerialNumber" column="visit_serial_number" jdbcType="VARCHAR"/>
<result property="visitMethod" column="visit_method" 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="intentionalSource" column="intentional_source" jdbcType="VARCHAR"/>
<result property="intentionalTime" column="intentional_time" jdbcType="TIMESTAMP"/>
<result property="billingDoctorId" column="billing_doctor_id" jdbcType="BIGINT"/>
<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="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"/>
<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="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="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="intentionalSource" column="intentional_source" jdbcType="VARCHAR"/>
<result property="intentionalTime" column="intentional_time" jdbcType="TIMESTAMP"/>
<result property="billingDoctorId" column="billing_doctor_id" jdbcType="BIGINT"/>
<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="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>
<resultMap id="SignInfoResultMap" type="com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo">
@ -44,6 +47,8 @@
<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"/>
@ -51,6 +56,7 @@
<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"/>
@ -62,24 +68,15 @@
<result property="serviceStartTime" column="service_start_time"/>
<result property="serviceEndTime" column="service_end_time"/>
<result property="serviceCycle" column="service_cycle"/>
<collection property="signDevices" ofType="com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware">
<result property="id" column="id"/>
<result property="hardwareType" column="hardware_type"/>
<result property="snCode" column="sn_code"/>
<result property="hardwarePrice" column="hardware_price"/>
<result property="hardwareStatus" column="hardware_status"/>
<result property="hardwareManufacturer" column="hardware_manufacturer"/>
<result property="hardwareIntroduce" column="hardware_introduce"/>
</collection>
</resultMap>
<sql id="Base_Column_List">
id,patient_id,patient_name,
patient_phone,card_no,sign_time,
patient_phone,card_no,sex,birth_date,sign_time,
hospital_agency_id,hospital_agency_name,campus_agency_id,
campus_agency_name,department_id,department_name,
ward_id,ward_name,visit_serial_number,
visit_method,sign_diagnosis,review_diagnosis,
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,
@ -101,22 +98,22 @@
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xinelu.manage.domain.signpatientrecord.SignPatientRecord" useGeneratedKeys="true">
insert into sign_patient_record
( id,patient_id,patient_name
,patient_phone,card_no,sign_time
,patient_phone,card_no,sex,birth_date,sign_time
,hospital_agency_id,hospital_agency_name,campus_agency_id
,campus_agency_name,department_id,department_name
,ward_id,ward_name,visit_serial_number
,visit_method,sign_diagnosis,review_diagnosis
,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
,create_by,create_time,update_by
,update_time)
values (#{id,jdbcType=BIGINT},#{patientId,jdbcType=BIGINT},#{patientName,jdbcType=VARCHAR}
,#{patientPhone,jdbcType=VARCHAR},#{cardNo,jdbcType=VARCHAR},#{signTime,jdbcType=TIMESTAMP}
,#{patientPhone,jdbcType=VARCHAR},#{cardNo,jdbcType=VARCHAR},#{sex,jdbcType=VARCHAR},#{birthDate,jdbcType=DATE},#{signTime,jdbcType=TIMESTAMP}
,#{hospitalAgencyId,jdbcType=BIGINT},#{hospitalAgencyName,jdbcType=VARCHAR},#{campusAgencyId,jdbcType=BIGINT}
,#{campusAgencyName,jdbcType=VARCHAR},#{departmentId,jdbcType=BIGINT},#{departmentName,jdbcType=VARCHAR}
,#{wardId,jdbcType=BIGINT},#{wardName,jdbcType=VARCHAR},#{visitSerialNumber,jdbcType=VARCHAR}
,#{visitMethod,jdbcType=VARCHAR},#{signDiagnosis,jdbcType=VARCHAR},#{reviewDiagnosis,jdbcType=VARCHAR}
,#{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}
@ -131,6 +128,8 @@
<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="signTime != null">sign_time,</if>
<if test="hospitalAgencyId != null">hospital_agency_id,</if>
<if test="hospitalAgencyName != null">hospital_agency_name,</if>
@ -142,6 +141,7 @@
<if test="wardName != null">ward_name,</if>
<if test="visitSerialNumber != null">visit_serial_number,</if>
<if test="visitMethod != null">visit_method,</if>
<if test="inHospitalNumber != null">in_hospital_number,</if>
<if test="signDiagnosis != null">sign_diagnosis,</if>
<if test="reviewDiagnosis != null">review_diagnosis,</if>
<if test="serviceStatus != null">service_status,</if>
@ -164,6 +164,8 @@
<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="signTime != null">#{signTime,jdbcType=TIMESTAMP},</if>
<if test="hospitalAgencyId != null">#{hospitalAgencyId,jdbcType=BIGINT},</if>
<if test="hospitalAgencyName != null">#{hospitalAgencyName,jdbcType=VARCHAR},</if>
@ -175,6 +177,7 @@
<if test="wardName != null">#{wardName,jdbcType=VARCHAR},</if>
<if test="visitSerialNumber != null">#{visitSerialNumber,jdbcType=VARCHAR},</if>
<if test="visitMethod != null">#{visitMethod,jdbcType=VARCHAR},</if>
<if test="inHospitalNumber != null">#{inHospitalNumber,jdbcType=VARCHAR},</if>
<if test="signDiagnosis != null">#{signDiagnosis,jdbcType=VARCHAR},</if>
<if test="reviewDiagnosis != null">#{reviewDiagnosis,jdbcType=VARCHAR},</if>
<if test="serviceStatus != null">#{serviceStatus,jdbcType=VARCHAR},</if>
@ -207,6 +210,12 @@
<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="signTime != null">
sign_time = #{signTime,jdbcType=TIMESTAMP},
</if>
@ -240,6 +249,9 @@
<if test="visitMethod != null">
visit_method = #{visitMethod,jdbcType=VARCHAR},
</if>
<if test="inHospitalNumber != null">
in_hospital_number = #{inHospitalNumber,jdbcType=VARCHAR},
</if>
<if test="signDiagnosis != null">
sign_diagnosis = #{signDiagnosis,jdbcType=VARCHAR},
</if>
@ -295,6 +307,8 @@
patient_name = #{patientName,jdbcType=VARCHAR},
patient_phone = #{patientPhone,jdbcType=VARCHAR},
card_no = #{cardNo,jdbcType=VARCHAR},
sex = #{sex,jdbcType=VARCHAR},
birth_date = #{birthDate,jdbcType=DATE},
sign_time = #{signTime,jdbcType=TIMESTAMP},
hospital_agency_id = #{hospitalAgencyId,jdbcType=BIGINT},
hospital_agency_name = #{hospitalAgencyName,jdbcType=VARCHAR},
@ -306,6 +320,7 @@
ward_name = #{wardName,jdbcType=VARCHAR},
visit_serial_number = #{visitSerialNumber,jdbcType=VARCHAR},
visit_method = #{visitMethod,jdbcType=VARCHAR},
in_hospital_number = #{inHospitalNumber,jdbcType=VARCHAR},
sign_diagnosis = #{signDiagnosis,jdbcType=VARCHAR},
review_diagnosis = #{reviewDiagnosis,jdbcType=VARCHAR},
service_status = #{serviceStatus,jdbcType=VARCHAR},
@ -323,20 +338,26 @@
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectList" parameterType="com.xinelu.manage.domain.signpatientrecord.SignPatientRecord" resultType="com.xinelu.manage.vo.signpatientrecord.SignPatientListVo">
<select id="selectList" parameterType="com.xinelu.manage.dto.signpatientrecord.SignPatientListDto" resultType="com.xinelu.manage.vo.signpatientrecord.SignPatientListVo">
select
patient.service_status,patient.sign_status,
sign.id,sign.patient_id,sign.patient_name,
sign.patient_phone,sign.card_no, sign.sign_time,
sign.patient_phone,sign.card_no,sign.sex,sign.birth_date, sign.sign_time,
sign.hospital_agency_id,sign.hospital_agency_name,
sign.campus_agency_name,sign.department_name,
sign.ward_name,sign.visit_serial_number,
sign.visit_method,sign.sign_diagnosis,sign.review_diagnosis,
sign.visit_method,sign.in_hospital_number,sign.sign_diagnosis,sign.review_diagnosis,
sign.service_status,sign.sign_status,sign.intentional_source,
sign.intentional_time,sign.billing_doctor_name,sign.payment_status,sign.price
p.package_name, p.serviceEndTime, p.serviceCycle
from sign_patient_record sign left join sign_patient_package p on sign.patient_id = p.id
sign.intentional_time,sign.billing_doctor_name,sign.payment_status,sign.price,
p.package_name, p.service_end_time, p.service_cycle
from patient_info patient
left join sign_patient_record sign on patient.sign_patient_record_id = sign.id
left join sign_patient_package p on sign.id = p.sign_patient_record_id
<where>
sign.del_flag = 0
patient.del_flag = 0 and sign.del_flag = 0
<if test="serviceStatus != null">
and patient.service_status = #{serviceStatus}
</if>
<if test="patientName != null">
and sign.patient_name like concat('%', #{patientName}, '%')
</if>
@ -379,35 +400,34 @@
<if test="signStatus != null ">
and sign.sign_status = #{signStatus}
</if>
<if test="serviceStatus != null">
and sign.service_status = #{serviceStatus}
<if test="serviceEndTimeStart != null">
and p.service_end_time >= #{serviceEndTimeStart}
</if>
<if test="serviceEndTimeEnd != null">
and p.service_end_time &lt;= #{serviceEndTimeEnd}
</if>
</where>
</select>
<select id="getByRecordId" parameterType="java.lang.Long" resultType="com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo">
<select id="getByRecordId" parameterType="java.lang.Long" resultMap="SignInfoResultMap">
select
sign.id,sign.patient_id,sign.patient_name,
sign.patient_phone,sign.card_no, sign.sign_time,
sign.patient_phone,sign.card_no,sign.sex, sign.birth_date,sign.sign_time,
sign.hospital_agency_id,sign.hospital_agency_name,
sign.campus_agency_name,sign.department_name,
sign.ward_name,sign.visit_serial_number,
sign.visit_method,sign.sign_diagnosis,sign.review_diagnosis,
sign.service_status,sign.sign_status,sign.payment_status,sign.price
p.package_name, p.package_payment_status, p.package_price, p.service_start_time, p.service_end_time, p.service_cycle,
device.hardware_type, device.sn_code, device.hardware_price, device.hardware_status, device.hardware_manufacturer, device.hardware_introduce,
informed.informed_file_name, informed.informed_file_path
sign.visit_method,sign.in_hospital_number,sign.sign_diagnosis,sign.review_diagnosis,
sign.service_status,sign.sign_status,sign.payment_status,sign.price,
p.service_package_id, p.package_name, p.package_payment_status, p.package_price, p.service_start_time, p.service_end_time, p.service_cycle
from sign_patient_record sign
left join sign_patient_package p on p.sign_patient_record_id = sign.id
left join sign_patient_package_hardware device on device.sign_patient_record_id = sign.id
left join sign_patient_informed informed on informed.sign_patient_record_id = sign.id
<where>
sign.del_flag = 0 and sign.id = #{patientSignRecordId}
sign.del_flag = 0 and sign.id = #{id}
</where>
</select>
<select id="getByPatient" parameterType="java.lang.Long" resultType="com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo">
select
sign.id,sign.patient_id,sign.patient_name,
sign.id,sign.patient_id,sign.patient_name,sign.sign_time,
sign.service_status, p.package_name
from sign_patient_record sign
left join sign_patient_package p on p.sign_patient_record_id = sign.id