|
|
@@ -7,7 +7,6 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import lombok.Data;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.ibatis.session.ExecutorType;
|
|
|
@@ -18,7 +17,6 @@ import org.springframework.stereotype.Service;
|
|
|
import thyyxxk.webserver.config.envionment.YzConfig;
|
|
|
import thyyxxk.webserver.config.exception.BizException;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
-import thyyxxk.webserver.constants.sidicts.ChargeStatus;
|
|
|
import thyyxxk.webserver.dao.his.zhuyuanyisheng.YiZhuLuRuDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
import thyyxxk.webserver.entity.RoleCode;
|
|
|
@@ -32,7 +30,8 @@ import thyyxxk.webserver.entity.inpatient.patient.Overview;
|
|
|
import thyyxxk.webserver.entity.inpatient.patient.Patient;
|
|
|
import thyyxxk.webserver.entity.login.UserInfo;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.inpatient.SiLimitRequest;
|
|
|
-import thyyxxk.webserver.entity.zhuyuanyisheng.DoctorSOrderFee;
|
|
|
+import thyyxxk.webserver.entity.medicine.YpZdGroupName;
|
|
|
+import thyyxxk.webserver.entity.medicine.vo.YpZdGroupNameVo;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.OneClickOrder;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.ZyOrderZk;
|
|
|
import thyyxxk.webserver.entity.zhuyuanyisheng.dto.doctorAuth.DoctorAuthParams;
|
|
|
@@ -1495,4 +1494,30 @@ public class YiZhuLuRuServer {
|
|
|
dao.updateChargeWard(patNo, times, opRecordWard, yzConfig.getShoushubingqu());
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * <el-option value="71" label="门诊" />
|
|
|
+ * <el-option value="73" label="住院" />
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Map<String, List<YpZdGroupNameVo>> getYpZdGroup() {
|
|
|
+ Map<String, List<YpZdGroupName>> value = extraCache.getYf();
|
|
|
+ String now = DateUtil.formatDate(new Date(), "HH:mm:ss");
|
|
|
+ Map<String, List<YpZdGroupNameVo>> map = new HashMap<>();
|
|
|
+ for (Map.Entry<String, List<YpZdGroupName>> item : value.entrySet()) {
|
|
|
+ item.getValue().forEach(i -> {
|
|
|
+ YpZdGroupNameVo vo = new YpZdGroupNameVo();
|
|
|
+ vo.setCode(i.getGroupNo());
|
|
|
+ vo.setName(i.getGroupName());
|
|
|
+ vo.setIsDefault(false);
|
|
|
+ if (i.getStartTime() != null && i.getEndTime() != null) {
|
|
|
+ vo.setIsDefault(DateUtil.isInTimeRange(now, i.getStartTime(), i.getEndTime()));
|
|
|
+ }
|
|
|
+ map.computeIfAbsent(item.getKey(), (k) -> new ArrayList<>()).add(vo);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|