|
@@ -8,8 +8,10 @@ import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.service.impl.QcAbnormalServiceImpl;
|
|
|
import com.diagbot.util.DateUtil;
|
|
|
import com.diagbot.util.SysUserUtils;
|
|
|
+import com.diagbot.vo.QcAbnormalDelVO;
|
|
|
import com.diagbot.vo.QcAbnormalSaveVO;
|
|
|
import com.diagbot.vo.QcAbnormalVO;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
/**
|
|
@@ -20,6 +22,8 @@ import org.springframework.stereotype.Component;
|
|
|
@Component
|
|
|
public class QcAbnormalFacade extends QcAbnormalServiceImpl {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FilterFacade filterFacade;
|
|
|
/**
|
|
|
* 查询异常数据监控信息
|
|
|
*
|
|
@@ -27,6 +31,10 @@ public class QcAbnormalFacade extends QcAbnormalServiceImpl {
|
|
|
* @return 异常数据监控信息
|
|
|
*/
|
|
|
public IPage<QcAbnormalDTO> getQcAnnormalFac(QcAbnormalVO qcAbnormalVO) {
|
|
|
+ String startDate = filterFacade.getStartDateStr(qcAbnormalVO.getStatisticsType(), null);
|
|
|
+ String endDate = filterFacade.getEndDateStr(qcAbnormalVO.getStatisticsType(), null);
|
|
|
+ qcAbnormalVO.setStartDate(startDate);
|
|
|
+ qcAbnormalVO.setEndDate(endDate);
|
|
|
qcAbnormalVO.setHospitalId(Long.valueOf(SysUserUtils.getCurrentHospitalID()));
|
|
|
return this.getQcAnnormal(qcAbnormalVO);
|
|
|
}
|
|
@@ -48,4 +56,21 @@ public class QcAbnormalFacade extends QcAbnormalServiceImpl {
|
|
|
.set("modifier", SysUserUtils.getCurrentPrincipleID())
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除异常数据监控信息
|
|
|
+ *
|
|
|
+ * @param qcAbnormalDelVO 异常数据监控信息更新参数
|
|
|
+ * @return 是否成功
|
|
|
+ */
|
|
|
+ public Boolean delQcAnnormal(QcAbnormalDelVO qcAbnormalDelVO) {
|
|
|
+ return this.update(new UpdateWrapper<QcAbnormal>()
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .eq("hospital_id", SysUserUtils.getCurrentHospitalID())
|
|
|
+ .eq("id", qcAbnormalDelVO.getId())
|
|
|
+ .set("is_deleted", IsDeleteEnum.Y.getKey())
|
|
|
+ .set("gmt_modified", DateUtil.now())
|
|
|
+ .set("modifier", SysUserUtils.getCurrentPrincipleID())
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|