|
@@ -8,6 +8,7 @@ import java.util.Map;
|
|
import java.util.Optional;
|
|
import java.util.Optional;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
+import com.diagbot.enums.IsDeleteEnum;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -66,7 +67,7 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
Date now = new Date();
|
|
Date now = new Date();
|
|
|
|
|
|
QueryWrapper<InquiryInfo> queryWrapper = new QueryWrapper<InquiryInfo>();
|
|
QueryWrapper<InquiryInfo> queryWrapper = new QueryWrapper<InquiryInfo>();
|
|
- queryWrapper.eq("is_deleted", "N");
|
|
|
|
|
|
+ queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
queryWrapper.eq("hospital_id", saveInquiryVO.getHospitalId());
|
|
queryWrapper.eq("hospital_id", saveInquiryVO.getHospitalId());
|
|
queryWrapper.eq("hospital_dept_id", saveInquiryVO.getHospitalDeptId());
|
|
queryWrapper.eq("hospital_dept_id", saveInquiryVO.getHospitalDeptId());
|
|
queryWrapper.eq("doctor_id", saveInquiryVO.getDoctorId());
|
|
queryWrapper.eq("doctor_id", saveInquiryVO.getDoctorId());
|
|
@@ -125,7 +126,7 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
public ReadInquiryDTO readInquiry(ReadInquiryVO readInquiryVO) {
|
|
public ReadInquiryDTO readInquiry(ReadInquiryVO readInquiryVO) {
|
|
ReadInquiryDTO readInquiryDTO = new ReadInquiryDTO();
|
|
ReadInquiryDTO readInquiryDTO = new ReadInquiryDTO();
|
|
QueryWrapper<InquiryInfo> queryWrapper = new QueryWrapper<InquiryInfo>();
|
|
QueryWrapper<InquiryInfo> queryWrapper = new QueryWrapper<InquiryInfo>();
|
|
- queryWrapper.eq("is_deleted", "N");
|
|
|
|
|
|
+ queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
queryWrapper.eq("hospital_id", readInquiryVO.getHospitalId());
|
|
queryWrapper.eq("hospital_id", readInquiryVO.getHospitalId());
|
|
queryWrapper.eq("hospital_dept_id", readInquiryVO.getHospitalDeptId());
|
|
queryWrapper.eq("hospital_dept_id", readInquiryVO.getHospitalDeptId());
|
|
queryWrapper.eq("doctor_id", readInquiryVO.getDoctorId());
|
|
queryWrapper.eq("doctor_id", readInquiryVO.getDoctorId());
|
|
@@ -143,7 +144,7 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
/**
|
|
/**
|
|
* 获取最近一次其他史信息
|
|
* 获取最近一次其他史信息
|
|
*
|
|
*
|
|
- * @param readInquiryVO
|
|
|
|
|
|
+ * @param getLastOtherVO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public String getLastOther(GetLastOtherVO getLastOtherVO) {
|
|
public String getLastOther(GetLastOtherVO getLastOtherVO) {
|
|
@@ -170,7 +171,7 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
*/
|
|
*/
|
|
public List<HisInquiryDTO> hisInquirys(HisInquirysVO hisInquirysVO) {
|
|
public List<HisInquiryDTO> hisInquirys(HisInquirysVO hisInquirysVO) {
|
|
QueryWrapper<InquiryInfo> queryWrapper = new QueryWrapper<InquiryInfo>();
|
|
QueryWrapper<InquiryInfo> queryWrapper = new QueryWrapper<InquiryInfo>();
|
|
- queryWrapper.eq("is_deleted", "N");
|
|
|
|
|
|
+ queryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
queryWrapper.eq("hospital_id", hisInquirysVO.getHospitalId());
|
|
queryWrapper.eq("hospital_id", hisInquirysVO.getHospitalId());
|
|
queryWrapper.eq("hospital_dept_id", hisInquirysVO.getHospitalDeptId());
|
|
queryWrapper.eq("hospital_dept_id", hisInquirysVO.getHospitalDeptId());
|
|
queryWrapper.eq("doctor_id", hisInquirysVO.getDoctorId());
|
|
queryWrapper.eq("doctor_id", hisInquirysVO.getDoctorId());
|