|
@ -221,7 +221,7 @@ public class PatientDeviceController extends BaseController {
|
|
DeviceDetail deviceDetail = wlyyDeviceDetailService.findBySn(device.getDeviceSn());
|
|
DeviceDetail deviceDetail = wlyyDeviceDetailService.findBySn(device.getDeviceSn());
|
|
if (deviceDetail!=null){
|
|
if (deviceDetail!=null){
|
|
//修改设备表中是否是首绑{"1":"1", "2":"1"}修改成{"1":"0", "2":"0"} 和其他绑定信息,
|
|
//修改设备表中是否是首绑{"1":"1", "2":"1"}修改成{"1":"0", "2":"0"} 和其他绑定信息,
|
|
wlyyDeviceDetailService.updateAfterBinding(device.getDeviceSn(),device.getUserIdcard(),device.getUserType(),new Date());
|
|
|
|
|
|
wlyyDeviceDetailService.updateAfterBinding(device.getDeviceSn(),device.getUserIdcard(),device.getUserType(),new Date(),flag);
|
|
if (flag){
|
|
if (flag){
|
|
Patient patient = patientService.findByCode(device.getUser());
|
|
Patient patient = patientService.findByCode(device.getUser());
|
|
String creditDetail = "{\"tradeType\":\"HEALTH_TASK\",\"flag\":\"BIND\",\"tradeDirection\":1,\"status\":1,\"patientId\":\""+device.getUser()+"\",\"hospital\":\""+patient.getTown()+"\"}";
|
|
String creditDetail = "{\"tradeType\":\"HEALTH_TASK\",\"flag\":\"BIND\",\"tradeDirection\":1,\"status\":1,\"patientId\":\""+device.getUser()+"\",\"hospital\":\""+patient.getTown()+"\"}";
|