|
@ -503,7 +503,12 @@ public class DeviceService extends BaseService{
|
|
} else {
|
|
} else {
|
|
//患者信息
|
|
//患者信息
|
|
String patientCode = result.getUser();
|
|
String patientCode = result.getUser();
|
|
|
|
SignFamily signFamily = signFamilyDao.findByPatient(patientCode);
|
|
Patient patient = patientDao.findByCode(patientCode);
|
|
Patient patient = patientDao.findByCode(patientCode);
|
|
|
|
String hospital = "";
|
|
|
|
if (signFamily!=null){
|
|
|
|
hospital = signFamily.getHospital();
|
|
|
|
}
|
|
|
|
|
|
String flagStr = "";
|
|
String flagStr = "";
|
|
if (deviceType==1){
|
|
if (deviceType==1){
|
|
@ -514,7 +519,7 @@ public class DeviceService extends BaseService{
|
|
|
|
|
|
try {
|
|
try {
|
|
//增加积分
|
|
//增加积分
|
|
if (dataUoloadCount == 0 && "350205".equals(patient.getTown())){
|
|
|
|
|
|
if (dataUoloadCount == 0 && "350205".equals(hospital.substring(0,6))){
|
|
String sql = "select count(*) num from device.wlyy_devices where device_code = '"+deviceSn+"'";
|
|
String sql = "select count(*) num from device.wlyy_devices where device_code = '"+deviceSn+"'";
|
|
Map<String,Object> deviceCountMap = jdbcTemplate.queryForMap(sql);
|
|
Map<String,Object> deviceCountMap = jdbcTemplate.queryForMap(sql);
|
|
if (Integer.valueOf(String.valueOf(deviceCountMap.get("num")))>0){
|
|
if (Integer.valueOf(String.valueOf(deviceCountMap.get("num")))>0){
|