|
@ -179,6 +179,9 @@ public class FamilyContractService extends BaseService {
|
|
|
@Autowired
|
|
|
private SignFamilyServerDao signFamilyServerDao;
|
|
|
|
|
|
@Value("${spring.profiles}")
|
|
|
private String profiles;
|
|
|
|
|
|
public SignFamily findSignFamilyByCode(String code) {
|
|
|
return signFamilyDao.findByCode(code);
|
|
|
}
|
|
@ -4614,11 +4617,12 @@ public class FamilyContractService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public String getSickArchiveFlag(String patient) throws Exception {
|
|
|
|
|
|
Patient p = patientDao.findByCode(patient);
|
|
|
|
|
|
String rs = jwArchivesService.getSickArchiveFlag(p.getIdcard());
|
|
|
|
|
|
String rs = "1";
|
|
|
logger.info("======getSickArchiveFlag.profiles:"+profiles);
|
|
|
if("prod".equals(profiles)){
|
|
|
Patient p = patientDao.findByCode(patient);
|
|
|
rs = jwArchivesService.getSickArchiveFlag(p.getIdcard());
|
|
|
}
|
|
|
return rs;
|
|
|
}
|
|
|
|