|
@ -64,7 +64,6 @@ public class DeviceDetailService extends BaseJpaService<DeviceDetail, DeviceDeta
|
|
@Transactional
|
|
@Transactional
|
|
public void updateAfterBinding(DevicePatientDevice devicePatientDevice, Date grantTime, boolean isFirst)throws Exception{
|
|
public void updateAfterBinding(DevicePatientDevice devicePatientDevice, Date grantTime, boolean isFirst)throws Exception{
|
|
DeviceDetail deviceDetail = deviceDetailDao.findBySn(devicePatientDevice.getDeviceSn());
|
|
DeviceDetail deviceDetail = deviceDetailDao.findBySn(devicePatientDevice.getDeviceSn());
|
|
int bind = deviceDetail.getIsBinding();
|
|
|
|
long adminTeam=0L;
|
|
long adminTeam=0L;
|
|
String hospital = "";
|
|
String hospital = "";
|
|
String isFirstBind = "";
|
|
String isFirstBind = "";
|
|
@ -81,6 +80,11 @@ public class DeviceDetailService extends BaseJpaService<DeviceDetail, DeviceDeta
|
|
deviceDetail = deviceDetailDao.findBySn(devicePatientDevice.getDeviceSn());
|
|
deviceDetail = deviceDetailDao.findBySn(devicePatientDevice.getDeviceSn());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Integer bind = deviceDetail.getIsBinding();
|
|
|
|
if(bind==null){
|
|
|
|
bind = 0;
|
|
|
|
}
|
|
|
|
|
|
isFirstBind = deviceDetail.getBindingCount();
|
|
isFirstBind = deviceDetail.getBindingCount();
|
|
if (StringUtils.isNotBlank(isFirstBind)){
|
|
if (StringUtils.isNotBlank(isFirstBind)){
|
|
JSONObject jsonObject = JSON.parseObject(isFirstBind);
|
|
JSONObject jsonObject = JSON.parseObject(isFirstBind);
|