|
@ -2,8 +2,10 @@ package com.yihu.jw.patient.service.servicepackage;
|
|
|
|
|
|
import com.yihu.jw.dict.dao.DictHospitalDeptDao;
|
|
import com.yihu.jw.dict.dao.DictHospitalDeptDao;
|
|
import com.yihu.jw.doctor.dao.BaseDoctorDao;
|
|
import com.yihu.jw.doctor.dao.BaseDoctorDao;
|
|
|
|
import com.yihu.jw.doctor.dao.BaseDoctorHospitalDao;
|
|
import com.yihu.jw.entity.base.dict.DictHospitalDeptDO;
|
|
import com.yihu.jw.entity.base.dict.DictHospitalDeptDO;
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorHospitalDO;
|
|
import com.yihu.jw.entity.base.label.PatientLabelDO;
|
|
import com.yihu.jw.entity.base.label.PatientLabelDO;
|
|
import com.yihu.jw.entity.base.org.BaseOrgDO;
|
|
import com.yihu.jw.entity.base.org.BaseOrgDO;
|
|
import com.yihu.jw.entity.base.servicePackage.ServicePackageDO;
|
|
import com.yihu.jw.entity.base.servicePackage.ServicePackageDO;
|
|
@ -41,9 +43,6 @@ public class PackageService {
|
|
@Autowired
|
|
@Autowired
|
|
private JdbcTemplate jdbcTemplate;
|
|
private JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
@Autowired
|
|
|
|
private UserAgent userAgent;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ServicePackageDao servicePackageDao;
|
|
private ServicePackageDao servicePackageDao;
|
|
|
|
|
|
@ -56,6 +55,9 @@ public class PackageService {
|
|
@Autowired
|
|
@Autowired
|
|
private BaseDoctorDao baseDoctorDao;
|
|
private BaseDoctorDao baseDoctorDao;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private BaseDoctorHospitalDao baseDoctorHospitalDao;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private BaseOrgDao baseOrgDao;
|
|
private BaseOrgDao baseOrgDao;
|
|
|
|
|
|
@ -174,14 +176,14 @@ public class PackageService {
|
|
" POW( " +
|
|
" POW( " +
|
|
" SIN( " +
|
|
" SIN( " +
|
|
" ( " +
|
|
" ( " +
|
|
" "+longitude+" * PI() / 180 - o.latitude * PI() / 180 " +
|
|
|
|
|
|
" "+latitude+" * PI() / 180 - o.latitude * PI() / 180 " +
|
|
" ) / 2 " +
|
|
" ) / 2 " +
|
|
" ), " +
|
|
" ), " +
|
|
" 2 " +
|
|
" 2 " +
|
|
" ) + COS("+longitude+" * PI() / 180) * COS(o.latitude * PI() / 180) * POW( " +
|
|
|
|
|
|
" ) + COS("+latitude+" * PI() / 180) * COS(o.latitude * PI() / 180) * POW( " +
|
|
" SIN( " +
|
|
" SIN( " +
|
|
" ( " +
|
|
" ( " +
|
|
" "+latitude+" * PI() / 180 - o.longitude * PI() / 180 " +
|
|
|
|
|
|
" "+longitude+" * PI() / 180 - o.longitude * PI() / 180 " +
|
|
" ) / 2 " +
|
|
" ) / 2 " +
|
|
" ), " +
|
|
" ), " +
|
|
" 2 " +
|
|
" 2 " +
|
|
@ -264,6 +266,10 @@ public class PackageService {
|
|
return baseDoctorDao.findOne(doctorCode);
|
|
return baseDoctorDao.findOne(doctorCode);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public List<BaseDoctorHospitalDO> findDoctorHospital(String doctor){
|
|
|
|
return baseDoctorHospitalDao.findByDoctorCode(doctor);
|
|
|
|
}
|
|
|
|
|
|
public BaseOrgDO findOrgByCode(String orgCode){
|
|
public BaseOrgDO findOrgByCode(String orgCode){
|
|
return baseOrgDao.findByCode(orgCode);
|
|
return baseOrgDao.findByCode(orgCode);
|
|
}
|
|
}
|