|
@@ -4,16 +4,10 @@ import cn.hnthyy.thmz.Utils.CloneUtil;
|
|
|
import cn.hnthyy.thmz.Utils.DateUtil;
|
|
|
import cn.hnthyy.thmz.Utils.TokenUtil;
|
|
|
import cn.hnthyy.thmz.comment.UserLoginToken;
|
|
|
-import cn.hnthyy.thmz.entity.his.mz.Employee;
|
|
|
-import cn.hnthyy.thmz.entity.his.mz.MzPatientMi;
|
|
|
-import cn.hnthyy.thmz.entity.his.mz.MzyRequest;
|
|
|
-import cn.hnthyy.thmz.entity.his.mz.MzyZdChargeType;
|
|
|
+import cn.hnthyy.thmz.entity.his.mz.*;
|
|
|
import cn.hnthyy.thmz.entity.his.zd.ZdUnitCode;
|
|
|
import cn.hnthyy.thmz.entity.thmz.User;
|
|
|
-import cn.hnthyy.thmz.service.his.mz.EmployeeService;
|
|
|
-import cn.hnthyy.thmz.service.his.mz.MzPatientMiService;
|
|
|
-import cn.hnthyy.thmz.service.his.mz.MzyRequestService;
|
|
|
-import cn.hnthyy.thmz.service.his.mz.MzyZdChargeTypeService;
|
|
|
+import cn.hnthyy.thmz.service.his.mz.*;
|
|
|
import cn.hnthyy.thmz.service.his.zd.ZdUnitCodeService;
|
|
|
import cn.hnthyy.thmz.pageDto.EmployeePageDto;
|
|
|
import cn.hnthyy.thmz.vo.RequestParamsVo;
|
|
@@ -41,6 +35,8 @@ public class MzyRequestController {
|
|
|
private MzyZdChargeTypeService mzyZdChargeTypeService;
|
|
|
@Autowired
|
|
|
private MzPatientMiService mzPatientMiService;
|
|
|
+ @Autowired
|
|
|
+ private MzZdWorkTimeService mzZdWorkTimeService;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -556,6 +552,13 @@ public class MzyRequestController {
|
|
|
mzyZdChargeTypeMap = mzyZdChargeTypes.stream().collect(Collectors.toMap(MzyZdChargeType::getCode, MzyZdChargeType::getName));
|
|
|
}
|
|
|
Map<String, String> finalMzyZdChargeTypeMap = mzyZdChargeTypeMap;
|
|
|
+
|
|
|
+ List<MzZdWorkTime> mzZdWorkTimes=mzZdWorkTimeService.queryAllMzZdWorkTime();
|
|
|
+ Map<String, String> mzZdWorkTimeMap = null;
|
|
|
+ if (mzZdWorkTimes != null) {
|
|
|
+ mzZdWorkTimeMap = mzZdWorkTimes.stream().collect(Collectors.toMap(MzZdWorkTime::getCode, MzZdWorkTime::getName));
|
|
|
+ }
|
|
|
+ Map<String, String> finalMzZdWorkTimeMap =mzZdWorkTimeMap;
|
|
|
newMzyRequest.stream().forEach(m -> {
|
|
|
if (StringUtils.isNotBlank(m.getUnitCode())) {
|
|
|
String unitName = zdUnitCodeService.queryDeptNameByIdInCache(m.getUnitCode());
|
|
@@ -576,6 +579,10 @@ public class MzyRequestController {
|
|
|
if (m.getRequestDay() != null) {
|
|
|
m.setRequestDay(DateUtil.getFirstSecond(m.getRequestDay()));
|
|
|
}
|
|
|
+ if (StringUtils.isNotBlank(m.getAmpm()) && finalMzZdWorkTimeMap!=null) {
|
|
|
+ String mzZdWorkTime = finalMzZdWorkTimeMap.get(m.getAmpm());
|
|
|
+ m.setAmpmName(mzZdWorkTime == null ? "" : mzZdWorkTime);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|