|
@ -99,7 +99,8 @@ public class DoctorDeviceController extends BaseController {
|
|
|
Patient patient = patientService.findByCode(device.getUser());
|
|
|
String creditDetail = "{\"tradeType\":\"HEALTH_TASK\",\"flag\":\"BIND\",\"tradeDirection\":1,\"status\":1,\"patientId\":\""+device.getUser()+"\",\"hospital\":\""+patient.getTown()+"\"}";
|
|
|
JSONObject jsonObject = JSONObject.parseObject(creditDetail);
|
|
|
creditLogService.insert(jsonObject);
|
|
|
String response = creditLogService.insert(jsonObject);
|
|
|
System.out.println(response);
|
|
|
}
|
|
|
|
|
|
return success("设备保存成功!");
|