|
@@ -23,27 +23,27 @@ import java.util.Map;
|
|
public class LEA0508 extends QCCatalogue {
|
|
public class LEA0508 extends QCCatalogue {
|
|
@Override
|
|
@Override
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
|
|
- status.set("0");
|
|
|
|
LeaveHospitalDoc leaveHospitalDoc = inputInfo.getLeaveHospitalDoc();
|
|
LeaveHospitalDoc leaveHospitalDoc = inputInfo.getLeaveHospitalDoc();
|
|
if (leaveHospitalDoc == null) {
|
|
if (leaveHospitalDoc == null) {
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
Map<String, String> structureMap = leaveHospitalDoc.getStructureMap();
|
|
Map<String, String> structureMap = leaveHospitalDoc.getStructureMap();
|
|
- if (structureMap != null) {
|
|
|
|
- String doctorName = structureMap.get("医师签名");
|
|
|
|
- if (StringUtils.isEmpty(doctorName)) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
|
|
|
|
- Map<String, Object> surgeon = redisUtil.getJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP);
|
|
|
|
- if (surgeon == null) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- Map<String, String> doctor = (Map) surgeon.get(doctorName);
|
|
|
|
- String occup = doctor.get("occup");
|
|
|
|
- if (StringUtils.isNotEmpty(occup) && "1".equals(occup)) {
|
|
|
|
- status.set("0");
|
|
|
|
- }
|
|
|
|
|
|
+ String doctorName = structureMap.get("医师签名");
|
|
|
|
+ if (StringUtils.isEmpty(doctorName)) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
|
|
|
|
+ Map<String, Object> surgeon = redisUtil.getJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP);
|
|
|
|
+ if (surgeon == null) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ Map<String, String> doctor = (Map) surgeon.get(doctorName);
|
|
|
|
+ String occup = doctor.get("occup");
|
|
|
|
+ if (StringUtils.isNotEmpty(occup) && "1".equals(occup)) {
|
|
|
|
+ status.set("0");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|