zd_123 7 лет назад
Родитель
Сommit
8bbdd72c1e

+ 2 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/doctor/device/DoctorDeviceController.java

@ -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("设备保存成功!");