|
|
|
@ -227,7 +227,7 @@ public class DeviceRepairInfoActivity extends BaseActivity {
|
|
|
|
|
super.onSuccess(response);
|
|
|
|
|
var body = response.body();
|
|
|
|
|
if (body.getCode() == 200) {
|
|
|
|
|
List<Dict> list = gson.fromJson(body.getData().toString(), new TypeToken<List<Dict>>() {
|
|
|
|
|
List<Dict> list = gson.fromJson(gson.toJson(body.getData()), new TypeToken<List<Dict>>() {
|
|
|
|
|
}.getType());
|
|
|
|
|
List<String> strings = new ArrayList<>();
|
|
|
|
|
list.forEach(t -> strings.add(t.getDictLabel()));
|
|
|
|
@ -268,7 +268,7 @@ public class DeviceRepairInfoActivity extends BaseActivity {
|
|
|
|
|
myToastUitls.show("设备扫描错误");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
OkGo.<MyResult>post(url + "/dms/mobile/startRepair").headers("Authorization", SharedPreferencesUtils.getstring("access_token", "")).upRequestBody(RequestBody.create(JSON, gson.toJson(deviceRepair))).execute(new MyRecultCall(dialog, this) {
|
|
|
|
|
OkGo.<MyResult>post(url + "/dms/mobile/startRepair").upRequestBody(RequestBody.create(JSON, gson.toJson(deviceRepair))).execute(new MyRecultCall(dialog, this) {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(Response<MyResult> response) {
|
|
|
|
|
if (response.body().getCode() == 200) {
|
|
|
|
@ -337,7 +337,7 @@ public class DeviceRepairInfoActivity extends BaseActivity {
|
|
|
|
|
super.onSuccess(response);
|
|
|
|
|
var body = response.body();
|
|
|
|
|
if (body.getCode() == 200) {
|
|
|
|
|
List<Outsourcing> outsourcingList = gson.fromJson(body.getData().toString(), new TypeToken<List<Outsourcing>>() {
|
|
|
|
|
List<Outsourcing> outsourcingList = gson.fromJson(gson.toJson(body.getData()), new TypeToken<List<Outsourcing>>() {
|
|
|
|
|
}.getType());
|
|
|
|
|
deviceRepair.setOutsourcingList(outsourcingList);
|
|
|
|
|
return;
|
|
|
|
|