|
|
@@ -1,11 +1,14 @@
|
|
|
package org.jeecg.modules.medical.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.modules.medical.common.bo.MedicalOrderInfoResponse;
|
|
|
import org.jeecg.modules.medical.common.bo.after.response.AfterwardsAuditDetailResponse;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
import org.jeecg.modules.medical.common.bo.before.AuditAdvanceWarningAuditDetailResponse;
|
|
|
@@ -15,6 +18,7 @@ import org.jeecg.modules.medical.common.bo.mid.AuditMidDetailListResponse;
|
|
|
import org.jeecg.modules.medical.common.bo.mid.request.AuditMidDetailListRequest;
|
|
|
import org.jeecg.modules.medical.common.bo.mid.response.*;
|
|
|
import org.jeecg.modules.medical.entity.AdvanceWarningAuditDetail;
|
|
|
+import org.jeecg.modules.medical.entity.PrescriptionOrder;
|
|
|
import org.jeecg.modules.medical.service.*;
|
|
|
import org.jeecg.modules.medical.entity.AfterwardsAuditDetail;
|
|
|
import org.jeecg.modules.medical.service.*;
|
|
|
@@ -22,6 +26,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
|
@@ -54,6 +59,9 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
|
@Autowired
|
|
|
private IAfterwardsAuditDetailService afterwardsAuditDetailService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IPrescriptionOrderService prescriptionOrderService;
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public IPage<AuditAdvanceWarningAuditDetailResponse> loadBeforeList(AuditAdvanceWarningAuditDetailResponse advanceWarningAuditDetail, Integer pageNo, Integer pageSize, Map<String, String[]> parameterMap) {
|
|
|
@@ -309,6 +317,18 @@ public class ViolationAnalysisServiceImpl implements IViolationAnalysisService {
|
|
|
return afterwardsAuditDetailService.afterViolateProjectStatisticsList(page, projectCode, medicalProjectSearch, startTime, endTime);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<PrescriptionOrder> loadPrescriptionOrderInfo(Integer detialId) {
|
|
|
+ AfterwardsAuditDetail byId = afterwardsAuditDetailService.getById(detialId);
|
|
|
+ if (null == byId) {
|
|
|
+ throw new JeecgBootException("找不到主单记录");
|
|
|
+ }
|
|
|
+ LambdaQueryWrapper<PrescriptionOrder> queryWrapper = Wrappers.<PrescriptionOrder>lambdaQuery()
|
|
|
+ .eq(PrescriptionOrder::getOrderNumber, byId.getPrescriptionNumber());
|
|
|
+ return prescriptionOrderService.list(queryWrapper);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
// @Override
|
|
|
// public IPage<AfterwardsAuditDetail> allAuditPage(AuditMidDetailListRequest request, Integer pageNo, Integer pageSize, Map<String, String[]> parameterMap) {
|
|
|
// Page<AfterwardsAuditDetail> page = new Page<>(pageNo, pageSize);
|