病理检验报告接受推送bug修复
parent
6430824e5d
commit
3eaec92a39
@ -0,0 +1,21 @@
|
|||||||
|
package com.docus.bgts.facade;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.docus.bgts.entity.AfCollectTask;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 病案采集任务 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author 曾文和
|
||||||
|
* @since 2021-05-07
|
||||||
|
*/
|
||||||
|
public interface IAfCollectTaskService extends IService<AfCollectTask> {
|
||||||
|
/**
|
||||||
|
* 获取病案id通过报告唯一单号
|
||||||
|
*/
|
||||||
|
public String getpatientIdByEmpId(String empId);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.docus.bgts.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.docus.bgts.entity.AfCollectTask;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 病案采集任务 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author 曾文和
|
||||||
|
* @since 2021-05-07
|
||||||
|
*/
|
||||||
|
public interface AfCollectTaskMapper extends BaseMapper<AfCollectTask> {
|
||||||
|
/**
|
||||||
|
* 获取病案id通过报告唯一单号
|
||||||
|
* @param empId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
String getpatientIdByEmpId(@Param("jzh") String empId);
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.docus.bgts.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.docus.bgts.entity.AfCollectTask;
|
||||||
|
import com.docus.bgts.facade.IAfCollectTaskService;
|
||||||
|
import com.docus.bgts.mapper.AfCollectTaskMapper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 病案采集任务 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author 曾文和
|
||||||
|
* @since 2021-05-07
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AfCollectTaskServiceImpl extends ServiceImpl<AfCollectTaskMapper, AfCollectTask> implements IAfCollectTaskService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
AfCollectTaskMapper afCollectTaskMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getpatientIdByEmpId(String empId) {
|
||||||
|
String patientId=afCollectTaskMapper.getpatientIdByEmpId(empId);
|
||||||
|
return patientId;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?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.docus.bgts.mapper.AfCollectTaskMapper">
|
||||||
|
<select id="getpatientIdByEmpId" resultType="string">
|
||||||
|
select patient_id
|
||||||
|
from docus_medicalrecord.t_basic
|
||||||
|
where jzh=#{jzh}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue