|
@ -150,7 +150,10 @@ public class PatientDeviceController extends BaseController {
|
|
|
@RequestParam String deviceSN,
|
|
|
@RequestParam String categoryCode,
|
|
|
@RequestParam String userType,
|
|
|
@RequestParam(required = false) String newDeviceSN) {
|
|
|
@RequestParam(required = false) String newDeviceSN,
|
|
|
@RequestParam(required = false) String hospital,
|
|
|
@RequestParam(required = false) String hospitalName,
|
|
|
@RequestParam(required = false) String checkDoctorName) {
|
|
|
|
|
|
try {
|
|
|
// String user = getUID();
|
|
@ -188,7 +191,7 @@ public class PatientDeviceController extends BaseController {
|
|
|
}
|
|
|
if ("1".equals(categoryCode)) {
|
|
|
// 先修改患者设备绑定表
|
|
|
int rows = patientDeviceService.updatePatientDevice(user, deviceSN, newDeviceSN,userType,sim);
|
|
|
int rows = patientDeviceService.updatePatientDevice(user, deviceSN, newDeviceSN,userType,sim,hospital,hospitalName,checkDoctorName);
|
|
|
if (rows != 0) {
|
|
|
// 只更换设备编码,不更改时间值
|
|
|
// 1.先查询是否自定义时间段,没有则新增,有则修改
|
|
@ -201,7 +204,7 @@ public class PatientDeviceController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
}else {
|
|
|
int rows = patientDeviceService.updatePatientDevice(user, deviceSN, newDeviceSN,userType,sim);
|
|
|
int rows = patientDeviceService.updatePatientDevice(user, deviceSN, newDeviceSN,userType,sim,hospital,hospitalName,checkDoctorName);
|
|
|
}
|
|
|
|
|
|
return write(200, "更改sv码成功!");
|