Prechádzať zdrojové kódy

设备绑定增加积分

zd_123 7 rokov pred
rodič
commit
eecf51202d

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

@ -100,8 +100,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);
				String response = creditLogService.insert(jsonObject);
				System.out.println(response);
				JSONObject response = creditLogService.insert(jsonObject);
				System.out.println(response.toJSONString());
			}
			return success("设备保存成功!");