|
@ -12,7 +12,6 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.json.JSONArray;
|
|
|
import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.stereotype.Controller;
|
|
@ -97,7 +96,7 @@ public class DoctorDeviceController extends BaseController {
|
|
|
if(pd!=null)
|
|
|
{
|
|
|
if(StringUtils.isNotBlank(pd.getDoctor())&&StringUtils.equals(pd.getDoctor(), getUID())){
|
|
|
List<JSONObject> objects = patientDeviceService.deleteDevice(id,getUID());
|
|
|
List<com.alibaba.fastjson.JSONObject> objects = patientDeviceService.deleteDevice(id,getUID());
|
|
|
return write(200,"","data",objects);
|
|
|
}
|
|
|
else if(StringUtils.isNotBlank(pd.getDoctor())&&!StringUtils.equals(pd.getDoctor(), getUID())){
|
|
@ -108,7 +107,7 @@ public class DoctorDeviceController extends BaseController {
|
|
|
bo = true;
|
|
|
}
|
|
|
if(bo){//同行政团队
|
|
|
List<JSONObject> objects = patientDeviceService.deleteDevice(id,getUID());
|
|
|
List<com.alibaba.fastjson.JSONObject> objects = patientDeviceService.deleteDevice(id,getUID());
|
|
|
return write(200,"","data",objects);
|
|
|
}else{
|
|
|
return error(-1, "只允许删除自己及自己行政团队绑定的设备!");
|